/* ============================================
   RESET E BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Inter', sans-serif;
    background: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    border-top: 2px solid #4a9eff;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-text h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.cookie-text p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.cookie-text p a {
    color: #4a9eff;
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-text p a:hover {
    color: #6db3ff;
}

.cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px 0;
}

.cookie-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #ddd;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.cookie-options label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a9eff;
    flex-shrink: 0;
}

.cookie-options input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-options input[type="checkbox"]:disabled + span {
    opacity: 0.6;
}

.cookie-options span {
    font-size: 13px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
}

.cookie-btn.reject {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.cookie-btn.reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.cookie-btn.customize {
    background: transparent;
    color: #ddd;
    border: 1px solid #555;
}

.cookie-btn.customize:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #888;
}

/* ============================================
   HEADER PADRONIZADO WAZZIMAGIYGG
   ============================================ */
.header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-area-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-area-header img {
    height: 36px;
    border-radius: 8px;
}

.logo-area-header h1 {
    font-size: 1.1em;
    font-weight: 600;
}

.logo-area-header small {
    font-size: 0.65em;
    opacity: 0.7;
    display: block;
    font-weight: 300;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1em;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
    flex-shrink: 0;
}

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

.user-avatar:hover { transform: scale(1.05); }

.user-name {
    font-weight: 500;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.user-email {
    font-size: 0.7em;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.btn-logout {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75em;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-logout:hover { background: rgba(255,255,255,0.2); }

.btn-login {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75em;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-login:hover { background: rgba(255,255,255,0.25); }

.badge-admin {
    background: #e94560;
    color: white;
    font-size: 0.55em;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.badge-banned {
    background: #dc3545;
    color: white;
    font-size: 0.55em;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ============================================
   NOTIFICATION BELL
   ============================================ */
.notification-bell {
    position: relative;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 30px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.notification-bell:hover {
    background: rgba(255,255,255,0.1);
}

.notification-bell .material-icons {
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e94560;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a2e;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-height: 350px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: none;
    z-index: 200;
    color: #1a1a2e;
}

.notification-dropdown.show {
    display: block;
}

.notification-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.notification-dropdown-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.notification-dropdown-header button {
    background: none;
    border: none;
    color: #4a6cf7;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
}

.notification-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #eef2ff;
    border-left: 3px solid #4a6cf7;
}

.notification-item .notif-title {
    font-weight: 600;
    font-size: 12px;
    color: #1a1a2e;
}

.notification-item .notif-message {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

.notification-item .notif-time {
    font-size: 10px;
    color: #999;
    margin-top: 3px;
}

.notification-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.notification-empty .material-icons {
    font-size: 36px;
    opacity: 0.4;
}

/* ============================================
   BANNED OVERLAY
   ============================================ */
.banned-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    padding: 20px;
}

.banned-overlay.show { display: flex; }

.banned-box {
    background: #1a1a1a;
    border: 2px solid #e94560;
    border-radius: 16px;
    padding: 50px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    color: white;
}

.banned-box .icon { font-size: 80px; margin-bottom: 20px; }
.banned-box h2 { color: #e94560; margin-bottom: 15px; }
.banned-box p { color: #aaa; margin-bottom: 20px; line-height: 1.6; }
.banned-box .btn-logout-banned {
    background: #e94560;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}
.banned-box .btn-logout-banned:hover { background: #c0392b; }
.banned-box .ban-details {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 13px;
    color: #888;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
    border-top: 1px solid #2a2a2a;
    margin-top: 40px;
    padding: 25px 20px 20px;
    font-family: 'Lato', sans-serif;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 15px;
}

.footer-link {
    color: #aaa !important;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    padding: 4px 0;
    display: inline-block;
}

.footer-link:hover {
    color: #667eea !important;
    transform: translateY(-1px);
}

.footer-link.highlight {
    color: #ffb347 !important;
}

.footer-link.highlight:hover {
    color: #ff9500 !important;
    text-shadow: 0 0 8px rgba(255, 180, 71, 0.3);
}

.footer-divider {
    color: #444;
    font-size: 11px;
    margin: 0 2px;
}

.footer-copyright {
    color: #666;
    font-size: 11px;
    padding-top: 12px;
    border-top: 1px solid #222;
    margin-top: 8px;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 20px;
    color: white;
}

.category-body {
    padding: 20px;
}

.category-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: #666;
    font-size: 0.85em;
}

/* ============================================
   THREADS
   ============================================ */
.threads-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.thread-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
    cursor: pointer;
}

.thread-item:hover {
    background: #f8f9fa;
}

.thread-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.thread-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8em;
    color: #666;
}

/* ============================================
   POSTS
   ============================================ */
.post-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

.post-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-author {
    font-weight: 600;
}

.post-date {
    font-size: 0.8em;
    color: #666;
}

.post-content {
    padding: 20px;
    line-height: 1.6;
}

.post-content h1, .post-content h2, .post-content h3 {
    margin: 15px 0 10px 0;
}
.post-content h1 { font-size: 1.5em; }
.post-content h2 { font-size: 1.3em; }
.post-content h3 { font-size: 1.1em; }
.post-content p { margin-bottom: 10px; }
.post-content ul, .post-content ol { margin: 10px 0 10px 30px; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.post-content iframe { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.post-content pre { background: #f4f4f4; padding: 15px; border-radius: 8px; overflow-x: auto; }
.post-content code { background: #f4f4f4; padding: 2px 5px; border-radius: 4px; font-family: monospace; }
.post-content blockquote { border-left: 4px solid #e94560; padding-left: 20px; margin: 15px 0; color: #666; }
.post-content a { color: #e94560; text-decoration: none; }
.post-content a:hover { text-decoration: underline; }

.post-actions {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    color: #e94560;
    background: rgba(233, 69, 96, 0.1);
}

/* ============================================
   COMENTÁRIOS
   ============================================ */
.comment-list {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #eee;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.85em;
}

.comment-date {
    font-size: 0.7em;
    color: #999;
}

.comment-text {
    font-size: 0.9em;
    line-height: 1.5;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */
.form-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.ql-container {
    min-height: 300px;
    font-size: 14px;
}
.ql-editor {
    min-height: 300px;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* ============================================
   MODAIS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 20px;
}

.close-modal {
    cursor: pointer;
    font-size: 24px;
    color: #999;
    background: none;
    border: none;
}

/* ============================================
   ADMIN
   ============================================ */
.admin-panel {
    background: white;
    border-radius: 16px;
    padding: 25px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 600;
}

.badge-admin { background: #e94560; color: white; }
.badge-mod { background: #ff9800; color: white; }

.loading {
    text-align: center;
    padding: 60px;
    color: #666;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.copy-link-btn {
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 0.8em;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s;
    margin-left: 10px;
    color: #666;
}

.copy-link-btn:hover {
    background: rgba(233, 69, 96, 0.1);
    border-color: #e94560;
    color: #e94560;
}

/* ============================================
   PAGINAÇÃO
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
    color: #333;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: white;
    border-color: #e94560;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: white;
    border-color: #e94560;
    cursor: default;
}

.pagination-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 8px 4px;
    color: #666;
}

.post-highlight {
    background-color: #ffffcc;
    transition: background-color 0.5s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .user-info-header {
        justify-content: space-between;
    }
    .notification-dropdown {
        width: 300px;
        right: -20px;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    .footer-divider {
        display: none;
    }
    .pagination {
        gap: 4px;
    }
    .pagination-btn {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    .banned-box {
        padding: 30px 20px;
    }
    .modal-content {
        max-width: 95%;
    }
    .cookie-options {
        flex-direction: column;
        gap: 8px;
    }
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .cookie-content {
        gap: 12px;
    }
    .cookie-text h3 {
        font-size: 16px;
    }
    .cookie-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .user-name, .user-email { display: none; }
    .notification-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-actions {
        flex-direction: column;
        gap: 8px;
    }
}
