/* ========================================
   EMERGENCY FIX - CLICKABILITY FIXES
   ======================================== */

/* Force everything to be clickable - these rules come FIRST */
html, body {
    pointer-events: auto !important;
    position: relative !important;
}

/* Remove any blocking pseudo-elements */
*::before, *::after {
    pointer-events: none !important;
}

/* Ensure modals don't block when hidden */
.modal {
    pointer-events: none !important;
}

    .modal[style*="display: block"],
    .modal.active {
        pointer-events: auto !important;
    }

.modal-content {
    pointer-events: auto !important;
}

/* ========================================
   MODERN PROFESSIONAL STYLES
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

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

/* CRITICAL: Ensure all interactive elements are clickable */
a, button, .btn, [onclick], input, textarea, select {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER & NAVIGATION - DARK NAVY THEME
   ======================================== */

header {
    background: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto !important;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    pointer-events: auto !important;
}

    nav.container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 3rem;
    }

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    pointer-events: auto !important;
    margin: 0;
    padding: 0;
}

    .nav-links li {
        pointer-events: auto !important;
        margin: 0;
    }

    .nav-links a {
        text-decoration: none;
        color: #ffffff;
        font-weight: 500;
        transition: color 0.3s ease;
        cursor: pointer !important;
        pointer-events: auto !important;
        display: inline-block;
        padding: 0.5rem 0;
        font-size: 1rem;
    }

        .nav-links a:hover {
            color: #22c55e;
        }

.donate-link {
    color: #ff6b6b !important;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
}

    .donate-link:hover {
        color: #ff5252 !important;
        transform: translateY(-1px);
    }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    pointer-events: auto !important;
}

    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        opacity: 0.95;
        color: #ecf0f1;
    }

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    pointer-events: auto !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer !important;
    font-size: 1rem;
    pointer-events: auto !important;
    user-select: none;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: #10b981;
    color: white;
    cursor: pointer !important;
    pointer-events: auto !important;
}

    .btn-primary:hover {
        background: #059669;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    cursor: pointer !important;
    pointer-events: auto !important;
}

    .btn-secondary:hover {
        background: white;
        color: #2c3e50;
    }

button.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

    button.btn-secondary:disabled:hover {
        background: transparent;
        color: white;
        transform: none;
    }

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a202c;
    font-weight: 700;
}

/* About Section */
.about-section {
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    color: #10b981;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.about-list {
    list-style: none;
    padding-left: 0;
}

    .about-list li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
        font-size: 1.05rem;
        color: #4a5568;
    }

        .about-list li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #10b981;
            font-weight: bold;
        }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .feature-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

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

.feature-box h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-box p {
    color: #4a5568;
}

/* Values Section */
.values-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.value-item {
    padding: 1.5rem;
    background: white;
    border-left: 4px solid #10b981;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .value-item strong {
        color: #10b981;
        font-size: 1.1rem;
    }

    .value-item p {
        color: #4a5568;
        margin-top: 0.5rem;
    }

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .cta-box h4 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .cta-box p {
        margin-bottom: 1.5rem;
        color: #ecf0f1;
    }

    .cta-box a {
        pointer-events: auto !important;
        cursor: pointer !important;
    }

/* Programs Section */
.programs-section {
    background: #f7fafc;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer !important;
    pointer-events: auto !important;
}

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

    .program-card button,
    .program-card a {
        cursor: pointer !important;
        pointer-events: auto !important;
    }

.program-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.program-card h3 {
    margin: 1rem 0;
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 600;
}

.program-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Ad Space */
.ad-space {
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

/* Donate Section */
.donate-section {
    background: white;
}

.donate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.donate-info h3 {
    color: #10b981;
    margin-bottom: 1rem;
    font-weight: 600;
}

.donate-info p {
    color: #4a5568;
    margin-bottom: 1rem;
}

.donate-list {
    list-style: none;
    padding: 0;
}

    .donate-list li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
        color: #4a5568;
    }

        .donate-list li:before {
            content: "💙";
            position: absolute;
            left: 0;
        }

.donate-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.donate-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .donate-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .donate-card h3 {
        margin-bottom: 0.5rem;
        color: #1a202c;
        font-weight: 600;
    }

    .donate-card p {
        color: #4a5568;
        margin-bottom: 1rem;
    }

    .donate-card button,
    .donate-card a {
        cursor: pointer !important;
        pointer-events: auto !important;
    }

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info p {
    color: #ecf0f1;
}

.contact-detail {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: #ecf0f1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .contact-form input,
    .contact-form textarea {
        padding: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 1rem;
        font-family: inherit;
        cursor: text;
        pointer-events: auto !important;
        background: white;
        color: #2d3748;
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }

    .contact-form button {
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    .contact-form textarea {
        resize: vertical;
        min-height: 150px;
    }

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

    footer p {
        margin: 0;
    }

    footer .container {
        max-width: 1400px;
        margin: 0 auto;
    }

    footer a {
        color: #e2e8f0;
        transition: color 0.3s ease;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

        footer a:hover {
            color: #10b981;
        }

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    pointer-events: none !important;
}

    /* When modal is visible/active */
    .modal[style*="display: block"],
    .modal.active {
        pointer-events: auto !important;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s ease;
    pointer-events: auto !important;
    z-index: 2001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #718096;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer !important;
    transition: color 0.3s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 2002;
}

    .close-modal:hover,
    .close-modal:focus {
        color: #2d3748;
    }

/* Responsive Design */
@media (max-width: 768px) {
    nav.container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .donate-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Loading States */
.loading {
    display: inline-block;
}

    .loading:after {
        content: '...';
        animation: loading 1.5s infinite;
    }

@keyframes loading {
    0% {
        content: '.';
    }

    33% {
        content: '..';
    }

    66% {
        content: '...';
    }
}

/* Additional Modern Touches */
code {
    background: #2d3748;
    color: #68d391;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

    pre code {
        background: transparent;
        padding: 0;
    }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Improved link styling */
a {
    color: #10b981;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Selection styling */
::selection {
    background: #10b981;
    color: white;
}

/* ========================================
   GAMES SECTION - PROFESSIONAL STYLING
   ======================================== */

/* Games Section Container */
.games-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 5rem 0;
}

    .games-section .section-title {
        color: white;
        margin-bottom: 1rem;
    }

    .games-section .section-subtitle {
        color: #e2e8f0;
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 3rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Game Card - White background for better contrast */
.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

    .game-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

/* Game Card Header */
.game-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-icon {
    font-size: 3.5rem;
}

/* Game Badge */
.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

    .game-badge.featured {
        background: #fbbf24;
        color: #78350f;
    }

    .game-badge.new {
        background: #10b981;
        color: white;
    }

    .game-badge.coming-soon {
        background: #ef4444;
        color: white;
    }

/* Game Card Body */
.game-card-body {
    padding: 2rem;
}

.game-card h3 {
    color: #1a202c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.game-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

/* Game Stats */
.game-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #718096;
    font-size: 0.9rem;
}

/* Play Button */
.btn-play {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

    .btn-play:hover {
        background: #059669;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .btn-play.disabled {
        background: #cbd5e0;
        color: #718096;
        cursor: not-allowed;
    }

        .btn-play.disabled:hover {
            transform: none;
            box-shadow: none;
        }

/* Featured Game - Larger card */
.game-card.featured {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .game-card.featured {
        grid-column: span 2;
    }

        .game-card.featured .game-card-header {
            min-height: 180px;
        }

        .game-card.featured h3 {
            font-size: 1.8rem;
        }
}

/* Responsive */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card-header {
        min-height: 120px;
    }
}

/* Alternative Dark Card Style (if you prefer) */
.game-card.dark-style {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

    .game-card.dark-style h3 {
        color: white;
    }

    .game-card.dark-style p {
        color: #e2e8f0;
    }

    .game-card.dark-style .game-stats {
        border-top-color: #4a5568;
    }

    .game-card.dark-style .game-stat {
        color: #cbd5e0;
    }
