/*
Theme Name: Packli Blog
Theme URI: https://www.packli.hu
Author: Packli
Author URI: https://www.packli.hu
Description: WordPress blog téma a Packli.hu főoldal stílusában. Csomagszállítási megoldások blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: packli
Tags: blog, corporate, custom-header, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --background: #ffffff;
    --foreground: #0a0a0a;
    --card: #ffffff;
    --card-foreground: #0a0a0a;
    --primary: #665ee7;
    --primary-foreground: #ffffff;
    --secondary: #f5f5f5;
    --secondary-foreground: #171717;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --accent: #f5f5f5;
    --accent-foreground: #171717;
    --destructive: #e40014;
    --border: #e5e5e5;
    --input: #e5e5e5;
    --ring: #e4e4e7;
    --blue: #155dfc;
    --blue-light: #3080ff;
    --blue-bg: #eff6ff;
    --green: #00c758;
    --emerald: #00bb7f;
    --amber: #f99c00;
    --orange: #f05100;
    --indigo: #625fff;
    --brand: #665ee7;
    --brand-dark: #3831ba;
    --brand-tint: rgba(102, 94, 231, 0.08);
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;
    --radius: 0;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl: 0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
    --content-width: 768px;
}

/* Dark mode */
.dark {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --card: #171717;
    --card-foreground: #fafafa;
    --primary: #e5e5e5;
    --primary-foreground: #171717;
    --secondary: #262626;
    --secondary-foreground: #fafafa;
    --muted: #262626;
    --muted-foreground: #a1a1a1;
    --accent: #262626;
    --accent-foreground: #fafafa;
    --destructive: #ff6568;
    --border: rgba(255, 255, 255, 0.1);
    --input: rgba(255, 255, 255, 0.15);
    --ring: #737373;
}

/* ============================================
   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: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #404040;
    background-color: var(--background);
}

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

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

a:hover {
    color: var(--brand-dark);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--foreground);
    margin-bottom: 0.75em;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
    color: #404040;
}

blockquote {
    position: relative;
    border-left: 4px solid var(--brand);
    padding: 1.25rem 1.5rem 1.25rem 3.25rem;
    margin: 1.75rem 0;
    background: var(--brand-tint);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #404040;
    font-style: italic;
}

blockquote::before {
    content: "\201C";
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--brand);
    font-style: normal;
}

blockquote p {
    color: inherit;
    margin-bottom: 0.5rem;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-style: normal;
    color: var(--muted-foreground);
}

pre, code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

code {
    background: var(--muted);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

pre code {
    background: transparent;
    padding: 0;
}

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

.site-main {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-slow);
}

.dark .site-header {
    background: rgba(10, 10, 10, 0.85);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--foreground);
}

.site-logo:hover {
    color: var(--foreground);
}

.site-logo .logo-icon {
    width: 28px;
    height: 28px;
}

.site-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.footer-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.footer-logo {
    gap: 0;
}

/* Desktop Navigation */
.main-navigation {
    display: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.main-navigation a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--foreground);
    background: var(--muted);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-ghost:hover {
    color: var(--foreground);
    background: var(--muted);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary:hover {
    opacity: 0.9;
    color: var(--primary-foreground);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--foreground);
    position: relative;
    transition: background var(--transition);
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--foreground);
    transition: transform var(--transition-slow);
}

.mobile-menu-toggle span::before { top: -6px; }
.mobile-menu-toggle span::after { top: 6px; }

.mobile-menu-toggle.active span {
    background: transparent;
}

.mobile-menu-toggle.active span::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    z-index: 49;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

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

.mobile-menu ul {
    list-style: none;
}

.mobile-menu a {
    display: block;
    color: var(--foreground);
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--muted-foreground);
}

.mobile-menu .btn-primary {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .main-navigation {
        display: block;
    }
    .header-actions {
        display: flex;
    }
    .mobile-menu-toggle {
        display: none;
    }
}

/* ============================================
   Blog Hero / Page Header
   ============================================ */
.page-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--muted-foreground);
}

.breadcrumb a:hover {
    color: var(--foreground);
}

/* ============================================
   Blog Layout
   ============================================ */
.blog-section {
    padding: 4rem 0;
}

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

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

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

/* ============================================
   Post Card
   ============================================ */
.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.post-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--muted);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
    transform: scale(1.03);
}

.post-card__category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.post-card__content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.post-card__meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.post-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.post-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--brand);
}

.post-card__excerpt {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.post-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    transition: all var(--transition);
}

.post-card__readmore:hover {
    gap: 0.625rem;
}

.post-card__readmore svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

.post-card__readmore:hover svg {
    transform: translateX(3px);
}

/* Featured Post */
.post-card--featured {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .post-card--featured {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .post-card--featured .post-card__image {
        aspect-ratio: auto;
    }

    .post-card--featured .post-card__content {
        padding: 2rem;
        justify-content: center;
    }

    .post-card--featured .post-card__title {
        font-size: 1.5rem;
    }

    .post-card--featured .post-card__excerpt {
        font-size: 0.9375rem;
    }
}

/* ============================================
   Single Post
   ============================================ */
.single-post-content {
    padding: 3rem 0 4rem;
}

.post-article {
    max-width: var(--content-width);
    margin: 0 auto;
}

.post-featured-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.post-header .post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-header .post-categories a {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.post-header .post-categories a:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.post-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.post-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.post-meta__item svg {
    width: 15px;
    height: 15px;
    opacity: 0.5;
}

.post-meta__author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Post Content Typography */
.post-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--foreground);
}

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

.post-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
}

.post-body p {
    color: #404040;
}

.post-body h1 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.post-body ul,
.post-body ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: #404040;
}

.post-body img {
    border-radius: var(--radius);
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.post-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(102, 94, 231, 0.4);
}

.post-body a:hover {
    color: var(--brand-dark);
    text-decoration-color: var(--brand-dark);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-body th,
.post-body td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.post-body th {
    background: var(--muted);
    font-weight: 600;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    border-radius: 0;
    transition: all var(--transition);
}

.post-tags a:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

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

.post-navigation a {
    display: block;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.post-navigation a:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.post-navigation__label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.post-navigation__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.4;
}

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

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

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

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

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    color: var(--foreground);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.footer-column h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.625rem;
}

.footer-column ul li a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-column ul li a:hover {
    color: var(--brand);
}

.footer-contact li a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-contact li a:hover {
    color: var(--brand);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.footer-contact li svg {
    width: 16px;
    height: 16px;
    color: var(--muted-foreground);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    transition: all var(--transition);
}

.footer-social a:hover {
    color: var(--foreground);
    border-color: var(--gray-300);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.footer-bottom a {
    color: var(--muted-foreground);
}

.footer-bottom a:hover {
    color: var(--foreground);
}

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

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.625rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    background: var(--background);
    transition: all var(--transition);
    text-decoration: none;
}

.pagination .page-numbers:hover {
    border-color: var(--foreground);
    color: var(--foreground);
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ============================================
   Comments
   ============================================ */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

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

.comment-list {
    list-style: none;
}

.comment-body {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

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

.comment-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 0.875rem;
}

.comment-metadata {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.comment-content p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

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

.comment-form label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--foreground);
    background: var(--background);
    margin-bottom: 1rem;
    outline: none;
    transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(228, 228, 231, 0.5);
}

.comment-form .form-submit input {
    display: inline-flex;
    padding: 0.625rem 1.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.comment-form .form-submit input:hover {
    opacity: 0.9;
}

/* ============================================
   Search Form
   ============================================ */
.search-form {
    display: flex;
    gap: 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--input);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--foreground);
    background: var(--background);
    outline: none;
    transition: border-color var(--transition);
}

.search-form input[type="search"]:focus {
    border-color: var(--ring);
}

.search-form button {
    padding: 0.625rem 0.875rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: opacity var(--transition);
}

.search-form button:hover {
    opacity: 0.9;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-dark {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-dark:hover {
    opacity: 0.9;
    color: var(--primary-foreground);
}

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

.btn-outline:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
    text-align: center;
    padding: 6rem 0;
}

.error-404 h1 {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    color: var(--muted);
    letter-spacing: -0.05em;
}

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.error-404 p {
    margin-bottom: 2rem;
}

/* ============================================
   Utilities
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 639px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    .page-hero {
        padding: 4rem 0 3rem;
    }
    .page-hero h1 {
        font-size: 2.25rem;
    }
    .post-header h1 {
        font-size: 1.75rem;
    }
    .blog-section {
        padding: 2.5rem 0;
    }
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

/* WordPress alignment classes */
.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;
    margin-bottom: 1rem;
}

.alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: calc(100% + 4rem);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

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

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    text-align: center;
    padding-top: 0.5rem;
}

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

.gallery-item img {
    border-radius: var(--radius);
}
