/*
Theme Name: Benzinga India
Theme URI: https://benzinga.in
Author: Benzinga India Team
Description: Modern financial news theme inspired by Benzinga, optimized for Indian markets with AI article generation and Google News support.
Version: 1.0.0
License: GPL v2 or later
Text Domain: benzinga-india
*/

/* ===== CSS Custom Properties ===== */
:root {
    /* Colors */
    --primary: #0075CD;
    --primary-dark: #005a9e;
    --accent: #FF6B00;
    --accent-light: #ff8533;
    --success: #00C853;
    --danger: #FF1744;
    --warning: #FFD600;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* Typography */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Layout */
    --container-max: 1400px;
    --sidebar-width: 300px;
    --header-height: 64px;
    --ticker-height: 40px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.main-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    gap: var(--space-6);
    padding: var(--space-6) 0;
}

@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr var(--sidebar-width);
    }
    .main-grid .sidebar-left {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .main-grid .sidebar-right {
        display: none;
    }
}

/* ===== Utility Classes ===== */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray-500); }

.bg-white { background-color: var(--white); }
.bg-gray { background-color: var(--gray-100); }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

/* ===== Components ===== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-light);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: var(--space-4);
}

/* Stock Ticker Badge */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
}

.stock-badge.positive {
    color: var(--success);
}

.stock-badge.negative {
    color: var(--danger);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--primary);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* AI Disclosure */
.ai-disclosure {
    background: var(--gray-100);
    border-left: 4px solid var(--primary);
    padding: var(--space-3) var(--space-4);
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-style: italic;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background: var(--primary);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

/* Author Card */
.author-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.author-info {
    font-size: var(--text-sm);
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.author-role {
    color: var(--gray-500);
}

/* IPO Status Badges */
.ipo-status {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.ipo-status.open {
    background: var(--success);
    color: var(--white);
}

.ipo-status.upcoming {
    background: var(--primary);
    color: var(--white);
}

.ipo-status.closed {
    background: var(--gray-400);
    color: var(--white);
}

.ipo-status.listed {
    background: var(--accent);
    color: var(--white);
}
