/* ============================================
   CADU SILVA - cadusilva.social.br
   Cores: Laranja NOVO + Azul escuro
   ============================================ */

:root {
    --primary: #FF6600;
    --primary-dark: #E55A00;
    --primary-light: #FF8C33;
    --secondary: #1a1a2e;
    --secondary-light: #16213e;
    --accent: #FF8C00;
    --dark: #0f0f1a;
    --text: #333340;
    --text-light: #6b7280;
    --bg: #f8f9fc;
    --white: #ffffff;
    --border: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: 2px solid transparent; transition: var(--transition);
    text-decoration: none; line-height: 1.4;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,102,0,0.3); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--secondary); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(26,26,46,0.95); backdrop-filter: blur(10px);
    padding: 15px 0; transition: var(--transition);
}
.navbar.scrolled { padding: 10px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; }
.logo-cadu { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.6rem; color: var(--primary); }
.logo-silva { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.6rem; color: var(--white); }
.logo-partido { font-size: 0.65rem; color: var(--primary-light); margin-left: 8px; font-weight: 700; letter-spacing: 1px; }
.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-menu a { color: rgba(255,255,255,0.85); padding: 8px 14px; font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm); }
.nav-menu a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ========== HERO ========== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 50%, #1a0a00 100%);
    position: relative; padding-top: 80px; overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,102,0,0.15) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; }
.hero-text { max-width: 700px; }
.hero-badge {
    display: inline-block; background: rgba(255,102,0,0.2); color: var(--primary);
    padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 2px; margin-bottom: 20px; border: 1px solid rgba(255,102,0,0.3);
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: 4.5rem; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 16px; }
.text-primary { color: var(--primary) !important; }
.hero-subtitle { font-size: 1.4rem; color: rgba(255,255,255,0.9); font-weight: 500; margin-bottom: 12px; }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block; color: var(--primary); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--secondary); margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ========== ABOUT ========== */
.section-about { background: var(--white); }
.about-content { max-width: 800px; margin: 0 auto; }
.about-lead { font-size: 1.2rem; color: var(--secondary); line-height: 1.8; margin-bottom: 20px; font-weight: 500; }
.about-content p { margin-bottom: 16px; color: var(--text); line-height: 1.8; }
.about-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.about-card {
    text-align: center; padding: 28px 16px; background: var(--bg);
    border-radius: var(--radius); transition: var(--transition);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-card i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.about-card h4 { font-size: 0.95rem; color: var(--secondary); margin-bottom: 4px; }
.about-card p { font-size: 0.8rem; color: var(--text-light); margin: 0; }

/* ========== TIMELINE ========== */
.section-timeline { background: var(--bg); }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
}
.timeline-item { position: relative; margin-bottom: 40px; width: 50%; }
.timeline-item.left { padding-right: 50px; text-align: right; }
.timeline-item.right { padding-left: 50px; margin-left: 50%; }
.timeline-dot {
    position: absolute; top: 20px; width: 16px; height: 16px;
    background: var(--primary); border-radius: 50%; border: 3px solid var(--white);
    box-shadow: 0 0 0 4px rgba(255,102,0,0.2);
}
.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }
.timeline-card {
    background: var(--white); padding: 28px; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: var(--transition);
}
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.timeline-year {
    display: inline-block; background: var(--primary); color: var(--white);
    padding: 4px 14px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px;
}
.timeline-party {
    display: inline-block; background: var(--secondary); color: var(--white);
    padding: 2px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; margin-left: 8px;
}
.timeline-card h3 { font-size: 1.15rem; color: var(--secondary); margin: 10px 0 8px; }
.timeline-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.timeline-result {
    display: inline-block; margin-top: 12px; font-size: 0.85rem;
    color: var(--primary); font-weight: 600;
}

/* ========== PROPOSALS ========== */
.section-proposals { background: var(--white); }
.proposals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.proposal-card {
    padding: 32px; background: var(--bg); border-radius: var(--radius);
    transition: var(--transition); border: 1px solid transparent;
}
.proposal-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.proposal-icon { width: 56px; height: 56px; background: rgba(255,102,0,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.proposal-icon i { font-size: 1.5rem; color: var(--primary); }
.proposal-card h3 { font-size: 1.1rem; color: var(--secondary); margin-bottom: 10px; }
.proposal-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.proposal-tag {
    display: inline-block; background: rgba(255,102,0,0.1); color: var(--primary);
    padding: 3px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}

/* ========== CTA ========== */
.section-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    text-align: center; padding: 80px 0;
}
.cta-content h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--white); margin-bottom: 16px; }
.cta-content p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== CONTACT ========== */
.section-contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; max-width: 900px; margin: 0 auto; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item i { font-size: 1.3rem; color: var(--primary); margin-top: 4px; }
.contact-item h4 { font-size: 0.95rem; color: var(--secondary); margin-bottom: 4px; }
.contact-item a, .contact-item p { font-size: 0.9rem; color: var(--text-light); }

/* ========== FORMS ========== */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 18px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit;
    transition: var(--transition); background: var(--white); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,102,0,0.1);
}
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--secondary); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ========== FOOTER ========== */
.footer { background: var(--secondary); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { margin-bottom: 16px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--primary); }
.footer-col p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 8px; }
.footer-col p i { margin-right: 8px; color: var(--primary); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); color: var(--white); font-size: 1.1rem; transition: var(--transition);
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.85rem; }
.footer-legal { font-size: 0.75rem !important; color: rgba(255,255,255,0.4); margin-top: 8px; }

/* ========== AUTH PAGES ========== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; background: var(--bg); }
.auth-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 48px; max-width: 480px; width: 100%; }
.auth-card h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--secondary); margin-bottom: 8px; text-align: center; }
.auth-card .auth-subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; font-size: 0.95rem; }
.auth-card .auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-light); }

/* ========== ALERTS ========== */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ========== SOCIAL NETWORK (REDE) ========== */
.rede-layout { display: grid; grid-template-columns: 260px 1fr 300px; gap: 24px; padding-top: 100px; min-height: 100vh; }
.rede-sidebar {
    position: sticky; top: 80px; height: fit-content;
    background: var(--white); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow);
}
.rede-sidebar .sidebar-user { text-align: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.rede-sidebar .sidebar-avatar {
    width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--white); font-size: 2rem; font-weight: 700;
}
.rede-sidebar h3 { font-size: 1rem; color: var(--secondary); }
.rede-sidebar .sidebar-role { font-size: 0.8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; }
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    color: var(--text); font-size: 0.9rem; border-radius: var(--radius-sm); margin-bottom: 4px;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active { background: rgba(255,102,0,0.08); color: var(--primary); }
.sidebar-nav li a i { width: 20px; text-align: center; }

.rede-main { padding-bottom: 40px; }
.rede-right {
    position: sticky; top: 80px; height: fit-content;
}

/* Post creation */
.post-create {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); margin-bottom: 24px;
}
.post-create textarea {
    width: 100%; border: 2px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px; font-family: inherit; font-size: 0.95rem; resize: vertical; min-height: 100px;
    transition: var(--transition);
}
.post-create textarea:focus { outline: none; border-color: var(--primary); }
.post-create-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.post-create-actions select { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }

/* Post cards */
.post-card {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); margin-bottom: 16px; transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1rem;
}
.post-meta h4 { font-size: 0.95rem; color: var(--secondary); }
.post-meta span { font-size: 0.8rem; color: var(--text-light); }
.post-type {
    margin-left: auto; padding: 3px 10px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}
.post-type.update { background: #dbeafe; color: #1d4ed8; }
.post-type.idea { background: #fef3c7; color: #92400e; }
.post-type.material { background: #d1fae5; color: #065f46; }
.post-type.event { background: #ede9fe; color: #5b21b6; }
.post-type.news { background: #fee2e2; color: #991b1b; }
.post-content { font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; white-space: pre-wrap; }
.post-image { border-radius: var(--radius-sm); margin-bottom: 16px; max-height: 400px; object-fit: cover; width: 100%; }
.post-actions { display: flex; gap: 24px; padding-top: 14px; border-top: 1px solid var(--border); }
.post-action {
    display: flex; align-items: center; gap: 6px; color: var(--text-light);
    font-size: 0.85rem; cursor: pointer; background: none; border: none; font-family: inherit;
    transition: var(--transition); padding: 4px 8px; border-radius: var(--radius-sm);
}
.post-action:hover { color: var(--primary); background: rgba(255,102,0,0.08); }
.post-action.liked { color: var(--primary); }

/* Comments */
.post-comments { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.comment-body { background: var(--bg); padding: 10px 14px; border-radius: var(--radius-sm); flex: 1; }
.comment-body strong { font-size: 0.85rem; color: var(--secondary); }
.comment-body p { font-size: 0.85rem; color: var(--text); margin-top: 2px; }
.comment-body small { font-size: 0.75rem; color: var(--text-light); }
.comment-form { display: flex; gap: 10px; margin-top: 12px; }
.comment-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 50px; font-size: 0.85rem; }
.comment-form input:focus { outline: none; border-color: var(--primary); }
.comment-form button { padding: 10px 20px; background: var(--primary); color: var(--white); border: none; border-radius: 50px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }

/* Right sidebar widgets */
.widget {
    background: var(--white); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); margin-bottom: 16px;
}
.widget h3 { font-size: 0.95rem; color: var(--secondary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.widget-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.widget-stat { text-align: center; padding: 12px; background: var(--bg); border-radius: var(--radius-sm); }
.widget-stat .num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.widget-stat .lbl { font-size: 0.75rem; color: var(--text-light); }
.widget-event { padding: 12px 0; border-bottom: 1px solid var(--border); }
.widget-event:last-child { border: none; }
.widget-event h4 { font-size: 0.85rem; color: var(--secondary); }
.widget-event p { font-size: 0.8rem; color: var(--text-light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .rede-layout { grid-template-columns: 1fr; }
    .rede-sidebar, .rede-right { position: static; }
    .rede-right { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-stats { gap: 24px; }
    .section-header h2 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .about-cards { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .nav-toggle { display: block; }
    .nav-menu {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: var(--secondary);
        padding: 20px; gap: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .nav-menu.active { display: flex; }
    .nav-menu a { padding: 12px 16px; }

    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item.left, .timeline-item.right {
        width: 100%; padding-left: 50px; padding-right: 0; text-align: left; margin-left: 0;
    }
    .timeline-item .timeline-dot, .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
        left: 12px; right: auto;
    }

    .proposals-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.pinned-badge { background: var(--warning); color: var(--white); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
