/*
Theme Name: Affvidco Child
Theme URI: https://vidcogroup.com/
Description: Child theme for Affvidco Theme. Child theme for Affvidco Theme. Nest Fix It palette — redesign 2026 rollout.
Author: Vidco Team
Author URI: https://vidcogroup.com/
Template: affvidco
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliatecms-child
*/

/* ==========================================================================
   Affvidco Child — Editorial Indigo Theme
   Override parent design tokens. Higher specificity not needed since the
   stylesheet is enqueued AFTER the parent (see functions.php).
   ========================================================================== */

:root {
    /* Primary — Royal Indigo (replaces parent Teal) */
    --color-primary: #C2410C;
    --color-primary-hover: #9A3412;
    --color-primary-dark: #7C2D12;
    --color-primary-light: #FFEDD5;
    --color-primary-rgb: 194, 65, 12;

    /* Accent — Amber Gold (replaces parent Coral) */
    --color-accent: #2563EB;
    --color-accent-hover: #1D4ED8;
    --color-accent-light: #DBEAFE;

    /* Neutrals — Cool slate (replaces warm beige) */
    --color-text: #0F172A;
    --color-text-secondary: #334155;
    --color-text-muted: #64748B;
    --color-text-subtle: #94A3B8;

    /* Surfaces — Cool off-white with subtle blue undertone */
    --color-bg: #F8FAFC;
    --color-bg-alt: #F1F5F9;
    --color-surface: #FFFFFF;
    --color-surface-raised: #FFFFFF;
    --color-surface-hover: #F1F5F9;

    /* Borders — Cool gray */
    --color-border: #E2E8F0;
    --color-border-subtle: #EDF2F7;
    --color-border-strong: #CBD5E1;

    /* Overlay */
    --color-overlay: rgba(15, 23, 42, 0.55);

    /* Colored Shadows — Indigo + Amber tint */
    --shadow-primary: 0 4px 14px rgba(194, 65, 12, 0.22);
    --shadow-accent: 0 4px 14px rgba(37, 99, 235, 0.22);

    /* Tighter, editorial radii (parent feels softer) */
    --radius-sm: 0.125rem;  /* 2px */
    --radius-md: 0.25rem;   /* 4px */
    --radius-lg: 0.375rem;  /* 6px */
    --radius-xl: 0.5rem;    /* 8px */
    --radius-2xl: 0.75rem;  /* 12px */
    --radius-3xl: 1rem;     /* 16px */

    /* Editorial type — serif headings for differentiation */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Dark mode — Cool deep indigo night */
[data-theme="dark"] {
    --color-primary: #FB923C;
    --color-primary-hover: #FDBA74;
    --color-primary-dark: #F97316;
    --color-primary-light: rgba(251, 146, 60, 0.15);
    --color-primary-rgb: 251, 146, 60;

    --color-accent: #60A5FA;
    --color-accent-hover: #93C5FD;
    --color-accent-light: rgba(96, 165, 250, 0.15);

    --color-text: #F1F5F9;
    --color-text-secondary: #CBD5E1;
    --color-text-muted: #94A3B8;
    --color-text-subtle: #64748B;

    --color-bg: #0B1020;
    --color-bg-alt: #11172A;
    --color-surface: #161D33;
    --color-surface-raised: #1D2540;
    --color-surface-hover: #232C4A;

    --color-border: #2A3454;
    --color-border-subtle: #1E2742;
    --color-border-strong: #3A4670;

    --shadow-primary: 0 4px 14px rgba(251, 146, 60, 0.3);
    --shadow-accent: 0 4px 14px rgba(96, 165, 250, 0.28);
}

/* ==========================================================================
   Editorial Headings — Serif for h1-h3, sans for body
   Single load of Playfair Display from Google Fonts
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

h1, h2, h3,
.site-title,
.entry-title,
.page-title {
    font-family: var(--font-serif);
    letter-spacing: var(--tracking-tight);
}

/* Subtle gradient underline on primary buttons for an editorial accent */
.btn-primary,
.button-primary,
button.acms-btn-primary {
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: 0;
}

.btn-primary:hover,
.button-primary:hover,
button.acms-btn-primary:hover {
    background-image: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary-dark) 100%);
    transform: translateY(-1px);
}

/* Hairline divider style — editorial magazine feel */
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(90deg, transparent, var(--color-border-strong) 50%, transparent);
}
