/* CSS Variables - matching main site styles */
:root {
    --primary-gold: #c4a84b;
    --primary-gold-light: #d4b85b;
    --primary-gold-dark: #9a8339;
    --bg-gradient-start: #1a2a3a;
    --bg-gradient-end: #0d1a2a;
    --panel-bg: rgba(30, 30, 30, 0.9);
    --bg-dark: rgba(30, 30, 30, 0.9);
    --bg-darker: rgba(20, 20, 20, 0.95);
    --cyan-accent: #4fd1c5;
    --green-accent: #22c55e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --panel-border: rgba(196, 168, 75, 0.3);
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1a2a 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-overlay {
    display: none;
}

/* Main Container */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 10px 0;
    margin-bottom: 10px;
}

.header-icon-btn {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.header-icon-btn:hover {
    background: rgba(196, 168, 75, 0.2);
    border-color: var(--primary-gold);
    transform: scale(1.05);
}

.header-icon-btn:active {
    transform: scale(0.92);
}

.flag-icon {
    font-size: 1.4rem;
}

/* Logo */
.logo-container {
    text-align: center;
}

.logo-text {
    font-family: 'Beaufort for LOL', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(180deg, var(--primary-gold-light) 0%, var(--primary-gold) 50%, var(--primary-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 30px rgba(212, 168, 75, 0.5);
    letter-spacing: 3px;
    position: relative;
}

.logo-o {
    position: relative;
    display: inline-block;
    /* Inherit the gradient text effect */
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Tagline */
.tagline {
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Game Mode Buttons Container */
.game-modes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
}

/* Game Mode Button */
.game-mode-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.game-mode-btn:hover {
    border-color: var(--primary-gold);
    background: rgba(196, 168, 75, 0.1);
    transform: translateY(-3px);
}

.game-mode-btn:active {
    transform: scale(0.98);
}

.mode-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.mode-icon {
    font-size: 1.5rem;
}

.mode-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Want More Section */
.want-more-section {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 20px 24px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.want-more-title {
    color: var(--green-accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.want-more-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.other-games {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.other-game-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.other-game-link:hover {
    background: rgba(196, 168, 75, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

/* Footer */
.landing-footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-icon-btn {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: scale(1.1);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.privacy-link {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1a2a 100%);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-gold);
}

.modal-content h2 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Settings Modal */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item span {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(60, 60, 70, 0.9);
    transition: all 0.3s ease;
    border-radius: 26px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.switch input:checked + .switch-slider {
    background: var(--green-accent);
    border-color: rgba(34, 197, 94, 0.5);
}

.switch input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* Language Modal */
.language-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: left;
    width: 100%;
}

.language-option:hover {
    background: rgba(196, 168, 75, 0.1);
    border-color: var(--primary-gold);
}

.language-option.active {
    background: rgba(196, 168, 75, 0.15);
    border-color: var(--primary-gold);
}

.language-option .flag {
    font-size: 1.4rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-container {
        padding: 15px;
    }

    .logo-text {
        font-size: 2.8rem;
    }

    .logo-o::before {
        top: -20px;
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .game-modes-container {
        max-width: 100%;
    }

    .game-mode-btn {
        padding: 14px 16px;
    }

    .mode-icon-wrapper {
        width: 44px;
        height: 44px;
    }

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

    .mode-title {
        font-size: 1rem;
    }

    .mode-desc {
        font-size: 0.8rem;
    }

    .want-more-section {
        max-width: 100%;
        padding: 16px 20px;
    }

    .other-game-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .landing-header {
        padding: 5px 0;
    }

    .header-icon-btn {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 2.2rem;
    }

    .logo-o::before {
        top: -16px;
        font-size: 1rem;
    }

    .game-mode-btn {
        padding: 12px 14px;
        gap: 12px;
    }

    .mode-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .mode-icon {
        font-size: 1.1rem;
    }

    .footer-icon-btn {
        width: 36px;
        height: 36px;
    }

    .other-games {
        gap: 8px;
    }

    .other-game-link {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    animation: fadeInUp 0.6s ease-out;
}

.tagline {
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.game-modes-container {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.game-mode-btn:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.2s backwards; }
.game-mode-btn:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.3s backwards; }
.game-mode-btn:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.4s backwards; }
.game-mode-btn:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.5s backwards; }
.game-mode-btn:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.6s backwards; }

.want-more-section {
    animation: fadeInUp 0.6s ease-out 0.7s backwards;
}

.landing-footer {
    animation: fadeInUp 0.6s ease-out 0.8s backwards;
}
