/* styles.css */

:root {
    --bg-color: #0b0c10;
    --surface-color: #1a1c23;
    --primary-color: #33b9ff; /* Azul/ciano (identidade do game) */
    --primary-2: #1f6fff;     /* Azul profundo */
    --accent-color: #ffd700;  /* Dourado para raridades lendárias e CTAs */
    --text-main: #f0f0f0;
    --text-muted: #8b8c91;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --font-rune: 'NotoSansRunic', serif;
    --hero-bg: "./assets/bg/menu_bg.png";
    --section-bg: "./assets/bg/collection_bg.png";
    --rune-tex: "./assets/ui/dark_rune.png";
    --frame-legendary: "./assets/ui/frame_legendary.png";
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'NotoSansRunic';
    src: url('./assets/fonts/NotoSansRunic-Regular.ttf') format('truetype');
    font-display: swap;
}

.hero-runes {
    margin-top: 1.5rem;
    font-family: var(--font-rune);
    letter-spacing: 0.18em;
    font-size: 0.95rem;
    opacity: 0.55;
    color: rgba(51, 185, 255, 0.9);
    text-shadow: 0 0 18px rgba(51, 185, 255, 0.35);
    user-select: none;
}

/* Decorative rune watermark across sections */
section {
    position: relative;
}
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(60% 60% at 50% 0%, rgba(51, 185, 255, 0.10) 0%, rgba(0,0,0,0) 65%),
        url('./assets/ui/dark_rune.png');
    background-size: cover, 780px;
    background-position: center, center;
    background-repeat: no-repeat, repeat;
    opacity: 0.06;
    pointer-events: none;
    mix-blend-mode: screen;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 130px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* BUTTONS */
.cta-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-2));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(51, 185, 255, 0.35);
}

.cta-btn.small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 28px rgba(51, 185, 255, 0.55);
}

.ghost-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('./assets/bg/menu_bg.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11,12,16,0.3) 0%, rgba(11,12,16,1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease forwards;
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(51, 185, 255, 0.14);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 10px 30px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* SECTIONS COMMON */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.left-align { text-align: left; }

/* FEATURES SECTION */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(51, 185, 255, 0.14);
    border-color: rgba(51, 185, 255, 0.35);
}

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

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
}

/* Duel rules (inside "O jogo") */
.duel-rules {
    margin-top: 3rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(180deg, rgba(26, 28, 35, 0.88), rgba(11, 12, 16, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

.duel-rules-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.duel-rules-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.duel-rules-list {
    margin: 0;
    padding-left: 1.35rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.duel-rules-list li {
    margin-bottom: 0.65rem;
}

.duel-rules-list li:last-child {
    margin-bottom: 0;
}

.duel-rules-list strong {
    color: var(--text-main);
}

/* LORE SECTION */
.lore-section .section-title,
.lore-section .section-subtitle {
    position: relative;
    z-index: 1;
}
.lore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}
.lore-panel {
    background: linear-gradient(180deg, rgba(26, 28, 35, 0.85), rgba(11, 12, 16, 0.7));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1.6rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.lore-panel h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}
.lore-panel p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.rune-strip {
    font-family: var(--font-rune);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    opacity: 0.65;
    color: rgba(51,185,255,0.92);
    text-shadow: 0 0 16px rgba(51, 185, 255, 0.25);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CARDS SECTION */
.races-classes-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.races-list, .classes-list {
    flex: 1;
    background: rgba(26, 28, 35, 0.5);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.races-list h4, .classes-list h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.races-list ul, .classes-list ul {
    list-style: none;
}

.races-list li, .classes-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-main);
    font-size: 1.05rem;
}

.showcase-card-container {
    flex: 1.5;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.card-art {
    width: 320px;
    height: 450px;
    background-image:
        radial-gradient(120% 80% at 50% 0%, rgba(51,185,255,0.35) 0%, rgba(11,12,16,0) 65%),
        url('./assets/ui/card_art.png'),
        url('./assets/ui/frame_legendary.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.1);
    transition: transform 0.1s;
    transform-style: preserve-3d;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.card-art::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(125deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Runes overlay */
.card-art::before {
    content: '';
    position: absolute;
    inset: -10%;
    background-image: url('./assets/ui/dark_rune.png');
    background-size: 520px;
    background-repeat: repeat;
    opacity: 0.12;
    mix-blend-mode: screen;
    filter: blur(0.2px) saturate(1.2);
    pointer-events: none;
}

/* MMO WORLD SECTION */
.mmo-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.mmo-text {
    flex: 1;
}

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

.mmo-text strong {
    color: var(--text-main);
}

.mmo-visual {
    flex: 1;
    background: url('./assets/bg/mmo_exploration_bg.png');
    background-size: cover;
    background-position: left center;
    border-radius: 8px;
    padding: 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
    border: 1px solid var(--border-color);
}

.waitlist-section .section-title,
.waitlist-section .section-subtitle,
.waitlist-section form {
    position: relative;
    z-index: 1;
}

.waitlist-form {
    background: linear-gradient(180deg, rgba(26, 28, 35, 0.85), rgba(11, 12, 16, 0.7));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    max-width: 920px;
    margin: 0 auto;
}

.waitlist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.waitlist-field span {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.waitlist-field input {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    color: var(--text-main);
    padding: 0.9rem 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-field input:focus {
    border-color: rgba(51,185,255,0.45);
    box-shadow: 0 0 0 3px rgba(51,185,255,0.10);
}

.waitlist-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.waitlist-status {
    margin-top: 0.9rem;
    min-height: 1.2rem;
    color: #b9d3ff;
}

.waitlist-fineprint {
    margin-top: 0.8rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
}

.waitlist-fineprint a {
    color: #7ec8ff;
    text-decoration: underline;
}

.waitlist-fineprint a:hover {
    color: #b9d3ff;
}

.mock-chat {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-left: 2px solid var(--primary-color);
}

.mock-chat p {
    margin-bottom: 0.5rem;
}

.chat-system { color: #ffd700; }
.chat-zone { color: #00ffff; }
.chat-whisper { color: #ff00ff; }

/* FOOTER */
.footer {
    background: #060709;
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer h2 {
    font-size: 2rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* Evita cor azul padrão do navegador em links + tamanho fixo do ícone */
footer.footer .footer-social a.footer-instagram-link,
footer.footer .footer-social a.footer-discord-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    color: rgba(200, 210, 220, 0.85);
    transition: color 0.2s ease, transform 0.2s ease;
}

footer.footer .footer-social a.footer-instagram-link:hover {
    color: #e1306c;
    transform: translateY(-2px);
}

footer.footer .footer-social a.footer-discord-link:hover {
    color: #5865f2;
    transform: translateY(-2px);
}

footer.footer .footer-social a.footer-instagram-link:focus-visible,
footer.footer .footer-social a.footer-discord-link:focus-visible {
    outline: 2px solid rgba(51, 185, 255, 0.6);
    outline-offset: 4px;
    border-radius: 6px;
}

footer.footer .footer-instagram-icon,
footer.footer .footer-discord-icon {
    display: block;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex: 0 0 24px;
}

.copyright {
    color: #555;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* KEFRAMES */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.5rem; }
    .races-classes-wrapper { flex-direction: column; }
    .mmo-grid { flex-direction: column; }
    .nav-links { display: none; }
    .waitlist-grid { grid-template-columns: 1fr; }
}
