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

:root {
    --primary: #4ade80; /* Verde Neon */
    --primary-dark: #22c55e;
    --accent: #3f3f46; /* Zinc 700 - Grayer accent */
    --highlight: #86efac; 
    --bg-dark: #18181b; /* Zinc 900 - Professional Gray */
    --bg-card: rgba(39, 39, 42, 0.8); /* Zinc 800 */
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(74, 222, 128, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
}

/* Navbar Moderna (Store Style) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* light border */
    transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

nav.nav-scrolled {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

nav.nav-scrolled:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
}

/* Link adjustments for light nav */
nav .btn-login {
    background: var(--bg-dark);
    color: #fff;
}
nav .btn-login:hover {
    background: var(--primary);
    color: #000;
}

.logo {
    height: 85px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.logo img {
    height: 85%; /* Optimized for transparent cropped logo */
    width: auto;
    object-fit: contain;
}

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

.search-bar {
    background: #334155; /* Graphite */
    border: 2px solid #2563eb; /* Blue border */
    padding: 10px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 40%;
    color: #f8fafc; /* Light text for contrast */
}

.search-bar i {
    color: #3b82f6; /* Blue icon */
}

.search-bar span {
    color: #cbd5e1; /* Slightly muted light text */
}

.btn-login {
    background: var(--highlight);
    color: #09090b;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.4);
}

/* Layout Main */
main {
    margin-top: 110px;
    padding: 0 4%;
}

/* 1. Hero Section (Store Style) */
.hero-banner {
    width: 100%;
    height: 450px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #064e3b 0%, #09090b 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    padding: 60px;
    border: 1px solid var(--glass-border);
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(74, 222, 128, 0.15) 0%, transparent 60%);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-content .badge {
    background: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-cta {
    background: var(--primary);
    color: #fff;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cta:hover { background: var(--highlight); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(74, 222, 128, 0.2); }

/* 2. Barra de Categorias (Store/Ecommerce) */
.category-strip {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.category-strip::-webkit-scrollbar { display: none; }

.cat-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 130px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.cat-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-5px);
}

.cat-item i { width: 28px; height: 28px; }

/* 3. Feed de Notcias Assimtrico (Portal Style) */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title h2 { font-size: 28px; font-weight: 800; }
.section-title a { color: var(--highlight); font-size: 14px; text-decoration: none; }

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 250px;
}

.news-card.featured {
    grid-row: span 2;
    min-height: 525px;
    background: linear-gradient(to bottom, transparent, rgba(9, 9, 11, 0.95)), url('https://source.unsplash.com/800x600/?research,politics') center;
    background-size: cover;
}

.news-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.news-card .news-info { position: relative; z-index: 2; }
.news-card h3 { margin-bottom: 10px; font-size: 22px; }
.news-card.featured h3 { font-size: 32px; }
.news-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; }

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 10px;
    z-index: 3;
}

.urgent { background: var(--accent); color: #fff; }
.popular { background: var(--highlight); color: #000; }
.new { background: var(--primary); color: #fff; }

/* Modal Login Redesign (Horizontal Boxes) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #09090b;
    width: 95%;
    max-width: 900px;
    padding: 60px 40px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    text-align: center;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(74, 222, 128, 0.05) 0%, transparent 70%);
}

.login-step-1, .login-step-2 {
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.login-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.login-opt {
    aspect-ratio: 1 / 1.1;
    padding: 40px 25px;
    border-radius: 28px;
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.login-opt i { 
    width: 50px; 
    height: 50px; 
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.login-opt strong { font-size: 18px; display: block; margin-bottom: 8px; }
.login-opt span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.login-opt.admin { border-color: rgba(239, 68, 68, 0.3); }
.login-opt.admin:hover { border-color: var(--accent); box-shadow: 0 0 40px rgba(239, 68, 68, 0.2); }
.login-opt.admin i { color: var(--accent); }

.login-opt.client { border-color: rgba(37, 99, 235, 0.3); }
.login-opt.client:hover { border-color: var(--primary); box-shadow: 0 0 40px rgba(37, 99, 235, 0.2); }
.login-opt.client i { color: var(--primary); }

.login-opt.interviewer { border-color: rgba(250, 204, 21, 0.3); }
.login-opt.interviewer:hover { border-color: var(--highlight); box-shadow: 0 0 40px rgba(250, 204, 21, 0.2); }
.login-opt.interviewer i { color: var(--highlight); }

/* Passo 2: Formulário Login Real */
.login-form-container {
    max-width: 400px;
    margin: 40px auto 0;
    text-align: left;
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(74, 222, 128, 0.3);
}

/* Responsividade Login */
@media (max-width: 850px) {
    .login-options { grid-template-columns: 1fr; }
    .login-opt { aspect-ratio: auto; padding: 30px; }
    .modal-content { padding: 40px 20px; margin: 15px; border-radius: 20px; }
}

/* Responsividade Portal */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: 1fr 1fr; }
    .hero-banner { height: auto; padding: 40px; }
    .hero-content h1 { font-size: 42px; }
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .search-bar { display: none; }
    .hero-content h1 { font-size: 32px; }
    nav { height: 75px; }
}

/* ====== CANDIDATOS (Pesquisa Eleitoral) ====== */
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.candidate-card {
    background: var(--bg-card);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 35px 25px 25px;
    text-align: center;
    transition: var(--transition);
}
.candidate-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.4); }
.candidate-avatar {
    width: 90px; height: 90px; border-radius: 50%;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 900;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.candidate-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.candidate-party { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.candidate-stat-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; text-align: left; margin-bottom: 6px; }
.candidate-bar-wrap { height: 8px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.candidate-bar { height: 100%; border-radius: 10px; animation: barGrow 1.2s ease forwards; }
@keyframes barGrow { from { width: 0 !important; } }
.candidate-pct { font-size: 22px; font-weight: 800; text-align: right; }
.candidate-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.c-tag { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 20px; font-size: 11px; color: var(--text-muted); font-weight: 600; }
@media (max-width: 900px) { .candidates-grid { grid-template-columns: 1fr; } }

