/* ==================== GAMING HUB - VARIÁVEIS E RESET ==================== */
:root {
    --bg-dark: #0a0e27;
    --bg-darker: #060916;
    --bg-card: #111827;
    --accent-primary: #00d9ff;
    --accent-secondary: #ff006e;
    --accent-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: #1f2937;
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== BACKGROUND ANIMADO ==================== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, #0a0e27 0%, #060916 100%),
        linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: -1;
    animation: bgPulse 10s ease-in-out infinite;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    padding: 30px 20px;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
}

/* Efeito Glitch no título */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch-text::before {
    animation: glitch1 2s infinite;
    color: var(--accent-primary);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch2 2s infinite;
    color: var(--accent-secondary);
    z-index: -2;
}

@keyframes glitch1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stats-bar {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 30px;
    border: 1px solid var(--accent-primary);
    font-weight: 600;
}

.stat-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* ==================== MAIN CONTENT ==================== */
main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ==================== CONTROLES (PESQUISA E FILTROS) ==================== */
.controls-section {
    margin-bottom: 40px;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.2rem;
}

#pesquisa {
    width: 100%;
    padding: 18px 60px 18px 55px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

#pesquisa:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-secondary);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-speed);
}

.clear-btn.active {
    opacity: 1;
}

.clear-btn:hover {
    background: #ff1a81;
    transform: translateY(-50%) scale(1.1);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 25px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* ==================== GAMES HEADER ==================== */
.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.games-header h2 {
    font-size: 2rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 15px;
}

.games-header h2 i {
    animation: crownSpin 3s linear infinite;
}

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

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.view-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.view-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* ==================== GAMES GRID ==================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    transition: all var(--transition-speed);
}

.games-grid.list-view {
    grid-template-columns: 1fr;
}

/* ==================== GAME CARDS ==================== */
.game-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all var(--transition-speed);
    position: relative;
    animation: cardSlideIn 0.5s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.game-card.hidden {
    display: none;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-primary), #0099cc);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-badge.popular {
    background: linear-gradient(135deg, var(--accent-gold), #ff8c00);
}

.card-badge.esports {
    background: linear-gradient(135deg, var(--accent-secondary), #cc0055);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

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

.play-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(20px);
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-card:hover .play-btn {
    transform: translateY(0);
}

.play-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.5);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.username {
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.username i {
    color: var(--accent-primary);
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background: rgba(0, 217, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.card-link:hover {
    color: var(--accent-secondary);
    gap: 12px;
}

/* ==================== NO RESULTS ==================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.no-results.active {
    display: block;
}

.no-results i {
    font-size: 5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.no-results small {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--bg-card);
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.separator {
    color: var(--border-color);
}

/* ==================== STREAMING SECTION ==================== */
.streaming-section {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 2px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.section-header h2 i {
    animation: broadcast 2s ease-in-out infinite;
}

@keyframes broadcast {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Platform Cards */
.streaming-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.platform-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.twitch-card {
    border-color: #9146FF;
}

.twitch-card:hover {
    box-shadow: 0 8px 32px rgba(145, 70, 255, 0.4);
}

.youtube-card {
    border-color: #FF0000;
}

.youtube-card:hover {
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.platform-header i {
    font-size: 2.5rem;
}

.twitch-card .platform-header i {
    color: #9146FF;
}

.youtube-card .platform-header i {
    color: #FF0000;
}

.platform-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.live-badge {
    background: linear-gradient(135deg, #FF0000, #FF4444);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.subscribers-badge {
    background: rgba(255, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid #FF0000;
}

.platform-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.platform-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.platform-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.platform-stats .stat i {
    color: var(--accent-primary);
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-speed);
    border: 2px solid;
}

.twitch-link {
    background: linear-gradient(135deg, #9146FF, #772CE8);
    border-color: #9146FF;
    color: white;
}

.twitch-link:hover {
    background: #772CE8;
    box-shadow: 0 6px 20px rgba(145, 70, 255, 0.5);
    transform: scale(1.05);
}

.youtube-link {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-color: #FF0000;
    color: white;
}

.youtube-link:hover {
    background: #CC0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    transform: scale(1.05);
}

/* Featured Video */
.featured-video {
    margin-bottom: 50px;
}

.featured-video h3 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.featured-video h3 i {
    animation: starRotate 3s linear infinite;
}

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

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-card);
    background: var(--bg-darker);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-speed);
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.twitch-btn {
    background: linear-gradient(135deg, #9146FF, #772CE8);
    border-color: #9146FF;
    color: white;
}

.twitch-btn:hover {
    box-shadow: 0 8px 20px rgba(145, 70, 255, 0.6);
}

.youtube-btn {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-color: #FF0000;
    color: white;
}

.youtube-btn:hover {
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.6);
}

.discord-btn {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    border-color: #5865F2;
    color: white;
}

.discord-btn:hover {
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.6);
}

.instagram-btn {
    background: linear-gradient(135deg, #E1306C, #C13584);
    border-color: #E1306C;
    color: white;
}

.instagram-btn:hover {
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.6);
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    .profile-info h1 {
        font-size: 1.8rem;
    }

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

    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }

    .games-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .streaming-platforms {
        grid-template-columns: 1fr;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.3rem;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .card-image {
        height: 180px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .platform-header i {
        font-size: 2rem;
    }

    .platform-header h3 {
        font-size: 1.4rem;
    }
}