/* ===================================
   SNAKE CLASH FAN SITE - MAIN STYLES
   =================================== */

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

:root {
    /* Colors */
    --primary-green: #4CAF50;
    --dark-green: #2e7d32;
    --accent-blue: #00BCD4;
    --dark-bg: #0f1419;
    --darker-bg: #08090c;
    --card-bg: #1a1f2e;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c1;
    --border-color: #2a3040;
    --overlay: rgba(0, 0, 0, 0.7);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
}

body {
    font-family: var(--font-body);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(8, 9, 12, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 1.8rem;
    animation: snake-wiggle 3s ease-in-out infinite;
}

@keyframes snake-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(8deg); }
}

.logo-highlight {
    color: var(--primary-green);
    margin-left: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    padding: 10px 25px !important;
    border-radius: 25px;
    color: white !important;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.nav-btn::after {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===================================
   HERO GAME SECTION (First Screen)
   =================================== */

.hero-game-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 30px;
    padding: 60px 20px;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 20, 25, 0.9) 0%,
        rgba(46, 125, 50, 0.4) 50%,
        rgba(15, 20, 25, 0.9) 100%
    );
}

.hero-game-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}



@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    }
}

.game-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-fade-in 1s ease;
}


@keyframes title-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-container-hero {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto 40px;
    max-width: 1100px;
    border: 2px solid var(--border-color);
    animation: title-fade-in 1s ease 0.4s backwards;
    position: relative;
}

/* Fullscreen mode styles */
.game-container-hero.fullscreen-active {
    border-radius: 0;
    max-width: 100%;
    margin: 0;
}

.game-container-hero.fullscreen-active #game-iframe {
    height: 100vh;
}

.game-container-hero.fullscreen-active .game-controls-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: flex-end;
    padding: 10px 20px;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(76, 175, 80, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--dark-bg);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ===================================
   SECTION COMMON STYLES
   =================================== */

section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(76, 175, 80, 0.15);
    color: var(--primary-green);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.game-controls-bar {
    background: rgba(26, 31, 46, 0.98);
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    border-top: 2px solid var(--border-color);
    justify-content: center;
}

.game-control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: 500;
}

.game-control-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.game-control-btn svg {
    flex-shrink: 0;
}

#game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    background: #000;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: title-fade-in 1s ease 0.6s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   CONTROLS SECTION
   =================================== */

.controls-section {
    background: var(--card-bg);
    padding: 60px 0;
}

.controls-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-green);
    text-align: center;
}

.controls-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.control-item-h {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(76, 175, 80, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.control-item-h:hover {
    border-color: var(--primary-green);
    transform: translateY(-3px);
}

.control-icon-h {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.control-content {
    display: flex;
    flex-direction: column;
}

.control-key {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.control-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pro-tips-horizontal {
    background: rgba(0, 188, 212, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.pro-tips-horizontal h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
    text-align: center;
}

.tips-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tip-item {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
    background: var(--dark-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    border-color: var(--primary-green);
    transform: translateX(10px);
}

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

.badge-text {
    font-weight: 600;
    color: var(--text-primary);
}

.about-image {
    position: relative;
}

.image-placeholder {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

.about-video {
    width: 100%;
    display: block;
}

/* ===================================
   GAMEPLAY FEATURES
   =================================== */

.gameplay-section {
    background: var(--darker-bg);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   COMMUNITY SECTION
   =================================== */

.community-section {
    background: var(--dark-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.review-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reviewer-avatar {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
}

.reviewer-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.review-rating {
    color: #FFD700;
    font-size: 1rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.like-btn {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.like-btn.liked {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

/* Comment Form */
.comment-section {
    max-width: 800px;
    margin: 0 auto;
}

.comment-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.comment-form {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.rating-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.rating-selector span {
    font-weight: 600;
    color: var(--text-secondary);
}

.stars-input {
    display: flex;
    gap: 5px;
}

.stars-input .star {
    font-size: 1.5rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stars-input .star.active {
    color: #FFD700;
}

.stars-input .star:hover {
    transform: scale(1.2);
}

.comment-form button[type="submit"] {
    width: 100%;
    margin-top: 20px;
}

/* ===================================
   DOWNLOAD SECTION (Bottom of Page)
   =================================== */

.download-section {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 80px 0;
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9);
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.download-btn.google-play {
    background: white;
    color: #000;
}

.download-btn.app-store {
    background: #000;
    color: white;
    border: 1px solid #333;
}


.download-btn .download-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-btn .download-icon svg {
    width: 100%;
    height: 100%;
}

.download-btn .download-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-btn .download-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.download-btn .download-store {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.download-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.download-features .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

.download-features .feature-item span {
    font-size: 1.1rem;
    color: var(--primary-green);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.footer-column p,
.footer-column li {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

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

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-green);
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(76, 175, 80, 0.6);
}

/* ===================================
   LANGUAGE SWITCHER
   =================================== */

.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-name {
    font-weight: 500;
    white-space: nowrap;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.lang-btn:hover .lang-arrow {
    transform: translateY(2px);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(26, 31, 46, 0.98);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(76, 175, 80, 0.2);
    padding-left: 20px;
}

.lang-option.active {
    background: rgba(76, 175, 80, 0.3);
    border-left: 3px solid var(--primary-color);
}

.lang-dropdown::-webkit-scrollbar {
    width: 8px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Language Selection Section */
.language-selection-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    position: relative;
    overflow: hidden;
}

.language-selection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(76, 175, 80, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.language-selection-section .container {
    position: relative;
    z-index: 1;
}

.language-selection-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.language-selection-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.language-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.15), transparent);
    transition: left 0.5s ease;
}

.language-card:hover::before {
    left: 100%;
}

.language-card:hover {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.15);
}

.language-card .lang-flag {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.language-card .lang-text {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.language-card.active {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.3), inset 0 0 20px rgba(76, 175, 80, 0.1);
}

.language-card.active .lang-text {
    color: #ffffff !important;
    font-weight: 700;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   PWA INSTALL PROMPT
   =================================== */

.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1e1e2d 0%, #2a2a3e 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 380px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.pwa-install-prompt.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.pwa-prompt-icon {
    flex-shrink: 0;
}

.pwa-prompt-icon svg {
    display: block;
    filter: drop-shadow(0 4px 8px rgba(74, 158, 255, 0.3));
}

.pwa-prompt-content {
    flex: 1;
}

.pwa-prompt-content h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.pwa-prompt-buttons {
    display: flex;
    gap: 10px;
}

.pwa-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.pwa-btn-later {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b8c1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-btn-later:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

.pwa-btn-add {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.pwa-btn-add:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.pwa-btn-add:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pwa-install-prompt {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 15px;
    }
    
    .pwa-prompt-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .pwa-prompt-content h3 {
        font-size: 14px;
    }
    
    .pwa-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pwa-install-prompt {
        flex-direction: column;
        text-align: center;
    }
    
    .pwa-prompt-buttons {
        width: 100%;
    }
}

