/* ============================================
   TYPOGRAPHY & FONTS
   ============================================ */

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: white;
    color: #4b5563;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: #f3f4f6;
    color: #dc2626;
}

.filter-btn.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* ============================================
   NEWS CARDS
   ============================================ */

.news-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #dc2626;
}

.news-card-featured {
    grid-column: span 2;
}

.news-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-featured .news-card-image {
    height: 300px;
}

.placeholder-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   CATEGORY BADGES
   ============================================ */

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-seguranca {
    background: #fef2f2;
    color: #991b1b;
}

.category-transito {
    background: #fffbeb;
    color: #92400e;
}

.category-obras {
    background: #eff6ff;
    color: #1e40af;
}

.category-ambiente {
    background: #ecfdf5;
    color: #065f46;
}

.category-cultura {
    background: #faf5ff;
    color: #6b21a8;
}

.category-saude {
    background: #fdf2f8;
    color: #9f1239;
}

.category-educacao {
    background: #f5f3ff;
    color: #5b21b6;
}

.category-outro {
    background: #f3f4f6;
    color: #374151;
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar-container {
    margin-top: 1rem;
}

.trust-bar-bg {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.trust-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.trust-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.trust-high {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.trust-medium {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.trust-low {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.trust-very-low {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* ============================================
   VOTE BUTTONS
   ============================================ */

.vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 2px solid;
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

.vote-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vote-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Confirm button */
.vote-confirm {
    background: white;
    color: #059669;
    border-color: #86efac;
}

.vote-confirm:hover {
    background: #f0fdf4;
    border-color: #4ade80;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.vote-confirm.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Doubt button */
.vote-doubt {
    background: white;
    color: #d97706;
    border-color: #fdba74;
}

.vote-doubt:hover {
    background: #fffbeb;
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.vote-doubt.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Large vote buttons (in modal) */
.vote-btn.py-4 {
    padding: 1.25rem;
    flex-direction: column;
    gap: 0.75rem;
}

.vote-btn.py-4 i {
    font-size: 2rem;
}

.vote-btn.py-4 .font-bold {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vote-btn.py-4 .text-2xl {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

/* Dark mode */
body.dark-mode .vote-confirm {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .vote-doubt {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

/* Vote comment modal needs higher z-index to appear above news detail modal */
#voteCommentModal {
    z-index: 1100 !important;
}

#voteCommentModal .modal-overlay {
    z-index: 1100 !important;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: 1rem;
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-close {
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.modal-close:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* ============================================
   FORM INPUTS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   COMMENTS
   ============================================ */

.comment-card {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.comment-card:hover {
    background: #f3f4f6;
}

.comment-confirm {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.comment-doubt {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.comment-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.comment-badge-confirm {
    background: #d1fae5;
    color: #065f46;
}

.comment-badge-doubt {
    background: #fed7aa;
    color: #9a3412;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
    min-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: toastSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.3s ease;
}

@keyframes toastSlide {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* ============================================
   RANKINGS
   ============================================ */

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #f9fafb;
}

.ranking-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.ranking-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.ranking-2 {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.4);
}

.ranking-3 {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4);
}

.ranking-other {
    background: #e5e7eb;
    color: #6b7280;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .news-card-featured {
        grid-column: span 1;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .vote-btn {
        font-size: 0.75rem;
        padding: 0.625rem 0.75rem;
    }
    
    /* Fitts' Law - Larger touch targets for mobile */
    .vote-btn,
    .filter-btn,
    button {
        min-height: 44px;
    }
}

@media (max-width: 1024px) {
    .news-card-featured .news-card-image {
        height: 240px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    header,
    footer,
    aside,
    .vote-btn,
    .filter-btn,
    button {
        display: none !important;
    }
    
    .news-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
/* ============================================
   BREAKING NEWS CAROUSEL
   ============================================ */

.breaking-news-carousel {
    position: relative;
    overflow: hidden;
    height: 60px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.carousel-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.carousel-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.carousel-title {
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
    left: 0.5rem;
}

.carousel-nav-next {
    right: 0.5rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 640px) {
    .carousel-title {
        font-size: 0.85rem;
    }
    
    .carousel-category {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .carousel-nav {
        width: 28px;
        height: 28px;
    }
}
/* ============================================
   LOADING STATES
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.loading-subtext {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Pulse animation for loading */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   NOTIFICATIONS SYSTEM
   ============================================ */

.notification-btn {
    position: relative;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: #e5e7eb;
    color: #dc2626;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: notificationPulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
    }
}

.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-panel.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.notification-header h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.notification-clear-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-list {
    overflow-y: auto;
    max-height: 400px;
    flex: 1;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
}

.notification-item.unread:hover {
    background: #fee2e2;
}

.notification-content {
    display: flex;
    gap: 0.75rem;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notification-icon.comment {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.notification-icon.vote {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.375rem;
}

.notification-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #9ca3af;
}

.notification-empty-icon {
    font-size: 3rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.notification-empty-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .notification-panel {
        width: 100vw;
        right: -1rem;
        border-radius: 0.75rem 0.75rem 0 0;
    }
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-info {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.pagination-info strong {
    color: #dc2626;
    font-weight: 700;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

.load-more-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
    background: #f9fafb;
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

.load-more-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

.all-loaded-message {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
    font-weight: 500;
}

.all-loaded-message i {
    color: #d1d5db;
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================
   DARK MODE
   ============================================ */

/* Dark mode toggle button */
.theme-toggle {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.theme-toggle i {
    font-size: 1.125rem;
    transition: transform 0.5s ease;
}

/* Dark mode styles */
body.dark-mode {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-color: #374151;
    --shadow: rgba(0, 0, 0, 0.5);
}

body.dark-mode {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top bar dark mode */
body.dark-mode .bg-gray-900 {
    background: #000000 !important;
}

/* Header dark mode */
body.dark-mode header {
    background: var(--bg-secondary);
    border-bottom-color: #dc2626;
}

body.dark-mode header h1,
body.dark-mode header p {
    color: var(--text-primary);
}

body.dark-mode header .text-gray-500 {
    color: var(--text-tertiary) !important;
}

/* Navigation dark mode */
body.dark-mode nav {
    border-top-color: var(--border-color);
}

body.dark-mode .filter-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

body.dark-mode .filter-btn:hover {
    background: var(--bg-primary);
    color: #dc2626;
}

body.dark-mode .filter-btn.active {
    background: #dc2626;
    color: white;
}

/* Main content dark mode */
body.dark-mode main {
    background: var(--bg-primary);
}

/* News cards dark mode */
body.dark-mode .news-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .news-card:hover {
    border-color: #dc2626;
    box-shadow: 0 10px 25px var(--shadow);
}

body.dark-mode .news-card h2 {
    color: var(--text-primary);
}

body.dark-mode .news-card p {
    color: var(--text-secondary);
}

body.dark-mode .news-card .text-gray-500,
body.dark-mode .news-card .text-gray-600 {
    color: var(--text-tertiary) !important;
}

/* Category badges dark mode */
body.dark-mode .category-seguranca {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

body.dark-mode .category-transito {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

body.dark-mode .category-obras {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

body.dark-mode .category-ambiente {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

body.dark-mode .category-cultura {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

body.dark-mode .category-saude {
    background: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
}

body.dark-mode .category-educacao {
    background: rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
}

body.dark-mode .category-outro {
    background: rgba(107, 114, 128, 0.2);
    color: #d1d5db;
}

/* Sidebar dark mode */
body.dark-mode aside .bg-white {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
}

body.dark-mode aside h3,
body.dark-mode aside h4 {
    color: var(--text-primary);
}

body.dark-mode aside .text-gray-600 {
    color: var(--text-secondary) !important;
}

body.dark-mode aside .text-gray-900 {
    color: var(--text-primary) !important;
}

body.dark-mode aside .border-gray-100 {
    border-color: var(--border-color) !important;
}

/* Rankings dark mode */
body.dark-mode .ranking-item {
    background: transparent;
}

body.dark-mode .ranking-item:hover {
    background: var(--bg-tertiary);
}

/* Modals dark mode */
body.dark-mode .modal {
    background: var(--bg-secondary);
}

body.dark-mode .modal-header {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

body.dark-mode .modal h2,
body.dark-mode .modal h3 {
    color: var(--text-primary);
}

body.dark-mode .modal p,
body.dark-mode .modal label {
    color: var(--text-secondary);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    background: var(--bg-primary);
    border-color: #dc2626;
}

/* Comments dark mode */
body.dark-mode .comment-card {
    background: var(--bg-tertiary);
    border-left-color: var(--border-color);
}

body.dark-mode .comment-card:hover {
    background: var(--bg-primary);
}

body.dark-mode .comment-confirm {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

body.dark-mode .comment-doubt {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}

/* Notifications dark mode */
body.dark-mode .notification-panel {
    background: var(--bg-secondary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

body.dark-mode .notification-item {
    background: transparent;
    border-bottom-color: var(--border-color);
}

body.dark-mode .notification-item:hover {
    background: var(--bg-tertiary);
}

body.dark-mode .notification-item.unread {
    background: rgba(220, 38, 38, 0.1);
}

body.dark-mode .notification-item.unread:hover {
    background: rgba(220, 38, 38, 0.15);
}

body.dark-mode .notification-title {
    color: var(--text-primary);
}

body.dark-mode .notification-message {
    color: var(--text-secondary);
}

body.dark-mode .notification-time {
    color: var(--text-tertiary);
}

/* Buttons dark mode */
body.dark-mode .notification-btn,
body.dark-mode .theme-toggle {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

body.dark-mode .notification-btn:hover,
body.dark-mode .theme-toggle:hover {
    background: var(--bg-primary);
    color: #dc2626;
}

body.dark-mode .load-more-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body.dark-mode .load-more-btn:hover {
    background: var(--bg-tertiary);
    border-color: #dc2626;
    color: #dc2626;
}

/* Trust bar background dark mode */
body.dark-mode .trust-bar-bg {
    background: var(--bg-tertiary);
}

/* Pagination info dark mode */
body.dark-mode .pagination-info {
    color: var(--text-secondary);
}

body.dark-mode .pagination-info strong {
    color: #dc2626;
}

/* Footer dark mode */
body.dark-mode footer {
    background: #000000;
}

/* User info header dark mode */
body.dark-mode #userInfoHeader {
    background: var(--bg-tertiary) !important;
}

body.dark-mode #userInfoHeader p {
    color: var(--text-primary) !important;
}

/* Carousel dark mode */
body.dark-mode .carousel-category {
    background: rgba(255, 255, 255, 0.15);
}

/* Smooth transitions */
body.dark-mode * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */

.share-section {
    border-top: 2px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.share-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.share-btn:active::before {
    width: 300px;
    height: 300px;
}

.share-btn i {
    font-size: 1.125rem;
}

/* Facebook */
.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    color: white;
}

.share-btn.facebook:hover {
    background: linear-gradient(135deg, #166fe5 0%, #0a58c2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* X (formerly Twitter) */
.share-btn.x-twitter {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
}

.share-btn.x-twitter:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Dark mode - X button with white border */
body.dark-mode .share-btn.x-twitter {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    color: #000000;
}

body.dark-mode .share-btn.x-twitter:hover {
    background: linear-gradient(135deg, #e5e5e5 0%, #d4d4d4 100%);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* WhatsApp */
.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
    color: white;
}

.share-btn.whatsapp:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Copy Link */
.share-btn.copy-link {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.share-btn.copy-link:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.share-btn.copy-link.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Dark mode adjustments */
body.dark-mode .share-section {
    border-top-color: var(--border-color);
}

body.dark-mode .share-section h4 {
    color: var(--text-primary);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        min-width: unset;
    }
}

/* Modal stacking - darker overlay when modal is over another modal */
#voteCommentModal .modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

/* ============================================
   ADVANCED FILTERS
   ============================================ */

.filters-container {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid #f3f4f6;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filters-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-toggle {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-toggle:hover {
    background: #e5e7eb;
    color: #374151;
}

.filters-toggle i {
    transition: transform 0.3s ease;
}

.filters-toggle.active i {
    transform: rotate(180deg);
}

.filters-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.filters-content.collapsed {
    display: none;
}

@media (min-width: 768px) {
    .filters-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .filters-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group select {
    padding: 0.625rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:hover {
    border-color: #d1d5db;
}

.filter-group select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.clear-filters-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-filters-btn:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.apply-filters-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.apply-filters-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.filter-results-count {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-results-count i {
    font-size: 1rem;
}

/* Dark mode */
body.dark-mode .filters-container {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .filters-header h3 {
    color: var(--text-primary);
}

body.dark-mode .filters-toggle {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

body.dark-mode .filters-toggle:hover {
    background: var(--bg-primary);
}

body.dark-mode .filter-group label {
    color: var(--text-primary);
}

body.dark-mode .filter-group select {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .filter-group select:hover {
    border-color: var(--border-color);
}

body.dark-mode .clear-filters-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

body.dark-mode .clear-filters-btn:hover {
    background: var(--bg-primary);
}

body.dark-mode .filter-results-count {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* ============================================
   REPORT SYSTEM (DENÚNCIAS)
   ============================================ */

.report-news-btn {
    color: #9ca3af;
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.report-news-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

.flagged-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: flaggedPulse 2s ease-in-out infinite;
}

.flagged-badge.contested {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    animation: none;
}

.flagged-badge.auto-removed {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
}

.flag-timer {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 600;
}

@keyframes flaggedPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }
}
/* Contest button */
.contest-report-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contest-report-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.contested-message {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.contested-message h5 {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.contested-message p {
    color: #78350f;
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Dark mode */
body.dark-mode .contested-message {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}

body.dark-mode .contested-message h5 {
    color: #fbbf24;
}

body.dark-mode .contested-message p {
    color: #fcd34d;
}
.report-reason-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .report-reason-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.report-reason-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    min-height: 90px;
}

.report-reason-card:hover {
    border-color: #dc2626;
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.report-reason-card.selected {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.report-reason-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: #6b7280;
}

.report-reason-card:hover .report-reason-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.report-reason-card.selected .report-reason-icon {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    transform: scale(1.1);
}

.report-reason-content {
    flex: 1;
    min-width: 0;
}

.report-reason-content h5 {
    font-weight: 800;
    font-size: 0.9375rem;
    color: #111827;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.report-reason-content p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.report-reason-card.selected .report-reason-content h5 {
    color: #dc2626;
}

.report-reason-card.selected .report-reason-content p {
    color: #991b1b;
}

/* Dark mode */
body.dark-mode .report-reason-card {
    border-color: var(--border-color);
    background: var(--bg-secondary);
}

body.dark-mode .report-reason-card:hover {
    background: rgba(220, 38, 38, 0.05);
    border-color: #dc2626;
}

body.dark-mode .report-reason-card.selected {
    background: rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
}

body.dark-mode .report-reason-icon {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

body.dark-mode .report-reason-card:hover .report-reason-icon {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

body.dark-mode .report-reason-content h5 {
    color: var(--text-primary);
}

body.dark-mode .report-reason-content p {
    color: var(--text-secondary);
}

body.dark-mode .report-reason-card.selected .report-reason-content h5 {
    color: #fca5a5;
}

body.dark-mode .report-reason-card.selected .report-reason-content p {
    color: #fecaca;
}

/* Community voting on contests */
.community-vote-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.contest-vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contest-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contest-vote-btn i {
    font-size: 1.5rem;
}

.contest-vote-btn.vote-valid {
    border-color: #fca5a5;
    color: #dc2626;
}

.contest-vote-btn.vote-valid:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.contest-vote-btn.vote-valid.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.contest-vote-btn.vote-invalid {
    border-color: #86efac;
    color: #059669;
}

.contest-vote-btn.vote-invalid:hover {
    background: #f0fdf4;
    border-color: #10b981;
}

.contest-vote-btn.vote-invalid.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Dark mode */
body.dark-mode .community-vote-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .contest-vote-btn {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

body.dark-mode .contest-vote-btn.vote-valid.active,
body.dark-mode .contest-vote-btn.vote-invalid.active {
    color: white;
}

/* ============================================
   REMOVED NEWS MODAL
   ============================================ */

/* Dark mode adjustments for removed news modal */
body.dark-mode #newsDetailContent .bg-gray-50 {
    background: var(--bg-tertiary) !important;
}

body.dark-mode #newsDetailContent .border-gray-200 {
    border-color: var(--border-color) !important;
}

body.dark-mode #newsDetailContent .text-gray-900 {
    color: var(--text-primary) !important;
}

body.dark-mode #newsDetailContent .text-gray-600 {
    color: var(--text-secondary) !important;
}

body.dark-mode #newsDetailContent .text-gray-500 {
    color: var(--text-tertiary) !important;
}

body.dark-mode #newsDetailContent .bg-red-100 {
    background: rgba(220, 38, 38, 0.2) !important;
}

body.dark-mode #newsDetailContent .text-red-600 {
    color: #fca5a5 !important;
}

body.dark-mode #newsDetailContent .bg-yellow-50 {
    background: rgba(245, 158, 11, 0.1) !important;
    border-left-color: #f59e0b !important;
}

body.dark-mode #newsDetailContent .text-yellow-900,
body.dark-mode #newsDetailContent .text-yellow-800 {
    color: #fbbf24 !important;
}

body.dark-mode #newsDetailContent .text-yellow-600 {
    color: #fcd34d !important;
}

body.dark-mode #newsDetailContent .bg-red-50 {
    background: rgba(220, 38, 38, 0.1) !important;
    border-left-color: #dc2626 !important;
}

body.dark-mode #newsDetailContent .text-red-900,
body.dark-mode #newsDetailContent .text-red-800 {
    color: #fca5a5 !important;
}


/* Dark mode - Reputation warning box (more specific) */
body.dark-mode #newsDetailContent .bg-gray-100 {
    background: rgba(55, 65, 81, 0.4) !important;
    border: 1px solid rgba(75, 85, 99, 0.6);
}

body.dark-mode #newsDetailContent .bg-gray-100 p {
    color: #d1d5db !important;
}

body.dark-mode #newsDetailContent .bg-gray-100 strong {
    color: #f9fafb !important;
}

body.dark-mode #newsDetailContent .bg-gray-100 .fa-lock {
    color: #9ca3af !important;
}

body.dark-mode #newsDetailContent .bg-gray-100 br + strong {
    color: #10b981 !important;
}

/* ============================================
   CSS AUTENTICAÇÃO PROFISSIONAL - ADICIONADO
   ============================================ */
/* ============================================
   CSS PARA MODAL DE AUTENTICAÇÃO PROFISSIONAL
   Adicionar ao styles.css
   ============================================ */

/* Auth Tabs */
.auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.auth-tab:hover {
    color: #374151;
    background: #F9FAFB;
}

.auth-tab.active {
    color: #DC2626;
    border-bottom-color: #DC2626;
}

.auth-tab i {
    font-size: 14px;
}

/* Auth Forms */
.auth-form {
    animation: fadeIn 0.3s ease;
}

.auth-form.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Toggle Button */
.auth-form input[type="password"],
.auth-form input[type="text"] {
    padding-right: 40px;
}

.auth-form button[type="button"] {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.auth-form button[type="button"]:focus {
    outline: none;
}

/* Terms Checkbox */
.auth-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
}

.auth-form input[type="checkbox"]:checked {
    background-color: #DC2626;
    border-color: #DC2626;
}

/* Responsive */
@media (max-width: 640px) {
    #authModal .modal {
        max-width: 95% !important;
        margin: 20px;
    }
    
    .auth-form .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .auth-tab {
        font-size: 13px;
        padding: 10px 12px;
    }
}
/* ============================================
   PATCH CSS - CORREÇÃO DE OVERFLOW DE TEXTO
   Adicionar ao final de css/styles.css
   ============================================ */

/* Prevenir overflow em títulos de notícias */
.news-card h3,
.news-card-featured h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Prevenir overflow em descrições */
.news-card p,
.news-card-featured p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Corrigir overflow em modais */
.modal {
    max-width: 95vw;
    max-height: 95vh;
    overflow-y: auto;
}

#newsDetailContent {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#newsDetailContent h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

#newsDetailContent p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Corrigir overflow em comentários */
.comment-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Corrigir overflow em usernames longos */
.ranking-item span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* Mobile - ainda mais cuidado com overflow */
@media (max-width: 640px) {
    .news-card h3,
    .news-card-featured h3,
    #newsDetailContent h1 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .modal {
        max-width: 100vw;
        border-radius: 0;
    }
}

/* Garantir que long words quebram em qualquer elemento */
* {
    word-wrap: break-word;
}

/* Mas manter nowrap onde faz sentido */
.filter-btn,
.category-badge,
button {
    word-wrap: normal;
    white-space: nowrap;
}