/* static/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- CORES DA MARCA --- */
    --brand-blue: #00A3FF;
    --brand-teal: #00FFD1;
    --brand-orange: #FF9900;
    --brand-orange-hover: #E68A00;

    /* --- TEMA CLARO (PADRÃO) --- */
    --bg-color: #f4f4f5; 
    --bg-graphite: #ffffff; 
    --card-bg: rgba(255, 255, 255, 1); 
    --text-primary: #18181b; 
    --text-secondary: #71717a; 
    --border-color: #e4e4e7; 
    --shadow-color: rgba(0, 0, 0, 0.05);
    --input-bg: #e4e4e7;
    --input-focus-bg: #d4d4d8;
    --input-text: #18181b;
    --placeholder-text: #a1a1aa;
    
    /* Variaveis de Painel Logado */
    --dash-bg: #f4f4f5;
    --sidebar-bg: #ffffff;
    --card-solid-bg: #ffffff;
}

body.dark-mode {
    /* --- TEMA ESCURO --- */
    --bg-color: #0d0d0f;
    --bg-graphite: #1C1C1E;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1A1;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-focus-bg: rgba(0, 0, 0, 0.3);
    --input-text: #FFFFFF;
    --placeholder-text: #71717a;
    
    /* Variaveis de Painel Logado */
    --dash-bg: #09090b;
    --sidebar-bg: #18181b;
    --card-solid-bg: #18181b;
}

/* =========================================================
   RESETS E UTILITÁRIOS GLOBAIS
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.d-none {
    display: none !important;
}

.gradient-text {
    background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-blue) 40%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

body:not(.dark-mode) .text-shadow,
body.dark-mode .section-title,
body.dark-mode .section-subtitle {
    text-shadow: 0 2px 4px var(--shadow-color);
}

/* =========================================================
   BOTÕES E INPUTS (BASE PARA TODO O SITE)
   ========================================================= */

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--brand-orange);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--brand-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
    background-color: var(--input-bg);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--input-text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--brand-orange);
    background-color: var(--input-focus-bg);
}

.form-input::placeholder {
    color: var(--placeholder-text);
}

/* =========================================================
   COMPONENTES GLOBAIS (NAVBAR, DROPDOWN, THEME SWITCHER)
   ========================================================= */

.navbar {
    background-color: var(--bg-graphite);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Dropdown do Usuário (Logado) */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-teal);
    transition: transform 0.2s;
    background: var(--card-solid-bg);
}

.user-menu-container:hover .nav-avatar {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 200px;
    background: var(--card-solid-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 30px var(--shadow-color);
    z-index: 1001;
}

.user-dropdown.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: var(--input-bg);
    color: var(--text-primary);
}

.dropdown-item.logout {
    color: #ef4444;
    border-top: 1px solid var(--border-color);
    margin-top: 5px;
    padding-top: 12px;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

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

/* Botão Dark/Light Mode */
.theme-switcher {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-switcher:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.theme-switcher .ph-sun { display: none; }
.theme-switcher .ph-moon { display: block; }

body.dark-mode .theme-switcher .ph-sun { display: block; }
body.dark-mode .theme-switcher .ph-moon { display: none; }

/* =========================================================
   ANIMAÇÃO DE FUNDO ORBITAL (SUPERNOVA)
   ========================================================= */

.supernova-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: var(--bg-color);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

body.dark-mode .supernova-container {
    opacity: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    mix-blend-mode: screen;
    animation: float 20s ease-in-out infinite alternate;
}

.orb-blue {
    top: -10%; left: -10%; width: 70vw; height: 70vw;
    background: radial-gradient(circle, var(--brand-blue), transparent 60%);
    animation-duration: 25s;
}

.orb-orange {
    top: 10%; right: -20%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--brand-orange), transparent 60%);
    animation-delay: -5s; animation-duration: 28s;
}

.orb-teal {
    bottom: -20%; left: 20%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--brand-teal), transparent 70%);
    opacity: 0.3; animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 40px) scale(1.05); }
    100% { transform: translate(-20px, -20px) scale(0.95); }
}

/* =========================================================
   PÁGINAS PÚBLICAS (NÃO MEXIDAS NOS HTMLS INTERNOS)
   ========================================================= */

/* Auth (Login e Cadastro) */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background-color: var(--card-solid-bg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px var(--shadow-color);
    text-align: center;
}

.auth-link {
    color: var(--brand-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.auth-link:hover { color: #00ffd1; text-decoration: underline; }

/* Vitrine de Talentos Pública */
.talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.talent-card {
    background-color: var(--card-solid-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
}

.talent-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-teal);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.talent-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--input-bg);
    margin-bottom: 15px;
    padding: 3px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-teal));
}

.talent-name { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.talent-role { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; font-weight: 500; }

.tech-stack {
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 25px;
}

.tech-badge {
    font-size: 0.75rem; padding: 4px 10px; border-radius: 50px; font-weight: 600;
    background: var(--input-bg); color: var(--text-secondary); border: 1px solid var(--border-color);
}

/* Página Sobre Nós */
.about-container {
    display: flex; align-items: center; gap: 60px; padding: 40px;
    background: var(--card-solid-bg); border: 1px solid var(--border-color); border-radius: 20px;
}

.profile-photo {
    width: 350px; height: 350px; object-fit: cover; border-radius: 20px;
    border: 2px solid var(--border-color); box-shadow: 0 0 50px var(--shadow-color);
}

.social-btn {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--border-color);
    background: var(--input-bg); color: var(--text-primary); transition: all 0.3s ease;
}
.social-btn:hover { background: var(--text-primary); color: var(--bg-color); transform: translateY(-3px); }

/* Detalhes do Projeto / Talento (Páginas Públicas) */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.action-sidebar {
    position: sticky; top: 20px; height: fit-content;
    background: var(--card-solid-bg); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 25px;
}

.author-mini-card {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    background: var(--input-bg); border-radius: 12px; margin-top: 10px;
}

/* =========================================================
   RESPONSIVIDADE GERAL (Páginas Públicas e Navbar)
   ========================================================= */

@media (max-width: 900px) {
    .container { padding: 0 20px; }

    .navbar {
        height: auto;
        padding: 15px 0;
        position: relative; 
    }
    
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero-section { padding-top: 60px; }
    .detail-layout { grid-template-columns: 1fr; }
    .about-container { flex-direction: column; text-align: center; }
    .profile-photo { width: 100%; max-width: 300px; height: auto; }
}

/* ESTILO DO BOTÃO TOGGLE (LIGA/DESLIGA) */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
            flex-shrink: 0;
        }
        .toggle-switch input { 
            opacity: 0;
            width: 0;
            height: 0;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: var(--border-color);
            transition: .3s;
            border-radius: 34px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px; width: 18px;
            left: 4px; bottom: 4px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }
        .toggle-switch input:checked + .toggle-slider {
            background-color: var(--brand-teal);
        }
        .toggle-switch input:checked + .toggle-slider:before {
            transform: translateX(24px);
        }