/* assets/css/news.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Roboto+Condensed:wght@400;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --brand-primary: #7e22ce;
    --brand-secondary: #4f46e5;
    --bg-dark: #0f172a;
    --bg-light: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
}

/* Base Styles */
html, body { 
    background-color: var(--bg-dark) !important; 
    color: #cbd5e1 !important; 
    font-family: 'Outfit', sans-serif; 
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Typography */
.font-sans-safe { font-family: 'Outfit', sans-serif; }
.font-serif-brand { font-family: 'Playfair Display', serif; }
.font-serif-body { font-family: 'Merriweather', serif; }

h1, h2, h3 { color: white; }

/* Modern Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Gradient Utilities */
.bg-gradient-brand { background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%); }
.text-gradient-brand { 
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Header Component */
.news-brand { 
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white; 
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 0.6rem 1.2rem;
    line-height: 1;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(126, 34, 206, 0.3);
}

.sticky-nav { 
    position: sticky; 
    top: 4rem; 
    z-index: 40;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

/* Article Card Style */
.article-card {
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
    transition: all 0.3s ease;
}
.article-card:hover h3 { color: var(--brand-secondary); }

.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }

/* Article Content Styling */
.ql-editor {
    font-family: 'Merriweather', serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #e2e8f0;
}
.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}

/* Quill Dark Theme Overrides */
.ql-toolbar.ql-snow {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid var(--card-border) !important;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}
.ql-container.ql-snow {
    border: 1px solid var(--card-border) !important;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.3) !important;
}
.ql-snow .ql-stroke { stroke: #cbd5e1 !important; }
.ql-snow .ql-fill, .ql-snow .ql-stroke.ql-fill { fill: #cbd5e1 !important; }
.ql-snow .ql-picker { color: #cbd5e1 !important; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}
.animate-on-scroll.is-visible {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hover States */
.hover-lift {
    transition: transform 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
}

/* Form Styles */
input, textarea, .ql-container {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid var(--card-border) !important;
    color: white !important;
    transition: all 0.2s ease;
}
input:focus, textarea:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 4px rgba(126, 34, 206, 0.15) !important;
}

/* Specific to Review Queue & Analytics */
.stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
}

/* Student Themeable Classes */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2rem;
}

.btn-primary {
    background: var(--brand-primary);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.tag {
    background: var(--brand-secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}
