@import url("../style.css");
@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700&family=Orbitron:wght@500;700;800&family=Press+Start+2P&family=VT323&display=swap");

:root {
    --primary-color: #00e7ff;
    --secondary-color: #89ff4d;
    --accent-color: #ff4fd8;
    --dark-color: #090d14;
    --light-color: #121a28;
    --text-color: #e8f5ff;
    --text-light: #a8c3de;
    --border-color: #27405f;
    --shadow: 0 14px 28px rgba(0, 0, 0, 0.44);
    --shadow-hover: 0 18px 34px rgba(0, 0, 0, 0.56);

    /* Integracao com o editor de template */
    --rp-font-body: "Exo 2", "Segoe UI", sans-serif;
    --rp-font-nav: "Press Start 2P", "Orbitron", sans-serif;
    --rp-font-heading: "Orbitron", "Press Start 2P", sans-serif;
    --rp-font-button: "Press Start 2P", "Orbitron", sans-serif;
    --rp-radius-card: 8px;
    --rp-radius-button: 8px;
    --rp-radius-modal: 8px;
}

body {
    font-family: var(--rp-font-body);
    color: var(--text-color);
    background:
        radial-gradient(circle at 15% -5%, rgba(0, 231, 255, 0.16), transparent 35%),
        radial-gradient(circle at 100% 5%, rgba(255, 79, 216, 0.15), transparent 34%),
        radial-gradient(circle at 60% 110%, rgba(137, 255, 77, 0.12), transparent 40%),
        #060a12;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.56;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.014) 0 1px,
        transparent 1px 4px
    );
}

.top-bar {
    height: 12px;
    background:
        repeating-linear-gradient(
            90deg,
            #00e7ff 0 18px,
            #89ff4d 18px 36px,
            #ff4fd8 36px 54px,
            #00a8ff 54px 72px
        );
}

.header,
body.home-page .header {
    background: linear-gradient(180deg, #fefeff 0%, #f3f7ff 100%);
    border-bottom: 2px solid #d4e3f7;
    box-shadow: 0 10px 22px rgba(8, 18, 34, 0.18);
}

.logo-img {
    filter: drop-shadow(0 6px 10px rgba(0, 78, 108, 0.2));
}

.nav a,
.nav span,
body.home-page .nav a,
body.home-page .nav span {
    color: #1a355d;
    font-family: var(--rp-font-nav);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.42;
}

.nav a:hover,
body.home-page .nav a:hover {
    color: #0085b8;
}

.nav a.btn-link,
body.home-page .nav a.btn-link {
    background: linear-gradient(135deg, #10213e, #173867);
    color: #ecf8ff;
    border: 1px solid rgba(0, 231, 255, 0.5);
}

.nav a.btn-link:hover,
body.home-page .nav a.btn-link:hover {
    background: linear-gradient(135deg, #183464, #20518d);
    color: #ffffff;
}

.hero-carousel {
    background: linear-gradient(140deg, #06172f 0%, #0a2b4a 45%, #0d4258 100%);
    border-top: 2px solid rgba(137, 255, 77, 0.34);
    border-bottom: 2px solid rgba(255, 79, 216, 0.34);
}

.carousel-content {
    background: linear-gradient(180deg, rgba(5, 11, 25, 0.2) 0%, rgba(5, 11, 25, 0.8) 100%);
}

.carousel-content h2,
.section-title,
.pricing-header h3 {
    font-family: var(--rp-font-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #def0ff;
}

.carousel-btn,
body.home-page .carousel-btn {
    border-radius: 8px;
    background: rgba(0, 231, 255, 0.2);
    border: 1px solid rgba(0, 231, 255, 0.52);
    color: #9feeff;
}

.carousel-btn:hover,
body.home-page .carousel-btn:hover {
    background: rgba(0, 231, 255, 0.32);
    color: #e8fcff;
}

.section.bg-light,
body.home-page .section.bg-light {
    background: rgba(9, 18, 34, 0.84);
    border-top: 1px solid rgba(0, 231, 255, 0.14);
    border-bottom: 1px solid rgba(0, 231, 255, 0.14);
}

.section.bg-light .section-title,
body.home-page .section.bg-light .section-title {
    color: #eef7ff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.section.bg-light .section-subtitle,
body.home-page .section.bg-light .section-subtitle,
.section.bg-light .about-content,
body.home-page .section.bg-light .about-content,
.section.bg-light .about-content p,
body.home-page .section.bg-light .about-content p {
    color: #cfe4fb;
}

.section-subtitle,
.feature-card p,
.pricing-note,
.text-muted,
.about-content,
.idade,
.daily-limit-label,
.price-period,
.jogo-desc,
.jogo-conceitos,
.game-meta-note,
.empty-state {
    color: var(--text-light);
}

.feature-card,
.pricing-card,
.popular-game-card,
.section-card,
.modal-content,
.top-games-list,
.stat-card,
.login-container,
.crianca-card,
.crianca-select-card,
.crianca-access-box,
.conceito-card,
.jogo-card,
.monthly-ranking-card,
.monthly-ranking-stat,
.monthly-ranking-item,
.monthly-ranking-history-item,
body.home-page .feature-card,
body.home-page .pricing-card,
body.home-page .popular-game-card,
body.home-page .section-card,
body.home-page .modal-content,
body.home-page .top-games-list,
body.home-page .stat-card {
    background: linear-gradient(160deg, rgba(11, 24, 47, 0.94), rgba(5, 14, 29, 0.94));
    border: 1px solid rgba(0, 231, 255, 0.28);
    border-radius: var(--rp-radius-card);
    box-shadow: var(--shadow);
    color: var(--text-color);
}

.feature-card:hover,
.pricing-card:hover,
.popular-game-card:hover,
body.home-page .feature-card:hover,
body.home-page .pricing-card:hover,
body.home-page .popular-game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 79, 216, 0.56);
    box-shadow: var(--shadow-hover);
}

.feature-card h3,
.popular-game-info h3,
.jogo-content h3,
.crianca-header h3,
.conceito-card h3,
.modal-title,
.page-title,
.section-card h2,
.pricing-header .price-amount,
.stat-card .stat-value {
    color: #e8f5ff;
}

.pricing-card.featured {
    border-color: rgba(255, 79, 216, 0.62);
}

.pricing-card.featured-teacher {
    border-color: rgba(137, 255, 77, 0.58);
}

.pricing-badge {
    background: linear-gradient(90deg, #ff4fd8, #00e7ff);
    border-radius: 8px;
    color: #f8fdff;
    font-family: var(--rp-font-button);
    font-size: 0.56rem;
}

.pricing-badge.teacher-badge {
    background: linear-gradient(90deg, #89ff4d, #00e7ff);
    color: #052114;
}

.pricing-features .feature-item,
body.home-page .pricing-features .feature-item {
    color: #ffffff;
    border-bottom: 1px solid rgba(77, 140, 200, 0.38);
}

.pricing-features .feature-item span,
body.home-page .pricing-features .feature-item span {
    color: #ffffff;
    font-weight: 700;
}

.pricing-features .feature-item.disabled span,
body.home-page .pricing-features .feature-item.disabled span {
    color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    color: #00e7ff;
}

.popular-game-age,
.popular-game-category,
.jogo-idade,
.jogo-categoria {
    background: rgba(8, 23, 45, 0.95);
    color: #d2e9ff;
    border: 1px solid rgba(0, 231, 255, 0.22);
}

.table,
.table th,
.table td,
.top-games-list th,
.top-games-list td {
    color: #d8edff;
}

.table thead,
.table tbody tr:hover,
.top-games-list th {
    background: rgba(8, 22, 44, 0.86);
}

.table tbody tr,
.top-games-list tr {
    background: rgba(4, 14, 30, 0.54);
}

.form-group label {
    color: #c5dff9;
}

.form-group input,
.form-group select,
.form-group textarea,
.daily-limit-select {
    background: rgba(3, 10, 21, 0.9);
    border: 1px solid rgba(0, 231, 255, 0.28);
    color: #e9f5ff;
    font-family: "VT323", "Exo 2", monospace;
    font-size: 1.15rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #89a6ca;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.daily-limit-select:focus {
    outline: none;
    border-color: rgba(137, 255, 77, 0.66);
    box-shadow: 0 0 0 3px rgba(137, 255, 77, 0.14);
}

.btn,
body.home-page .btn {
    border-radius: var(--rp-radius-button);
    font-family: var(--rp-font-button);
    font-size: 0.58rem;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 231, 255, 0.44);
    box-shadow: 0 4px 0 rgba(7, 23, 46, 0.7);
}

.btn:hover,
body.home-page .btn:hover {
    transform: translateY(-2px);
}

.btn-primary,
body.home-page .btn-primary {
    background: linear-gradient(135deg, #0098be 0%, #00e7ff 100%);
    color: #051425;
}

.btn-primary:hover,
body.home-page .btn-primary:hover {
    background: linear-gradient(135deg, #00abcf 0%, #78f6ff 100%);
}

.btn-secondary,
.btn-link,
body.home-page .btn-secondary,
body.home-page .btn-link {
    background: linear-gradient(135deg, #10213e, #173867);
    color: #ecf8ff;
    border: 1px solid rgba(0, 231, 255, 0.36);
}

.btn-secondary:hover,
.btn-link:hover,
body.home-page .btn-secondary:hover,
body.home-page .btn-link:hover {
    background: linear-gradient(135deg, #183464, #20518d);
    color: #ffffff;
}

.modal-content {
    border-radius: var(--rp-radius-modal);
}

.modal-scrollable .close {
    background: rgba(3, 12, 27, 0.9);
    color: #c8e7ff;
}

.modal-scrollable .close:hover {
    background: rgba(7, 25, 49, 0.95);
    color: #ffffff;
}

.alert-success {
    background: rgba(137, 255, 77, 0.16);
    border-color: rgba(137, 255, 77, 0.52);
    color: #d7ffcb;
}

.alert-error {
    background: rgba(255, 79, 216, 0.14);
    border-color: rgba(255, 79, 216, 0.48);
    color: #ffd1f2;
}

.footer {
    background: linear-gradient(180deg, #050811 0%, #02040a 100%);
    border-top: 1px solid rgba(0, 231, 255, 0.2);
}
