/* ============================================
   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;
}

/* ============================================
   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;
}

/* ============================================
   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: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.flex-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    background: #eef2f6;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary { background: #1a73e8; color: white; }
.btn-primary:hover { background: #1557b0; }
.btn-outline { background: transparent; border: 1px solid #d0d7e2; }
.btn-outline:hover { background: #eef2f6; }
.btn-danger { background: #ea4335; color: white; }
.btn-danger:hover { background: #c62828; }
.btn-success { background: #34a853; color: white; }
.btn-success:hover { background: #2d9249; }
.btn-warning { background: #fbbc04; color: #1a1a2e; }
.btn-warning:hover { background: #e5a800; }
.btn-sm { padding: 0.3rem 1rem; font-size: 0.8rem; }
.btn-share { background: #25D366; color: white; }
.btn-share:hover { background: #1da851; }
.btn-twitter { background: #1DA1F2; color: white; }
.btn-twitter:hover { background: #1a8cd8; }
.btn-facebook { background: #1877F2; color: white; }
.btn-facebook:hover { background: #166fe5; }
.btn-link { background: #6c757d; color: white; }
.btn-link:hover { background: #5a6268; }

.hidden { display: none !important; }

/* ============================================
   TAGS E BADGES
   ============================================ */
.tag {
    background: #eef2f6;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #2c3e50;
}

.badge {
    background: #eef2f6;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
}

.text-muted { color: #5f6b7a; font-size: 0.85rem; }

.profile-info {
    background: #f0f4fe;
    border-radius: 60px;
    padding: 0.4rem 1.2rem 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-info img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.uid-badge {
    font-family: monospace;
    background: #eef2f6;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #2c3e50;
    cursor: pointer;
}

.uid-badge:hover { background: #dce3ed; }

/* ============================================
   EDITOR
   ============================================ */
.editor-container { display: flex; flex-direction: column; gap: 12px; margin: 1rem 0; }

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8fafc;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid #e9edf4;
}

.editor-toolbar .btn { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

.editor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 768px) { .editor-split { grid-template-columns: 1fr; } }

.editor-textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 1px solid #d0d7e2;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: 0.2s;
}

.editor-textarea:focus { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }

.editor-preview {
    border: 1px solid #d0d7e2;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

/* ============================================
   EDITOR - PRÉ-VISUALIZAÇÃO MAIOR
   ============================================ */
.editor-preview iframe {
    width: 100%;
    min-height: 500px;  /* ⬆️ AUMENTADO - era 300px */
    border: none;
    background: white;
}

.editor-preview-label {
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e9edf4;
    font-size: 0.8rem;
    color: #5f6b7a;
    display: flex;
    justify-content: space-between;
}

.editor-input { flex: 1 1 100%; }

.editor-input input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #d0d7e2;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
}

.editor-input input:focus { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }

/* ============================================
   POSTS - FRAME MAIOR
   ============================================ */
.post-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.5rem; }

.post-item {
    background: #fafcff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #e9edf4;
    transition: 0.15s;
}

.post-item:hover { border-color: #cbd5e1; }

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.post-title { font-size: 1.3rem; font-weight: 600; color: #0b1a33; }

.post-meta {
    color: #5f6b7a;
    font-size: 0.85rem;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.post-content { margin: 0.8rem 0; background: white; border-radius: 12px; overflow: hidden; }

/* ⭐ FRAME DA POSTAGEM - MAIOR */
.post-content iframe {
    width: 100%;
    min-height: 600px;  /* ⬆️ AUMENTADO - era 200px */
    max-height: 900px;   /* ⬆️ ALTURA MÁXIMA */
    border: 1px solid #e9edf4;
    border-radius: 12px;
    background: white;
    resize: vertical;    /* ⬆️ PERMITE REDIMENSIONAR */
    overflow: auto;
}

/* Responsivo para telas menores */
@media (max-width: 768px) {
    .post-content iframe {
        min-height: 450px;
        max-height: 700px;
    }
}

.post-actions { display: flex; gap: 10px; margin-top: 1rem; flex-wrap: wrap; }

.post-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e9edf4; }

/* ============================================
   SHARE DROPDOWN
   ============================================ */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 100;
    margin-top: 4px;
}

.share-dropdown-content.show {
    display: block;
}

.share-dropdown-content .btn {
    display: flex;
    width: 100%;
    border-radius: 0;
    background: transparent;
    padding: 8px 16px;
    font-size: 0.85rem;
    border: none;
    justify-content: flex-start;
}

.share-dropdown-content .btn:hover {
    background: #f0f0f0;
}

.share-dropdown-content .btn i {
    width: 20px;
    margin-right: 8px;
}

/* ============================================
   COMENTÁRIOS
   ============================================ */
.comments-section { margin-top: 1rem; }

.comment-item {
    background: #f8fafc;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.comment-item .comment-author { font-weight: 600; font-size: 0.9rem; }
.comment-item .comment-text { color: #1e293b; margin-top: 2px; white-space: pre-wrap; }
.comment-item .comment-meta { font-size: 0.7rem; color: #94a3b8; }

.comment-form { display: flex; gap: 8px; margin-top: 0.8rem; flex-wrap: wrap; }

.comment-form input {
    flex: 1 1 200px;
    padding: 0.5rem 1rem;
    border: 1px solid #d0d7e2;
    border-radius: 60px;
    font-size: 0.9rem;
    outline: none;
}

.comment-form input:focus { border-color: #1a73e8; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 3rem 1rem; color: #5f6b7a; }
.empty-state i { font-size: 3rem; opacity: 0.4; margin-bottom: 1rem; display: block; }

/* ============================================
   SETTINGS
   ============================================ */
.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.settings-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.settings-row input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

/* ============================================
   RULES INFO
   ============================================ */
.rules-info {
    background: #f0f7ff;
    border-left: 4px solid #1a73e8;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.rules-info code { background: #e8f0fe; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }

.disabled { opacity: 0.5; pointer-events: none; }

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

/* ============================================
   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;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show { display: flex; }

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 { font-size: 1.3rem; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #5f6b7a;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   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;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    .footer-divider {
        display: none;
    }
    .share-dropdown-content {
        left: auto;
        right: 0;
    }
    .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;
    }
    .banned-box {
        padding: 30px 20px;
    }
}
