/* Phronesis Social - Brand Style Guide Variables */
/* Version 1.0 - Updated with Confiteria Script */

/* ===== GOOGLE FONTS IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Confiteria Script - hosted locally or via font service */
/* Note: Add Confiteria Script font files to wwwroot/fonts/ and update @font-face */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* ===== PRIMARY BRAND COLORS ===== */
    --color-mediterranean-blue: #2C5F8D;      /* Primary brand color, CTAs, links */
    --color-olive-gold: #C9A961;              /* Secondary, accents, hover states */
    --color-marble-white: #F8F9FA;            /* Backgrounds, cards, light surfaces */
    --color-stone-gray: #6C757D;              /* Body text, secondary information */
    --color-charcoal: #212529;                /* Primary text, headings */

    /* ===== EXTENDED PALETTE (Status & Feedback) ===== */
    --color-success: #28A745;                 /* Success messages, positive metrics */
    --color-warning: #FFC107;                 /* Warnings, cautions, pending */
    --color-error: #DC3545;                   /* Errors, destructive actions */
    --color-info: #17A2B8;                    /* Information, tips, notifications */

    /* ===== NEUTRAL COLORS ===== */
    --color-white: #FFFFFF;
    --color-border-light: #E9ECEF;            /* Card borders */
    --color-border-input: #DEE2E6;            /* Input borders */

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

    /* Font Families */
    --font-display: 'confiteria-script', cursive, serif;  /* For "Phronesis", hero headlines, pull quotes */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Font Sizes (using rem for scalability) */
    --font-size-h1: 3rem;          /* 48px - Hero headlines */
    --font-size-h2: 2.25rem;       /* 36px - Major sections */
    --font-size-h3: 1.75rem;       /* 28px - Subsections */
    --font-size-h4: 1.5rem;        /* 24px - Card titles */
    --font-size-h5: 1.25rem;       /* 20px - Small headings */
    --font-size-h6: 1.125rem;      /* 18px - Smallest heading */

    --font-size-body-large: 1.125rem;  /* 18px */
    --font-size-body: 1rem;            /* 16px */
    --font-size-body-small: 0.875rem;  /* 14px */
    --font-size-caption: 0.75rem;      /* 12px */

    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-heading: 1.2;
    --line-height-body: 1.6;
    --line-height-caption: 1.4;

    /* ===== SPACING (8px baseline grid) ===== */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-xxl: 4rem;     /* 64px */

    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.5rem;     /* 8px - inputs, small buttons */
    --radius-md: 0.75rem;    /* 12px - cards */
    --radius-lg: 1rem;       /* 16px - large cards */

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 95, 141, 0.12);    /* Mediterranean Blue tint */
    --shadow-lg: 0 8px 24px rgba(44, 95, 141, 0.16);

    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* ===== Z-INDEX LAYERS ===== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== GLOBAL TYPOGRAPHY STYLES ===== */
body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-charcoal);
    background-color: var(--color-marble-white);
}

h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-sm);
    color: var(--color-charcoal);
}

/* Use Confiteria Script for main headings (Phronesis branding) */
h1, h2 {
    font-family: var(--font-display);
}

/* Use Inter for smaller headings (more functional) */
h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: var(--font-weight-semibold);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

h6 {
    font-size: var(--font-size-h6);
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--color-olive-gold);
}

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

/* Text Colors */
.text-primary { color: var(--color-mediterranean-blue); }
.text-secondary { color: var(--color-olive-gold); }
.text-muted { color: var(--color-stone-gray); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }

/* Background Colors */
.bg-primary { background-color: var(--color-mediterranean-blue); }
.bg-secondary { background-color: var(--color-olive-gold); }
.bg-marble { background-color: var(--color-marble-white); }
.bg-white { background-color: var(--color-white); }

/* Spacing Utilities */
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* Display Font Class (for philosophical quotes, branding) */
.font-display {
    font-family: var(--font-display);
}

/* Container */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}
