/**
 * FameData Unified Premium Stylesheet
 * Components: Header, Sidebar, Page, Article, Footer
 *themes/famedata/style.css
 */

/* --- 1. Base & Global Refinements --- */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f8fafc; 
    color: #202122;
    margin: 0;
}

/* --- 2. Typography & Prose (Quill Content Fixes) --- */
.page-container { max-width: 900px; margin: 0 auto; }

/* Force Heading Visibility & Style */
.prose h1, .prose h2, .prose h3 {
    display: block !important;
    font-family: serif !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    font-style: italic !important;
}

/* Specific H2 Standard */
.prose h2 {
    font-size: 1.875rem !important;
    font-weight: 800 !important;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
}

/* Paragraph Spacing Fix */
.prose p {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.8;
    color: #475569;
}

/* Quill/Editor Specific Spacing */
.ql-editor h2 { margin-top: 2rem; }

/* Premium Blockquote Styling */
.prose blockquote {
    position: relative;
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-left: 4px solid #2563eb;
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #334155;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.03);
}

.prose blockquote::before {
    content: "\201C";
    position: absolute;
    top: -10px; left: 15px;
    font-size: 5rem; font-family: serif;
    color: #2563eb; opacity: 0.1; line-height: 1;
}

/* --- 3. Layout Components (Cards) --- */
.premium-card, .article-card {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    border-radius: 1.5rem;
    overflow: hidden;
}

.page-header-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* --- 4. Site Header --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-icon-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #475569; font-size: 18px;
    transition: background 0.2s; border: none; background: transparent; cursor: pointer;
}
.header-icon-btn:hover { background: #f1f5f9; color: #2563eb; }
.logo-img { height: 32px; width: auto; }
.user-avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #e2e8f0; }

/* --- 5. Sidebar Drawer --- */
.commons-drawer-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
    z-index: 2000; display: none; backdrop-filter: blur(4px);
}
.commons-drawer {
    position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
    background: #fff; z-index: 2001; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px; display: flex; flex-direction: column;
}
.drawer-open { overflow: hidden; } /* Prevents body scroll when open */
.drawer-open .commons-drawer { transform: translateX(320px); }
.drawer-open .commons-drawer-overlay { display: block; }

.drawer-nav-item {
    display: flex; align-items: center; gap: 16px; padding: 12px 16px;
    border-radius: 12px; color: #475569; text-decoration: none;
    font-weight: 700; font-size: 14px; transition: all 0.2s;
}
.drawer-nav-item i { width: 20px; text-align: center; font-size: 16px; }
.drawer-nav-item:hover { background: #f1f5f9; color: #2563eb; }
.drawer-nav-item.active { background: #eff6ff; color: #2563eb; }

/* --- 6. Site Footer --- */
.site-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 40px 0;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-copy { color: #94a3b8; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-brand-tag { font-size: 10px; font-weight: 800; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.2em; }

/* --- 7. Print Utilities --- */
@media print {
    .no-print, .site-header, .site-footer, .commons-drawer-overlay, .commons-drawer { display: none !important; }
    .premium-card, .article-card { border: none !important; box-shadow: none !important; }
    body { background: white; }
}