/**
 * AumFriday - Global Design System & Master Stylesheet v3.0
 * Modern, responsive, high-contrast design system for Content & Expert Advisory Platform
 */

/* ==========================================================================
   1. DESIGN TOKENS & VARIABLE SYSTEM
   ========================================================================== */
:root {
    /* Brand & Accent Colors */
    --brand-primary: #1877F2;
    --brand-hover: #0866ff;
    --brand-dark: #0f172a;
    --brand-gradient: linear-gradient(135deg, #1877F2 0%, #7c3aed 50%, #ec4899 100%);
    --brand-subtle: #eff6ff;

    /* Status Colors */
    --color-success: #10b981;
    --color-success-bg: #ecfdf5;
    --color-warning: #f59e0b;
    --color-warning-bg: #fffbeb;
    --color-danger: #ef4444;
    --color-danger-bg: #fef2f2;

    /* Neutrals & Surfaces */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-subtle: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;

    /* Fonts */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-display: 'Plus Jakarta Sans', var(--font-ui);

    /* Shadows & Elevation */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.08);

    /* Border Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Layout Constraints */
    --max-width: 1280px;
    --header-height: 70px;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--brand-hover);
}

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

/* ==========================================================================
   3. REUSABLE CONTAINER & GRID LAYOUTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: 30px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   4. BUTTONS & UI INTERACTION CONTROLS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary) !important;
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-surface-subtle);
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
}

.btn-gradient {
    background: var(--brand-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* ==========================================================================
   5. CARDS, BADGES & ELEVATION COMPONENTS
   ========================================================================== */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: var(--brand-subtle);
    color: var(--brand-primary);
}

.badge-gold {
    background: #fef3c7;
    color: #92400e;
}

.badge-green {
    background: var(--color-success-bg);
    color: var(--color-success);
}

/* ==========================================================================
   6. SECTION HEADINGS & ACCENTS
   ========================================================================== */
.section-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: var(--brand-primary);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   7. FORM CONTROLS & INPUTS
   ========================================================================== */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: 14px;
    background: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

/* ==========================================================================
   8. ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; transform: scale(1.02); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}
