/* ═══════════════════════════════════════════════════════════
   PONTO POPULAR — Design System v1
   "Gostar de política mostra quanto você realmente se importa!"
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Brand Colors */
    --brand-primary: #6366f1;     /* Indigo vibrante */
    --brand-primary-light: #818cf8;
    --brand-primary-dark: #4f46e5;
    --brand-secondary: #06b6d4;   /* Cyan */
    --brand-accent: #f59e0b;      /* Amber */

    /* Semantic */
    --color-positive: #22c55e;
    --color-positive-bg: rgba(34, 197, 94, 0.1);
    --color-negative: #ef4444;
    --color-negative-bg: rgba(239, 68, 68, 0.1);
    --color-neutral: #94a3b8;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* Dark Theme (default) */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-card-hover: rgba(26, 26, 46, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.05);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-brand-dark: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
    --gradient-positive: linear-gradient(135deg, #22c55e 0%, #06b6d4 100%);
    --gradient-negative: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    --gradient-bg: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
    --shadow-positive: 0 0 20px rgba(34, 197, 94, 0.2);
    --shadow-negative: 0 0 20px rgba(239, 68, 68, 0.2);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Background glow effect */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--brand-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--brand-secondary); }

img { max-width: 100%; height: auto; }

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.page-content {
    padding: 32px 0 80px;
}


/* ═══════════════════════════════════
   NAVBAR
   ═══════════════════════════════════ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
}

.navbar-brand span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.navbar-nav a.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-primary-light);
}

/* Mobile nav */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    .navbar-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .navbar-nav.open { display: flex; }
    .navbar-nav a {
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--radius-md);
    }
}


/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */

.hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--brand-primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .slogan {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 480px) {
    .hero-stats { gap: 24px; }
    .hero-stat .number { font-size: 1.5rem; }
}


/* ═══════════════════════════════════
   CARDS
   ═══════════════════════════════════ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card:hover::before { opacity: 1; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* ═══════════════════════════════════
   SCORE BADGE
   ═══════════════════════════════════ */

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.score-badge.positive {
    background: var(--color-positive-bg);
    color: var(--color-positive);
    box-shadow: var(--shadow-positive);
}

.score-badge.negative {
    background: var(--color-negative-bg);
    color: var(--color-negative);
    box-shadow: var(--shadow-negative);
}

.score-badge.neutral {
    background: rgba(148, 163, 184, 0.1);
    color: var(--color-neutral);
}

.score-badge.large {
    font-size: 1.5rem;
    padding: 10px 24px;
}


/* ═══════════════════════════════════
   RANKING LIST
   ═══════════════════════════════════ */

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.ranking-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
    color: inherit;
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ranking-position.top-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}
.ranking-position.top-2 {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    color: #1e293b;
}
.ranking-position.top-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fffbeb;
}
.ranking-position.default {
    background: var(--bg-input);
    color: var(--text-muted);
}

.ranking-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.ranking-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.ranking-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
}


/* ═══════════════════════════════════
   PROJETO CARD
   ═══════════════════════════════════ */

.projeto-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.projeto-card .ementa {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projeto-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.projeto-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.projeto-stat .icon { opacity: 0.6; }

.ap-bar {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--color-negative-bg);
    overflow: hidden;
    width: 100%;
}

.ap-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-positive);
    transition: width var(--transition-slow);
}


/* ═══════════════════════════════════
   AVALIAÇÃO FORM
   ═══════════════════════════════════ */

.avaliacao-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.avaliacao-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.nota-slider-container {
    text-align: center;
    margin-bottom: 24px;
}

.nota-display {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    transition: color var(--transition-fast);
    margin-bottom: 8px;
}

.nota-display.positive { color: var(--color-positive); }
.nota-display.negative { color: var(--color-negative); }
.nota-display.zero { color: var(--color-neutral); }

.nota-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--radius-full);
    background: linear-gradient(to right, var(--color-negative), var(--color-neutral), var(--color-positive));
    outline: none;
    cursor: pointer;
}

.nota-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--brand-primary);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.nota-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.nota-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.aprova-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.aprova-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.aprova-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-glass-hover);
}

.aprova-btn.selected-sim {
    border-color: var(--color-positive);
    background: var(--color-positive-bg);
    color: var(--color-positive);
}

.aprova-btn.selected-nao {
    border-color: var(--color-negative);
    background: var(--color-negative-bg);
    color: var(--color-negative);
}


/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--gradient-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-positive {
    background: var(--color-positive);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block { width: 100%; }


/* ═══════════════════════════════════
   FILTERS
   ═══════════════════════════════════ */

.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.filter-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}


/* ═══════════════════════════════════
   GRID
   ═══════════════════════════════════ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.section-header .view-all {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-primary-light);
}

section {
    margin-bottom: 48px;
}


/* ═══════════════════════════════════
   POLITICIAN PROFILE
   ═══════════════════════════════════ */

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info { flex: 1; }

.profile-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-scores {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.profile-score-item {
    text-align: center;
    padding: 12px 20px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.profile-score-item .value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
}

.profile-score-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-scores { justify-content: center; }
}


/* ═══════════════════════════════════
   VOTE TABLE
   ═══════════════════════════════════ */

.vote-list { list-style: none; }

.vote-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.vote-item:hover { background: var(--bg-glass); }

.vote-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vote-icon.sim {
    background: var(--color-positive-bg);
    color: var(--color-positive);
}

.vote-icon.nao {
    background: var(--color-negative-bg);
    color: var(--color-negative);
}

.vote-icon.isento {
    background: rgba(148, 163, 184, 0.1);
    color: var(--color-neutral);
}

.vote-info { flex: 1; min-width: 0; }

.vote-title {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ═══════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge.em-analise {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}
.status-badge.aprovado, .status-badge.sancionado {
    background: var(--color-positive-bg);
    color: var(--color-positive);
}
.status-badge.rejeitado, .status-badge.vetado {
    background: var(--color-negative-bg);
    color: var(--color-negative);
}
.status-badge.arquivado {
    background: rgba(148, 163, 184, 0.1);
    color: var(--color-neutral);
}


/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */

.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer .slogan {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 8px;
}

.footer .disclaimer {
    font-size: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}


/* ═══════════════════════════════════
   FORMS (login/register)
   ═══════════════════════════════════ */

.auth-container {
    max-width: 440px;
    margin: 60px auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}


/* ═══════════════════════════════════
   MESSAGES (Django)
   ═══════════════════════════════════ */

.messages {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.message {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.message.success {
    background: var(--color-positive-bg);
    color: var(--color-positive);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.message.error {
    background: var(--color-negative-bg);
    color: var(--color-negative);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.message.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}


/* ═══════════════════════════════════
   SOBRE / REGULAMENTO
   ═══════════════════════════════════ */

.prose {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}

.prose h1 { font-size: 2rem; font-weight: 900; margin-bottom: 16px; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 32px 0 12px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; color: var(--text-secondary); }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 24px; color: var(--text-secondary); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text-primary); }
.prose code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-glass);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.prose th, .prose td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.prose th {
    font-weight: 600;
    color: var(--text-primary);
}
.prose td {
    color: var(--text-secondary);
}


/* ═══════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════ */

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-fade-in {
    animation: fadeInUp 0.4s ease-out both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }


/* ═══════════════════════════════════
   LOADING / HTMX
   ═══════════════════════════════════ */

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
    animation: pulse 1.5s infinite;
}

.htmx-request.htmx-indicator {
    display: inline-block;
    animation: pulse 1.5s infinite;
}


/* ═══════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.9rem;
}
