/* =============================================
   argentinos.online — Stylesheet
   Paleta: Celeste y Blanco de la bandera
   ============================================= */

:root {
    /* Colores bandera argentina */
    --celeste: #75AADB;
    --celeste-dark: #4A86C8;
    --celeste-darker: #2C5F9E;
    --celeste-light: #A8CBE8;
    --celeste-pale: #EAF3FB;
    --white: #FFFFFF;
    --sol: #F9B234;

    /* Neutros */
    --bg: #F0F4F8;
    --bg-card: #FFFFFF;
    --bg-hover: #F7FAFD;
    --border: #D0E3F0;
    --border-light: #E8F1F8;
    --text: #1A2B3C;
    --text-muted: #5A7490;
    --text-light: #8AA4BB;

    /* UI */
    --danger: #E53E3E;
    --success: #38A169;
    --warning: #D69E2E;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --transition: all 0.2s ease;

    /* Fonts */
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--celeste-dark); text-decoration: none; }
a:hover { color: var(--celeste-darker); }

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

/* ---- NAVBAR ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 3px solid var(--celeste);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon { font-size: 1.6rem; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--celeste-darker);
    letter-spacing: -0.02em;
}
.logo-dot { color: var(--celeste); }

.nav-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}
.nav-search input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}
.nav-search input:focus {
    outline: none;
    border-color: var(--celeste);
    background: white;
    box-shadow: 0 0 0 3px rgba(117, 170, 219, 0.2);
}
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}
.search-results.show { display: block; }
.search-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}
.search-item:hover { background: var(--celeste-pale); }
.search-item:last-child { border-bottom: none; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* ---- BOTONES ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1.1rem; }
.btn-primary {
    background: var(--celeste-dark);
    color: white;
    border-color: var(--celeste-dark);
}
.btn-primary:hover {
    background: var(--celeste-darker);
    border-color: var(--celeste-darker);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-ghost {
    background: transparent;
    color: var(--celeste-dark);
    border-color: var(--celeste-dark);
}
.btn-ghost:hover { background: var(--celeste-pale); color: var(--celeste-darker); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #C53030; }
.btn-full { width: 100%; justify-content: center; }

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.4rem;
    border-radius: 8px;
    position: relative;
    color: var(--text-muted);
    transition: var(--transition);
}
.icon-btn:hover { background: var(--celeste-pale); color: var(--celeste-dark); }

/* ---- NOTIFICACIONES ---- */
.nav-notif { position: relative; }
.notif-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    overflow: hidden;
}
.notif-dropdown.show { display: block; animation: dropIn 0.2s ease; }
.notif-header {
    padding: 0.75rem 1rem;
    background: var(--celeste-pale);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: var(--celeste-pale); }
.notif-item.unread:hover { background: #D8EBF7; }
.notif-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ---- USER MENU ---- */
.nav-user { position: relative; }
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: var(--transition);
}
.user-avatar-btn:hover { background: var(--celeste-pale); }
.nav-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--celeste);
    object-fit: cover;
}
.nav-username {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.role-badge {
    font-size: 0.85rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}
.role-badge.admin { background: #FEF3C7; color: #92400E; }
.role-badge.moderator { background: #E0E7FF; color: #3730A3; }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    overflow: hidden;
}
.user-dropdown.show { display: block; animation: dropIn 0.2s ease; }
.user-dropdown a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}
.user-dropdown a:hover { background: var(--celeste-pale); color: var(--celeste-darker); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }
.user-dropdown .logout-link:hover { background: #FFF5F5; color: var(--danger); }

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.3rem;
    color: var(--text);
}

/* ---- LAYOUT ---- */
.layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* ---- SIDEBAR ---- */
.sidebar {
    position: sticky;
    top: 80px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.sidebar-section { padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-title {
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.category-nav { display: flex; flex-direction: column; }
.cat-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.cat-link:hover { background: var(--celeste-pale); color: var(--celeste-darker); border-left-color: var(--celeste-light); }
.cat-link.active { background: var(--celeste-pale); color: var(--celeste-darker); border-left-color: var(--celeste-dark); font-weight: 600; }
.cat-icon { font-size: 1rem; width: 20px; text-align: center; }
.cat-count { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); background: var(--bg); padding: 1px 6px; border-radius: 10px; }
.sidebar-footer { padding: 0.75rem 1rem; font-size: 0.8rem; color: var(--text-light); }
.sidebar-footer a { color: var(--text-light); }
.sidebar-footer a:hover { color: var(--celeste-dark); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
}

/* ---- MAIN CONTENT ---- */
.main-content { min-width: 0; }

/* ---- FEED HEADER ---- */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.feed-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.feed-filters {
    display: flex;
    gap: 0.5rem;
}
.filter-btn {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 2px solid var(--border);
    background: white;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--celeste-dark);
    color: var(--celeste-dark);
    background: var(--celeste-pale);
}

/* ---- POST CARD ---- */
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.post-card:hover { border-color: var(--celeste-light); box-shadow: var(--shadow-md); }
.post-card.pinned { border-color: var(--sol); }
.pinned-badge {
    background: var(--sol);
    color: #7B4A00;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0;
}
.post-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--celeste-light);
    object-fit: cover;
    flex-shrink: 0;
}
.post-meta { flex: 1; min-width: 0; }
.post-author {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--celeste-darker);
}
.post-author:hover { color: var(--celeste-dark); }
.post-time { font-size: 0.8rem; color: var(--text-muted); }
.post-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: var(--celeste-pale);
    color: var(--celeste-darker);
    font-family: var(--font-display);
    letter-spacing: 0.03em;
    text-decoration: none;
}
.post-category:hover { background: var(--celeste-light); }

.post-body { padding: 0.75rem 1rem; }
.post-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--celeste-darker); }
.post-text {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}
.post-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-read-more {
    color: var(--celeste-dark);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.25rem;
    display: inline-block;
}

/* ---- MEDIA ---- */
.post-media {
    margin: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    max-height: 500px;
}
.post-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
    max-height: 500px;
}
.post-media video {
    width: 100%;
    max-height: 500px;
    display: block;
}
.post-media .yt-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.post-media .yt-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ---- ACTIONS BAR ---- */
.post-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-light);
}
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.action-btn:hover { background: var(--bg); color: var(--text); }
.action-btn.liked { color: var(--celeste-dark); font-weight: 600; }
.action-btn.liked:hover { background: var(--celeste-pale); }
.action-btn .count { font-size: 0.85rem; }
.action-btn.report-btn:hover { background: #FFF5F5; color: var(--danger); }
.action-spacer { margin-left: auto; }

/* ---- COMMENTS ---- */
.comments-section { border-top: 1px solid var(--border-light); padding: 0 1rem 1rem; }
.comments-toggle {
    padding: 0.6rem 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    background: none;
    font-family: var(--font-body);
    transition: var(--transition);
}
.comments-toggle:hover { color: var(--celeste-dark); }

.comment-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.comment-form img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--celeste-light); flex-shrink: 0; }
.comment-input-wrap { flex: 1; }
.comment-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 40px;
    max-height: 200px;
    transition: var(--transition);
    background: var(--bg);
}
.comment-input:focus {
    outline: none;
    border-color: var(--celeste);
    background: white;
    box-shadow: 0 0 0 3px rgba(117,170,219,0.2);
}
.comment-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.4rem;
    gap: 0.5rem;
}

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.comment:last-child { border-bottom: none; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.comment-content { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.2rem; flex-wrap: wrap; }
.comment-author { font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--celeste-darker); }
.comment-time { font-size: 0.78rem; color: var(--text-muted); }
.comment-text { font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.comment-actions { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
.comment-action {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
}
.comment-action:hover { background: var(--bg); color: var(--text); }
.comment-action.liked { color: var(--celeste-dark); }

/* Respuestas anidadas */
.comment-replies {
    margin-left: 2.5rem;
    border-left: 2px solid var(--celeste-pale);
    padding-left: 0.75rem;
    margin-top: 0.5rem;
}
.reply-form {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.reply-form img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }

/* ---- FORMS ---- */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    max-width: 480px;
    margin: 2rem auto;
}
.form-card h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--celeste-darker);
    margin-bottom: 0.25rem;
}
.form-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.1rem; }
.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--celeste);
    background: white;
    box-shadow: 0 0 0 3px rgba(117,170,219,0.2);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-error { font-size: 0.82rem; color: var(--danger); margin-top: 0.3rem; }
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-divider { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin: 1.25rem 0; position: relative; }
.form-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
}
.form-divider span { background: white; padding: 0 0.75rem; position: relative; z-index: 1; }

/* ---- POST COMPOSER ---- */
.composer {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.composer h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}
.media-preview {
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: var(--bg);
    border: 2px dashed var(--border);
    text-align: center;
    padding: 1rem;
}
.media-preview img, .media-preview video {
    max-height: 300px;
    border-radius: var(--radius-sm);
}
.media-preview .remove-media {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px; height: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.75rem;
}
.upload-area:hover { border-color: var(--celeste); color: var(--celeste-dark); background: var(--celeste-pale); }
.char-count { text-align: right; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.char-count.over-limit { color: var(--danger); }

/* ---- PROFILE ---- */
.profile-header {
    background: linear-gradient(135deg, var(--celeste-darker) 0%, var(--celeste-dark) 100%);
    border-radius: var(--radius);
    padding: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}
.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.5);
    object-fit: cover;
}
.profile-info { flex: 1; }
.profile-name { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.profile-bio { opacity: 0.85; margin-top: 0.25rem; }
.profile-stats { display: flex; gap: 1.5rem; margin-top: 0.75rem; }
.profile-stat { text-align: center; }
.profile-stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.profile-stat-label { font-size: 0.8rem; opacity: 0.75; }

/* ---- ADMIN PANEL ---- */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.admin-card-header {
    padding: 1rem 1.25rem;
    background: var(--celeste-pale);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th {
    text-align: left;
    padding: 0.65rem 1rem;
    background: var(--bg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-hover); }
.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-active { background: #D1FAE5; color: #065F46; }
.status-hidden { background: #FEE2E2; color: #991B1B; }
.status-reviewed { background: #DBEAFE; color: #1E40AF; }

/* ---- ALERTS ---- */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-info { background: var(--celeste-pale); color: var(--celeste-darker); border: 1px solid var(--celeste-light); }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

/* ---- TOAST ---- */
#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    background: var(--text);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 250px;
    max-width: 350px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--celeste-dark); }
.toast.warning { background: var(--warning); color: #1A2B3C; }
.toast.fadeOut { animation: fadeOut 0.3s ease forwards; }

/* ---- MODAL ---- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal.open { display: flex; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}
.modal-box {
    position: relative;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.2s ease;
}
.modal-sm { max-width: 360px; }
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-muted); padding: 0.25rem; border-radius: 4px; }
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 1.25rem 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.75rem; }
.report-reasons { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0; }
.report-reason {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.report-reason:hover { background: var(--bg); }
.report-reason input { accent-color: var(--celeste-dark); }
#reportDescription {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    resize: vertical;
    margin-top: 0.5rem;
}
#reportDescription:focus { outline: none; border-color: var(--celeste); }

/* ---- LOADING / SKELETON ---- */
.loading-spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--celeste-dark);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.skeleton {
    background: linear-gradient(90deg, var(--bg) 25%, #E8EEF4 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
.page-loader {
    display: flex;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    gap: 0.75rem;
    align-items: center;
    font-size: 0.95rem;
}
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.no-posts .no-posts-icon { font-size: 3rem; margin-bottom: 1rem; }
.no-posts h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 0.4rem; padding: 1.5rem 0; }
.page-btn {
    padding: 0.5rem 0.9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}
.page-btn:hover { border-color: var(--celeste-dark); color: var(--celeste-dark); }
.page-btn.active { background: var(--celeste-dark); border-color: var(--celeste-dark); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- IMAGE LIGHTBOX ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.open { display: flex; animation: fadeIn 0.2s ease; }
.lightbox img { max-width: 95vw; max-height: 95vh; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; color: white; font-size: 1.5rem; cursor: pointer; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

/* ---- BANNER ---- */
.page-banner {
    background: linear-gradient(135deg, var(--celeste-darker), var(--celeste-dark));
    color: white;
    padding: 1.5rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}
.banner-text h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.banner-text p { opacity: 0.85; font-size: 0.9rem; }
.banner-stripe {
    height: 6px;
    background: linear-gradient(90deg, var(--celeste-darker) 33%, white 33%, white 66%, var(--celeste-darker) 66%);
    border-radius: var(--radius) var(--radius) 0 0;
    margin-bottom: 0;
}

/* ---- ANIMATIONS ---- */
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateX(20px); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        top: 0; left: -280px;
        width: 260px;
        height: 100vh;
        overflow-y: auto;
        z-index: 950;
        border-radius: 0;
        transition: left 0.3s ease;
    }
    .sidebar.open { left: 0; }
    .sidebar-overlay.show { display: block; }
    .hamburger { display: block; }
    .nav-search { display: none; }
    .nav-username { display: none; }
}

@media (max-width: 600px) {
    .layout { padding: 0.75rem; }
    .nav-container { padding: 0 0.75rem; }
    .post-card { border-radius: var(--radius-sm); }
    .feed-header { flex-direction: column; align-items: flex-start; }
}
