/* Premium custom styles & micro-animations */

:root {
    --color-brand-primary: #4f46e5; /* Indigo */
    --color-brand-secondary: #f43f5e; /* Rose */
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

/* Custom font styles */
.font-serif-premium {
    font-family: var(--font-serif);
}

.font-sans-premium {
    font-family: var(--font-sans);
}

/* Glassmorphism elements */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 228, 231, 0.6);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(228, 228, 231, 0.5);
}

/* Subtle animations & entries */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Delays for entry animations */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Interactive Hover effects */
.hover-card-trigger {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-card-trigger:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Underline slide effect on hover */
.hover-underline-slide {
    position: relative;
}

.hover-underline-slide::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-brand-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-slide:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Decorative background patterns */
.soft-grid-bg {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

/* Premium gradient accents */
.gradient-accent-text {
    background: linear-gradient(135deg, #4f46e5 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f4f4f5;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* --- PROFESSIONAL FINANCIAL NEWS ADDITIONS --- */

/* Scrolling News Ticker Bar */
.ticker-container {
    display: flex;
    overflow: hidden;
    background: #09090b; /* Zinc 950 Dark */
    color: #e4e4e7; /* Zinc 200 */
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #18181b;
}

.ticker-title {
    background: #dc2626; /* Crimson Red badge */
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ticker-title::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 8px solid #dc2626;
    z-index: 5;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-marquee {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroller 25s linear infinite;
}

.ticker-marquee:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    color: #e4e4e7;
    transition: color 0.2s;
}

.ticker-item:hover {
    color: #a78bfa; /* Soft violet on hover */
}

@keyframes ticker-scroller {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Reading Progress Bar (Fixed on Article view) */
.reading-progress-container {
    position: fixed;
    top: 80px; /* Aligns under sticky header (20 * 4px) */
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 49;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #4f46e5, #f43f5e);
    transition: width 0.1s ease-out;
}

/* Broadcap / Dropcap Editorial Style */
.drop-cap::first-letter {
    font-family: var(--font-serif);
    font-size: 4.25rem;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    margin-top: 0.15rem;
    margin-right: 0.55rem;
    color: #4f46e5;
}
