/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #2d1b69 0%, #1a0f3d 100%);
    padding: 2rem 0;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    width: 80px;
    height: auto;
    border-radius: 12px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fbbf24;
    margin: 5px 0;
    transition: 0.3s;
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0;
}

.sidebar-menu li {
    margin: 0.5rem 0;
}

.sidebar-menu a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(139, 92, 246, 0.2);
    color: #fbbf24;
    border-left-color: #fbbf24;
}

.sidebar-cta {
    padding: 0 1.5rem;
    margin-top: 2rem;
}

.btn-play {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a0f3d;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Top Header */
.top-header {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fbbf24;
    margin: 6px 0;
}

.header-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-header-play {
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-header-play:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.feature-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-icon {
    font-size: 1.3rem;
}

.badge-text {
    font-weight: 600;
    color: #fbbf24;
}

.btn-hero {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a0f3d;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.5);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.7);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

/* Games Section */
.games-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fbbf24 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(30, 41, 59, 0.5) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.game-card-content {
    padding: 1.5rem;
}

.game-card-content h3 {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 0.8rem;
}

.game-card-content p {
    color: #d1d5db;
    margin-bottom: 1.2rem;
}

.btn-game {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-game:hover {
    transform: scale(1.05);
}

/* Why Section */
.why-section {
    padding: 4rem 2rem;
    background: rgba(139, 92, 246, 0.05);
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 30px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-card {
    background: rgba(30, 41, 59, 0.6);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: transform 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: #fbbf24;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.3rem;
    color: #fbbf24;
    margin-bottom: 0.8rem;
}

.why-card p {
    color: #d1d5db;
}

/* App Section */
.app-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.app-content h2 {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.app-content p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.app-features {
    margin-bottom: 2rem;
}

.app-feature {
    padding: 0.8rem 0;
    color: #d1d5db;
    font-size: 1.1rem;
}

.btn-app {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.btn-app:hover {
    transform: scale(1.05);
}

.app-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a0f3d 0%, #0f0a1f 100%);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section ul li {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fbbf24;
}

.footer-license {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 600;
    color: #8b5cf6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    color: #9ca3af;
}

.footer-bottom a {
    color: #fbbf24;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero,
    .app-section {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 1rem;
    }

    .header-brand {
        font-size: 1.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .games-section,
    .why-section,
    .app-section {
        padding: 2rem 1rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Inner Page Styles */
.inner-page {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.inner-container h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.inner-content {
    background: rgba(30, 41, 59, 0.6);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.inner-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.inner-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

@media (max-width: 768px) {
    .inner-page {
        padding: 2rem 1rem;
    }

    .inner-container h1 {
        font-size: 2rem;
    }

    .inner-content {
        padding: 1.5rem;
    }

    .inner-content p {
        font-size: 1rem;
    }
}
