/* GameWorkFeel - Retro Style CSS */

:root {
    --primary-color: #d4a574;
    --secondary-color: #8b7355;
    --accent-color: #a0826d;
    --background-light: #f5f1e8;
    --background-dark: #3d3526;
    --text-dark: #2c2418;
    --text-light: #f5f1e8;
    --success-color: #6b8e23;
    --danger-color: #8b4513;
    --border-color: #c9b99b;
    --glow-color: #d4a574;
    --header-height: 70px;
}

@media (max-width: 600px) {
    :root {
        --header-height: 60px;
    }
}

/* Base Styles */
* {
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    word-wrap: break-word;
}

body {
    background: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background-dark);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.free-badge {
    background: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        background: var(--background-dark);
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(135deg, var(--background-light) 0%, #e8ddd0 100%);
    background-image: url('../images/hero_desktop_bg.png');
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: calc(100vh - 60px);
        margin-top: 60px;
        background-image: url('../images/hero_mobile_bg.png');
    }
}

.btn-hero {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.6);
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
    background: var(--background-light);
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.benefit-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Games Section */
.games-section {
    padding: 4rem 0;
    background: var(--background-dark);
    color: var(--text-light);
}

.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
}

.game-card {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 350px;
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--background-light);
    display: block;
}

.game-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.game-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 3vw, 1rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
}

.game-rating {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1rem, 3vw, 1.1rem);
}

.btn-play {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-size: clamp(0.9rem, 3vw, 1rem);
    box-sizing: border-box;
}

.btn-play:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Mobile specific styles for games */
@media (max-width: 768px) {
    .games-section {
        padding: 2rem 0;
    }
    
    .games-grid {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .game-card {
        flex: 1 1 auto !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto;
    }
    
    .game-image {
        height: 180px !important;
    }
    
    .game-info {
        padding: 1.2rem !important;
    }
    
    .game-title {
        font-size: 1.3rem !important;
    }
    
    .game-description {
        font-size: 0.95rem !important;
    }
    
    .btn-play {
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .games-grid {
        padding: 0 0.5rem !important;
        gap: 1rem !important;
    }
    
    .game-card {
        border-radius: 10px;
    }
    
    .game-image {
        height: 160px !important;
    }
    
    .game-info {
        padding: 1rem !important;
    }
    
    .game-title {
        font-size: 1.2rem !important;
    }
    
    .game-description {
        font-size: 0.9rem !important;
    }
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--accent-color);
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    font-size: 1.8rem;
    line-height: 1;
}

.faq-answer {
    padding: 0 1.5rem !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease, padding 0.4s ease !important;
}

.faq-answer.active {
    max-height: 2000px !important;
    padding: 1.5rem !important;
    overflow: visible !important;
}

.faq-answer div {
    padding: 0;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ol,
.faq-answer ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
    background: var(--background-dark);
    color: var(--text-light);
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.review-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.review-stars {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.leaderboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.leaderboard-card {
    flex: 1 1 200px;
    max-width: 250px;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.leaderboard-card:hover {
    transform: translateY(-5px);
}

.leaderboard-rank {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Disclaimer Section */
.disclaimer-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 3rem 0;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.disclaimer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.badge {
    background: white;
    color: #ee5a24;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.compliance-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.compliance-logo {
    height: 35px !important;
    width: auto !important;
    background: var(--text-light);
    padding: 8px;
    border-radius: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.compliance-logo:hover {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.age-restriction {
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom a {
    color: var(--primary-color);
}

/* Age Verification Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-popup-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    margin: 1rem;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: scale(1.05);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-dark) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.cookie-content {
    color: var(--text-light);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cookie-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .benefits-grid,
    .reviews-grid {
        flex-direction: column;
        align-items: center;
    }

    .benefit-card,
    .review-card {
        max-width: 100%;
        width: 100%;
    }
}

@media (min-width: 901px) {
    .benefits-grid,
    .games-grid,
    .reviews-grid {
        flex-direction: row;
    }
}

/* Ensure games grid works properly on all screen sizes */
@media (min-width: 769px) and (max-width: 1024px) {
    .games-grid {
        gap: 1.5rem;
    }
    
    .game-card {
        flex: 1 1 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
}

@media (min-width: 1025px) {
    .game-card {
        flex: 1 1 300px;
        max-width: 350px;
    }
}

