/* ==========================================================================
   CSS DESIGN SYSTEM - DESBRAVANDO A TERRA (PORTAL 3D PREMIUM)
   ========================================================================== */
:root {
    --bg-main: #060913;
    --bg-card: rgba(15, 22, 42, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #4b5563;
    
    /* Cores de Destaque Patagônicas */
    --accent-terracota: #ea580c;
    --accent-terracota-dark: #9a3412;
    --accent-glacial: #2563eb;
    --accent-glacial-dark: #1d4ed8;
    --accent-instagram: #e1306c;
    
    --font-titles: 'Outfit', sans-serif;
    --font-text: 'Plus Jakarta Sans', sans-serif;
    
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;
    
    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body, html {
    height: 100%;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-text);
    overflow: hidden;
}

/* ==========================================================================
   PORTAL WRAPPER (BACKGROUND E PARALLAX)
   ========================================================================== */
.portal-wrapper {
    min-height: 100vh;
    width: 100vw;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    perspective: 1000px; /* Habilita profundidade 3D */
}

/* CARD EM 3D FLUTUANTE */
.portal-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(234, 88, 12, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d; /* Mantém os filhos em 3D */
    transition: transform 0.1s ease;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.portal-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(30px); /* Empurra o texto para frente em 3D */
}

.brand-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-terracota) 0%, var(--accent-glacial) 100%);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.25);
    margin-bottom: 1.25rem;
}

.brand-avatar i {
    width: 32px;
    height: 32px;
}

.portal-header h1 {
    font-family: var(--font-titles);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 320px;
}

/* ==========================================================================
   BOTÕES EM 3D REAIS (PUSH BUTTONS)
   ========================================================================== */
.portal-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    transform: translateZ(20px);
}

.portal-btn {
    width: 100%;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1.15rem;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    position: relative;
    cursor: pointer;
    
    /* Configuração 3D: Posição inicial, borda de profundidade e sombra */
    transform: translateY(0);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.15s ease, 
                border-bottom-width 0.15s ease;
}

/* 3D: Quando passa o mouse, o botão flutua e a sombra expande */
.portal-btn:hover {
    transform: translateY(-4px);
}

/* 3D: Quando CLICA (ou toca), o botão é fisicamente pressionado para baixo */
.portal-btn:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1px !important;
}

/* ESTILO 3D - BOTAO E-BOOK (Terracota) */
.portal-btn.btn-highlight {
    background: linear-gradient(135deg, #f97316 0%, var(--accent-terracota) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 6px solid var(--accent-terracota-dark); /* Profundidade 3D */
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.3);
}

.portal-btn.btn-highlight:hover {
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.5);
}

/* ESTILO 3D - BOTAO CALCULADORA (Glacial) */
.portal-btn.btn-calc-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, var(--accent-glacial) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 6px solid var(--accent-glacial-dark); /* Profundidade 3D */
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.portal-btn.btn-calc-highlight:hover {
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

/* ESTILO 3D - BOTAO INSTAGRAM (Escuro/Social) */
.portal-btn.btn-social {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 6px solid #030712; /* Profundidade 3D */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.portal-btn.btn-social:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* Ícone da esquerda */
.btn-icon-wrapper {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-shrink: 0;
}

.portal-btn.btn-social .btn-icon-wrapper {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.portal-btn.btn-social:hover .btn-icon-wrapper {
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: white;
}

/* Textos */
.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-title {
    font-family: var(--font-titles);
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    letter-spacing: -0.2px;
}

.btn-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.portal-btn.btn-social .btn-subtitle {
    color: var(--text-secondary);
}

/* Seta Direita */
.arrow-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
}

.portal-btn:hover .arrow-icon {
    color: white;
    transform: translateX(4px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.portal-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transform: translateZ(10px);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE APP STYLE)
   ========================================================================== */
@media (max-width: 480px) {
    body, html {
        overflow-y: auto !important;
        overflow-x: hidden !important; /* Impede rolagem lateral e corte de 3D */
    }

    .portal-wrapper {
        padding: 0;
        align-items: center; /* centraliza verticalmente no mobile também */
    }

    .portal-card {
        border-radius: 0;
        border: none;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
        padding: 2.5rem 1rem 1.5rem; /* Menos padding lateral para dar espaço ao texto */
        justify-content: space-between;
        box-shadow: none;
        background: rgba(8, 12, 23, 0.88);
    }

    .portal-header {
        margin-bottom: 2rem;
    }

    .brand-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .portal-header h1 {
        font-size: 1.75rem;
    }

    .portal-header p {
        font-size: 0.85rem;
        max-width: 260px;
        padding: 0 10px;
    }

    .portal-links {
        gap: 1rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    .portal-btn {
        padding: 0.95rem 1rem; /* Reduzido o padding lateral do botão */
        gap: 0.75rem; /* Reduzido o espaço interno */
    }

    .btn-icon-wrapper {
        width: 38px;
        height: 38px;
    }

    .btn-title {
        font-size: 0.98rem; /* Fonte ligeiramente menor para evitar quebra/corte lateral */
        line-height: 1.2;
        white-space: normal; /* Garante que o texto quebre linha se necessário */
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .btn-subtitle {
        font-size: 0.68rem;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}
