/* ==========================================================
   Chronicle Editorial Platform - Global Modern Styles
   ========================================================== */

:root {
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-accent: #f43f5e;
}

body {
    font-family: var(--font-sans);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.font-serif {
    font-family: var(--font-serif);
}

/* Glassmorphism & Modern Blurs */
.glass-panel {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Editorial Hero & Blog Cards */
.editorial-card {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.editorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.06);
}

.card-img-zoom {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-card:hover .card-img-zoom {
    transform: scale(1.05);
}

/* Category Filter Pills */
.filter-pill {
    transition: all 0.2s ease;
}

.filter-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Access Control Preview Gate */
.preview-gate-container {
    position: relative;
    overflow: hidden;
}

.preview-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2rem;
    backdrop-filter: blur(2px);
}

.dark .preview-fade-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 40%, rgba(15, 23, 42, 1) 100%);
}

/* Collaborative Discussion Thread */
.discussion-bubble {
    position: relative;
    border-radius: 1.25rem;
    transition: all 0.2s ease;
}

.observation-badge {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
}

.badge-headline { background: #e0e7ff; color: #3730a3; }
.badge-content { background: #dbeafe; color: #1e40af; }
.badge-fact_check { background: #fef3c7; color: #92400e; }
.badge-editorial_approval { background: #dcfce7; color: #166534; }
.badge-general { background: #f1f5f9; color: #475569; }

/* Custom Carousel Ad Styling */
.carousel-track {
    display: flex;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-slide {
    scroll-snap-align: start;
    flex: 0 0 100%;
}

/* Modals */
.modal-overlay {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    transition: opacity 0.25s ease;
}

/* Toast container */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
