/**
 * Article.Pk Brand Identity & Color System
 *
 * This file contains the official brand colors, gradients,
 * and design system variables for Article.Pk.
 *
 * Brand Colors:
 * - Primary Blue: #0052cc (Trust, Professional, Technology)
 * - Success Green: #00c453 (Growth, Success, Money)
 * - Dark Gray: #2a323a (Text, Backgrounds, Depth)
 *
 * Last Updated: 2025-10-29
 */

/* ==========================================
   BRAND COLOR SYSTEM
   ========================================== */

:root {
    /* Primary Brand Colors */
    --brand-blue: #0052cc;
    --brand-blue-hover: #003d99;
    --brand-blue-light: #3377dd;
    --brand-blue-dark: #002d77;

    --brand-green: #00c453;
    --brand-green-hover: #009940;
    --brand-green-light: #33d076;
    --brand-green-dark: #007930;

    --brand-dark: #2a323a;
    --brand-dark-hover: #3a434b;
    --brand-dark-light: #4a535b;
    --brand-dark-darker: #1a1f24;

    /* Primary Color (Override) */
    --primary-color: #0052cc;
    --primary-hover: #003d99;

    /* Success Color */
    --success-color: #00c453;
    --success-hover: #009940;

    /* Dark Color */
    --dark-color: #2a323a;

    /* Semantic Colors */
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Light Backgrounds */
    --light-bg: #f8f9fa;
    --light-bg-alt: #f0f2f5;
    --light-border: #e5e8eb;

    /* Text Colors */
    --text-primary: #1c1c1c;
    --text-secondary: #6c757d;
    --text-muted: #9fa6ad;
    --text-light: #c7d1d9;
    --text-white: #ffffff;

    /* Link Colors */
    --link-color: #0052cc;
    --link-hover: #003d99;
    --link-visited: #551a8b;

    /* ==========================================
       GRADIENT DEFINITIONS
       ========================================== */

    /* Primary Gradients */
    --gradient-primary: linear-gradient(135deg, #0052cc 0%, #00c453 100%);
    --gradient-primary-hover: linear-gradient(135deg, #003d99 0%, #009940 100%);
    --gradient-primary-reverse: linear-gradient(135deg, #00c453 0%, #0052cc 100%);

    /* Blue Gradients */
    --gradient-blue: linear-gradient(135deg, #0052cc 0%, #3377dd 100%);
    --gradient-blue-dark: linear-gradient(135deg, #002d77 0%, #0052cc 100%);

    /* Green Gradients */
    --gradient-green: linear-gradient(135deg, #00c453 0%, #33d076 100%);
    --gradient-green-dark: linear-gradient(135deg, #007930 0%, #00c453 100%);

    /* Dark Gradients */
    --gradient-dark: linear-gradient(135deg, #2a323a 0%, #1a1f24 100%);
    --gradient-dark-light: linear-gradient(135deg, #3a434b 0%, #2a323a 100%);

    /* Overlay Gradients */
    --gradient-overlay-dark: linear-gradient(180deg, transparent 0%, rgba(42, 50, 58, 0.8) 100%);
    --gradient-overlay-light: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 100%);

    /* ==========================================
       SHADOWS & DEPTH
       ========================================== */

    /* Box Shadows */
    --shadow-xs: 0 1px 2px rgba(42, 50, 58, 0.05);
    --shadow-sm: 0 2px 4px rgba(42, 50, 58, 0.08);
    --shadow-md: 0 4px 12px rgba(42, 50, 58, 0.12);
    --shadow-lg: 0 8px 24px rgba(42, 50, 58, 0.15);
    --shadow-xl: 0 12px 40px rgba(42, 50, 58, 0.20);
    --shadow-2xl: 0 20px 60px rgba(42, 50, 58, 0.25);

    /* Colored Shadows */
    --shadow-blue: 0 4px 20px rgba(0, 82, 204, 0.3);
    --shadow-blue-lg: 0 8px 30px rgba(0, 82, 204, 0.4);
    --shadow-green: 0 4px 20px rgba(0, 196, 83, 0.3);
    --shadow-green-lg: 0 8px 30px rgba(0, 196, 83, 0.4);

    /* Text Shadows */
    --text-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --text-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.15);
    --text-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.2);

    /* ==========================================
       SPACING & SIZING
       ========================================== */

    /* Spacing Scale (8px base) */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    --space-20: 5rem;    /* 80px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ==========================================
       TYPOGRAPHY
       ========================================== */

    /* Font Families */
    --font-primary: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-secondary: "Roboto Slab", Georgia, serif;
    --font-mono: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* ==========================================
       TRANSITIONS & ANIMATIONS
       ========================================== */

    /* Transition Durations */
    --duration-fast: 0.15s;
    --duration-base: 0.3s;
    --duration-slow: 0.5s;
    --duration-slower: 0.75s;

    /* Transition Easings */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Common Transitions */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-colors: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    --transition-transform: transform 0.3s ease;
    --transition-opacity: opacity 0.3s ease;

    /* ==========================================
       Z-INDEX SCALE
       ========================================== */

    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 1080;
    --z-fab: 9999;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

/* Background Colors */
.bg-brand-blue { background-color: var(--brand-blue) !important; }
.bg-brand-green { background-color: var(--brand-green) !important; }
.bg-brand-dark { background-color: var(--brand-dark) !important; }
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-dark { background: var(--gradient-dark) !important; }

/* Text Colors */
.text-brand-blue { color: var(--brand-blue) !important; }
.text-brand-green { color: var(--brand-green) !important; }
.text-brand-dark { color: var(--brand-dark) !important; }

/* Gradient Text */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border Colors */
.border-brand-blue { border-color: var(--brand-blue) !important; }
.border-brand-green { border-color: var(--brand-green) !important; }
.border-brand-dark { border-color: var(--brand-dark) !important; }

/* Shadows */
.shadow-brand-blue { box-shadow: var(--shadow-blue) !important; }
.shadow-brand-green { box-shadow: var(--shadow-green) !important; }

/* Hover Effects */
.hover-lift {
    transition: var(--transition-transform);
}
.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale {
    transition: var(--transition-transform);
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(42, 50, 58, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   BRAND LOGO SPECIFICATIONS
   ========================================== */

/**
 * Logo Usage Guidelines:
 *
 * - Primary Logo: Full color on white/light backgrounds
 * - Secondary Logo: White on dark backgrounds
 * - Minimum Size: 120px width
 * - Clear Space: Minimum 20px on all sides
 * - Logo Path: Configured in Admin > Styling
 */

/* ==========================================
   ACCESSIBILITY
   ========================================== */

/* Focus Visible States */
*:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --brand-blue: #0066ff;
        --brand-green: #00ff66;
        --text-primary: #000000;
    }
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
    /* Will be implemented when dark mode is added */
}
