/* ==========================================================================
   CachyBlog — Dark Glassmorphism Theme for Ghost
   Matching CachyTheme for Shopware 6 by Hirschmann & Koxha
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Dark backgrounds */
    --hk-dark-900: #050508;
    --hk-dark-800: #0a0a0f;
    --hk-dark-700: #0e0e16;
    --hk-dark-600: #12121c;
    --hk-dark-500: #181825;
    --hk-dark-400: #1e1e2e;
    --hk-dark-300: #2a2a3d;
    --hk-dark-200: #3a3a52;
    --hk-dark-100: #4a4a66;

    /* Brand colors */
    --hk-blue-primary: #3742fa;
    --hk-blue-light: #5b63fc;
    --hk-blue-dark: #2530d9;
    --hk-cyan: #00d4ff;
    --hk-purple: #7c3aed;
    --hk-pink: #ec4899;

    /* Glass layers */
    --hk-glass-bg: rgba(255, 255, 255, 0.03);
    --hk-glass-bg-hover: rgba(255, 255, 255, 0.06);
    --hk-glass-border: rgba(255, 255, 255, 0.08);
    --hk-glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Text hierarchy */
    --hk-text-primary: rgba(255, 255, 255, 0.87);
    --hk-text-secondary: rgba(255, 255, 255, 0.60);
    --hk-text-tertiary: rgba(255, 255, 255, 0.38);
    --hk-text-disabled: rgba(255, 255, 255, 0.20);

    /* Gradients */
    --hk-gradient-primary: linear-gradient(135deg, var(--hk-blue-primary), var(--hk-cyan));
    --hk-gradient-surface: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));

    /* Blur */
    --hk-blur-sm: 8px;
    --hk-blur-md: 16px;
    --hk-blur-lg: 24px;
    --hk-blur-xl: 40px;

    /* Transitions */
    --hk-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --hk-transition-fast: 0.15s var(--hk-ease);
    --hk-transition-normal: 0.3s var(--hk-ease);
    --hk-transition-slow: 0.5s var(--hk-ease);
    --hk-transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --hk-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --hk-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
    --hk-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

    /* Radius */
    --hk-radius-sm: 8px;
    --hk-radius-md: 12px;
    --hk-radius-lg: 16px;
    --hk-radius-xl: 20px;

    /* Layout */
    --hk-content-width: 720px;
    --hk-wide-width: 1200px;
    --hk-max-width: 1400px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--hk-text-primary);
    background: var(--hk-dark-800);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.hk-main {
    flex: 1;
}

a {
    color: var(--hk-cyan);
    text-decoration: none;
    transition: color var(--hk-transition-fast);
}

a:hover {
    color: #33ddff;
}

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

::selection {
    background: rgba(55, 66, 250, 0.4);
    color: #fff;
}

/* Dark scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--hk-dark-900);
}
::-webkit-scrollbar-thumb {
    background: var(--hk-dark-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--hk-dark-200);
}

/* --------------------------------------------------------------------------
   3. Reading Progress Bar
   -------------------------------------------------------------------------- */
.hk-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10000;
    background: transparent;
}

.hk-reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--hk-gradient-primary);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* --------------------------------------------------------------------------
   4. Animated Background Orbs
   -------------------------------------------------------------------------- */
.hk-bg-orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.hk-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.hk-bg-orb-1 {
    width: 700px;
    height: 700px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(55, 66, 250, 0.3) 0%, transparent 70%);
    animation: orbFloat1 25s ease-in-out infinite;
}

.hk-bg-orb-2 {
    width: 500px;
    height: 500px;
    top: 50%;
    right: -150px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    animation: orbFloat2 30s ease-in-out infinite;
}

.hk-bg-orb-3 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: 20%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    animation: orbFloat3 20s ease-in-out infinite;
}

.hk-bg-orb-4 {
    width: 350px;
    height: 350px;
    top: 30%;
    left: 60%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    animation: orbFloat4 28s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 50px) scale(1.05); }
    66% { transform: translate(-30px, 80px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -40px) scale(1.08); }
    66% { transform: translate(40px, -60px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -50px) scale(1.1); }
}

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-40px, 30px) scale(1.05); }
    75% { transform: translate(30px, -40px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.hk-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(var(--hk-blur-xl));
    -webkit-backdrop-filter: blur(var(--hk-blur-xl));
    border-bottom: 1px solid var(--hk-glass-border);
    transition: all var(--hk-transition-normal);
    padding: 0 2rem;
}

.hk-header.header-scrolled {
    background: rgba(10, 10, 15, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.hk-header.hk-header-solid {
    background: var(--hk-dark-800);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hk-header.hk-header-solid.header-scrolled {
    background: var(--hk-dark-900);
}

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

/* Logo */
.hk-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hk-logo img {
    max-height: 50px;
    width: auto;
    transition: filter var(--hk-transition-fast);
}

.hk-logo:hover img {
    filter: brightness(1.15);
}

.hk-logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    background: var(--hk-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header sections */
.hk-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hk-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Navigation */
.hk-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.hk-nav li a {
    position: relative;
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--hk-text-secondary);
    transition: color var(--hk-transition-fast);
    border-radius: var(--hk-radius-sm);
}

.hk-nav li a:hover,
.hk-nav li a.active {
    color: #fff;
}

.hk-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--hk-gradient-primary);
    border-radius: 1px;
    transition: transform var(--hk-transition-normal);
}

.hk-nav li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Search */
.hk-search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

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

.hk-search-toggle:hover {
    color: #fff;
    background: var(--hk-glass-bg-hover);
}

.hk-search-toggle svg {
    width: 18px;
    height: 18px;
}

.hk-search-form {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all var(--hk-transition-normal);
    margin-right: 0.5rem;
}

.hk-search-form.is-active {
    max-width: 340px;
    opacity: 1;
}

.hk-search-form form {
    display: flex;
    align-items: center;
    position: relative;
}

.hk-search-input {
    width: 300px;
    padding: 0.8rem 3.5rem 0.8rem 1.4rem;
    background: var(--hk-glass-bg);
    backdrop-filter: blur(var(--hk-blur-md));
    -webkit-backdrop-filter: blur(var(--hk-blur-md));
    border: 1px solid var(--hk-glass-border);
    border-radius: var(--hk-radius-md);
    color: var(--hk-text-primary);
    font-family: inherit;
    font-size: 1.4rem;
    outline: none;
    transition: all var(--hk-transition-fast);
}

.hk-search-input:focus {
    border-color: var(--hk-blue-primary);
    box-shadow: 0 0 0 3px rgba(55, 66, 250, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.hk-search-input::placeholder {
    color: var(--hk-text-tertiary);
}

.hk-search-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--hk-text-tertiary);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--hk-transition-fast);
}

.hk-search-close:hover {
    color: #fff;
    background: var(--hk-glass-bg-hover);
}

.hk-search-close svg {
    width: 14px;
    height: 14px;
}

/* Burger menu (mobile) */
.hk-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hk-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--hk-text-primary);
    border-radius: 1px;
    transition: all var(--hk-transition-normal);
}

.hk-burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hk-burger.is-active span:nth-child(2) {
    opacity: 0;
}
.hk-burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.hk-mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(var(--hk-blur-lg));
    -webkit-backdrop-filter: blur(var(--hk-blur-lg));
    z-index: 999;
    padding: 2rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--hk-transition-normal);
    pointer-events: none;
}

.hk-mobile-nav.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.hk-mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hk-mobile-nav-inner a {
    display: block;
    padding: 1.2rem 1.5rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--hk-text-secondary);
    border-radius: var(--hk-radius-md);
    transition: all var(--hk-transition-fast);
}

.hk-mobile-nav-inner a:hover {
    color: #fff;
    background: var(--hk-glass-bg-hover);
}

.hk-mobile-nav-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hk-glass-border);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.hk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--hk-transition-normal);
    gap: 0.5rem;
    text-decoration: none;
    line-height: 1;
}

.hk-btn-primary {
    background: rgba(55, 66, 250, 0.18);
    backdrop-filter: blur(var(--hk-blur-md));
    -webkit-backdrop-filter: blur(var(--hk-blur-md));
    border: 1px solid rgba(55, 66, 250, 0.3);
    color: #fff;
}

.hk-btn-primary:hover {
    background: rgba(55, 66, 250, 0.28);
    border-color: rgba(55, 66, 250, 0.5);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(55, 66, 250, 0.3);
}

.hk-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hk-glass-border);
    color: var(--hk-text-secondary);
}

.hk-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hk-glass-border-hover);
    color: #fff;
}

.hk-btn-full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   7. Post Feed / Card Grid
   -------------------------------------------------------------------------- */
.hk-feed-header {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: var(--hk-wide-width);
    margin: 0 auto;
}

.hk-feed-title {
    font-size: 3.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hk-feed-title-gradient {
    background: var(--hk-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hk-feed-description {
    font-size: 1.8rem;
    color: var(--hk-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.hk-post-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: var(--hk-wide-width);
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.hk-post-feed.is-list {
    grid-template-columns: 1fr;
    max-width: var(--hk-content-width);
}

/* --------------------------------------------------------------------------
   8. Post Card (Glass Card)
   -------------------------------------------------------------------------- */
.hk-post-card {
    background: var(--hk-glass-bg);
    backdrop-filter: blur(var(--hk-blur-md));
    -webkit-backdrop-filter: blur(var(--hk-blur-md));
    border: 1px solid var(--hk-glass-border);
    border-radius: var(--hk-radius-lg);
    overflow: hidden;
    transition: all var(--hk-transition-normal);
    display: flex;
    flex-direction: column;
}

.hk-post-card:hover {
    background: var(--hk-glass-bg-hover);
    border-color: var(--hk-glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--hk-glass-border-hover);
}

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

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

.hk-post-card:hover .hk-post-card-image img {
    transform: scale(1.06);
}

.hk-post-card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--hk-glass-border);
    border-radius: 6px;
}

.hk-post-card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hk-post-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.hk-post-card-title a {
    color: inherit;
    text-decoration: none;
}

.hk-post-card-title a:hover {
    color: inherit;
}

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

.hk-post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    color: var(--hk-text-tertiary);
    padding-top: 1.2rem;
    border-top: 1px solid var(--hk-glass-border);
}

.hk-post-card-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hk-post-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--hk-glass-border);
}

/* Featured card (first/large) */
.hk-post-card.is-featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.hk-post-card.is-featured .hk-post-card-image {
    flex: 1;
    aspect-ratio: auto;
    min-height: 350px;
}

.hk-post-card.is-featured .hk-post-card-content {
    flex: 1;
    padding: 2.5rem;
    justify-content: center;
}

.hk-post-card.is-featured .hk-post-card-title {
    font-size: 2.6rem;
}

.hk-post-card.is-featured .hk-post-card-excerpt {
    font-size: 1.6rem;
    -webkit-line-clamp: 4;
}

/* List layout card */
.hk-post-feed.is-list .hk-post-card {
    flex-direction: row;
}

.hk-post-feed.is-list .hk-post-card-image {
    width: 280px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.hk-post-feed.is-list .hk-post-card-content {
    padding: 2rem;
}

/* --------------------------------------------------------------------------
   9. Single Post / Article
   -------------------------------------------------------------------------- */
.hk-article {
    max-width: var(--hk-content-width);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.hk-article-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hk-article-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hk-cyan);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    margin-bottom: 2rem;
}

.hk-article-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hk-article-excerpt {
    font-size: 2rem;
    color: var(--hk-text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.hk-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.4rem;
    color: var(--hk-text-tertiary);
    flex-wrap: wrap;
}

.hk-article-meta-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hk-article-meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hk-glass-border);
}

.hk-article-meta-name {
    color: var(--hk-text-primary);
    font-weight: 500;
}

.hk-article-meta-sep {
    color: var(--hk-text-disabled);
}

.hk-article-feature-image {
    margin: 0 -6rem 4rem;
    border-radius: var(--hk-radius-lg);
    overflow: hidden;
}

.hk-article-feature-image img {
    width: 100%;
    border-radius: var(--hk-radius-lg);
}

.hk-article-feature-image figcaption {
    text-align: center;
    font-size: 1.3rem;
    color: var(--hk-text-tertiary);
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   10. Ghost Content Styles (.gh-content)
   -------------------------------------------------------------------------- */
.gh-content {
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--hk-text-primary);
}

.gh-content > * + * {
    margin-top: 2rem;
}

.gh-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-top: 4rem;
}

.gh-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-top: 3rem;
}

.gh-content h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2.5rem;
}

.gh-content p {
    color: var(--hk-text-primary);
}

.gh-content strong {
    color: #fff;
    font-weight: 600;
}

.gh-content em {
    font-style: italic;
}

.gh-content a {
    color: var(--hk-cyan);
    text-decoration: underline;
    text-decoration-color: rgba(0, 212, 255, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--hk-transition-fast);
}

.gh-content a:hover {
    text-decoration-color: var(--hk-cyan);
}

.gh-content blockquote {
    position: relative;
    padding: 1.5rem 2.5rem;
    margin: 3rem 0;
    border-left: 3px solid;
    border-image: var(--hk-gradient-primary) 1;
    background: var(--hk-glass-bg);
    border-radius: 0 var(--hk-radius-md) var(--hk-radius-md) 0;
    font-style: italic;
    color: var(--hk-text-secondary);
}

.gh-content blockquote p {
    color: var(--hk-text-secondary);
}

.gh-content ul,
.gh-content ol {
    padding-left: 2.5rem;
    color: var(--hk-text-primary);
}

.gh-content li {
    margin-top: 0.8rem;
}

.gh-content li::marker {
    color: var(--hk-cyan);
}

.gh-content pre {
    background: var(--hk-dark-700);
    border: 1px solid var(--hk-glass-border);
    border-radius: var(--hk-radius-md);
    padding: 2rem;
    overflow-x: auto;
    font-size: 1.4rem;
    line-height: 1.6;
}

.gh-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.9em;
}

.gh-content :not(pre) > code {
    background: var(--hk-glass-bg);
    border: 1px solid var(--hk-glass-border);
    border-radius: 4px;
    padding: 0.15em 0.4em;
    color: var(--hk-cyan);
}

.gh-content hr {
    border: none;
    height: 2px;
    background: var(--hk-gradient-primary);
    margin: 4rem 0;
    border-radius: 1px;
    opacity: 0.3;
}

.gh-content img,
.gh-content picture {
    border-radius: var(--hk-radius-md);
    margin: 3rem 0;
}

.gh-content figcaption {
    text-align: center;
    font-size: 1.3rem;
    color: var(--hk-text-tertiary);
    margin-top: 1rem;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
}

.gh-content table th,
.gh-content table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--hk-glass-border);
}

.gh-content table th {
    color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--hk-glass-bg);
}

.gh-content table td {
    color: var(--hk-text-primary);
    font-size: 1.5rem;
}

.gh-content table tr:hover td {
    background: var(--hk-glass-bg);
}

/* Ghost cards (bookmark, gallery, callout, etc.) */
.kg-card {
    margin: 3rem 0;
}

.kg-image-card img,
.kg-gallery-image img {
    border-radius: var(--hk-radius-md);
}

.kg-bookmark-card {
    background: var(--hk-glass-bg);
    border: 1px solid var(--hk-glass-border);
    border-radius: var(--hk-radius-lg);
    overflow: hidden;
    transition: all var(--hk-transition-normal);
}

.kg-bookmark-card:hover {
    border-color: var(--hk-glass-border-hover);
    box-shadow: var(--hk-shadow-sm);
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    padding: 1.5rem;
    flex: 1;
}

.kg-bookmark-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.kg-bookmark-description {
    font-size: 1.3rem;
    color: var(--hk-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--hk-text-tertiary);
}

.kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.kg-bookmark-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-callout-card {
    background: var(--hk-glass-bg);
    border: 1px solid var(--hk-glass-border);
    border-radius: var(--hk-radius-md);
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.kg-callout-emoji {
    font-size: 2rem;
    line-height: 1;
}

.kg-callout-text {
    flex: 1;
    color: var(--hk-text-primary);
}

.kg-gallery-container {
    display: grid;
    gap: 1rem;
}

.kg-gallery-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

/* Width modifiers */
.kg-width-wide {
    margin-left: -6rem;
    margin-right: -6rem;
}

.kg-width-full {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* --------------------------------------------------------------------------
   11. Author Section
   -------------------------------------------------------------------------- */
.hk-author-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--hk-glass-border);
}

.hk-author-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--hk-glass-bg);
    border: 1px solid var(--hk-glass-border);
    border-radius: var(--hk-radius-lg);
    padding: 2.5rem;
}

.hk-author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hk-glass-border);
    flex-shrink: 0;
}

.hk-author-card-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.hk-author-card-bio {
    font-size: 1.4rem;
    color: var(--hk-text-secondary);
    line-height: 1.6;
}

.hk-author-card-meta {
    font-size: 1.2rem;
    color: var(--hk-text-tertiary);
    margin-top: 0.8rem;
}

/* --------------------------------------------------------------------------
   12. Related Posts
   -------------------------------------------------------------------------- */
.hk-related {
    max-width: var(--hk-wide-width);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.hk-related-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    text-align: center;
}

.hk-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* --------------------------------------------------------------------------
   13. Pagination
   -------------------------------------------------------------------------- */
.hk-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 2rem 6rem;
    font-size: 1.4rem;
    color: var(--hk-text-tertiary);
}

.hk-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: var(--hk-glass-bg);
    border: 1px solid var(--hk-glass-border);
    border-radius: var(--hk-radius-md);
    color: var(--hk-text-secondary);
    font-weight: 500;
    transition: all var(--hk-transition-normal);
}

.hk-pagination a:hover {
    background: var(--hk-glass-bg-hover);
    border-color: var(--hk-glass-border-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   14. Tag & Author Archive
   -------------------------------------------------------------------------- */
.hk-archive-header {
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hk-archive-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hk-archive-description {
    font-size: 1.6rem;
    color: var(--hk-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hk-archive-count {
    font-size: 1.4rem;
    color: var(--hk-text-tertiary);
    margin-top: 0.5rem;
}

.hk-author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hk-author-header-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hk-glass-border);
    margin-bottom: 0.5rem;
}

.hk-author-header-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.hk-author-header-social a {
    color: var(--hk-text-tertiary);
    transition: color var(--hk-transition-fast);
}

.hk-author-header-social a:hover {
    color: var(--hk-cyan);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.hk-footer {
    background: var(--hk-dark-900);
    border-top: 2px solid;
    border-image: var(--hk-gradient-primary) 1;
    padding: 5rem 2rem 3rem;
    margin-top: 4rem;
}

.hk-footer-inner {
    max-width: var(--hk-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 4rem;
}

.hk-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hk-footer-logo {
    display: inline-flex;
}

.hk-footer-logo img {
    max-height: 40px;
    width: auto;
}

.hk-footer-logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--hk-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hk-footer-description {
    font-size: 1.4rem;
    color: var(--hk-text-secondary);
    line-height: 1.6;
}

.hk-footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.hk-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--hk-gradient-primary);
    border-radius: 1px;
}

.hk-footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hk-footer-nav a {
    font-size: 1.4rem;
    color: var(--hk-text-secondary);
    transition: all var(--hk-transition-fast);
    padding-left: 0;
}

.hk-footer-nav a:hover {
    color: #fff;
    padding-left: 6px;
}

/* Secondary navigation (Ghost Admin → Navigation → Secondary) */
.hk-footer-secondary {
    max-width: var(--hk-max-width);
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--hk-glass-border);
}

.hk-footer-secondary .nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    padding: 0;
    margin: 0;
}

.hk-footer-secondary .nav li a {
    font-size: 1.3rem;
    color: var(--hk-text-tertiary);
    transition: color var(--hk-transition-fast);
}

.hk-footer-secondary .nav li a:hover {
    color: #fff;
}

.hk-footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hk-glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--hk-max-width);
    margin-left: auto;
    margin-right: auto;
}

.hk-footer-copyright {
    font-size: 1.2rem;
    color: var(--hk-text-tertiary);
}

.hk-footer-powered {
    font-size: 1.2rem;
    color: var(--hk-text-tertiary);
}

.hk-footer-powered a {
    color: var(--hk-text-secondary);
}

/* --------------------------------------------------------------------------
   16. Error Pages
   -------------------------------------------------------------------------- */
.hk-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 4rem 2rem;
}

.hk-error-code {
    font-size: 12rem;
    font-weight: 900;
    line-height: 1;
    background: var(--hk-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 2rem;
}

.hk-error-message {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.hk-error-description {
    font-size: 1.6rem;
    color: var(--hk-text-secondary);
    margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   17. Scroll Animations
   -------------------------------------------------------------------------- */
.hk-animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--hk-ease), transform 0.6s var(--hk-ease);
}

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

/* Stagger */
.hk-stagger-1 { transition-delay: 0.05s; }
.hk-stagger-2 { transition-delay: 0.10s; }
.hk-stagger-3 { transition-delay: 0.15s; }
.hk-stagger-4 { transition-delay: 0.20s; }
.hk-stagger-5 { transition-delay: 0.25s; }
.hk-stagger-6 { transition-delay: 0.30s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(55, 66, 250, 0.2); }
    50% { box-shadow: 0 0 40px rgba(55, 66, 250, 0.4); }
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hk-post-feed {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hk-post-card.is-featured {
        flex-direction: column;
    }

    .hk-post-card.is-featured .hk-post-card-image {
        min-height: 250px;
    }

    .hk-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .hk-article-feature-image {
        margin-left: -2rem;
        margin-right: -2rem;
    }

    .kg-width-wide {
        margin-left: -2rem;
        margin-right: -2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 60%;
    }

    .hk-header-center,
    .hk-header-right .hk-btn {
        display: none;
    }

    .hk-burger {
        display: flex;
    }

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

    .hk-post-feed {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .hk-feed-title {
        font-size: 2.8rem;
    }

    .hk-article-title {
        font-size: 2.8rem;
    }

    .hk-article-excerpt {
        font-size: 1.6rem;
    }

    .hk-article-feature-image {
        margin-left: -2rem;
        margin-right: -2rem;
    }

    .hk-footer-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hk-post-feed.is-list .hk-post-card {
        flex-direction: column;
    }

    .hk-post-feed.is-list .hk-post-card-image {
        width: 100%;
    }

    .hk-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .kg-width-wide,
    .kg-width-full {
        margin-left: -2rem;
        margin-right: -2rem;
    }

    .hk-search-form.is-active {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        max-width: none;
        padding: 1rem 2rem;
        background: rgba(10, 10, 15, 0.95);
        border-bottom: 1px solid var(--hk-glass-border);
    }

    .hk-search-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hk-post-card-content {
        padding: 1.4rem;
    }

    .hk-article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hk-article-meta-sep {
        display: none;
    }

    .hk-bg-orb-1 { width: 400px; height: 400px; }
    .hk-bg-orb-2 { width: 300px; height: 300px; }
    .hk-bg-orb-3 { width: 250px; height: 250px; }
    .hk-bg-orb-4 { display: none; }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
    .hk-header,
    .hk-footer,
    .hk-bg-orbs-container,
    .hk-reading-progress,
    .hk-related,
    .hk-pagination {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .gh-content {
        color: #000;
    }

    .gh-content a {
        color: #000;
        text-decoration: underline;
    }
}
