/*
Theme Name: Freelancer Calculator Theme
Theme URI: https://freelancercalculator.com
Author: FreelancerCalculator.com
Author URI: https://freelancercalculator.com
Description: Premium SEO-optimized WordPress theme for the Freelancer Calculator toolkit — featuring hourly rate calculator, time tracker, invoice maker, tax tools, and 10+ freelance tools. Fully responsive with dark/light mode.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freelancer-calculator
Tags: accessibility-ready, custom-menu, translation-ready, two-columns, dark-mode, light-mode

Freelancer Calculator is a complete freelance business toolkit. Calculate rates, track time, generate invoices, and plan your finances — all for free.
*/

/* Reset & Basic Styles */
body {
    margin: 0;
    padding: 0;
}

/* =====================================================
   DESIGN TOKEN SYSTEM
   ===================================================== */
:root {
    /* Typography Scale */
    --font-xs:   0.75rem;    /* 12px */
    --font-sm:   0.875rem;   /* 14px */
    --font-base: 1rem;       /* 16px */
    --font-lg:   1.125rem;   /* 18px */
    --font-xl:   1.25rem;    /* 20px */
    --font-2xl:  1.5rem;     /* 24px */
    --font-3xl:  1.875rem;   /* 30px */
    --font-4xl:  2.25rem;    /* 36px */

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

    /* Letter Spacing */
    --tracking-tight:   -0.05em;
    --tracking-normal:   0em;
    --tracking-wide:     0.025em;
    --tracking-wider:    0.05em;
    --tracking-widest:   0.1em;

    /* Spacing Scale (4px base unit) */
    --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 */
    --space-24: 6rem;     /* 96px */

    /* Border Radii */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-xl:   20px;
    --radius-2xl:  28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 3px hsla(0,0%,0%,0.08);
    --shadow-sm: 0 2px 8px hsla(0,0%,0%,0.12);
    --shadow-md: 0 4px 20px hsla(0,0%,0%,0.16);
    --shadow-lg: 0 8px 40px hsla(0,0%,0%,0.24);
    --shadow-xl: 0 20px 60px hsla(0,0%,0%,0.36);

    /* Transitions */
    --transition-fast:   150ms cubic-bezier(0.4,0,0.2,1);
    --transition-base:   250ms cubic-bezier(0.4,0,0.2,1);
    --transition-slow:   400ms cubic-bezier(0.4,0,0.2,1);
    --transition-bounce: 300ms cubic-bezier(0.34,1.56,0.64,1);

    /* Z-Index Scale */
    --z-below:    -1;
    --z-base:      0;
    --z-raised:   10;
    --z-dropdown: 20;
    --z-sticky:   30;
    --z-overlay:  40;
    --z-modal:    50;
    --z-toast:    60;
}

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

/* Visually hidden (accessibility) */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* =====================================================
   PROSE — Blog Content Styles
   ===================================================== */
.fc-prose h1, .fc-prose h2, .fc-prose h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}
.fc-prose p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
}
.fc-prose ul, .fc-prose ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-5);
}
.fc-prose li {
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}
.fc-prose strong { color: var(--text-primary); font-weight: 600; }
.fc-prose a { color: var(--accent-violet); text-decoration: none; border-bottom: 1px dashed; }
.fc-prose a:hover { color: var(--accent-emerald); }
.fc-prose code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: var(--font-sm);
}
.fc-prose blockquote {
    border-left: 3px solid var(--accent-violet);
    padding-left: var(--space-4);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--text-muted);
}
.fc-prose details {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    background: var(--bg-secondary);
}
.fc-prose details summary {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) 0;
}
.fc-prose details summary::after {
    content: '+';
    font-size: 1.2em;
    color: var(--accent-violet);
    transition: transform var(--transition-fast);
}
.fc-prose details[open] summary::after { content: '−'; }

/* =====================================================
   QUICK ANSWER BOX
   ===================================================== */
.fc-quick-answer {
    border-left: 4px solid var(--accent-violet);
    background: var(--bg-secondary);
    padding: var(--space-4) var(--space-5);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--space-8);
    font-size: var(--font-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
}
.fc-quick-answer::before {
    content: '⚡ Quick Answer';
    display: block;
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--accent-violet);
    margin-bottom: var(--space-2);
}

/* =====================================================
   TABLE OF CONTENTS
   ===================================================== */
.fc-toc {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-8);
}
.fc-toc-title {
    font-weight: 700;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}
.fc-toc ol { padding-left: var(--space-5); margin: 0; }
.fc-toc li { margin-bottom: var(--space-2); }
.fc-toc a { color: var(--text-secondary); text-decoration: none; font-size: var(--font-sm); }
.fc-toc a:hover { color: var(--accent-violet); }

/* =====================================================
   RELATED TOOLS CARDS
   ===================================================== */
.fc-related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
}
.fc-related-tool-card {
    display: flex; flex-direction: column; gap: var(--space-3);
    padding: var(--space-5);
    background: var(--bg-glass);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.fc-related-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(124,58,237,0.3);
}
.fc-related-tool-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-violet);
}
.fc-related-tool-name {
    font-weight: 700;
    font-size: var(--font-sm);
    color: var(--text-primary);
}
.fc-related-tool-desc {
    font-size: var(--font-xs);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}
