/**
 * Casino Plus Apps Core CSS Stylesheet
 * All classes use 'pg18-' prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --pg18-primary: #008B8B;
    --pg18-primary-dark: #006666;
    --pg18-bg-dark: #1A1A2E;
    --pg18-bg-darker: #0f0f1e;
    --pg18-bg-light: #F0F8FF;
    --pg18-bg-accent: #E0FFFF;
    --pg18-text-light: #E0FFFF;
    --pg18-text-white: #ffffff;
    --pg18-text-dark: #1A1A2E;
    --pg18-accent: #008B8B;
    --pg18-success: #27ae60;
    --pg18-warning: #f39c12;
    --pg18-danger: #e74c3c;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--pg18-bg-dark);
    color: var(--pg18-text-light);
    min-height: 100vh;
    padding-bottom: 70px;
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

/* Container */
.pg18-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 769px) {
    .pg18-container {
        max-width: 1200px;
    }
}

/* Header Styles */
.pg18-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pg18-bg-dark) 0%, var(--pg18-bg-darker) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0.8rem 0;
}

.pg18-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 769px) {
    .pg18-header-content {
        max-width: 1200px;
    }
}

.pg18-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--pg18-text-white);
}

.pg18-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.pg18-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg18-primary);
}

.pg18-header-buttons {
    display: flex;
    gap: 0.8rem;
}

.pg18-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pg18-btn-register {
    background: linear-gradient(135deg, var(--pg18-primary) 0%, var(--pg18-accent) 100%);
    color: var(--pg18-text-white);
}

.pg18-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 139, 139, 0.4);
}

.pg18-btn-login {
    background: transparent;
    color: var(--pg18-primary);
    border: 2px solid var(--pg18-primary);
}

.pg18-btn-login:hover {
    background: var(--pg18-primary);
    color: var(--pg18-text-white);
}

.pg18-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--pg18-text-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 769px) {
    .pg18-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.pg18-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pg18-bg-darker);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding-top: 60px;
}

.pg18-mobile-menu.pg18-menu-open {
    right: 0;
}

.pg18-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--pg18-text-white);
    font-size: 2rem;
    cursor: pointer;
}

.pg18-menu-nav {
    padding: 1rem 0;
}

.pg18-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--pg18-text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 139, 139, 0.1);
    transition: background 0.3s ease;
}

.pg18-menu-item:hover {
    background: rgba(0, 139, 139, 0.1);
    color: var(--pg18-primary);
}

/* Carousel */
.pg18-carousel {
    margin-top: 70px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pg18-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pg18-carousel-slide {
    min-width: 100%;
    position: relative;
}

.pg18-carousel-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Main Content */
.pg18-main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.pg18-section {
    margin-bottom: 3rem;
    background: var(--pg18-bg-darker);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pg18-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg18-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pg18-section-title h1,
.pg18-section-title h2 {
    color: var(--pg18-primary);
}

/* Game Grid */
.pg18-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

@media (min-width: 769px) {
    .pg18-game-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1rem;
    }
}

.pg18-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.pg18-game-item:hover {
    transform: scale(1.05);
}

.pg18-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pg18-game-name {
    font-size: 1rem;
    color: var(--pg18-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Card Component */
.pg18-card {
    background: var(--pg18-bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pg18-card-title {
    font-size: 1.6rem;
    color: var(--pg18-text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pg18-card-content {
    font-size: 1.4rem;
    color: var(--pg18-text-dark);
    line-height: 1.6;
}

.pg18-link {
    color: var(--pg18-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pg18-link:hover {
    color: var(--pg18-primary);
    text-decoration: underline;
}

/* Footer */
.pg18-footer {
    background: var(--pg18-bg-darker);
    padding: 3rem 0 8rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--pg18-primary);
}

@media (min-width: 769px) {
    .pg18-footer {
        padding-bottom: 3rem;
    }
}

.pg18-footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 769px) {
    .pg18-footer-content {
        max-width: 1200px;
    }
}

.pg18-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.pg18-footer-link {
    color: var(--pg18-primary);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--pg18-primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pg18-footer-link:hover {
    background: var(--pg18-primary);
    color: var(--pg18-text-white);
}

.pg18-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg18-partner-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg18-partner-logo:hover {
    opacity: 1;
}

.pg18-copyright {
    text-align: center;
    color: var(--pg18-text-light);
    font-size: 1.2rem;
    padding: 1rem;
    border-top: 1px solid rgba(0, 139, 139, 0.2);
}

/* Mobile Bottom Navigation */
.pg18-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pg18-bg-dark) 0%, var(--pg18-bg-darker) 100%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    height: 60px;
}

@media (min-width: 769px) {
    .pg18-bottom-nav {
        display: none;
    }
}

.pg18-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--pg18-text-light);
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pg18-nav-item:hover {
    color: var(--pg18-primary);
    transform: scale(1.05);
}

.pg18-nav-item.pg18-active {
    color: var(--pg18-primary);
}

.pg18-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.pg18-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Utility Classes */
.pg18-text-center {
    text-align: center;
}

.pg18-mt-1 {
    margin-top: 1rem;
}

.pg18-mb-1 {
    margin-bottom: 1rem;
}

.pg18-mt-2 {
    margin-top: 2rem;
}

.pg18-mb-2 {
    margin-bottom: 2rem;
}

.pg18-py-3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Animation */
@keyframes pg18-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg18-animate {
    animation: pg18-fadeIn 0.5s ease;
}
