/*
Theme Name: Lifehacker
Theme URI: https://example.com/lifehacker-starter
Author: Theme Developer
Author URI: https://example.com
Description: Modern card-based blog theme with green accents, clean typography and practical layout. Perfect for lifestyle, tech tips, and productivity content.
Version: 1.0.2
Requires at least: 5.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: lifehacker
Tags: blog, grid-layout, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Green Palette - Lifehacker inspired */
    --lfhk-color-primary: #97bf0d;
    --lfhk-color-primary-dark: #7a9c0b;
    --lfhk-color-primary-light: #b3d93f;
    --lfhk-color-secondary: #2d2d2d;
    --lfhk-color-accent: #ff6b35;

    /* Backgrounds */
    --lfhk-bg-light: #f7f7f7;
    --lfhk-bg-white: #ffffff;
    --lfhk-bg-dark: #1a1a1a;
    --lfhk-bg-card: #ffffff;
    --lfhk-bg-footer: #2d2d2d;

    /* Text */
    --lfhk-text-dark: #1a1a1a;
    --lfhk-text-body: #4a4a4a;
    --lfhk-text-muted: #767676;
    --lfhk-text-light: #999999;
    --lfhk-text-white: #ffffff;

    /* Borders */
    --lfhk-border-light: #e5e5e5;
    --lfhk-border-medium: #d0d0d0;

    /* Typography */
    --lfhk-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lfhk-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lfhk-font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Sizing */
    --lfhk-container-width: 1280px;
    --lfhk-content-width: 800px;
    --lfhk-sidebar-width: 340px;
    --lfhk-gap: 1.5rem;
    --lfhk-gap-lg: 2.5rem;
    --lfhk-radius: 6px;
    --lfhk-radius-lg: 12px;

    /* Effects */
    --lfhk-transition: 0.2s ease;
    --lfhk-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --lfhk-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --lfhk-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--lfhk-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--lfhk-text-body);
    background-color: var(--lfhk-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--lfhk-color-primary-dark);
    text-decoration: none;
    transition: color var(--lfhk-transition);
}

a:hover,
a:focus {
    color: var(--lfhk-color-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lfhk-font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--lfhk-text-dark);
    margin: 0 0 1rem;
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin: 0 0 1.5rem;
}

ul, ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.lfhk-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lfhk-color-primary);
    color: var(--lfhk-text-dark);
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    border-radius: var(--lfhk-radius);
    font-weight: 600;
}

.lfhk-skip-link:focus {
    top: 10px;
    color: var(--lfhk-text-dark);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.lfhk-main-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lfhk-gap-lg);
    padding: var(--lfhk-gap-lg) 0;
}

.lfhk-main-wrapper.has-sidebar {
    grid-template-columns: 1fr var(--lfhk-sidebar-width);
}

.lfhk-content {
    min-width: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.lfhk-header {
    background: var(--lfhk-bg-white);
    border-bottom: 1px solid var(--lfhk-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.lfhk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.lfhk-logo {
    flex-shrink: 0;
}

.lfhk-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--lfhk-text-dark);
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
}

.lfhk-logo img {
    height: 36px;
    width: auto;
}

.lfhk-logo a:hover {
    color: var(--lfhk-color-primary-dark);
}

/* Navigation */
.lfhk-nav {
    flex: 1;
}

.lfhk-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lfhk-nav-list li {
    position: relative;
}

.lfhk-nav-list a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--lfhk-text-body);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--lfhk-radius);
    transition: all var(--lfhk-transition);
}

.lfhk-nav-list a:hover,
.lfhk-nav-list .current-menu-item > a {
    color: var(--lfhk-text-dark);
    background: var(--lfhk-bg-light);
}

/* Submenu */
.lfhk-nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--lfhk-bg-white);
    border-radius: var(--lfhk-radius);
    box-shadow: var(--lfhk-shadow-hover);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--lfhk-transition);
    z-index: 100;
}

.lfhk-nav-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lfhk-nav-list .sub-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Header Actions */
.lfhk-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lfhk-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--lfhk-radius);
    cursor: pointer;
    color: var(--lfhk-text-body);
    transition: all var(--lfhk-transition);
}

.lfhk-search-toggle:hover {
    background: var(--lfhk-bg-light);
    color: var(--lfhk-text-dark);
}

.lfhk-search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Toggle */
.lfhk-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--lfhk-radius);
    cursor: pointer;
    color: var(--lfhk-text-body);
}

.lfhk-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.lfhk-menu-toggle span::before,
.lfhk-menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

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

/* Search Overlay */
.lfhk-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lfhk-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lfhk-search-overlay-inner {
    width: 100%;
    max-width: 600px;
    padding: 0 1.5rem;
}

.lfhk-search-overlay .search-form {
    display: flex;
    gap: 1rem;
}

.lfhk-search-overlay .search-field {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--lfhk-color-primary);
    padding: 1rem 0;
    font-size: 1.5rem;
    color: var(--lfhk-text-white);
    outline: none;
}

.lfhk-search-overlay .search-field::placeholder {
    color: var(--lfhk-text-muted);
}

.lfhk-search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--lfhk-text-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   Cards Grid
   ========================================================================== */

.lfhk-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lfhk-gap);
}

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

/* Card */
.lfhk-card {
    background: var(--lfhk-bg-card);
    border-radius: var(--lfhk-radius-lg);
    overflow: hidden;
    box-shadow: var(--lfhk-shadow-card);
    transition: all var(--lfhk-transition);
}

.lfhk-card:hover {
    box-shadow: var(--lfhk-shadow-hover);
    transform: translateY(-4px);
}

.lfhk-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.lfhk-card-image img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.lfhk-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--lfhk-color-primary);
    color: var(--lfhk-text-dark);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--lfhk-radius);
}

.lfhk-card-content {
    padding: 1.25rem;
    background: var(--lfhk-bg-card);
}

.lfhk-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.lfhk-card-title a {
    color: var(--lfhk-text-dark);
}

.lfhk-card-title a:hover {
    color: var(--lfhk-color-primary-dark);
}

.lfhk-card-excerpt {
    color: var(--lfhk-text-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lfhk-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--lfhk-text-light);
}

.lfhk-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.lfhk-card-meta svg {
    width: 14px;
    height: 14px;
}

/* Featured Card */
.lfhk-card.featured {
    grid-column: span 2;
}

.lfhk-card.featured .lfhk-card-image {
    aspect-ratio: 21/10;
}

.lfhk-card.featured .lfhk-card-content {
    padding: 1.5rem;
}

.lfhk-card.featured .lfhk-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.lfhk-card.featured .lfhk-card-excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 3;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Featured Section
   ========================================================================== */

.lfhk-featured-section {
    padding: var(--lfhk-gap-lg) 0;
    background: var(--lfhk-bg-white);
}

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

.lfhk-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lfhk-section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--lfhk-color-primary);
    border-radius: 2px;
}

.lfhk-section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lfhk-color-primary-dark);
}

.lfhk-section-link:hover {
    color: var(--lfhk-color-primary);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.lfhk-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--lfhk-gap);
}

.lfhk-widget {
    background: var(--lfhk-bg-white);
    padding: 1.5rem;
    border-radius: var(--lfhk-radius-lg);
    box-shadow: var(--lfhk-shadow-card);
}

.lfhk-widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--lfhk-color-primary);
}

.lfhk-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lfhk-widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--lfhk-border-light);
}

.lfhk-widget li:last-child {
    border-bottom: none;
}

.lfhk-widget a {
    color: var(--lfhk-text-body);
    font-size: 0.9375rem;
}

.lfhk-widget a:hover {
    color: var(--lfhk-color-primary-dark);
}

/* Popular Posts Widget */
.lfhk-popular-post {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
}

.lfhk-popular-post-image {
    width: 80px;
    height: 60px;
    border-radius: var(--lfhk-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.lfhk-popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lfhk-popular-post-content {
    flex: 1;
    min-width: 0;
}

.lfhk-popular-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.25rem;
}

.lfhk-popular-post-title a {
    color: var(--lfhk-text-dark);
}

.lfhk-popular-post-date {
    font-size: 0.75rem;
    color: var(--lfhk-text-light);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.lfhk-single-header {
    background: var(--lfhk-bg-white);
    padding: var(--lfhk-gap-lg) 0;
    margin-bottom: var(--lfhk-gap-lg);
}

.lfhk-single-header-inner {
    max-width: var(--lfhk-content-width);
    margin: 0 auto;
}

.lfhk-single-category {
    display: inline-block;
    background: var(--lfhk-color-primary);
    color: var(--lfhk-text-dark);
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--lfhk-radius);
    margin-bottom: 1rem;
}

.lfhk-single-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.lfhk-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9375rem;
    color: var(--lfhk-text-muted);
}

.lfhk-single-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lfhk-single-meta svg {
    width: 18px;
    height: 18px;
}

.lfhk-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.lfhk-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured Image */
.lfhk-single-featured {
    margin-bottom: var(--lfhk-gap-lg);
    border-radius: var(--lfhk-radius-lg);
    overflow: hidden;
}

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

/* Content */
.lfhk-single-content {
    background: var(--lfhk-bg-white);
    padding: var(--lfhk-gap-lg);
    border-radius: var(--lfhk-radius-lg);
    max-width: var(--lfhk-content-width);
    margin: 0 auto;
}

.lfhk-entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.lfhk-entry-content > *:first-child {
    margin-top: 0;
}

.lfhk-entry-content > *:last-child {
    margin-bottom: 0;
}

.lfhk-entry-content h2 {
    margin-top: 2.5rem;
}

.lfhk-entry-content h3 {
    margin-top: 2rem;
}

.lfhk-entry-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lfhk-entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--lfhk-bg-light);
    border-left: 4px solid var(--lfhk-color-primary);
    border-radius: 0 var(--lfhk-radius) var(--lfhk-radius) 0;
    font-size: 1.125rem;
    font-style: italic;
}

.lfhk-entry-content pre {
    background: var(--lfhk-bg-dark);
    color: var(--lfhk-text-white);
    padding: 1.5rem;
    border-radius: var(--lfhk-radius);
    overflow-x: auto;
    font-family: var(--lfhk-font-mono);
    font-size: 0.875rem;
}

.lfhk-entry-content code {
    background: var(--lfhk-bg-light);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: var(--lfhk-font-mono);
    font-size: 0.875em;
}

.lfhk-entry-content pre code {
    background: transparent;
    padding: 0;
}

/* Tags */
.lfhk-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lfhk-border-light);
}

.lfhk-post-tags a {
    background: var(--lfhk-bg-light);
    color: var(--lfhk-text-body);
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: var(--lfhk-radius);
    transition: all var(--lfhk-transition);
}

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

/* Post Navigation */
.lfhk-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lfhk-gap);
    margin-top: var(--lfhk-gap-lg);
}

.lfhk-post-nav-item {
    background: var(--lfhk-bg-white);
    padding: 1.5rem;
    border-radius: var(--lfhk-radius-lg);
    box-shadow: var(--lfhk-shadow-card);
}

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

.lfhk-post-nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lfhk-text-light);
    margin-bottom: 0.5rem;
}

.lfhk-post-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lfhk-text-dark);
    line-height: 1.4;
}

.lfhk-post-nav-item:hover .lfhk-post-nav-title {
    color: var(--lfhk-color-primary-dark);
}

/* Related Posts */
.lfhk-related-posts {
    margin-top: var(--lfhk-gap-lg);
    padding: var(--lfhk-gap-lg);
    background: var(--lfhk-bg-white);
    border-radius: var(--lfhk-radius-lg);
}

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

.lfhk-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lfhk-gap);
}

/* ==========================================================================
   Page
   ========================================================================== */

.lfhk-page-header {
    background: var(--lfhk-bg-white);
    padding: var(--lfhk-gap-lg) 0;
    text-align: center;
}

.lfhk-page-title {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.lfhk-page-content {
    background: var(--lfhk-bg-white);
    padding: var(--lfhk-gap-lg);
    border-radius: var(--lfhk-radius-lg);
    max-width: var(--lfhk-content-width);
    margin: var(--lfhk-gap-lg) auto;
}

/* ==========================================================================
   Archive
   ========================================================================== */

.lfhk-archive-header {
    background: var(--lfhk-bg-white);
    padding: var(--lfhk-gap-lg) 0;
    margin-bottom: var(--lfhk-gap-lg);
}

.lfhk-archive-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lfhk-archive-icon {
    width: 48px;
    height: 48px;
    background: var(--lfhk-color-primary);
    border-radius: var(--lfhk-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lfhk-archive-icon svg {
    width: 24px;
    height: 24px;
    color: var(--lfhk-text-dark);
}

.lfhk-archive-title {
    font-size: 1.75rem;
    margin: 0;
}

.lfhk-archive-description {
    color: var(--lfhk-text-muted);
    margin: 0.5rem 0 0;
}

/* ==========================================================================
   Search
   ========================================================================== */

.lfhk-search-header {
    background: var(--lfhk-bg-white);
    padding: var(--lfhk-gap-lg) 0;
    margin-bottom: var(--lfhk-gap-lg);
    text-align: center;
}

.lfhk-search-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.lfhk-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: var(--lfhk-bg-light);
    border-radius: var(--lfhk-radius-lg);
    overflow: hidden;
}

.lfhk-search-form input[type="search"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.lfhk-search-form button {
    padding: 1rem 1.5rem;
    background: var(--lfhk-color-primary);
    border: none;
    cursor: pointer;
    color: var(--lfhk-text-dark);
    font-weight: 600;
}

.lfhk-search-form button:hover {
    background: var(--lfhk-color-primary-dark);
}

/* ==========================================================================
   404
   ========================================================================== */

.lfhk-404 {
    text-align: center;
    padding: 4rem 1.5rem;
}

.lfhk-404-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--lfhk-color-primary);
    margin-bottom: 1rem;
}

.lfhk-404-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lfhk-404-text {
    color: var(--lfhk-text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.lfhk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lfhk-color-primary);
    color: var(--lfhk-text-dark);
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--lfhk-radius);
    transition: all var(--lfhk-transition);
}

.lfhk-btn:hover {
    background: var(--lfhk-color-primary-dark);
    color: var(--lfhk-text-dark);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.lfhk-comments {
    background: var(--lfhk-bg-white);
    padding: var(--lfhk-gap-lg);
    border-radius: var(--lfhk-radius-lg);
    margin-top: var(--lfhk-gap-lg);
    max-width: var(--lfhk-content-width);
    margin-left: auto;
    margin-right: auto;
}

.lfhk-comments-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--lfhk-border-light);
}

.lfhk-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lfhk-comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--lfhk-border-light);
}

.lfhk-comment:last-child {
    border-bottom: none;
}

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

.lfhk-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.lfhk-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lfhk-comment-author {
    font-weight: 600;
    color: var(--lfhk-text-dark);
}

.lfhk-comment-date {
    font-size: 0.8125rem;
    color: var(--lfhk-text-light);
}

.lfhk-comment-content {
    margin-left: 64px;
}

.lfhk-comment-content p {
    margin-bottom: 0.75rem;
}

.lfhk-comment-reply a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lfhk-color-primary-dark);
}

/* Comment Form */
.lfhk-comment-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--lfhk-border-light);
}

.lfhk-comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.lfhk-comment-form input,
.lfhk-comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--lfhk-border-medium);
    border-radius: var(--lfhk-radius);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color var(--lfhk-transition);
}

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

.lfhk-comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.lfhk-comment-form .submit {
    background: var(--lfhk-color-primary);
    color: var(--lfhk-text-dark);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--lfhk-radius);
    cursor: pointer;
    transition: all var(--lfhk-transition);
}

.lfhk-comment-form .submit:hover {
    background: var(--lfhk-color-primary-dark);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.navigation.pagination,
.lfhk-pagination {
    margin-top: var(--lfhk-gap-lg);
}

.navigation.pagination .nav-links,
.lfhk-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span,
.lfhk-pagination a,
.lfhk-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: var(--lfhk-bg-white);
    color: var(--lfhk-text-body);
    border-radius: var(--lfhk-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--lfhk-transition);
    box-shadow: var(--lfhk-shadow-card);
    text-decoration: none;
}

.navigation.pagination .nav-links a:hover,
.lfhk-pagination a:hover {
    background: var(--lfhk-color-primary);
    color: var(--lfhk-text-dark);
    box-shadow: var(--lfhk-shadow);
}

.navigation.pagination .nav-links .current,
.lfhk-pagination .current {
    background: var(--lfhk-color-primary);
    color: var(--lfhk-text-dark);
    font-weight: 700;
}

.navigation.pagination .nav-links .dots {
    background: transparent;
    box-shadow: none;
    min-width: auto;
    padding: 0 0.5rem;
}

.navigation.pagination .nav-links .prev,
.navigation.pagination .nav-links .next {
    padding: 0 1.25rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.lfhk-breadcrumbs {
    background: var(--lfhk-bg-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--lfhk-border-light);
    font-size: 0.875rem;
}

.lfhk-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lfhk-breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lfhk-text-muted);
}

.lfhk-breadcrumbs-item::after {
    content: '/';
    color: var(--lfhk-text-light);
}

.lfhk-breadcrumbs-item:last-child::after {
    display: none;
}

.lfhk-breadcrumbs-item a {
    color: var(--lfhk-text-body);
}

.lfhk-breadcrumbs-item a:hover {
    color: var(--lfhk-color-primary-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.lfhk-footer {
    background: var(--lfhk-bg-footer);
    color: var(--lfhk-text-white);
    margin-top: var(--lfhk-gap-lg);
}

.lfhk-footer-widgets {
    padding: var(--lfhk-gap-lg) 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--lfhk-gap-lg);
}

.lfhk-footer-widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--lfhk-text-white);
}

.lfhk-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lfhk-footer-widget li {
    margin-bottom: 0.625rem;
}

.lfhk-footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--lfhk-transition);
}

.lfhk-footer-widget a:hover {
    color: var(--lfhk-color-primary);
}

.lfhk-footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.lfhk-copyright {
    color: rgba(255, 255, 255, 0.6);
}

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

.lfhk-footer-nav a {
    color: rgba(255, 255, 255, 0.6);
}

.lfhk-footer-nav a:hover {
    color: var(--lfhk-color-primary);
}

/* Scroll Top */
.lfhk-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--lfhk-color-primary);
    color: var(--lfhk-text-dark);
    border: none;
    border-radius: var(--lfhk-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--lfhk-transition);
    z-index: 900;
}

.lfhk-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lfhk-scroll-top:hover {
    background: var(--lfhk-color-primary-dark);
}

.lfhk-scroll-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .lfhk-main-wrapper.has-sidebar {
        grid-template-columns: 1fr;
    }

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

    .lfhk-card.featured {
        grid-column: span 2;
    }

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

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

@media (max-width: 768px) {
    :root {
        --lfhk-gap: 1rem;
        --lfhk-gap-lg: 2rem;
    }

    .lfhk-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--lfhk-bg-white);
        padding: 1rem;
        border-top: 1px solid var(--lfhk-border-light);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .lfhk-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .lfhk-nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .lfhk-nav-list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .lfhk-menu-toggle {
        display: flex;
    }

    .lfhk-cards-grid {
        grid-template-columns: 1fr;
    }

    .lfhk-card.featured {
        grid-column: span 1;
    }

    .lfhk-card.featured .lfhk-card-image {
        aspect-ratio: 16/10;
    }

    .lfhk-card.featured .lfhk-card-title {
        font-size: 1.25rem;
    }

    .lfhk-single-title {
        font-size: 1.75rem;
    }

    .lfhk-post-nav {
        grid-template-columns: 1fr;
    }

    .lfhk-post-nav-item.next {
        text-align: left;
    }

    .lfhk-footer-widgets {
        grid-template-columns: 1fr;
    }

    .lfhk-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .lfhk-footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .lfhk-related-grid {
        grid-template-columns: 1fr;
    }

    .lfhk-sidebar {
        display: none;
    }

    .lfhk-404-code {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .lfhk-container {
        padding: 0 1rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .lfhk-single-content {
        padding: 1.5rem;
    }

    .lfhk-comment-content {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.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(--lfhk-text-muted);
    margin-top: 0.5rem;
}

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

.gallery-item {
    margin: 0;
}

.gallery-caption {
    font-size: 0.8125rem;
    color: var(--lfhk-text-muted);
    margin-top: 0.5rem;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.lfhk-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--lfhk-bg-white);
    border-radius: var(--lfhk-radius-lg);
}

.lfhk-no-results-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.lfhk-no-results-text {
    color: var(--lfhk-text-muted);
    margin-bottom: 1.5rem;
}

/* Interlinking Section */
.life-interlinking {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.life-interlinking-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.life-interlinking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.life-interlinking-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}
.life-interlinking-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--life-color-primary, #333);
}
.life-interlinking-list a {
    color: var(--life-color-primary, #333);
    text-decoration: none;
}
.life-interlinking-list a:hover {
    text-decoration: underline;
}

/* Grid Layouts */
.lfhk-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lfhk-gap);
}
.lfhk-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--lfhk-gap);
}
.lfhk-grid-list {
    display: flex;
    flex-direction: column;
    gap: var(--lfhk-gap);
}
.lfhk-grid-list .lfhk-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}
.lfhk-grid-list .lfhk-card-image {
    aspect-ratio: 4/3;
    border-radius: var(--lfhk-radius-lg) 0 0 var(--lfhk-radius-lg);
}
.lfhk-grid-list .lfhk-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lfhk-grid-list .lfhk-card-title { font-size: 1.25rem; }
.lfhk-grid-list .lfhk-card-excerpt { -webkit-line-clamp: 2; }

@media (max-width: 1024px) {
    .lfhk-grid-3col { grid-template-columns: repeat(2, 1fr); }
    .lfhk-grid-list .lfhk-card { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
    .lfhk-grid-3col,
    .lfhk-grid-2col { grid-template-columns: 1fr; }
    .lfhk-grid-list .lfhk-card {
        grid-template-columns: 1fr;
    }
    .lfhk-grid-list .lfhk-card-image {
        aspect-ratio: 16/10;
        border-radius: var(--lfhk-radius-lg) var(--lfhk-radius-lg) 0 0;
    }
}
