:root {
    --primary: #10b981;       /* Verde vibrante */
    --primary-dark: #059669;  /* Verde mais escuro para gradiente/hover */
    --bg-color: #f3f4f6;      /* Fundo cinza claro */
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========== NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* HEADER BANNER */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-banner h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

.welcome-banner p {
    margin: 0;
    font-size: 1.15rem;
    opacity: 0.95;
}

/* ========== NEWS FEED ========== */
.feed-header {
    margin-bottom: 1.5rem;
}

.feed-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.feed-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.news-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    animation: fadeIn 1s ease-out both;
}

/* Estaggering nas animações do feed */
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.4s; }
.news-item:nth-child(4) { animation-delay: 0.6s; }

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-tag {
    background: #d1fae5;
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.news-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.news-content {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.btn-curtir {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-curtir:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
    transform: scale(1.05);
}

.btn-curtir.curtido {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

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

/* ========== ANIMATIONS ========== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ========== HAMBURGER MENU E SIDEBAR ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* RESPONSIVIDADE */
@media (max-width: 600px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        background-color: var(--glass-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform: translateX(100%);
        z-index: 100;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .welcome-banner { padding: 2rem 1rem; }
    .welcome-banner h1 { font-size: 2rem; }
}

/* ========== MULTI-SELECT MODERN ========== */
.multi-select-container {
    position: relative;
    width: 100%;
}

.multi-select-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    min-height: 48px;
    cursor: text;
    transition: all 0.3s ease;
}

.multi-select-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d1fae5;
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: scaleIn 0.2s ease-out;
}

.remove-chip {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.remove-chip:hover {
    opacity: 1;
}

.multi-select-search {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 2px 0;
}

.multi-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: none;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.multi-select-dropdown.active {
    display: block;
}

.multi-select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.multi-select-option:hover {
    background: #f9fafb;
}

.multi-select-option.selected {
    color: var(--primary);
    font-weight: 600;
    background: #f0fdf4;
}

.multi-select-option.hidden {
    display: none;
}

.no-results {
    padding: 16px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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