/*
Theme Name: HomeAutoCentral
Theme URI: https://homeautocentral.com
Author: HomeAutoCentral Team
Author URI: https://homeautocentral.com
Description: Smart home automation control center theme with dark mode design
Version: 2.1.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homeautocentral
*/

/* ========================================
   CSS CUSTOM PROPERTIES
======================================== */
:root {
    /* Color Palette */
    --hac-void: #0a0e17;
    --hac-navy: #111827;
    --hac-indigo: #1e293b;
    --hac-border: #374151;
    --hac-mint: #28f0b4;
    --hac-ice: #f1f5f9;
    --hac-gray-400: #9ca3af;
    --hac-gray-500: #6b7280;
    --hac-gray-600: #4b5563;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Shadows */
    --shadow-neon: 0 0 15px rgba(40, 240, 180, 0.3);
    --shadow-neon-hover: 0 0 25px rgba(40, 240, 180, 0.5);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ========================================
   CSS 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-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--hac-ice);
    background-color: var(--hac-void);
    min-height: 100vh;
}

::selection {
    background-color: var(--hac-mint);
    color: var(--hac-navy);
}

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

a {
    color: inherit;
    text-decoration: none;
}

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-display);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

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

p {
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--hac-mint), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ========================================
   LAYOUT
======================================== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex-grow: 1;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 768px;
}

.container-wide {
    max-width: 1536px;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hac-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--hac-mint), #3b82f6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo .logo-icon svg {
    width: 24px;
    height: 24px;
    color: var(--hac-navy);
}

.nav-primary {
    display: none;
}

@media (min-width: 768px) {
    .nav-primary {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-primary a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hac-gray-400);
    transition: color var(--transition-normal);
    position: relative;
}

.nav-primary a:hover,
.nav-primary a.current-menu-item,
.nav-primary .current-menu-item > a {
    color: var(--hac-mint);
}

.nav-primary a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--hac-mint);
    transition: width var(--transition-normal);
}

.nav-primary a:hover::after,
.nav-primary .current-menu-item > a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--hac-ice);
    border-radius: 8px;
    transition: background-color var(--transition-normal);
}

.mobile-menu-toggle:hover {
    background-color: var(--hac-indigo);
}

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

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--hac-void);
    z-index: 99;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.mobile-menu.is-active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hac-ice);
    border-bottom: 1px solid var(--hac-border);
}

.mobile-menu a:hover {
    color: var(--hac-mint);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:focus {
    outline: 2px solid var(--hac-mint);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--hac-mint);
    color: var(--hac-navy);
    font-weight: 700;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    background-color: #fff;
    box-shadow: var(--shadow-neon-hover);
}

.btn-secondary {
    background-color: var(--hac-indigo);
    color: var(--hac-ice);
    border-color: var(--hac-border);
}

.btn-secondary:hover {
    background-color: var(--hac-border);
}

.btn-outline {
    background-color: transparent;
    color: var(--hac-mint);
    border-color: var(--hac-mint);
}

.btn-outline:hover {
    background-color: rgba(40, 240, 180, 0.1);
}

.btn-ghost {
    background-color: transparent;
    color: var(--hac-ice);
}

.btn-ghost:hover {
    color: var(--hac-mint);
    background-color: rgba(30, 41, 59, 0.5);
}

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

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

.btn-full {
    width: 100%;
}

/* ========================================
   BADGES
======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-mint {
    background-color: rgba(40, 240, 180, 0.15);
    color: var(--hac-mint);
    border: 1px solid rgba(40, 240, 180, 0.3);
}

.badge-blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-purple {
    background-color: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-orange {
    background-color: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-outline {
    background-color: transparent;
    color: var(--hac-gray-400);
    border: 1px solid var(--hac-border);
}

/* ========================================
   CARDS
======================================== */
.card {
    background-color: var(--hac-navy);
    border: 1px solid var(--hac-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
    border-color: rgba(40, 240, 180, 0.3);
}

.card-elevated {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.card-no-padding {
    padding: 0;
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--hac-void);
    border: 1px solid var(--hac-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.875rem;
    color: var(--hac-gray-400);
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--hac-mint);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(55, 65, 81, 0.3);
}

.card-link:hover {
    text-decoration: underline;
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

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

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--hac-void);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(55, 65, 81, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 65, 81, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-color: var(--hac-navy);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 896px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--hac-gray-400);
    max-width: 672px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

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

.hero-compat {
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    padding-top: 2rem;
}

.hero-compat-label {
    font-size: 0.75rem;
    color: var(--hac-gray-500);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-compat-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all var(--transition-slow);
}

.hero-compat-icons:hover {
    opacity: 1;
    filter: grayscale(0);
}

.compat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.compat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.compat-dot-blue { background-color: #3b82f6; }
.compat-dot-red { background-color: #ef4444; }
.compat-dot-yellow { background-color: #eab308; }
.compat-dot-mint { background-color: var(--hac-mint); }

/* ========================================
   TRUST BAR
======================================== */
.trust-bar {
    background-color: var(--hac-navy);
    border-top: 1px solid var(--hac-border);
    border-bottom: 1px solid var(--hac-border);
}

.trust-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

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

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-value {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.trust-label {
    font-size: 0.75rem;
    color: var(--hac-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   SECTION STYLES
======================================== */
.section {
    padding: 5rem 1rem;
}

.section-lg {
    padding: 6rem 1rem;
}

.section-header {
    text-align: center;
    max-width: 672px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--hac-gray-400);
    font-size: 1.125rem;
}

/* ========================================
   PILLARS GRID
======================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

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

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

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

.pillar-icon {
    width: 48px;
    height: 48px;
    background-color: var(--hac-void);
    border: 1px solid var(--hac-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.pillar-icon-mint svg { color: var(--hac-mint); }
.pillar-icon-blue svg { color: #3b82f6; }
.pillar-icon-purple svg { color: #a855f7; }
.pillar-icon-orange svg { color: #f97316; }

.pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pillar-text {
    font-size: 0.875rem;
    color: var(--hac-gray-400);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.pillar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--hac-mint);
    font-size: 0.875rem;
    font-weight: 500;
    padding-top: 1rem;
    border-top: 1px solid rgba(55, 65, 81, 0.3);
    margin-top: auto;
}

/* ========================================
   AUTOMATION PLAYBOOK
======================================== */
.playbook-section {
    padding: 6rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.playbook-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

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

.playbook-content .badge {
    margin-bottom: 1rem;
}

.playbook-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.playbook-description {
    font-size: 1.125rem;
    color: var(--hac-gray-400);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.template-item {
    padding: 1rem;
    background-color: var(--hac-navy);
    border: 1px solid var(--hac-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color var(--transition-normal);
}

.template-item:hover {
    border-color: rgba(40, 240, 180, 0.3);
}

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

.template-title {
    font-weight: 700;
    color: #fff;
    transition: color var(--transition-normal);
}

.template-item:hover .template-title {
    color: var(--hac-mint);
}

.template-description {
    font-size: 0.875rem;
    color: var(--hac-gray-400);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Code Mockup */
.code-mockup {
    position: relative;
}

.code-mockup-glow {
    position: absolute;
    inset: 0;
    background-color: var(--hac-mint);
    filter: blur(100px);
    opacity: 0.1;
}

.code-window {
    position: relative;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
}

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

.code-dot-red { background-color: #ff5f56; }
.code-dot-yellow { background-color: #ffbd2e; }
.code-dot-green { background-color: #27ca40; }

.code-filename {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: var(--hac-gray-500);
    font-family: var(--font-mono);
}

.code-body {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: #c9d1d9;
}

.code-body .code-key { color: #7ee787; }
.code-body .code-string { color: #a5d6ff; }
.code-body .code-comment { color: #8b949e; }

/* ========================================
   NEWSLETTER
======================================== */
.newsletter-section {
    padding: 5rem 1rem;
}

.newsletter-wrapper {
    max-width: 896px;
    margin: 0 auto;
    position: relative;
}

.newsletter-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(to right, var(--hac-mint), #3b82f6, #a855f7);
    border-radius: 12px;
    filter: blur(8px);
    opacity: 0.25;
    transition: opacity var(--transition-slow);
}

.newsletter-wrapper:hover .newsletter-glow {
    opacity: 0.5;
}

.newsletter-inner {
    position: relative;
    background-color: var(--hac-navy);
    border: 1px solid var(--hac-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .newsletter-inner {
        padding: 3rem;
    }
}

.newsletter-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2rem;
    opacity: 0.1;
}

.newsletter-icon svg {
    width: 120px;
    height: 120px;
}

.newsletter-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

.newsletter-description {
    color: var(--hac-gray-400);
    max-width: 512px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 512px;
    margin: 0 auto;
}

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

.newsletter-input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    background-color: var(--hac-void);
    border: 1px solid var(--hac-border);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--hac-mint);
    box-shadow: 0 0 0 2px rgba(40, 240, 180, 0.2);
}

.newsletter-input::placeholder {
    color: var(--hac-gray-500);
}

.newsletter-disclaimer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--hac-gray-500);
}

/* ========================================
   BLOG / POSTS
======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

@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%;
    background-color: var(--hac-navy);
    border: 1px solid rgba(55, 65, 81, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.post-card:hover {
    border-color: rgba(40, 240, 180, 0.3);
    transform: translateY(-4px);
}

.post-thumbnail {
    position: relative;
    height: 224px;
    overflow: hidden;
}

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

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

.post-thumbnail .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    backdrop-filter: blur(8px);
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--hac-gray-500);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta-item svg {
    width: 12px;
    height: 12px;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-normal);
}

.post-card:hover .post-title {
    color: var(--hac-mint);
}

.post-excerpt {
    font-size: 0.875rem;
    color: var(--hac-gray-400);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--hac-mint);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: auto;
}

.post-read-more svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

.post-card:hover .post-read-more svg {
    transform: translateX(4px);
}

/* Placeholder Card */
.post-card-placeholder {
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.post-card-placeholder:hover {
    opacity: 1;
}

.placeholder-thumb {
    height: 224px;
    background-color: rgba(30, 41, 59, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-thumb span {
    font-family: var(--font-mono);
    color: var(--hac-gray-600);
}

.placeholder-content {
    padding: 1.5rem;
}

.placeholder-line {
    height: 1rem;
    background-color: var(--hac-indigo);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.placeholder-line-sm { width: 33%; }
.placeholder-line-md { width: 66%; }
.placeholder-line-lg { width: 100%; }
.placeholder-line-half { 
    height: 0.875rem;
    background-color: rgba(30, 41, 59, 0.5);
}

/* ========================================
   SINGLE POST
======================================== */
.single-post {
    max-width: 768px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.single-header {
    margin-bottom: 2rem;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--hac-gray-400);
}

.single-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.single-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: auto;
}

.single-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--hac-gray-400);
}

.single-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.single-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.single-content p {
    margin-bottom: 1.5rem;
}

.single-content a {
    color: var(--hac-mint);
    text-decoration: underline;
}

.single-content a:hover {
    text-decoration: none;
}

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

.single-content ul {
    list-style-type: disc;
}

.single-content ol {
    list-style-type: decimal;
}

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

.single-content blockquote {
    border-left: 4px solid var(--hac-mint);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--hac-ice);
}

.single-content pre {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.single-content code {
    font-family: var(--font-mono);
    background-color: var(--hac-indigo);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
}

.single-content pre code {
    background: none;
    padding: 0;
}

.single-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hac-border);
}

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

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

/* ========================================
   ABOUT PAGE
======================================== */
.about-page {
    max-width: 896px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.about-intro {
    margin-bottom: 4rem;
}

.about-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.25rem;
    color: #d1d5db;
    line-height: 1.7;
}

.about-highlight {
    color: var(--hac-mint);
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.about-card {
    background-color: var(--hac-navy);
    border-left: 4px solid;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.about-card-mint {
    border-left-color: var(--hac-mint);
}

.about-card-blue {
    border-left-color: #3b82f6;
}

.about-card-icon {
    margin-bottom: 1rem;
}

.about-card-icon svg {
    width: 32px;
    height: 32px;
}

.about-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.about-card-text {
    font-size: 0.9375rem;
    color: var(--hac-gray-400);
    line-height: 1.6;
}

/* Scoring Section */
.scoring-section {
    padding-top: 3rem;
    border-top: 1px solid var(--hac-border);
}

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

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

.score-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.score-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.score-badge-green {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.score-badge-blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.score-badge-orange {
    background-color: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.score-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.score-content p {
    color: var(--hac-gray-400);
    font-size: 0.9375rem;
}

/* ========================================
   CONTACT PAGE
======================================== */
.contact-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

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

.contact-info h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.25rem;
    color: var(--hac-gray-400);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-method-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--hac-indigo);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-icon svg {
    width: 20px;
    height: 20px;
    color: var(--hac-mint);
}

.contact-method h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-method p {
    font-size: 0.875rem;
    color: var(--hac-gray-400);
}

/* Contact Form */
.contact-form-card {
    background-color: var(--hac-navy);
    border: 1px solid var(--hac-border);
    border-radius: 12px;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--hac-void);
    border: 1px solid var(--hac-border);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--hac-mint);
    box-shadow: 0 0 0 2px rgba(40, 240, 180, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

.topic-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--hac-border);
    border-radius: 9999px;
    color: var(--hac-ice);
    transition: all var(--transition-normal);
}

.topic-btn:hover,
.topic-btn.active {
    background-color: var(--hac-mint);
    color: var(--hac-navy);
    border-color: var(--hac-mint);
}

/* ========================================
   LEGAL PAGE
======================================== */
.legal-page {
    max-width: 768px;
    margin: 0 auto;
    padding: 4rem 1rem;
    color: #d1d5db;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section strong {
    color: #fff;
}

/* ========================================
   404 PAGE
======================================== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 700;
    font-family: var(--font-mono);
    background: linear-gradient(to right, var(--hac-mint), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-description {
    color: var(--hac-gray-400);
    margin-bottom: 2rem;
    max-width: 400px;
}

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

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

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

.comment {
    background-color: var(--hac-navy);
    border: 1px solid var(--hac-border);
    border-radius: 8px;
    padding: 1.5rem;
}

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

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--hac-indigo);
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--hac-gray-500);
}

.comment-body {
    color: var(--hac-gray-400);
    line-height: 1.6;
}

.comment-reply {
    margin-left: 2rem;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--hac-border);
}

/* Comment Form */
.comment-form-wrapper {
    background-color: var(--hac-navy);
    border: 1px solid var(--hac-border);
    border-radius: 8px;
    padding: 1.5rem;
}

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

.comment-form .form-row {
    margin-bottom: 1rem;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background-color: var(--hac-navy);
    border-top: 1px solid var(--hac-border);
    padding: 4rem 1rem 2rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .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: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--hac-mint), #3b82f6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--hac-gray-400);
    line-height: 1.6;
}

.footer-nav h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--hac-gray-400);
    transition: color var(--transition-normal);
}

.footer-nav a:hover {
    color: var(--hac-mint);
}

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

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

.footer-copyright {
    font-size: 0.875rem;
    color: var(--hac-gray-500);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--hac-gray-400);
    transition: color var(--transition-normal);
}

.footer-legal a:hover {
    color: var(--hac-mint);
}

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--hac-border);
    border-radius: 6px;
    color: var(--hac-gray-400);
    transition: all var(--transition-normal);
}

.pagination a:hover {
    border-color: var(--hac-mint);
    color: var(--hac-mint);
}

.pagination .current {
    background-color: var(--hac-mint);
    border-color: var(--hac-mint);
    color: var(--hac-navy);
    font-weight: 600;
}

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

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }

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

/* ========================================
   FORM MESSAGES
======================================== */
.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.form-message-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-message-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ========================================
   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-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--hac-gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: 8px;
}

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

.screen-reader-text:focus {
    background-color: var(--hac-navy);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--hac-mint);
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
