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

body {
    font-family: 'Exo 2', sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 25%, #06B6D4 50%, #10B981 75%, #F59E0B 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    position: relative;
}

.logo h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 25%, #06B6D4 50%, #10B981 75%, #F59E0B 100%);
    background-size: 300% 300%;
    border-radius: 10px;
    opacity: 0.05;
    z-index: -1;
    animation: gradientShift 4s ease-in-out infinite;
    filter: blur(10px);
    transition: all 0.3s ease;
}

.logo h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
}

.logo h1:hover::before {
    opacity: 0.2;
    filter: blur(15px);
    transform: scale(1.1);
}

.tagline {
    font-size: 0.8rem;
    color: #6366F1;
    display: block;
    margin-top: -5px;
    font-weight: 300;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #06B6D4 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 58, 138, 0.9) 25%, 
        rgba(37, 99, 235, 0.85) 50%, 
        rgba(15, 23, 42, 0.9) 100%);
    border-radius: 20px;
    margin: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 25%, #BAE6FD 50%, #7DD3FC 75%, #FFFFFF 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(125, 211, 252, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #E0F2FE;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    opacity: 0.98;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #6366F1;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.5);
    color: #111111;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    background: rgba(0, 0, 0, 0.08);
}

.search-input::placeholder {
    color: #333333;
}

.search-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #06B6D4 100%);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Games Section */
.games-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 25%, #06B6D4 50%, #10B981 75%, #F59E0B 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #06B6D4 100%);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #ffffff;
    border-radius: 23px;
    z-index: -1;
    transition: all 0.3s ease;
}

.filter-btn:not(.active) {
    color: #ffffff;
}

.filter-btn:hover,
.filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    animation: gradientShift 2s ease-in-out infinite;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 0;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border: 2px solid #6366F1;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.game-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.game-cover {
    width: 100%;
}

.game-card:hover .game-cover {
    transform: scale(1.1);
}

.game-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    padding: 6px 12px;
    color: #ffffff;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 2;
    transition: all 0.3s ease;
}

.game-card:hover .game-category-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.game-info {
    padding: 15px 10px;
    text-align: center;
}

.game-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #333333;
    line-height: 1.3;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading.show {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-top: 4px solid #6366F1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Game Detail Page Styles */
.game-detail-main {
    padding: 40px 0;
}


.game-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366F1;
    margin-bottom: 15px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.game-category {
    padding: 8px 16px;
    background: linear-gradient(45deg, #8B5CF6, #06B6D4);
    color: #ffffff;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.game-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #06B6D4 100%);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #ffffff;
    border-radius: 23px;
    z-index: -1;
    transition: all 0.3s ease;
}


.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    animation: gradientShift 2s ease-in-out infinite;
}

.control-btn:hover::before {
    opacity: 0;
}

/* Game Container */
.game-container {
    margin-bottom: 40px;
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #6366F1;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loading-overlay.hidden {
    display: none;
}

/* Game Description */
.game-description {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.game-description h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #333333;
    margin-bottom: 15px;
}

.game-description p {
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.game-tips h4 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.game-tips ul {
    list-style: none;
    padding-left: 0;
}

.game-tips li {
    padding: 8px 0;
    color: #b8b8b8;
    position: relative;
    padding-left: 20px;
}

.game-tips li:before {
    content: "▶";
    color: #6366F1;
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.05);
    color: #666666;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: #b8b8b8;
    font-weight: 300;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #6366F1;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-links a:hover {
    color: #8B5CF6;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Legal Pages Styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
}

.legal-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #6366F1;
    margin-bottom: 10px;
    text-align: center;
}

.legal-content .last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.legal-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #333;
    margin: 30px 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid #6366F1;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: #555;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 15px;
    color: #444;
    text-align: justify;
}

.legal-content ul {
    margin: 15px 0 15px 30px;
    color: #444;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: #6366F1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: #8B5CF6;
    border-bottom-color: #8B5CF6;
}

.legal-footer {
    background: rgba(99, 102, 241, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    border-left: 4px solid #6366F1;
}

.legal-footer p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* Fullscreen Styles */
.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .game-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-frame-wrapper {
        height: 400px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Footer responsive styles */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* Legal pages responsive styles */
    .legal-content {
        padding: 20px 15px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content ul {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 2fr;
    }
    
    .game-frame-wrapper {
        height: 300px;
    }
}