/* ============================================================================
   LGA Blog - Eterna Cloud Style + OCR Orange 
   ============================================================================ */

/* ROOT & THEMES */
:root {
    --primary: #b71c1c;
    --text-primary: #fff;
    --text-muted: #ddd;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --bg-primary: #0a0a0a;
}

[data-theme="light"] {
    --primary: #b71c1c;
    --text-primary: #1a1a1a;
    --text-muted: #666;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --bg-primary: linear-gradient(135deg, #fff5f7 0%, #f8f9ff 50%, #f9f5ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
}

.loader-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}


.loader-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.7);
    animation: logoPulse 2s infinite;
    border: 4px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.loader-subtext {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s 0.3s forwards;
    background: linear-gradient(135deg, var(--primary), #d32f2f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-catchphrase {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeIn 1s 0.6s forwards;
    font-style: italic;
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.7);
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 0 40px 20px rgba(183, 28, 28, 0.3);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MESH BG */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(at 20% 80%, hsla(350, 20%, 15%, 0.8) 0, transparent 50%),
        radial-gradient(at 80% 20%, hsla(200, 30%, 15%, 0.6) 0, transparent 50%),
        radial-gradient(at 40% 40%, hsla(240, 25%, 12%, 0.7) 0, transparent 50%);
    animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* NAVBAR */
nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 95%, 1400px);
    padding: 16px 32px;
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links {
    display: flex;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--glass);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    nav {
        justify-content: space-between !important;
        width: 95%;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(183, 28, 28, 0.3);
}

nav i {
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

nav i:hover {
    background: var(--glass);
    transform: scale(1.1);
}

/* MOBILE NAV */
@media (max-width: 768px) {
    nav {
        width: 95%;
        padding: 10px 20px;
        top: 15px;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    nav i {
        font-size: 1.2rem;
        padding: 6px;
    }
}

/* SEARCH OVERLAY - FIXED UI */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-overlay[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--text-muted);
    z-index: 2;
    pointer-events: none;
}

.search-container input {
    width: 100%;
    padding: 22px 20px 22px 60px;
    font-size: 1.1rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-primary);
    outline: none;
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.2);
}


/* CONTENT WRAPPER */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

/* MAIN GRID - BLOG CARDS */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

/* Blog Card Styles */
.blog-card {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-12px);
    border-color: rgba(183, 28, 28, 0.4);
}

.card-media {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.blog-card:hover .card-media img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.4);
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 16px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.author {
    font-weight: 600;
    color: var(--text-primary);
}

.bullet {
    opacity: 0.5;
}

.views {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* No Results Styling */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1rem;
    opacity: 0.7;
}

/* FIRE ICON ANIMATION */
.fire-icon {
    animation: fireFlicker 2s infinite ease-in-out;
}

@keyframes fireFlicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    25% { transform: scale(1.1) rotate(1deg); }
    50% { transform: scale(0.95) rotate(0deg); }
    75% { transform: scale(1.05) rotate(-1deg); }
}

/* SIDEBAR */
.sidebar {
    height: fit-content;
    position: sticky;
    top: 120px;
}

.widget {
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
}

.widget h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Popular Items */
.popular-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s;
}

.popular-item:hover {
    transform: translateX(6px);
    opacity: 0.9;
}

.popular-item img {
    width: 60px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-info {
    flex: 1;
}

.popular-info h4 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.popular-info .post-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.views-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Event Items */
.event-card {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(6px);
}

.event-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.event-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 60px 40px;
    margin-top: 100px;
    opacity: 0.7;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 60px 30px;
        gap: 40px;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .slide-overlay {
        padding: 80px 30px;
    }
    
    .slide-overlay h2 {
        font-size: 1.6rem !important;
    }
    
    .widget {
        padding: 24px;
    }
    
    nav {
        flex-direction: row;
        gap: 15px;
    }
    
    .logo span {
        font-size: 1rem;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--glass);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ADMIN MODAL STYLES */
.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlide {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Login Modal */
.login-modal-overlay {
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), #d32f2f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(183, 28, 28, 0.4);
}

.login-header h2 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1.6rem;
    font-weight: 700;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.demo-creds {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
}

.demo-creds small {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.demo-creds div {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.login-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.5rem;
}

.login-header h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.2);
}

.login-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.5);
}

.login-footer {
    margin-top: 16px;
    text-align: center;
}

.demo-creds {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
}

.demo-creds small {
    display: block;
    margin-bottom: 8px;
}

.demo-creds div {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Dashboard Modal */
.dashboard-modal {
    width: 100%;
    max-width: 800px;
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-info h3 {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-role {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-content {
    padding: 32px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.5rem;
}

.dashboard-card h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.dashboard-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.card-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.5);
}

/* Modal Container */
.modal-container {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.2);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-success {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-danger {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* List Styles */
.user-list,
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-card,
.post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.user-card:hover,
.post-card:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-details h4,
.post-header h4 {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-details p,
.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.user-role,
.post-status {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.user-actions,
.post-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* Review Queue */
.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.review-card:hover {
    border-color: var(--primary);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-header h4 {
    color: var(--text-primary);
    margin: 0;
}

.review-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.review-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.review-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.analytics-card h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.analytics-chart {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
}

.analytics-chart h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.bar-container {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.6s ease;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(183, 28, 28, 0.4);
    z-index: 10001;
    animation: toastSlide 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-modal {
        max-width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .user-card,
    .post-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .user-actions,
    .post-actions {
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .chart-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bar-container {
        width: 100%;
    }
}

.post-modal {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ADMIN MODAL - FIXED VISIBILITY */
.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Ensure admin modal is visible when created */
.admin-overlay {
    display: flex !important;
}

.login-modal-overlay,
.dashboard-modal {
    width: 100%;
    max-width: 420px;
    background: var(--glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 0;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-close,
.dashboard-close,
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.login-close:hover,
.dashboard-close:hover,
.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.action-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.5);
}

.action-btn i {
    font-size: 1.1rem;
}

.like-btn {
    background: #e91e63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.like-btn:hover {
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.5);
}

.like-count {
    font-size: 0.8rem;
    font-weight: 700;
}

.modal-visual {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.modal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-article {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-article h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-badge {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.date-badge {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.read-time {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.article-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2, .article-content h3 {
    margin: 30px 0 15px 0;
    color: var(--text-primary);
}

.modal-interactions {
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
}

.share-section {
    margin-bottom: 30px;
}

.share-section h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.share-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-icon {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.share-icon i {
    font-size: 1.2rem;
}

.share-icon.facebook { color: #1877f2; }
.share-icon.twitter { color: #000000; }
.share-icon.whatsapp { color: #25d366; }
.share-icon.linkedin { color: #0077b5; }
.share-icon.native { color: var(--primary); }

.comments-section h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.comment-form {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.comment-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    font-size: 0.95rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.2);
}

.submit-comment {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

.submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.5);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

@keyframes modalSlide {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile Modal */
@media (max-width: 768px) {
    .post-modal {
        max-height: 95vh;
    }
    
    .modal-article h1 {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-visual {
        height: 200px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
