/*
Theme Name: Iterations
Theme URI: https://iterations.blog
Author: Prashanth
Author URI: https://iterations.blog
Description: A Signal Matrix block theme for technical AI and builder content. IDE-meets-editorial design with dot-grid backgrounds, terminal aesthetics, and asymmetric layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iterations
*/

/* ========================================
   CSS Custom Properties — Dark Mode (Default)
   ======================================== */
:root {
    --deep-slate: #0c0f14;
    --electric-cyan: #22d3ee;
    --warm-gray: #94a3b8;
    --midnight: #1e293b;
    --cyan-dim: rgba(34, 211, 238, 0.15);
    --cyan-glow: rgba(34, 211, 238, 0.3);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --rule-color: rgba(148, 163, 184, 0.15);
    --dot-color: rgba(148, 163, 184, 0.12);
    --surface: #1e293b;
    --surface-hover: #334155;
    --code-bg: rgba(12, 15, 20, 0.6);
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);

    --font-display: 'Space Mono', monospace;
    --font-body: 'Satoshi', sans-serif;
}

/* ========================================
   CSS Custom Properties — Light Mode
   ======================================== */
[data-theme="light"] {
    --deep-slate: #f8fafc;
    --electric-cyan: #0891b2;
    --warm-gray: #64748b;
    --midnight: #e2e8f0;
    --cyan-dim: rgba(8, 145, 178, 0.1);
    --cyan-glow: rgba(8, 145, 178, 0.2);
    --text-primary: #0c0f14;
    --text-secondary: #475569;
    --rule-color: rgba(100, 116, 139, 0.25);
    --dot-color: rgba(100, 116, 139, 0.08);
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --code-bg: #f1f5f9;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Light Mode — Inline Style Overrides
   (WordPress embeds hardcoded hex in style="")
   ======================================== */

/* Background color overrides */
[data-theme="light"] [style*="background-color:#0c0f14"] { background-color: #f8fafc !important; }
[data-theme="light"] [style*="background-color:#1e293b"] { background-color: #e2e8f0 !important; }

/* Text color overrides */
[data-theme="light"] [style*="color:#e2e8f0"] { color: #0c0f14 !important; }
[data-theme="light"] [style*="color:#94a3b8"] { color: #475569 !important; }
[data-theme="light"] [style*="color:#22d3ee"] { color: #0891b2 !important; }
[data-theme="light"] [style*="color:#64748b"] { color: #64748b !important; }

/* Body + site blocks */
[data-theme="light"] body,
[data-theme="light"] .wp-site-blocks {
    background-color: #f8fafc !important;
    color: #0c0f14 !important;
}

/* All headings */
[data-theme="light"] .wp-block-heading {
    color: #0c0f14 !important;
}

/* All paragraphs (except those with explicit accent colors) */
[data-theme="light"] .wp-block-paragraph {
    color: #475569 !important;
}

/* Paragraphs that should stay accent-colored */
[data-theme="light"] .footer-logo-text,
[data-theme="light"] .footer-nav-heading,
[data-theme="light"] .hero-label,
[data-theme="light"] .category-number {
    color: #0891b2 !important;
}

/* Hero stat values + accent spans */
[data-theme="light"] .hero-stat-value,
[data-theme="light"] .hero-headline-accent {
    color: #0891b2 !important;
}

/* Header + footer */
[data-theme="light"] .site-header-group {
    background-color: #f8fafc !important;
    border-bottom-color: #cbd5e1 !important;
}

[data-theme="light"] .site-footer-group {
    background-color: #f8fafc !important;
    border-top-color: #cbd5e1 !important;
}

/* Site title */
[data-theme="light"] .site-logo-text a {
    color: #0891b2 !important;
}

/* Navigation */
[data-theme="light"] .nav-tabs-list .wp-block-navigation-item a {
    color: #475569 !important;
}
[data-theme="light"] .nav-tabs-list .wp-block-navigation-item a:hover {
    color: #0c0f14 !important;
    background-color: rgba(8, 145, 178, 0.06) !important;
}

/* Terminal window */
[data-theme="light"] .terminal-window {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .terminal-titlebar {
    background-color: #f8fafc !important;
    border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .terminal-body {
    color: #0c0f14 !important;
}

[data-theme="light"] .terminal-body p {
    color: #0c0f14 !important;
}

[data-theme="light"] .terminal-status-bar {
    background-color: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
}

/* Syntax highlighting — light mode */
[data-theme="light"] .t-comment { color: #94a3b8 !important; }
[data-theme="light"] .t-keyword { color: #0891b2 !important; }
[data-theme="light"] .t-function { color: #7c3aed !important; }
[data-theme="light"] .t-string { color: #059669 !important; }
[data-theme="light"] .t-operator { color: #475569 !important; }
[data-theme="light"] .t-number { color: #ea580c !important; }
[data-theme="light"] .t-bracket { color: #94a3b8 !important; }

/* Cards */
[data-theme="light"] .category-card,
[data-theme="light"] .post-card,
[data-theme="light"] .featured-post-card {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .category-card:hover,
[data-theme="light"] .post-card:hover,
[data-theme="light"] .featured-post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Category card cyan top border stays */
[data-theme="light"] .category-card {
    border-top-color: #0891b2 !important;
}

/* Post tags */
[data-theme="light"] .post-tag,
[data-theme="light"] .featured-tag {
    background-color: rgba(8, 145, 178, 0.08) !important;
    border-color: #0891b2 !important;
    color: #0891b2 !important;
}

/* Dot-grid for light mode */
[data-theme="light"] body::before {
    background-image: radial-gradient(circle, rgba(100, 116, 139, 0.1) 1px, transparent 1px) !important;
}

/* Newsletter section */
[data-theme="light"] .newsletter-section {
    background-color: #e2e8f0 !important;
    border-top-color: #0891b2 !important;
}

[data-theme="light"] .newsletter-email-field {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0c0f14 !important;
}

/* About section */
[data-theme="light"] .about-stack-item {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    border-left-color: #0891b2 !important;
}

[data-theme="light"] .about-stack-item:hover {
    background-color: #f1f5f9 !important;
}

[data-theme="light"] .about-stack-ring {
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .about-stack-ring-inner {
    border-color: rgba(8, 145, 178, 0.2) !important;
}

[data-theme="light"] .about-stack-ring-core {
    border-color: #0891b2 !important;
    background-color: rgba(8, 145, 178, 0.06) !important;
}

/* Buttons */
[data-theme="light"] .wp-block-button__link {
    background-color: #0891b2 !important;
    color: #ffffff !important;
}

[data-theme="light"] .hero-cta-btn .wp-block-button__link:hover {
    background-color: #0e7490 !important;
}

/* Theme toggle */
[data-theme="light"] .theme-toggle-btn {
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
    color: #0891b2 !important;
    border-color: #0891b2 !important;
    background-color: rgba(8, 145, 178, 0.06) !important;
}

/* Separator rules */
[data-theme="light"] .section-rule {
    border-top-color: #cbd5e1 !important;
}

[data-theme="light"] .hero-rule {
    border-top-color: #cbd5e1 !important;
}

/* Hero accent bar */
[data-theme="light"] .hero-accent-bar::before {
    background: linear-gradient(180deg, #0891b2 0%, rgba(8, 145, 178, 0.3) 100%) !important;
}

/* Logo cursor */
[data-theme="light"] .logo-cursor-span {
    background-color: #0891b2 !important;
}

/* Footer text */
[data-theme="light"] .footer-copyright,
[data-theme="light"] .footer-made-with {
    color: #94a3b8 !important;
}

/* Smooth transition for theme switch */
[data-theme="light"] *,
[data-theme="light"] *::before,
[data-theme="light"] *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ========================================
   Theme Toggle Button
   ======================================== */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--rule-color);
    border-radius: 4px;
    color: var(--warm-gray);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.02em;
}

.theme-toggle-btn:hover {
    color: var(--electric-cyan);
    border-color: var(--electric-cyan);
    background-color: var(--cyan-dim);
}

.theme-toggle-icon {
    font-size: 0.875rem;
    line-height: 1;
}

/* ========================================
   Dot-Grid Background
   ======================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 12px 12px;
    animation: gridShift 20s ease-in-out infinite alternate;
}

@keyframes gridShift {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ========================================
   General Layout
   ======================================== */
.wp-site-blocks {
    position: relative;
    z-index: 1;
}

.wp-site-blocks > footer {
    margin-block-start: 0;
}

/* ========================================
   Header Styles
   ======================================== */
.site-header-group {
    border-bottom: 1px solid var(--rule-color);
    position: relative;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.site-logo-text {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo-text a {
    color: var(--electric-cyan) !important;
    text-decoration: none !important;
}

.logo-cursor-span {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: var(--electric-cyan);
    animation: blink 1.2s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.nav-tabs-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-tabs-list .wp-block-navigation-item {
    position: relative;
}

.nav-tabs-list .wp-block-navigation-item a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--warm-gray);
    text-decoration: none;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    transition: color 0.25s ease, background-color 0.25s ease;
    position: relative;
}

.nav-tabs-list .wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--electric-cyan);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-tabs-list .wp-block-navigation-item a:hover::after {
    width: 100%;
    left: 0;
}

.nav-tabs-list .wp-block-navigation-item a:hover {
    color: var(--text-primary);
    background-color: rgba(34, 211, 238, 0.05);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}

.hero-section > .wp-block-group__inner-container,
.hero-section > div {
    width: 100%;
}

.hero-columns {
    align-items: center !important;
}

.hero-accent-bar {
    position: relative;
    padding-left: 2rem !important;
}

.hero-accent-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--electric-cyan) 0%, rgba(34, 211, 238, 0.3) 100%);
    border-radius: 2px;
}

.hero-label {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-headline {
    font-family: var(--font-display) !important;
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 700;
    line-height: 1.1 !important;
}

.hero-headline-accent {
    color: var(--electric-cyan);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem !important;
    color: var(--warm-gray);
    line-height: 1.7;
    max-width: 480px;
}

.hero-stats-line {
    font-family: var(--font-display) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.04em;
}

.hero-stat-value {
    color: var(--electric-cyan);
    font-weight: 700;
}

.hero-stat-sep {
    color: rgba(148, 163, 184, 0.3);
}

.hero-rule {
    width: 60px;
    border: none;
    border-top: 1px solid var(--rule-color);
}

.hero-cta-btn .wp-block-button__link {
    font-family: var(--font-display) !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 2px !important;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
}

.hero-cta-btn .wp-block-button__link:hover {
    background-color: #06b6d4 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

/* ========================================
   Terminal Window
   ======================================== */
.terminal-window {
    background-color: var(--midnight);
    border: 1px solid var(--rule-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(34, 211, 238, 0.05);
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background-color: var(--code-bg);
    border-bottom: 1px solid var(--rule-color);
}

.terminal-dot-red,
.terminal-dot-yellow,
.terminal-dot-green {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot-red { background-color: #ef4444; }
.terminal-dot-yellow { background-color: #eab308; }
.terminal-dot-green { background-color: #22c55e; }

.terminal-title-text {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    color: var(--warm-gray) !important;
    margin-left: 0.5rem;
    letter-spacing: 0.02em;
}

.terminal-body {
    padding: 1.25rem;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    line-height: 1.9;
}

.terminal-body p {
    font-family: var(--font-display) !important;
    font-size: 0.8125rem !important;
    line-height: 1.9 !important;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.t-comment { color: #64748b; }
.t-keyword { color: var(--electric-cyan); }
.t-function { color: #a78bfa; }
.t-string { color: #34d399; }
.t-operator { color: var(--warm-gray); }
.t-number { color: #fb923c; }
.t-bracket { color: #64748b; }

.terminal-status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-top: 1px solid var(--rule-color);
    background-color: rgba(12, 15, 20, 0.4);
}

.status-dot-live {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

.status-label {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    color: var(--warm-gray) !important;
    letter-spacing: 0.02em;
}

/* ========================================
   Section Dividers
   ======================================== */
.section-rule {
    border: none;
    border-top: 1px solid var(--rule-color);
}

/* ========================================
   Featured Post Section
   ======================================== */
.featured-post-card {
    background-color: var(--surface) !important;
    border: 1px solid var(--rule-color);
    border-radius: 6px;
    padding: 3rem !important;
    transition: border-color 0.3s ease;
}

.featured-post-card:hover {
    border-color: var(--electric-cyan);
}

.featured-tag {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--electric-cyan);
    border-radius: 2px;
    display: inline-block;
}

.reading-time {
    font-family: var(--font-display) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.02em;
}

[data-theme="light"] .featured-post-card {
    background-color: #ffffff !important;
    border-color: var(--rule-color);
}

/* ========================================
   Category Grid
   ======================================== */
.category-card {
    background-color: var(--surface) !important;
    border: 1px solid var(--rule-color);
    border-top: 3px solid var(--electric-cyan) !important;
    border-radius: 0 0 6px 6px;
    padding: 2rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category-number {
    font-family: var(--font-display) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em;
}

.category-name {
    font-family: var(--font-display) !important;
    line-height: 1.3 !important;
}

.category-desc {
    font-size: 0.9375rem !important;
    line-height: 1.6;
}

.category-count {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ========================================
   Recent Posts Grid
   ======================================== */
.post-card {
    background-color: var(--surface) !important;
    border: 1px solid var(--rule-color);
    border-radius: 6px;
    padding: 2rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(34, 211, 238, 0.3);
}

.post-tag {
    font-family: var(--font-display) !important;
    font-size: 0.625rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    background-color: var(--cyan-dim);
    border-radius: 2px;
    display: inline-block;
}

.post-card-title {
    font-family: var(--font-display) !important;
    font-size: 1.125rem !important;
    line-height: 1.3 !important;
}

.post-excerpt {
    font-size: 0.9375rem !important;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.02em;
}

/* ========================================
   About / Builder Section
   ======================================== */
.about-section {
    position: relative;
}

.about-bio-text {
    font-size: 1.0625rem !important;
    line-height: 1.7;
}

.about-stat-label {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-stat-value {
    font-family: var(--font-display) !important;
    font-size: 1rem !important;
}

.about-stack-title {
    font-family: var(--font-display) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.about-stack-item {
    background-color: var(--surface);
    border: 1px solid var(--rule-color);
    border-left: 3px solid var(--electric-cyan);
    border-radius: 0 4px 4px 0;
    padding: 0.75rem 1.25rem !important;
    font-family: var(--font-display) !important;
    font-size: 0.8125rem !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.about-stack-item:hover {
    background-color: var(--surface-hover);
    border-left-color: #06b6d4;
}

.about-stack-ring {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid var(--rule-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.about-stack-ring-inner {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-stack-ring-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--electric-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cyan-dim);
}

.ring-label {
    font-family: var(--font-display) !important;
    font-size: 0.625rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}

/* ========================================
   Newsletter CTA
   ======================================== */
.newsletter-section {
    background-color: var(--midnight) !important;
    border-top: 3px solid var(--electric-cyan);
    position: relative;
}

.newsletter-heading {
    font-family: var(--font-display) !important;
}

.newsletter-desc {
    font-size: 1.0625rem !important;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-input-row {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
    align-items: stretch;
}

.newsletter-email-field {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    background-color: var(--deep-slate);
    border: 1px solid var(--rule-color);
    border-radius: 2px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.25s ease;
}

.newsletter-email-field:focus {
    border-color: var(--electric-cyan);
}

.newsletter-email-field::placeholder {
    color: var(--warm-gray);
}

.newsletter-cta-btn .wp-block-button__link {
    font-family: var(--font-display) !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 2px !important;
}

.newsletter-terminal-hint {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.05em;
}

/* ========================================
   Footer Styles
   ======================================== */
.site-footer-group {
    border-top: 1px solid var(--rule-color);
}

.footer-logo-text {
    font-family: var(--font-display) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.9375rem !important;
    line-height: 1.6;
}

.footer-nav-heading {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-copyright {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.02em;
}

.footer-made-with {
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.02em;
}

/* ========================================
   Page Title
   ======================================== */
.page-title-section {
    border-bottom: 1px solid var(--rule-color);
}

.page-title-section .wp-block-post-title {
    font-family: var(--font-display) !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700;
    line-height: 1.1;
}

/* ========================================
   Equal-Height Card Layout
   ======================================== */
.equal-cards > .wp-block-column {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.equal-cards .cta-bottom {
    margin-top: auto;
    justify-content: center;
}

/* ========================================
   Entrance Animations
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.7s ease forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   Staggered Children
   ======================================== */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   Hover Effects
   ======================================== */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Scroll-Triggered Reveals
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Terminal Line Reveal
   ======================================== */
.terminal-line-reveal {
    opacity: 0;
    animation: terminalReveal 0.4s ease-out forwards;
}

.terminal-line-reveal:nth-child(1) { animation-delay: 0.9s; }
.terminal-line-reveal:nth-child(2) { animation-delay: 1.05s; }
.terminal-line-reveal:nth-child(3) { animation-delay: 1.2s; }
.terminal-line-reveal:nth-child(4) { animation-delay: 1.35s; }
.terminal-line-reveal:nth-child(5) { animation-delay: 1.5s; }
.terminal-line-reveal:nth-child(6) { animation-delay: 1.65s; }
.terminal-line-reveal:nth-child(7) { animation-delay: 1.8s; }
.terminal-line-reveal:nth-child(8) { animation-delay: 1.95s; }
.terminal-line-reveal:nth-child(9) { animation-delay: 2.1s; }
.terminal-line-reveal:nth-child(10) { animation-delay: 2.25s; }
.terminal-line-reveal:nth-child(11) { animation-delay: 2.4s; }

@keyframes terminalReveal {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

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

    body::before {
        animation: none;
        opacity: 0.8;
    }

    .logo-cursor-span {
        animation: none;
        opacity: 1;
    }

    .status-dot-live {
        animation: none;
        box-shadow: none;
    }

    .animate-on-scroll,
    .fade-up,
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .stagger-children > *,
    .terminal-line-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   Editor: Keep animated content visible
   ======================================== */
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .fade-in,
.editor-styles-wrapper .slide-in-left,
.editor-styles-wrapper .slide-in-right,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > *,
.editor-styles-wrapper .terminal-line-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
    .hero-section {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 0.75rem;
    }

    .nav-tabs-list {
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: center;
    }

    .hero-accent-bar::before {
        left: -1rem;
    }

    .newsletter-input-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem !important;
    }

    .nav-tabs-list .wp-block-navigation-item a {
        padding: 0.4rem 0.75rem;
        font-size: 0.6875rem;
    }

    .terminal-body {
        font-size: 0.6875rem;
        padding: 1rem;
    }

    .terminal-body p {
        font-size: 0.6875rem !important;
    }
}

/* ========================================
   Dynamic Post Query Styles
   ======================================== */
.wp-block-post-title a {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}
.wp-block-post-title a:hover {
    color: #22d3ee !important;
}
[data-theme="light"] .wp-block-post-title a {
    color: #0c0f14 !important;
}
[data-theme="light"] .wp-block-post-title a:hover {
    color: #0891b2 !important;
}
.wp-block-post-terms a {
    color: inherit !important;
    text-decoration: none !important;
}
.wp-block-post-template.is-layout-grid {
    gap: 1.5rem !important;
}
