/* GameHub - Futuristic Gaming UI Styles */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-purple: #8b5cf6;
    --primary-pink: #ec4899;
    --primary-blue: #3b82f6;
    --neon-purple: #a855f7;
    --neon-pink: #f472b6;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0f0f23;
    color: #ffffff;
    overflow-x: hidden;
}

.font-orbitron {
    font-family: 'Orbitron', monospace;
}

.font-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

/* Animated Background */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Glass Morphism Effects */
.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    padding: 8px 16px;
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Search Input */
.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 40px 8px 16px;
    color: white;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--neon-purple);
    transform: scale(1.1);
}

/* Neon Buttons */
.neon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.neon-button.primary {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-pink));
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.neon-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.6);
}

.neon-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.neon-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Glow Text Effect */
.glow-text {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
                 0 0 40px rgba(139, 92, 246, 0.3),
                 0 0 60px rgba(139, 92, 246, 0.2);
}

/* Game Cards */
.game-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border-color: var(--neon-purple);
}

.game-card img {
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.game-play-btn {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-pink));
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.game-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Social Links */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--neon-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-pink));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-input {
        width: 180px;
    }
    
    .neon-button {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .glow-text {
        font-size: 3rem;
    }
    
    .glass-card {
        padding: 20px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .search-input {
        width: 150px;
    }
    
    .glow-text {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Particle Effect */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}