/* Non-critical CSS loaded after page render */

/* Navigation Styles */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand .brand-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #007bff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Styles */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-cta {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    text-shadow: none;
    min-height: 44px;
    min-width: 44px;
}

.hero-cta:hover {
    background: white;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
}

/* Main Content Styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Intro Section */
.intro-section {
    padding: 3rem 1rem;
    background: #f8f9fa;
}

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

.intro-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.intro-paragraph {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.location-highlights {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.location-highlights h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.location-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.location-list li {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.location-list strong {
    color: #007bff;
    font-weight: 600;
}

@media (min-width: 768px) {
    .location-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Games Section */
.games-section {
    padding: 4rem 1rem;
    background: white;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Game Card Styles - Samsung-inspired modular design */
.game-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.game-time {
    font-size: 0.875rem;
    color: #007bff;
    font-weight: 600;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.skill-level {
    font-size: 0.75rem;
    color: #28a745;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-location {
    margin: 1rem 0;
}

.game-location h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.game-address {
    color: #6b7280;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.game-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.player-count {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-duration {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-price {
    color: #28a745;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-type {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
}

.game-type.indoor {
    background: #e3f2fd;
    color: #1976d2;
}

.game-type.outdoor {
    background: #e8f5e8;
    color: #2e7d32;
}

.join-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 44px;
    min-width: 44px;
    line-height: 1.2;
}

.join-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.join-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Info Section Styles */
.info-section {
    padding: 4rem 1rem;
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mega Footer Styles */
.mega-footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

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

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    color: #9ca3af;
    transition: color 0.3s;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.trust-note p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.trust-note strong {
    color: white;
}

.powered-by {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0.5rem 0;
    text-align: center;
}

.gameon-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.gameon-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-bottom-content {
    text-align: center;
}

.copyright {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1a1a1a;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-weight: 600;
    font-size: 0.95rem;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    color: white;
}

.toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    color: white;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid #e9ecef;
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .location-btn {
        margin-top: 1rem;
        align-self: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Tablet and Desktop Responsive */
@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-container {
        display: flex;
        gap: 1rem;
        align-items: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .search-input {
        flex: 1;
    }
    
    .location-btn {
        white-space: nowrap;
        margin-top: 0;
        flex-shrink: 0;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .game-card {
        border: 2px solid #000;
    }
    
    .join-btn {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .search-section,
    .join-btn,
    .toast {
        display: none;
    }
    
    .game-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
