/*
Theme Name: LensLabHQ
Theme URI: https://lenslabhq.com
Author: LensLabHQ
Author URI: https://lenslabhq.com
Description: A professional photography education theme for lens comparisons, tutorials, and photography tools. Clean, modern design with focus on visual content.
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: lenslabhq
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
*/

/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
    /* Primary Colors */
    --lens-black: #1a1a1a;
    --focus-red: #e63946;
    --focus-red-hover: #c1121f;
    --aperture-blue: #457b9d;
    --golden-hour: #f4a261;
    
    /* Neutrals */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --subtle-gray: #e9ecef;
    --text-secondary: #6c757d;
    --studio: #fafafa;
    --card: #ffffff;
    
    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Shadows */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --container-max: 1280px;
    --header-height: 80px;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--lens-black);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--lens-black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

.font-mono {
    font-family: var(--font-mono);
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.main-content {
    flex: 1;
    padding-top: var(--header-height);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--subtle-gray);
    box-shadow: var(--shadow-soft);
    padding: 0.75rem 0;
}

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

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    position: relative;
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
    transition: color 0.2s ease;
}

.site-logo:hover .logo-icon svg {
    color: var(--focus-red);
}

.logo-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--focus-red);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.logo-text span {
    color: var(--focus-red);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lens-black);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--focus-red);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.dropdown-trigger:hover {
    color: var(--focus-red);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 12rem;
    background: var(--white);
    border: 1px solid var(--subtle-gray);
    box-shadow: var(--shadow-hover);
    border-radius: 2px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--focus-red);
}

/* Header Actions */
.header-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .header-actions {
        display: flex;
    }
}

.search-btn {
    padding: 0.5rem;
    color: var(--lens-black);
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: var(--focus-red);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--subtle-gray);
    box-shadow: var(--shadow-hover);
    padding: 1rem;
}

.mobile-nav.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:last-of-type {
    border-bottom: none;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-md {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--focus-red);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--focus-red-hover);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-secondary {
    background: var(--aperture-blue);
    color: var(--white);
}

.btn-secondary:hover {
    opacity: 0.9;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--aperture-blue);
    color: var(--aperture-blue);
}

.btn-outline:hover {
    background: var(--aperture-blue);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--lens-black);
}

.btn-ghost:hover {
    background: var(--light-gray);
}

.btn-full {
    width: 100%;
}

/* =========================================
   CARDS
   ========================================= */
.card {
    background: var(--card);
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-hover:hover {
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--focus-red);
    transform: translateY(-4px);
}

.card-static {
    box-shadow: var(--shadow-soft);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 3rem 0 6rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 0 8rem;
    }
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--light-gray);
    color: var(--focus-red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--focus-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--focus-red), var(--aperture-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, var(--light-gray), transparent);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
}

/* =========================================
   JOURNEY SECTION
   ========================================= */
.journey-section {
    padding: 5rem 0;
    background: var(--white);
}

.journey-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .journey-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.journey-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--focus-red);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.journey-card:hover::before {
    transform: translateX(0);
}

.journey-icon {
    width: 48px;
    height: 48px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.journey-card:hover .journey-icon {
    background: var(--focus-red);
    color: var(--white);
}

.journey-card h3 {
    margin-bottom: 0.75rem;
}

.journey-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.journey-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--focus-red);
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.journey-card:hover .journey-link {
    transform: translateX(4px);
}

/* =========================================
   GUIDES SECTION
   ========================================= */
.guides-section {
    padding: 6rem 0;
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid var(--subtle-gray);
    border-bottom: 1px solid var(--subtle-gray);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    margin: 0;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--aperture-blue);
    font-weight: 500;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--focus-red);
}

.guides-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.guide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid var(--subtle-gray);
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.guide-card:hover .guide-image img {
    transform: scale(1.05);
}

.guide-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
}

.guide-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.guide-meta-dot {
    width: 4px;
    height: 4px;
    background: var(--subtle-gray);
    border-radius: 50%;
}

.guide-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.guide-card:hover h3 {
    color: var(--focus-red);
}

.guide-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lens-black);
    margin-top: auto;
    transition: color 0.2s ease;
}

.guide-link:hover {
    color: var(--focus-red);
}

/* =========================================
   COMPARISON SECTION
   ========================================= */
.comparison-section {
    padding: 6rem 0;
    background: var(--white);
}

.comparison-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.comparison-content {
    order: 2;
}

@media (min-width: 1024px) {
    .comparison-content {
        order: 1;
    }
}

.comparison-icon {
    display: inline-flex;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.comparison-icon svg {
    width: 24px;
    height: 24px;
    color: var(--aperture-blue);
}

.comparison-content h2 {
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.comparison-content h2 span {
    font-weight: 400;
    color: var(--text-secondary);
}

.comparison-content > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-check {
    width: 20px;
    height: 20px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comparison-preview {
    order: 1;
}

@media (min-width: 1024px) {
    .comparison-preview {
        order: 2;
    }
}

.preview-wrapper {
    background: rgba(248, 249, 250, 0.3);
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--subtle-gray);
    box-shadow: var(--shadow-soft);
}

.preview-window {
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--subtle-gray);
}

.preview-header {
    background: rgba(248, 249, 250, 0.5);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--subtle-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #f87171; }
.preview-dot.yellow { background: #fbbf24; }
.preview-dot.green { background: #4ade80; }

.preview-table {
    padding: 1.5rem;
}

.preview-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--subtle-gray);
    margin-bottom: 0.75rem;
}

.preview-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
}

.preview-table-row:last-child {
    border-bottom: none;
}

.preview-lens-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-lens-thumb {
    width: 32px;
    height: 32px;
    background: var(--light-gray);
    border-radius: 4px;
    display: none;
}

@media (min-width: 640px) {
    .preview-lens-thumb {
        display: block;
    }
}

.preview-lens-name {
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-spec {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =========================================
   TOOLS SECTION
   ========================================= */
.tools-section {
    padding: 5rem 0;
    background: var(--lens-black);
    color: var(--white);
}

.tools-section h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: background 0.2s ease;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tool-icon {
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-icon svg {
    width: 32px;
    height: 32px;
    color: var(--focus-red);
    margin: 0 auto;
}

.tool-card h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-section {
    padding: 6rem 0;
    background: var(--white);
    border-top: 1px solid var(--subtle-gray);
}

.newsletter-box {
    background: var(--light-gray);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .newsletter-box {
        padding: 4rem;
        flex-direction: row;
        align-items: center;
    }
}

.newsletter-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(230, 57, 70, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    transform: translate(50%, -50%);
}

.newsletter-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.newsletter-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.newsletter-feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.newsletter-feature span {
    color: var(--focus-red);
}

.newsletter-form-wrapper {
    flex: 1;
    max-width: 28rem;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input-wrapper {
    flex: 1;
    position: relative;
}

.newsletter-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--focus-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--subtle-gray);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 20rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    color: var(--focus-red);
}

.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--focus-red);
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--focus-red);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--subtle-gray);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-badge {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* =========================================
   PAGE TEMPLATES
   ========================================= */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--subtle-gray);
    padding: 3rem 0;
}

.page-header-dark {
    background: var(--lens-black);
    color: var(--white);
}

.page-header-dark h1 {
    color: var(--white);
}

.page-header-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 42rem;
}

.page-content {
    padding: 3rem 0;
    background: var(--studio);
    min-height: 60vh;
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-mission {
    display: grid;
    gap: 4rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .about-mission {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.about-mission h2 {
    margin-bottom: 1.5rem;
}

.about-mission > div > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.mission-cards {
    background: rgba(248, 249, 250, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--subtle-gray);
}

.mission-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mission-card:last-child {
    margin-bottom: 0;
}

.mission-icon {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    height: fit-content;
}

.mission-icon svg {
    width: 24px;
    height: 24px;
}

.mission-icon.red svg { color: var(--focus-red); }
.mission-icon.blue svg { color: var(--aperture-blue); }
.mission-icon.gold svg { color: var(--golden-hour); }

.mission-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.mission-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.philosophy-section {
    max-width: 56rem;
    margin: 0 auto 6rem;
}

.philosophy-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.philosophy-card {
    background: var(--white);
    border-left: 4px solid var(--focus-red);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border-radius: 0 2px 2px 0;
}

.philosophy-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.philosophy-card p strong {
    color: var(--lens-black);
}

.about-trust {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.about-trust svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
}

.about-trust h2 {
    margin-bottom: 1.5rem;
}

.about-trust > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.about-trust .footer-copyright {
    color: var(--text-secondary);
}

/* =========================================
   LEGAL PAGE
   ========================================= */
.legal-layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 1fr 3fr;
    }
}

.legal-nav {
    display: none;
}

@media (min-width: 1024px) {
    .legal-nav {
        display: block;
    }
}

.legal-nav-sticky {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.legal-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    background: var(--light-gray);
    color: var(--focus-red);
}

.legal-mobile-nav {
    background: var(--white);
    border: 1px solid var(--subtle-gray);
    padding: 1rem;
    border-radius: 2px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .legal-mobile-nav {
        display: none;
    }
}

.legal-mobile-nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal-mobile-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legal-mobile-nav-link {
    padding: 0.5rem 0.75rem;
    background: var(--light-gray);
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.legal-mobile-nav-link:hover {
    background: var(--focus-red);
    color: var(--white);
}

.legal-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 2px;
    border: 1px solid var(--subtle-gray);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--subtle-gray);
    margin-bottom: 1.5rem;
}

.legal-section-header svg {
    width: 24px;
    height: 24px;
}

.legal-section-header.red svg { color: var(--focus-red); }
.legal-section-header.blue svg { color: var(--aperture-blue); }
.legal-section-header.black svg { color: var(--lens-black); }

.legal-section-header h2 {
    margin: 0;
}

.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content strong {
    color: var(--lens-black);
}

.legal-content h3 {
    color: var(--lens-black);
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* =========================================
   GLOSSARY PAGE
   ========================================= */
.glossary-search {
    position: relative;
    max-width: 36rem;
}

.glossary-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

.glossary-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    font-size: 1.125rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.glossary-search input:focus {
    outline: none;
    border-color: var(--focus-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.glossary-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 56rem;
}

@media (min-width: 768px) {
    .glossary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.glossary-item {
    background: var(--white);
    padding: 1.5rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.glossary-item:hover {
    border-left: 4px solid var(--focus-red);
}

.glossary-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.glossary-item h3 {
    font-size: 1.125rem;
}

.glossary-category {
    font-size: 0.75rem;
    background: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    color: var(--text-secondary);
}

.glossary-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.glossary-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* =========================================
   LENS COMPARISON PAGE
   ========================================= */
.comparison-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .comparison-layout {
        grid-template-columns: 280px 1fr;
    }
}

.filters-sidebar {
    order: 2;
}

@media (min-width: 1024px) {
    .filters-sidebar {
        order: 1;
    }
}

.filters-card {
    background: var(--white);
    padding: 1.5rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.filters-reset {
    font-size: 0.75rem;
    color: var(--focus-red);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.filters-reset:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    font-size: 0.875rem;
    background: var(--white);
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--focus-red);
}

.filter-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-radio:hover {
    color: var(--focus-red);
}

.filter-radio input {
    accent-color: var(--focus-red);
}

.comparison-results {
    order: 1;
}

@media (min-width: 1024px) {
    .comparison-results {
        order: 2;
    }
}

.results-card {
    background: var(--white);
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(248, 249, 250, 0.3);
    border-bottom: 1px solid var(--subtle-gray);
}

.results-count {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.results-table-wrapper {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.results-table thead {
    background: var(--light-gray);
}

.results-table th {
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--subtle-gray);
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.results-table th:hover {
    background: rgba(0, 0, 0, 0.05);
}

.th-content {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.results-table tbody tr {
    border-bottom: 1px solid var(--subtle-gray);
    transition: background 0.2s ease;
}

.results-table tbody tr:hover {
    background: var(--studio);
}

.results-table td {
    padding: 1rem 1.5rem;
}

.lens-name {
    font-weight: 700;
    transition: color 0.2s ease;
}

.results-table tr:hover .lens-name {
    color: var(--focus-red);
}

.lens-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.lens-spec {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.lens-price {
    font-weight: 500;
}

.results-empty {
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.results-disclaimer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* =========================================
   TOOLS PAGE
   ========================================= */
.tools-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tools-tab-group {
    display: flex;
    gap: 0.25rem;
    background: var(--white);
    border: 1px solid var(--subtle-gray);
    padding: 0.25rem;
    border-radius: 2px;
    box-shadow: var(--shadow-soft);
}

.tools-tab {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.tools-tab.active {
    background: var(--lens-black);
    color: var(--white);
}

.tools-tab:not(.active):hover {
    background: var(--light-gray);
}

.calculator-card {
    max-width: 56rem;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    padding: 2rem;
}

.calculator-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.calculator-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.control-group select,
.control-group input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    font-size: 0.875rem;
}

.control-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
    accent-color: var(--focus-red);
}

.range-value {
    display: inline-block;
    width: 5rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.calculator-results {
    background: rgba(248, 249, 250, 0.3);
    padding: 1.5rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-main {
    text-align: center;
    margin-bottom: 2rem;
}

.result-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 2.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--focus-red);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    background: var(--white);
    padding: 1rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    text-align: center;
}

.result-item .result-label {
    margin-bottom: 0.25rem;
}

.result-item .result-value {
    font-size: 1.25rem;
    color: var(--lens-black);
}

.result-note {
    text-align: center;
}

.result-note .result-label {
    margin-bottom: 0.25rem;
}

.result-note .result-value {
    font-size: 1.25rem;
    color: var(--lens-black);
    margin-bottom: 0.5rem;
}

.result-note p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.fov-visualization {
    height: 16rem;
    background: var(--light-gray);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 2rem;
}

.fov-cone {
    position: absolute;
    bottom: 0;
    height: 100%;
    background: rgba(230, 57, 70, 0.2);
}

.fov-label {
    position: absolute;
    bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--focus-red);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

.fov-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* =========================================
   TUTORIALS PAGE
   ========================================= */
.tutorials-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.tutorial-filter {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--subtle-gray);
    border-radius: 9999px;
    background: var(--white);
    transition: all 0.2s ease;
}

.tutorial-filter.active {
    background: var(--focus-red);
    color: var(--white);
    border-color: var(--focus-red);
}

.tutorial-filter:not(.active):hover {
    border-color: var(--focus-red);
}

.tutorials-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .tutorials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tutorials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tutorial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tutorial-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tutorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.tutorial-card:hover .tutorial-image img {
    transform: scale(1.1);
}

.tutorial-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.tutorial-card:hover .tutorial-image::after {
    background: transparent;
}

.tutorial-difficulty {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    color: var(--white);
    z-index: 1;
}

.tutorial-difficulty.beginner { background: #22c55e; }
.tutorial-difficulty.intermediate { background: #eab308; }
.tutorial-difficulty.advanced { background: var(--focus-red); }

.tutorial-content {
    padding: 1.5rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tutorial-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--focus-red);
    margin-bottom: 0.5rem;
}

.tutorial-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.tutorial-card:hover h3 {
    color: var(--focus-red);
}

.tutorial-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tutorial-card .btn {
    margin-top: auto;
}

.tutorial-card:hover .btn-outline {
    background: var(--focus-red);
    color: var(--white);
    border-color: var(--focus-red);
}

/* =========================================
   BLOG / ARCHIVE
   ========================================= */
.posts-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid var(--subtle-gray);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.post-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.post-card:hover h3 {
    color: var(--focus-red);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--subtle-gray);
}

.post-read-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--focus-red);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    background: var(--white);
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: var(--focus-red);
    color: var(--focus-red);
}

.pagination .current {
    background: var(--focus-red);
    border-color: var(--focus-red);
    color: var(--white);
}

/* =========================================
   SINGLE POST
   ========================================= */
.single-header {
    padding: 4rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--subtle-gray);
}

.single-header .container {
    max-width: 56rem;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.single-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-gray);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
}

.single-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.single-read-time {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

.single-title {
    margin-bottom: 1rem;
}

.single-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.single-featured-image {
    max-width: 72rem;
    margin: -2rem auto 2rem;
    padding: 0 1rem;
}

.single-featured-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-hover);
}

.single-content {
    padding: 3rem 0;
    background: var(--white);
}

.single-content .container {
    max-width: 56rem;
}

/* Prose Content */
.prose {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose h2 {
    color: var(--lens-black);
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
}

.prose h3 {
    color: var(--lens-black);
    font-size: 1.375rem;
    margin: 2rem 0 0.75rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--focus-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--focus-red-hover);
}

.prose ul,
.prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    color: var(--lens-black);
    font-weight: 600;
}

.prose blockquote {
    border-left: 4px solid var(--focus-red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--lens-black);
}

.prose img {
    border-radius: 4px;
    margin: 2rem 0;
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--light-gray);
    padding: 0.125rem 0.375rem;
    border-radius: 2px;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--subtle-gray);
}

@media (min-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-previous,
.nav-next {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background: var(--subtle-gray);
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 600;
    color: var(--lens-black);
}

.nav-next {
    text-align: right;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--studio);
    border-top: 1px solid var(--subtle-gray);
}

.related-posts h2 {
    margin-bottom: 2rem;
}

/* =========================================
   404 PAGE
   ========================================= */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    background: var(--studio);
}

.error-404-content h1 {
    font-size: 8rem;
    color: var(--subtle-gray);
    margin-bottom: 1rem;
}

.error-404-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.error-404-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   COMMENTS
   ========================================= */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--subtle-gray);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 2px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author {
    font-weight: 600;
    color: var(--lens-black);
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comment-content {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--focus-red);
}

.children {
    margin-left: 2rem;
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--subtle-gray);
}

.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--subtle-gray);
    border-radius: 2px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--focus-red);
}

.comment-form textarea {
    min-height: 8rem;
    resize: vertical;
}

@media (min-width: 768px) {
    .comment-form-fields {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.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-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
}

/* WordPress Specific */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1.5rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.sticky .post-card {
    border: 2px solid var(--focus-red);
}
