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

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --card-bg: #0f3460;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-neon: 0 0 20px rgba(78, 205, 196, 0.3);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 2000;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: -2rem auto 2.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.brand-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-search {
    display: flex;
    gap: 0.5rem;
}

.nav-search input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    width: 200px;
    transition: all 0.3s ease;
}

.nav-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    width: 250px;
}

.nav-search button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-search button:hover {
    transform: scale(1.05);
}

.nav-user {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-user:hover {
    transform: scale(1.1);
}

.user-icon {
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding: 80px 4% 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 620px;
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

/* Hero Visual (lado direito) */
.hero-visual {
    position: relative;
    width: 420px;
    height: 420px;
    flex-shrink: 0;
    z-index: 2;
}

.hero-preview-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border: 2px solid rgba(78, 205, 196, 0.4);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(78, 205, 196, 0.15);
    animation: previewFloat 5s ease-in-out infinite;
    width: 320px;
}

@keyframes previewFloat {
    0%, 100% { transform: translate(-50%, -52%); }
    50% { transform: translate(-50%, -48%); }
}

#heroCanvas {
    display: block;
    border-radius: 10px;
    background: #0a0a1a;
    width: 100%;
}

.hero-preview-info {
    padding: 12px 4px 4px;
}

.hero-preview-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    margin-bottom: 6px;
}

.hero-preview-info h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.hero-preview-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.hero-preview-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-preview-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.hero-float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(15, 52, 96, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: chipFloat 6s ease-in-out infinite;
}

.chip-check {
    color: #4ecdc4;
    font-weight: 700;
}

.chip1 { top: 8%; left: -8%; animation-delay: 0s; }
.chip2 { top: 38%; right: -12%; animation-delay: 1.5s; }
.chip3 { bottom: 6%; left: 2%; animation-delay: 3s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section {
    padding: 5rem 5%;
}

/* Categories */
.categories-section {
    background: var(--darker-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 2.5rem;
        padding-top: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: auto;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-preview-card {
        width: min(320px, 86vw);
    }

    .hero-float-chip {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-content > .footer-links {
        padding: 1.5rem 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-brand-header {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0.8rem auto 0;
    }
}

.category-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-neon);
}

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

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.category-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Games */
.games-section {
    background: var(--dark-bg);
}

.games-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    transform: scale(1.05);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-thumbnail {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.game-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
}

.game-thumbnail span {
    position: relative;
    z-index: 1;
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.badge-new {
    background: var(--accent-color);
    color: #1a1a2e;
}

.badge-popular {
    background: var(--primary-color);
}

.badge-top {
    background: var(--secondary-color);
}

.badge-soon {
    background: #5a6478;
    color: #fff;
}

.badge-playable {
    background: #22c55e;
    color: #fff;
}

.game-card.soon .game-thumbnail {
    filter: grayscale(0.7) brightness(0.6);
}

.game-card.soon .game-thumbnail::after {
    content: '🔒';
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 1.2rem;
    opacity: 0.8;
}

.game-card .play-button {
    background: var(--secondary-color);
}

.game-card.soon .play-button {
    opacity: 0;
    pointer-events: none;
}

/* Modal Em Breve */
.soon-modal-content {
    text-align: center;
    padding: 3rem 2rem;
}

.soon-modal-content .soon-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: soonPulse 2s ease-in-out infinite;
}

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

.soon-modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.soon-modal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.soon-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.game-category {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.game-plays {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.play-button {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.game-card:hover .play-button {
    opacity: 1;
    transform: scale(1);
}

/* Popular Carousel */
.popular-section {
    background: var(--darker-bg);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(255,107,107,0.4);
}

.carousel-btn-left {
    left: -10px;
}

.carousel-btn-right {
    right: -10px;
}

.popular-carousel {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--darker-bg);
    scroll-snap-type: x mandatory;
}

.popular-carousel::-webkit-scrollbar {
    height: 8px;
}

.popular-carousel::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 4px;
}

.popular-carousel::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

.popular-game {
    flex: 0 0 280px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.popular-game:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-neon);
}

.popular-game .game-thumbnail {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.popular-game .game-info {
    padding: 1rem;
}

.popular-game .game-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.popular-game .game-category {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Featured Game */
.featured-section {
    background: var(--dark-bg);
}

.featured-game {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.featured-thumbnail {
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.featured-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.featured-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.featured-stat {
    text-align: center;
}

.featured-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.featured-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* About */
.about-section {
    background: var(--darker-bg);
}

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

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
}

.feature-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-weight: 500;
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.game-modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.game-container {
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    font-size: 3rem;
}

.game-info {
    padding: 2rem;
}

.game-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.game-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto 3rem;
    align-items: center;
}

.footer-brand {
    padding-right: 2.5rem;
}

.footer-content > .footer-links {
    padding: 0.5rem 2.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand .logo {
    font-size: 2rem;
}

.footer-brand .brand-name {
    font-size: 1.2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.8rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.7rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.footer-legal {
    margin-top: 0.8rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        width: 100%;
        max-width: 360px;
        height: 420px;
        margin: 0 auto;
    }
    
    .hero-preview-card {
        width: 280px;
    }
    
    .hero-float-chip {
        display: none;
    }
    
    .featured-game {
        grid-template-columns: 1fr;
    }
    
    .game-modal {
        padding: 1rem;
    }
    
    .game-container {
        height: 40vh;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
