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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Styles */
.age-banner, .cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #004d99;
    color: white;
    z-index: 10000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cookie-banner {
    bottom: 0;
    top: auto;
    background-color: #333;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.banner-text h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 500;
}

.banner-text p {
    font-size: 0.95rem;
    margin: 0;
}

.banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.banner-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

.banner-actions .btn-primary {
    background-color: #f2b400;
    color: #333;
}

.banner-actions .btn-primary:hover {
    background-color: #d99f00;
}

.banner-actions .btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.banner-actions .btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Adjust body padding when banners are shown */
body.age-banner-shown {
    padding-top: 80px;
}

body.cookie-banner-shown {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        text-align: center;
    }
    
    .banner-actions {
        justify-content: center;
    }
    
    body.age-banner-shown {
        padding-top: 120px;
    }
    
    body.cookie-banner-shown {
        padding-bottom: 120px;
    }
}

/* Buttons */
.btn-primary {
    background-color: #004d99;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #003d7a;
}

.btn-secondary {
    background-color: #f2b400;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #d99f00;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Age Verification Section (not modal) */
.age-verification-section {
    background: linear-gradient(135deg, #004d99, #0066cc);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.age-verification-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.age-verification-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #f2b400;
}

.age-verification-card p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.age-verification-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-verification-section.hidden {
    display: none;
}

/* Remove old age verification modal styles */

/* Remove cookie consent styles - not needed */

.hidden {
    display: none !important;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background-color: #00b389;
    color: white;
    text-align: center;
    padding: 8px 20px;
    font-size: 14px;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.logo a {
    text-decoration: none;
}
.logo h1 {
    color: #004d99;
    font-size: 24px;
    font-weight: 700;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: #004d99;
    background-color: #f0f8ff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 77, 153, 0.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Page Management for PHP */
.page {
    display: block;
}

/* Page-specific styles */
.home-page,
.explore-page,
.play-page,
.community-page,
.legal-page {
    width: 100%;
}

/* No game selected state */
.no-game-selected {
    text-align: center;
    padding: 60px 0;
}

.no-game-selected h3 {
    color: #004d99;
    font-size: 24px;
    margin-bottom: 15px;
}

.no-game-selected p {
    color: #666;
    margin-bottom: 25px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #004d99 0%, #0066cc 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Games */
.featured-games {
    padding: 60px 0;
    background-color: white;
}

.featured-games h3 {
    text-align: center;
    font-size: 32px;
    color: #004d99;
    margin-bottom: 40px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.play-button {
    background-color: #00b389;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: #008c6a;
}

/* Community Section */
.community-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.community-section h3 {
    text-align: center;
    font-size: 32px;
    color: #004d99;
    margin-bottom: 40px;
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.community-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.community-card h4 {
    color: #004d99;
    font-size: 20px;
    margin-bottom: 15px;
}

.community-card p {
    color: #666;
    line-height: 1.6;
}

/* Explore Page */
.explore-section {
    padding: 40px 0;
}

.explore-section h2 {
    text-align: center;
    font-size: 36px;
    color: #004d99;
    margin-bottom: 40px;
}

.filter-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
}

.filter-options select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
}

/* Play Page */
.game-play-section {
    padding: 20px 0;
    min-height: 80vh;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.back-btn {
    background: none;
    border: 1px solid #004d99;
    color: #004d99;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #004d99;
    color: white;
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.game-iframe-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.game-iframe-container iframe {
    width: 100%;
    height: 600px;
}

.related-games {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-games h3 {
    color: #004d99;
    margin-bottom: 20px;
}

.related-games-grid .game-card {
    margin-bottom: 15px;
}

.related-games-grid .game-image {
    height: 120px;
}

.related-games-grid .game-info {
    padding: 15px;
}

/* Community Page */
.community-main {
    padding: 40px 0;
}

.community-main h2 {
    text-align: center;
    font-size: 36px;
    color: #004d99;
    margin-bottom: 40px;
}

.community-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.news-section,
.events-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-section h3,
.events-section h3 {
    color: #004d99;
    margin-bottom: 25px;
    font-size: 24px;
}

.news-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-card:last-child {
    border-bottom: none;
}

.news-card h4 {
    color: #333;
    margin-bottom: 8px;
}

.news-date {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.event-date {
    background-color: #f2b400;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.event-details h4 {
    color: #333;
    margin-bottom: 5px;
}

.event-details p {
    color: #666;
    font-size: 14px;
}

/* Legal Page */
.legal-section {
    padding: 40px 0;
}

.legal-section h2 {
    text-align: center;
    font-size: 36px;
    color: #004d99;
    margin-bottom: 30px;
}

.legal-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.legal-tab {
    background: none;
    border: 1px solid #004d99;
    color: #004d99;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    display: inline-block;
}

.legal-tab.active,
.legal-tab:hover {
    background-color: #004d99;
    color: white;
}

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    color: #004d99;
    margin-bottom: 30px;
}

.legal-text h4 {
    color: #333;
    margin: 25px 0 10px 0;
}

.legal-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    color: #f2b400;
    margin-bottom: 15px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

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

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

.maple-leaf {
    font-size: 16px;
    margin-top: 10px;
    display: block;
    color: #f2b400;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Game Image Styles */
.game-image {
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 77, 153, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-overlay-btn {
    background: #f2b400;
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.play-overlay-btn:hover {
    background: #d99f00;
    transform: scale(1.05);
}

/* Home Page New Sections */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
}

.feature-icon {
    font-size: 18px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Disclaimer Section */
.disclaimer-section {
    background: #f0f8ff;
    padding: 60px 0;
}

.disclaimer-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-card h3 {
    color: #004d99;
    font-size: 28px;
    margin-bottom: 25px;
}

.disclaimer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
}

.disclaimer-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #00b389;
}

.disclaimer-item strong {
    color: #004d99;
    display: block;
    margin-bottom: 5px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 50px;
    color: #004d99;
    font-size: 2.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #f2b400;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,77,153,0.1);
}

.faq-item h4 {
    color: #004d99;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Legal Disclaimer Section */
.legal-disclaimer-section {
    padding: 60px 0;
    background: #f8f9fa;
    border-top: 3px solid #004d99;
}

.disclaimer-banner {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,77,153,0.1);
    border: 2px solid #f2b400;
}

.disclaimer-banner h3 {
    text-align: center;
    color: #d63031;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

.disclaimer-points {
    display: grid;
    gap: 20px;
}

.disclaimer-points .point {
    padding: 20px;
    background: #fef9e7;
    border-left: 4px solid #f2b400;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.disclaimer-points .point strong {
    color: #004d99;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.disclaimer-points .point a {
    color: #004d99;
    text-decoration: underline;
    font-weight: 600;
}

.disclaimer-points .point a:hover {
    color: #f2b400;
}

/* Features Section (renamed from why-choose) */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-section h3 {
    text-align: center;
    margin-bottom: 50px;
    color: #004d99;
    font-size: 2.5rem;
}

/* Benefits Grid (What Makes Us Special Section) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 77, 153, 0.15);
}

.benefit-card h4 {
    color: #004d99;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #004d99 0%, #0066cc 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn-primary {
    background: #f2b400;
    color: #333;
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-content .btn-primary:hover {
    background: #d99f00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 180, 0, 0.3);
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .disclaimer-banner {
        padding: 25px;
    }
    
    .disclaimer-banner h3 {
        font-size: 1.5rem;
    }
    
    .disclaimer-points .point {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .cta-content h3 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-content .btn-primary {
        font-size: 1rem;
        padding: 14px 30px;
    }
}
