/* ==========================================================================
   Developer CV Theme — Global CSS
   Animations, Responsive, Utilities & Visual Polish
   Colors aligned with theme.json palette
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens) — from theme.json
   -------------------------------------------------------------------------- */
:root {
    /* Colors — Dark Theme (matching theme.json) */
    --color-bg:          #0a0a0a;
    --color-bg-alt:      #1e293b;
    --color-surface:     #1a1a2e;
    --color-border:      #2a2a3e;

    --color-text:        #f8fafc;
    --color-text-muted:  #94a3b8;
    --color-text-dim:    #64748b;
    --color-white:       #ffffff;

    --color-accent:      #3b82f6;
    --color-accent-dark: #2563eb;
    --color-accent-light:#60a5fa;
    --color-accent-glow: rgba(59, 130, 246, 0.35);

    --color-purple:      #8b5cf6;

    /* Typography (matching theme.json) */
    --font-sans:  Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Spacing */
    --section-padding-y: 60px;
    --container-px:      16px;

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Radius */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-pill: 9999px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* Custom Scrollbar — Webkit */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Custom Scrollbar — Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-bg);
}

/* --------------------------------------------------------------------------
   Typography Base
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.2;
    color: var(--color-white);
    font-weight: 700;
}

p {
    margin-top: 0;
    color: var(--color-text-muted);
}

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

a:hover {
    color: var(--color-accent-light);
}

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

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typewriter {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes blink-caret {
    0%, 100% {
        border-color: transparent;
    }
    50% {
        border-color: var(--color-accent);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--color-accent-glow);
    }
    50% {
        box-shadow: 0 0 20px var(--color-accent-glow), 0 0 40px rgba(59, 130, 246, 0.15);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* --------------------------------------------------------------------------
   Animation Utility Classes
   -------------------------------------------------------------------------- */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out both;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out both;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out both;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out both;
}

.animate-pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Typewriter effect — apply to an inline element with known content width */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-accent);
    animation:
        typewriter 2.5s steps(40, end) 0.5s both,
        blink-caret 0.75s step-end infinite;
}

/* --------------------------------------------------------------------------
   Hover Effects — Cards
   -------------------------------------------------------------------------- */
.card,
.cv-card,
[class*="wp-block-group"].is-style-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.card:hover,
.cv-card:hover,
[class*="wp-block-group"].is-style-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Hover Effects — Buttons
   -------------------------------------------------------------------------- */
.btn,
.wp-block-button__link,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
    text-decoration: none;
}

.btn-primary,
.wp-block-button__link {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background-color: var(--color-accent-dark);
    transform: scale(1.02);
    box-shadow: 0 4px 15px var(--color-accent-glow);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent-light);
    border: 1px solid var(--color-accent);
}

.btn-outline:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Hover Effects — Animated Underline Links
   -------------------------------------------------------------------------- */
.link-underline {
    position: relative;
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
    border-radius: 1px;
    transition: width var(--transition-base);
}

.link-underline:hover::after {
    width: 100%;
}

/* Navigation links with animated underline */
.nav-link {
    position: relative;
    display: inline-block;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transition: width var(--transition-base), left var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* WordPress navigation hover effects */
.wp-block-navigation a {
    position: relative;
    transition: color var(--transition-fast);
}

.wp-block-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transition: width var(--transition-base), left var(--transition-base);
}

.wp-block-navigation a:hover::after,
.wp-block-navigation a:focus::after,
.wp-block-navigation .current-menu-item a::after {
    width: 100%;
    left: 0;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

/* Section Padding */
.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glass Effect (Glassmorphism) */
.glass-effect {
    background: rgba(18, 18, 26, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

/* Tag Pill */
.tag-pill {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent-light);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.tag-pill:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
}

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

/* 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;
}

/* Text utilities */
.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-text-muted); }
.text-dim     { color: var(--color-text-dim); }
.text-center  { text-align: center; }
.text-mono    { font-family: var(--font-mono); }

/* Spacing utilities */
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-xs { margin-bottom: 8px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.mb-xl { margin-bottom: 64px; }

/* Flex utilities */
.flex          { display: flex; }
.flex-wrap     { flex-wrap: wrap; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.gap-xs        { gap: 6px; }
.gap-sm        { gap: 12px; }
.gap-md        { gap: 20px; }
.gap-lg        { gap: 32px; }

/* --------------------------------------------------------------------------
   Header / Site Header Enhancements
   -------------------------------------------------------------------------- */
.site-header {
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Hamburger Menu (Mobile) — for custom nav implementations
   -------------------------------------------------------------------------- */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition:
        transform var(--transition-base),
        opacity var(--transition-fast);
    transform-origin: center;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* WordPress overlay menu dark styling */
.wp-block-navigation__responsive-container.is-menu-open {
    background-color: rgba(10, 10, 15, 0.97) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item a:hover {
    color: var(--color-accent);
}

/* Hamburger icon color override */
.wp-block-navigation__responsive-container-open svg {
    fill: var(--color-text);
}

/* --------------------------------------------------------------------------
   Hero Section Enhancements
   -------------------------------------------------------------------------- */
.hero-section {
    flex-direction: column;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Section Headings
   -------------------------------------------------------------------------- */
.section-heading {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.section-subheading {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Grid Layout Utilities
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.site-footer p {
    font-size: 0.875rem;
    color: var(--color-text-dim);
}

/* ==========================================================================
   RESPONSIVE — Tablet (>= 768px)
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --section-padding-y: 80px;
        --container-px: 24px;
    }

    /* Hero */
    .hero-section h1,
    .hero h1 {
        font-size: 3rem;
    }

    /* Section headings */
    .section-heading {
        font-size: 2rem;
    }

    /* Grid — 2 columns */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Cards */
    .card,
    .cv-card,
    [class*="wp-block-group"].is-style-card {
        padding: 28px;
    }
}

/* ==========================================================================
   RESPONSIVE — Desktop (>= 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    :root {
        --section-padding-y: 100px;
        --container-px: 32px;
    }

    /* Hero */
    .hero-section h1,
    .hero h1 {
        font-size: 3.75rem;
    }

    /* Section headings */
    .section-heading {
        font-size: 2.25rem;
    }

    /* Grid — 3 columns where needed */
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    /* Cards */
    .card,
    .cv-card,
    [class*="wp-block-group"].is-style-card {
        padding: 32px;
    }
}

/* ==========================================================================
   RESPONSIVE — Large Desktop (>= 1280px)
   ========================================================================== */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}

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

/* ==========================================================================
   WordPress Block Overrides — Dark Theme Compatibility
   ========================================================================== */

/* General block text */
.wp-block-group {
    color: var(--color-text);
}

/* Separator */
.wp-block-separator {
    border-color: var(--color-border);
    opacity: 1;
}

/* Code block */
.wp-block-code {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text);
    overflow-x: auto;
}

/* Quote block */
.wp-block-quote {
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    margin-left: 0;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Table block */
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    color: var(--color-text);
}

.wp-block-table th {
    background: var(--color-surface);
    font-weight: 600;
}

/* Image block rounded corners */
.wp-block-image img {
    border-radius: var(--radius-md);
}

/* Block editor color utility classes */
.has-primary-color              { color: var(--color-accent) !important; }
.has-primary-dark-color         { color: var(--color-accent-dark) !important; }
.has-background-color           { color: var(--color-bg) !important; }
.has-text-color-color           { color: var(--color-text) !important; }
.has-text-muted-color           { color: var(--color-text-muted) !important; }

.has-primary-background-color       { background-color: var(--color-accent) !important; }
.has-primary-dark-background-color  { background-color: var(--color-accent-dark) !important; }
.has-background-background-color    { background-color: var(--color-bg) !important; }
.has-background-alt-background-color{ background-color: var(--color-bg-alt) !important; }
.has-surface-background-color       { background-color: var(--color-surface) !important; }
.has-border-background-color        { background-color: var(--color-border) !important; }

/* ==========================================================================
   IntersectionObserver — Scroll‑triggered Animation States
   Used by assets/js/scroll-animations.js
   Only transform + opacity for GPU‑accelerated, layout‑safe animation
   ========================================================================== */

/* --------------------------------------------------------------------------
   data-animate initial (hidden) state
   -------------------------------------------------------------------------- */
.dcv-animate-init {
    opacity: 0;
    will-change: opacity, transform;
}

.dcv-animate-init[data-animate="fade-in"] {
    transform: none;
}

.dcv-animate-init[data-animate="slide-up"] {
    transform: translateY(30px);
}

.dcv-animate-init[data-animate="slide-left"] {
    transform: translateX(-40px);
}

.dcv-animate-init[data-animate="slide-right"] {
    transform: translateX(40px);
}

.dcv-animate-init[data-animate="scale-in"] {
    transform: scale(0.92);
}

/* --------------------------------------------------------------------------
   data-animate active (visible) state
   -------------------------------------------------------------------------- */
.dcv-animate-active {
    opacity: 1 !important;
    transform: none !important;
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Respect will-change cleanup after animation completes */
.dcv-animate-active {
    will-change: auto;
}

/* --------------------------------------------------------------------------
   Reduced motion: show everything immediately, no animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .dcv-animate-init {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Block Styles — Registered in functions.php
   ========================================================================== */

/* Gradient Text heading style (core/heading — is-style-gradient-text) */
.wp-block-heading.is-style-gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Monospace paragraph style (core/paragraph — is-style-mono) */
.wp-block-paragraph.is-style-mono {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-accent-light);
    letter-spacing: 0.02em;
}

/* Card style for groups (core/group — is-style-card)
   Already styled above in the "Hover Effects — Cards" section */

/* ==========================================================================
   Additional Utility Classes
   ========================================================================== */

/* Text alignment */
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Display utilities */
.d-block         { display: block; }
.d-inline-block  { display: inline-block; }
.d-none          { display: none; }
.d-flex          { display: flex; }
.d-grid          { display: grid; }

/* Visibility — responsive hide/show */
.hide-mobile    { /* shown by default */ }
.show-mobile    { display: none; }

@media (max-width: 767px) {
    .hide-mobile  { display: none !important; }
    .show-mobile  { display: block !important; }
}

.hide-tablet    { /* shown by default */ }
.show-tablet    { display: none; }

@media (min-width: 768px) and (max-width: 1023px) {
    .hide-tablet  { display: none !important; }
    .show-tablet  { display: block !important; }
}

.hide-desktop   { /* shown by default */ }
.show-desktop   { display: none; }

@media (min-width: 1024px) {
    .hide-desktop { display: none !important; }
    .show-desktop { display: block !important; }
}

/* Additional spacing — padding */
.pt-0  { padding-top: 0; }
.pb-0  { padding-bottom: 0; }
.px-0  { padding-left: 0; padding-right: 0; }
.py-0  { padding-top: 0; padding-bottom: 0; }
.p-sm  { padding: 16px; }
.p-md  { padding: 24px; }
.p-lg  { padding: 40px; }

/* Additional spacing — margin */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mt-xl { margin-top: 64px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Width constraints */
.w-full   { width: 100%; }
.max-w-sm { max-width: 640px; }
.max-w-md { max-width: 800px; }
.max-w-lg { max-width: 1024px; }
.max-w-xl { max-width: 1200px; }

/* Flex direction */
.flex-col     { flex-direction: column; }
.flex-row     { flex-direction: row; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; top: 0; }

/* Border utilities */
.border         { border: 1px solid var(--color-border); }
.border-accent  { border-color: var(--color-accent); }
.rounded-sm     { border-radius: var(--radius-sm); }
.rounded-md     { border-radius: var(--radius-md); }
.rounded-lg     { border-radius: var(--radius-lg); }
.rounded-pill   { border-radius: var(--radius-pill); }
.rounded-full   { border-radius: 50%; }

/* Shadow utilities (matching theme.json custom.shadow) */
.shadow-sm   { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.shadow-md   { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.shadow-lg   { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.shadow-glow { box-shadow: 0 0 20px rgba(59, 130, 246, 0.25); }

/* Opacity */
.opacity-0   { opacity: 0; }
.opacity-50  { opacity: 0.5; }
.opacity-75  { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* ==========================================================================
   Header — Scrolled state enhancements (applied by JS)
   ========================================================================== */
.site-header,
header.wp-block-template-part {
    transition:
        background-color var(--transition-base),
        box-shadow var(--transition-base),
        -webkit-backdrop-filter var(--transition-base),
        backdrop-filter var(--transition-base);
}

.site-header.scrolled,
header.wp-block-template-part.scrolled {
    background-color: rgba(10, 10, 15, 0.85) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Focus styles — Accessibility
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==========================================================================
   Print styles
   ========================================================================== */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .site-footer,
    .wp-block-navigation {
        display: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .dcv-animate-init {
        opacity: 1 !important;
        transform: none !important;
    }
}
