/* CLUBE DOS DETETIVES - REDESIGN NOIR V2.3 (Intro Sequence)
   Author: Gemini AI
*/

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Abril+Fatface&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --wood-dark: #1a120b;
    --wood-light: #3e2723;
    --paper-bg: #fdfbf7;
    --paper-aged: #e3dac9;
    --ink-color: #1a1a1a;
    --red-marker: #b30000;
    --gold-accent: #c5a059;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.5);
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    font-family: 'Old Standard TT', serif;
    color: #dcdcdc;
    overflow-x: hidden;
}

/* === INTRO SEQUENCE (SPLASH SCREEN) === */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999; /* Acima de tudo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.5s ease-out, visibility 1.5s;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    padding: 20px;
    max-width: 600px;
}

.intro-logo {
    width: 250px;
    margin-bottom: 30px;
    opacity: 0;
    transform: scale(0.8);
    animation: mysteryReveal 3s forwards ease-in-out;
    filter: sepia(100%) contrast(120%);
}

.intro-text {
    font-family: 'Abril Fatface', cursive;
    font-size: 2rem;
    color: #e3dac9;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: textFadeIn 2s forwards ease-out;
    animation-delay: 1.5s; /* Começa depois do logo */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Animações Keyframes */
@keyframes mysteryReveal {
    0% {
        opacity: 0;
        transform: scale(0.5);
        filter: blur(10px) sepia(100%);
    }
    50% {
        opacity: 1;
        filter: blur(0px) sepia(100%);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: sepia(100%);
    }
}

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

/* === FUNDO DA MESA (FIXO) === */
.desk-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.8)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png'),
        #2a1b0e; 
    background-blend-mode: multiply;
    z-index: -2;
    background-size: cover;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4 {
    font-family: 'Abril Fatface', cursive;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.text-light p {
    color: #ccc;
}

.typewriter-text {
    font-family: 'Special Elite', monospace;
}

/* === HEADER CORRIGIDO (Z-INDEX) === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: #111;
    border-bottom: 2px solid var(--gold-accent);
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.logo-area img {
    height: 45px;
    filter: sepia(100%) contrast(120%);
}

.nav-links a {
    color: #e3dac9;
    text-decoration: none;
    font-family: 'Special Elite', monospace;
    margin-left: 30px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--red-marker);
    text-decoration: underline;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1250;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--gold-accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--red-marker);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
    background-color: var(--red-marker);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 25px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }

.mobile-nav-links a {
    font-family: 'Abril Fatface', cursive;
    font-size: 2rem;
    color: #e3dac9;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === HERO SECTION === */
.main-case-file {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    margin-top: 60px;
}

.file-folder {
    width: 100%;
    max-width: 900px;
    background-color: var(--paper-aged);
    padding: 50px;
    position: relative;
    box-shadow: 15px 25px 50px rgba(0,0,0,0.7);
    transform: rotate(-1deg);
    border: 1px solid #c0b090;
}

.file-folder::before {
    content: "TOP SECRET";
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--paper-aged);
    padding: 10px 40px;
    border-radius: 8px 8px 0 0;
    font-family: 'Special Elite', monospace;
    color: var(--red-marker);
    font-weight: bold;
    font-size: 1.2rem;
    border: 1px solid #c0b090;
    border-bottom: none;
}

.paper-clip {
    position: absolute;
    top: -20px;
    right: 40px;
    width: 60px;
    height: 100px;
    border: 5px solid #555;
    border-radius: 30px;
    z-index: 5;
}

.inner-paper {
    background: var(--paper-bg);
    padding: 40px;
    color: var(--ink-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid #e0e0e0;
}

.stamp-confidential {
    position: absolute;
    top: 20px;
    right: 20px;
    border: 3px solid rgba(179, 0, 0, 0.4);
    color: rgba(179, 0, 0, 0.4);
    padding: 5px 15px;
    font-family: 'Special Elite', monospace;
    font-size: 1.5rem;
    transform: rotate(-15deg);
    pointer-events: none;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 10;
}

.btn-stamp {
    display: inline-block;
    padding: 15px 40px;
    border: 3px solid var(--red-marker);
    color: var(--red-marker);
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    font-size: 1.4rem;
    text-decoration: none;
    text-transform: uppercase;
    transform: rotate(-2deg);
    transition: all 0.2s ease;
    cursor: pointer;
    background: rgba(255,255,255,0.5);
}

.btn-stamp:hover {
    transform: scale(1.05) rotate(0deg);
    background: var(--red-marker);
    color: #fff;
}

/* === NOVA SECÇÃO: BOTÕES DE LOGIN E REGISTRO === */
.auth-actions-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #bbb;
    position: relative;
}

/* Etiqueta estilo 'Dymo' ou carimbo sobre a linha */
.auth-label {
    display: inline-block;
    background: #e3dac9; /* Cor da pasta para 'cortar' a linha */
    padding: 0 15px;
    font-family: 'Special Elite', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    position: relative;
    top: -32px; /* Sobe para ficar em cima da borda */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: -15px; /* Compensa o label */
}

/* Botão de Login: Sólido, preto (tinta de impressora) */
.btn-noir-login {
    background-color: #1a1a1a;
    color: #fdfbf7;
    font-family: 'Special Elite', monospace;
    font-size: 1.1rem;
    padding: 12px 25px;
    text-decoration: none;
    border: 2px solid #1a1a1a;
    border-radius: 2px;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-noir-login:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 5px 5px 8px rgba(0,0,0,0.4);
    color: #fff;
    text-decoration: none;
}

/* Botão de Registro: Outline, vermelho (carimbo secundário) */
.btn-noir-register {
    background-color: transparent;
    color: #8b0000;
    font-family: 'Special Elite', monospace;
    font-size: 1.1rem;
    padding: 12px 25px;
    text-decoration: none;
    border: 2px solid #8b0000;
    border-radius: 2px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.btn-noir-register:hover {
    background-color: #8b0000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 3px 3px 5px rgba(139, 0, 0, 0.2);
    text-decoration: none;
}

.auth-separator {
    font-family: 'Old Standard TT', serif;
    font-style: italic;
    color: #777;
    margin: 0 5px;
}

.auth-footer-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    font-style: italic;
    margin-bottom: 0;
}

/* Responsividade para botões */
@media (max-width: 576px) {
    .auth-buttons-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-noir-login, .btn-noir-register {
        width: 100%;
        justify-content: center;
    }
    
    .auth-separator {
        display: none;
    }
}

/* === COMO FUNCIONA === */
.how-it-works-section {
    padding: 20px 20px;
    position: relative;
}

.manual-book {
    background: #fffcf5;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-left: 15px solid #2c1e12;
    position: relative;
}

.step-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 20px;
}

.step-card:last-child { border-bottom: none; }

.step-number {
    font-family: 'Abril Fatface', cursive;
    font-size: 4rem;
    color: #ccc;
    margin-right: 30px;
    line-height: 1;
}

.step-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.step-content p {
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
}

/* === DEPOIMENTOS === */
.testimonials-section { padding: 60px 20px; }

.evidence-bag {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.witness-card {
    background: #f4f4f4;
    width: 300px;
    padding: 25px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.4);
    transform: rotate(var(--rot));
    position: relative;
    font-family: 'Special Elite', monospace;
}

.witness-card::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 10px;
    width: 15px;
    height: 40px;
    background: #aaa;
    border-radius: 10px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.witness-photo {
    width: 60px;
    height: 60px;
    background: #ddd;
    border-radius: 50%;
    margin-bottom: 15px;
    float: left;
    margin-right: 15px;
    overflow: hidden;
    border: 2px solid #999;
}

.witness-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.witness-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    font-style: italic;
}

.witness-name {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    text-align: right;
    color: var(--red-marker);
    clear: both;
}

/* === TOOLS === */
.tools-section {
    padding: 40px 20px;
    text-align: center;
}

.polaroid {
    background: white;
    padding: 12px 12px 50px 12px;
    box-shadow: 5px 10px 20px rgba(0,0,0,0.4);
    transform: rotate(var(--rotation));
    transition: transform 0.3s ease, z-index 0s;
    width: 200px;
    display: inline-block;
    margin: 20px;
    position: relative;
    z-index: 1;
}

.polaroid:hover {
    transform: scale(1.15) rotate(0deg);
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.polaroid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    filter: grayscale(60%) contrast(110%);
    border: 1px solid #ddd;
}

.polaroid p {
    font-family: 'Special Elite', monospace;
    color: #111;
    position: absolute;
    bottom: 10px;
    width: 100%;
    left: 0;
    text-align: center;
    margin: 0;
}

/* === RANKING === */
.cork-board {
    background-color: #5c4033;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H22v-2h-2v2H22v2h-2v2H22v2h-2v2H22v2h-2v2H22v2h-2v2H22v2h-2v2H22v2h-2v2H22V20.5h-2z' fill='%234a332a' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    padding: 40px;
    border: 12px solid #2a1b0e;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.8);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.newspaper-clipping {
    background: #f1f1f1;
    padding: 40px;
    transform: rotate(1deg);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    color: #111;
}

.ranking-item {
    border-bottom: 1px dotted #666;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

/* === FOOTER === */
footer {
    background: #111;
    color: #666;
    text-align: center;
    padding: 50px 20px;
    border-top: 2px solid #222;
    margin-top: 50px;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    header { padding: 10px 20px; }
    .nav-links { display: none; } 
    .mobile-menu-toggle { display: flex; }
    
    .main-case-file { margin-top: 60px; }
    .file-folder { transform: none; width: 100%; padding: 25px 20px; }
    .inner-paper { padding: 20px; }
    
    .step-number { font-size: 3rem; margin-right: 15px; }
    .step-card { flex-direction: row; align-items: flex-start; }
    
    .witness-card { width: 100%; margin-bottom: 20px; transform: rotate(1deg) !important; }
    
    .polaroid { margin: 10px 5px; width: 45%; }
    .polaroid img { height: 120px; }
    
    .newspaper-clipping { padding: 20px; }
    
    .intro-logo { width: 180px; }
    .intro-text { font-size: 1.5rem; }
}