/*
Theme Name: Collector Theme
Theme URI: 
Author: 
Author URI: 
Description: Elegancki, konfigurowalny motyw WordPress dla kolekcjonerów. Obsługuje dowolny rodzaj kolekcji – monety, dzwonki, znaczki, miniatury i inne. Pełna personalizacja przez Customizer WordPress.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: collector-theme
*/

/* ============================================
   1. DESIGN TOKENS (Stock defaults)
   Values are overridden by Customizer via inline CSS
   ============================================ */
:root {
    /* Primary accent */
    --ct-accent:        #3d9970;
    --ct-accent-light:  #52c48d;
    --ct-accent-glow:   rgba(61, 153, 112, 0.25);

    /* Backgrounds — dark mode */
    --ct-bg-base:       #0f1117;
    --ct-bg-surface:    #181c27;
    --ct-bg-card:       rgba(24, 28, 39, 0.9);
    --ct-bg-glass:      rgba(15, 17, 23, 0.7);

    /* Text */
    --ct-text:          #e8eaf0;
    --ct-text-muted:    #8892a4;
    --ct-heading:       #f0f2f8;

    /* Borders */
    --ct-border:        rgba(61, 153, 112, 0.15);
    --ct-border-strong: rgba(61, 153, 112, 0.35);

    /* Shadows */
    --ct-shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
    --ct-shadow-md:     0 8px 24px rgba(0,0,0,0.4);
    --ct-shadow-lg:     0 16px 48px rgba(0,0,0,0.5);
    --ct-shadow-glow:   0 0 24px rgba(61, 153, 112, 0.2);

    /* Spacing & radius */
    --ct-radius:        8px;
    --ct-radius-lg:     16px;
    --ct-radius-xl:     24px;

    /* Transitions */
    --ct-ease:          0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ct-ease-slow:     0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light theme overrides */
body.ct-light {
    --ct-bg-base:       #f4f6f9;
    --ct-bg-surface:    #ffffff;
    --ct-bg-card:       rgba(255, 255, 255, 0.95);
    --ct-bg-glass:      rgba(244, 246, 249, 0.85);
    --ct-text:          #1a1d28;
    --ct-text-muted:    #5a6275;
    --ct-heading:       #0f1117;
    --ct-border:        rgba(61, 153, 112, 0.18);
    --ct-border-strong: rgba(61, 153, 112, 0.4);
    --ct-shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
    --ct-shadow-md:     0 8px 24px rgba(0,0,0,0.1);
    --ct-shadow-lg:     0 16px 48px rgba(0,0,0,0.12);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background-color: var(--ct-bg-base);
    color: var(--ct-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--ct-ease), color var(--ct-ease);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ct-bg-base); }
::-webkit-scrollbar-thumb {
    background: var(--ct-accent);
    border-radius: 4px;
    border: 2px solid var(--ct-bg-base);
}
::-webkit-scrollbar-thumb:hover { background: var(--ct-accent-light); }

h1,h2,h3,h4,h5,h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ct-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: var(--ct-accent);
    text-decoration: none;
    transition: color var(--ct-ease);
}
a:hover { color: var(--ct-accent-light); }

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

/* ============================================
   3. LAYOUT
   ============================================ */
.ct-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.ct-container--narrow {
    max-width: 860px;
}

.site-main {
    padding-top: 80px;
    min-height: 60vh;
}

/* ============================================
   4. HEADER
   ============================================ */
.ct-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    background: var(--ct-bg-surface);
    border-bottom: 1px solid var(--ct-border);
    transition: all var(--ct-ease);
}

.ct-header.scrolled {
    height: 60px;
    box-shadow: var(--ct-shadow-md);
    background: var(--ct-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ct-nav-wrap {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.ct-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ct-logo img,
.ct-logo .custom-logo {
    height: 44px;
    width: auto;
    transition: transform var(--ct-ease);
}
.ct-logo a:hover img,
.ct-logo a:hover .custom-logo { transform: scale(1.04); }

.ct-logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ct-heading);
    white-space: nowrap;
}

/* Navigation */
.ct-nav > ul,
.ct-nav > div > ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0; padding: 0;
    align-items: center;
}

.ct-nav li { position: relative; }

.ct-nav li > a {
    color: var(--ct-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 0;
    display: block;
    position: relative;
    transition: color var(--ct-ease);
}

.ct-nav li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--ct-accent);
    border-radius: 2px;
    transition: width var(--ct-ease);
}

.ct-nav li > a:hover,
.ct-nav li.current-menu-item > a,
.ct-nav li.current_page_item > a { color: var(--ct-accent); }

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

/* Dropdown */
.ct-nav ul ul,
.ct-nav .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 200px;
    background: var(--ct-bg-surface);
    border: 1px solid var(--ct-border-strong);
    border-radius: var(--ct-radius-lg);
    padding: 8px 0;
    box-shadow: var(--ct-shadow-lg), var(--ct-shadow-glow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    flex-direction: column;
    gap: 0;
    z-index: 100;
}

.ct-nav ul ul ul,
.ct-nav .sub-menu .sub-menu {
    top: -8px;
    left: 100%;
    transform: translateX(8px);
}

.ct-nav li:hover > ul,
.ct-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ct-nav ul ul li:hover > ul,
.ct-nav .sub-menu li:hover > .sub-menu {
    transform: translateX(0);
}

.ct-nav ul ul li, .ct-nav .sub-menu li { width: 100%; }

.ct-nav ul ul li > a,
.ct-nav .sub-menu li > a {
    font-size: 0.825rem;
    padding: 10px 18px;
    border-bottom: 1px solid var(--ct-border);
    letter-spacing: 0;
}

.ct-nav ul ul li:last-child > a,
.ct-nav .sub-menu li:last-child > a { border-bottom: none; }

.ct-nav ul ul li > a::after,
.ct-nav .sub-menu li > a::after { display: none; }

.ct-nav ul ul li > a:hover,
.ct-nav .sub-menu li > a:hover {
    background: var(--ct-accent-glow);
    color: var(--ct-accent-light);
    padding-left: 24px;
}

/* Header right */
.ct-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ct-counter-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ct-accent);
    background: var(--ct-accent-glow);
    border: 1px solid var(--ct-border-strong);
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
    transition: all var(--ct-ease);
}

.ct-counter-pill:hover {
    background: rgba(61, 153, 112, 0.2);
    box-shadow: var(--ct-shadow-glow);
}

/* Theme toggle */
.ct-theme-toggle {
    background: transparent;
    border: 1px solid var(--ct-border);
    color: var(--ct-text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--ct-ease);
    font-size: 1rem;
}

.ct-theme-toggle:hover {
    border-color: var(--ct-accent);
    color: var(--ct-accent);
    background: var(--ct-accent-glow);
}

/* Hamburger */
.ct-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.ct-hamburger span {
    width: 22px; height: 2px;
    background: var(--ct-text);
    transition: all var(--ct-ease);
    display: block;
    border-radius: 2px;
}

.ct-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ct-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ct-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.ct-search-input {
    background: var(--ct-bg-glass);
    border: 1px solid var(--ct-border);
    border-radius: 20px;
    padding: 8px 36px 8px 14px;
    color: var(--ct-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    width: 180px;
    outline: none;
    transition: all var(--ct-ease);
}

.ct-search-input:focus {
    border-color: var(--ct-accent);
    background: var(--ct-bg-surface);
    width: 220px;
    box-shadow: 0 0 0 3px var(--ct-accent-glow);
}

.ct-search-submit {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--ct-text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color var(--ct-ease);
}

.ct-search-submit:hover { color: var(--ct-accent); }

.dropdown-toggle { display: none; }

/* ============================================
   5. HERO – STYL 1: SLIDESHOW (fullscreen)
   ============================================ */
.ct-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    overflow: hidden;
    background: var(--ct-bg-base);
}

/* Slideshow BG */
.ct-hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ct-hero-slideshow .ct-slide {
    position: absolute;
    inset: -5%;
    width: 110%; height: 110%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: ctFadeSlide 24s infinite;
    filter: brightness(0.3) blur(3px);
    transition: filter var(--ct-ease);
}

body.ct-light .ct-hero-slideshow .ct-slide {
    filter: brightness(0.7) blur(3px) saturate(0.8);
}

.ct-hero-slideshow .ct-slide:nth-child(1) { animation-delay: 0s; }
.ct-hero-slideshow .ct-slide:nth-child(2) { animation-delay: 8s; }
.ct-hero-slideshow .ct-slide:nth-child(3) { animation-delay: 16s; }

@keyframes ctFadeSlide {
    0%   { opacity: 0; transform: scale(1); }
    5%   { opacity: 1; }
    33%  { opacity: 1; }
    38%  { opacity: 0; }
    100% { opacity: 0; transform: scale(1.08); }
}

/* Gradient overlay */
.ct-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, var(--ct-accent-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.ct-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--ct-bg-base), transparent);
    z-index: 2;
    pointer-events: none;
}

.ct-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
}

.ct-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ct-accent);
    background: var(--ct-accent-glow);
    border: 1px solid var(--ct-border-strong);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.ct-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--ct-heading);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.ct-hero-title .ct-highlight {
    color: var(--ct-accent);
    display: block;
}

.ct-hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--ct-text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.ct-hero-count {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 36px;
}

.ct-hero-count .ct-num {
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--ct-accent);
    line-height: 1;
    font-weight: 700;
}

.ct-hero-count .ct-label {
    font-size: 1.1rem;
    color: var(--ct-text-muted);
    letter-spacing: 2px;
    text-transform: lowercase;
}

.ct-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── STYL 2: CENTERED (jedno zdjęcie + gradient) ── */
.ct-hero--centered {
    min-height: 90vh;
}

.ct-hero--centered .ct-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
}

/* ── STYL 3: SPLIT (pół/pół) ── */
.ct-hero--split {
    min-height: 100vh;
    text-align: left;
    padding: 80px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ct-hero--split::before,
.ct-hero--split::after { display: none; }

.ct-hero--split .ct-hero-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
}

.ct-hero--split .ct-hero-content .ct-hero-actions { justify-content: flex-start; }

.ct-hero--split .ct-hero-image-panel {
    position: relative;
    overflow: hidden;
}

.ct-hero--split .ct-hero-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-hero--split .ct-hero-image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--ct-bg-base), transparent 50%);
    z-index: 1;
}

/* ============================================
   6. BUTTONS
   ============================================ */
.ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--ct-radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--ct-ease);
    border: none;
    text-decoration: none;
}

.ct-btn--primary {
    background: var(--ct-accent);
    color: #fff;
}

.ct-btn--primary:hover {
    background: var(--ct-accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--ct-accent-glow);
}

.ct-btn--outline {
    background: transparent;
    color: var(--ct-accent);
    border: 1.5px solid var(--ct-border-strong);
}

.ct-btn--outline:hover {
    background: var(--ct-accent-glow);
    border-color: var(--ct-accent);
    color: var(--ct-accent);
    transform: translateY(-2px);
}

/* Legacy alias for compatibility */
.ct-button,
.bc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--ct-radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--ct-ease);
    border: none;
    text-decoration: none;
    background: var(--ct-accent);
    color: #fff;
}
.ct-button:hover,
.bc-button:hover {
    background: var(--ct-accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--ct-accent-glow);
}

/* ============================================
   7. DIVIDER / SECTION LABEL
   ============================================ */
.ct-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ct-accent);
    margin-bottom: 12px;
}

.ct-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--ct-heading);
    margin-bottom: 8px;
}

.ct-divider {
    width: 48px;
    height: 3px;
    background: var(--ct-accent);
    border-radius: 2px;
    margin: 0 0 40px;
}

.ct-divider--center { margin: 0 auto 40px; }

/* ============================================
   8. POST CARDS
   ============================================ */
.ct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.ct-card {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-lg);
    overflow: hidden;
    transition: all var(--ct-ease);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ct-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--ct-radius-lg);
    box-shadow: 0 0 0 1px var(--ct-border-strong), var(--ct-shadow-glow);
    opacity: 0;
    transition: opacity var(--ct-ease);
    pointer-events: none;
}

.ct-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ct-shadow-lg);
    border-color: var(--ct-border-strong);
}

.ct-card:hover::after { opacity: 1; }

.ct-card a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ct-card-thumb {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--ct-bg-surface);
    flex-shrink: 0;
}

.ct-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--ct-ease-slow);
}

.ct-card:hover .ct-card-thumb img { transform: scale(1.07); }

.ct-card-thumb .ct-no-thumb {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ct-bg-surface), var(--ct-bg-card));
    color: var(--ct-accent);
    font-size: 3rem;
    opacity: 0.3;
}

/* Top accent bar */
.ct-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ct-accent);
    border-radius: var(--ct-radius-lg) var(--ct-radius-lg) 0 0;
    transform: scaleX(0);
    transition: transform var(--ct-ease);
    z-index: 5;
}

.ct-card:hover::before { transform: scaleX(1); }

.ct-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ct-card-body h3 {
    font-size: 1.05rem;
    margin: 0 0 12px;
    color: var(--ct-heading);
    transition: color var(--ct-ease);
    line-height: 1.4;
}

.ct-card:hover .ct-card-body h3 { color: var(--ct-accent); }

.ct-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--ct-text-muted);
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--ct-border);
}

.ct-card-meta svg { opacity: 0.7; vertical-align: middle; margin-right: 4px; }

.ct-card-cta {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--ct-accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--ct-ease);
}

.ct-card:hover .ct-card-cta { gap: 8px; }

/* FEATURED CARD */
.ct-card--featured {
    height: 460px;
}
.ct-card--featured .ct-card-thumb { height: 280px; }

/* ============================================
   9. HOMEPAGE LAYOUT
   ============================================ */
.ct-home-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    padding: 72px 0;
}

.ct-home-layout > * { min-width: 0; }

/* ============================================
   10. SIDEBAR WIDGETS
   ============================================ */
.ct-sidebar .ct-widget {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.ct-sidebar .ct-widget::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 36px 36px 0;
    border-color: transparent var(--ct-accent) transparent transparent;
    opacity: 0.3;
}

.ct-widget-title {
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    color: var(--ct-heading);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ct-border-strong);
}

.ct-about-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 2px solid var(--ct-accent);
    overflow: hidden;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 5px var(--ct-accent-glow);
}

.ct-about-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ct-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.ct-socials a {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ct-border-strong);
    border-radius: 50%;
    color: var(--ct-accent);
    transition: all var(--ct-ease);
}

.ct-socials a:hover {
    background: var(--ct-accent);
    color: #fff;
    transform: translateY(-2px);
    border-color: var(--ct-accent);
}

/* Category list */
.ct-cat-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ct-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--ct-radius);
    color: var(--ct-text);
    font-size: 0.875rem;
    transition: all var(--ct-ease);
}

.ct-cat-list li a:hover {
    background: var(--ct-accent-glow);
    color: var(--ct-accent);
}

.ct-cat-count {
    background: var(--ct-accent-glow);
    color: var(--ct-accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}

/* ============================================
   11. SINGLE ITEM (eksponat)
   ============================================ */
.ct-item-single {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.ct-item-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 8px;
}

.ct-item-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.ct-info-box {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
}

.ct-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ct-info-icon {
    width: 32px; height: 32px;
    background: var(--ct-accent-glow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-accent);
    flex-shrink: 0;
}

.ct-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ct-text-muted);
    display: block;
}

.ct-info-value {
    font-size: 0.95rem;
    color: var(--ct-text);
    display: block;
    margin-top: 2px;
}

.ct-item-media {
    border-radius: var(--ct-radius-lg);
    overflow: hidden;
}

.ct-item-media img {
    width: 100%; height: auto;
    display: block;
    border-radius: var(--ct-radius-lg);
}

.ct-section-heading {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ct-border);
}

.ct-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.ct-gallery-grid a {
    display: block;
    border-radius: var(--ct-radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.ct-gallery-grid img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--ct-ease);
}

.ct-gallery-grid a:hover img { transform: scale(1.07); }

.ct-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--ct-border);
}

.ct-post-nav a {
    color: var(--ct-text-muted);
    font-size: 0.875rem;
    transition: color var(--ct-ease);
}

.ct-post-nav a:hover { color: var(--ct-accent); }

/* ============================================
   12. FOOTER
   ============================================ */
.ct-footer {
    background: var(--ct-bg-surface);
    border-top: 1px solid var(--ct-border);
    padding: 48px 24px 28px;
    margin-top: 80px;
}

.ct-footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--ct-border);
    margin-bottom: 28px;
}

.ct-footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--ct-heading);
    margin-bottom: 10px;
}

.ct-footer-desc {
    font-size: 0.875rem;
    color: var(--ct-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.ct-footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ct-text-muted);
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================
   13. ARCHIVE / CATEGORY PAGE
   ============================================ */
.ct-archive-header {
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--ct-border);
    margin-bottom: 40px;
}

.ct-archive-header .ct-archive-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 8px;
}

.ct-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 56px;
    flex-wrap: wrap;
}

.ct-pagination a,
.ct-pagination span {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ct-radius);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--ct-border);
    color: var(--ct-text);
    transition: all var(--ct-ease);
}

.ct-pagination a:hover,
.ct-pagination .current {
    background: var(--ct-accent);
    color: #fff;
    border-color: var(--ct-accent);
}

/* ============================================
   14. ABOUT STORY SECTION
   ============================================ */
.ct-story-section {
    background: var(--ct-bg-surface);
    padding: 80px 24px;
    margin-top: 60px;
    border-top: 1px solid var(--ct-border);
}

.ct-story-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ct-story-inner p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--ct-text);
    margin-bottom: 18px;
}

/* ============================================
   15. MAP PAGE
   ============================================ */
.ct-map-page {
    padding: 40px 0 80px;
}

.ct-map-description {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-left: 3px solid var(--ct-accent);
    border-radius: 0 var(--ct-radius) var(--ct-radius) 0;
    padding: 16px 20px;
    color: var(--ct-text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.ct-map-overlay {
    position: absolute;
    top: 90px; left: 50%;
    transform: translateX(-50%);
    background: var(--ct-bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--ct-border-strong);
    border-radius: var(--ct-radius-lg);
    padding: 10px 18px;
    max-width: 560px;
    width: 90%;
    text-align: center;
    z-index: 999;
    pointer-events: none;
}

.ct-map-overlay p {
    font-size: 0.875rem;
    color: var(--ct-text);
    margin: 0;
}

/* ============================================
   16. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .ct-home-layout {
        grid-template-columns: 1fr;
    }
    .ct-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ct-hero--split {
        grid-template-columns: 1fr;
    }
    .ct-hero--split .ct-hero-image-panel { display: none; }
    .ct-hero--split .ct-hero-content {
        padding: 80px 24px 60px;
        text-align: center;
    }
    .ct-hero--split .ct-hero-content .ct-hero-actions { justify-content: center; }
    .ct-item-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ct-nav { display: none; }
    .ct-nav.active {
        display: flex;
        position: fixed;
        inset: 0;
        top: 60px;
        background: var(--ct-bg-surface);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        overflow-y: auto;
        border-top: 1px solid var(--ct-border);
        z-index: 999;
    }
    .ct-nav.active > ul,
    .ct-nav.active > div > ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .ct-nav.active li > a {
        padding: 14px 8px;
        border-bottom: 1px solid var(--ct-border);
        font-size: 1rem;
    }
    .ct-nav.active ul ul,
    .ct-nav.active .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--ct-bg-glass);
        border-radius: 0;
        border: none;
        border-left: 3px solid var(--ct-border-strong);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--ct-ease-slow);
        padding: 0;
    }
    .ct-nav.active li.open > ul,
    .ct-nav.active li.open > .sub-menu {
        max-height: 500px;
        padding: 8px 0;
    }
    .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--ct-border);
        color: var(--ct-text-muted);
        width: 28px; height: 28px;
        border-radius: 6px;
        cursor: pointer;
        float: right;
        margin-top: 10px;
        transition: transform var(--ct-ease);
    }
    li.open .dropdown-toggle { transform: rotate(180deg); }
    .ct-hamburger { display: flex; }
    .ct-search-input { width: 0; opacity: 0; padding: 8px 0; border: none; }
    .ct-search-form.active .ct-search-input { width: 160px; opacity: 1; padding: 8px 36px 8px 14px; border: 1px solid var(--ct-border); }
    .ct-search-submit { color: var(--ct-text-muted); position: relative; right: auto; }
    .ct-counter-pill { display: none; }
    .ct-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================
   17. COMMENTS
   ============================================ */
.ct-comments-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--ct-border);
}

.ct-comments-section > h2,
.ct-comments-section .comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--ct-heading);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ct-border);
}

/* ── Comment List ── */
.ct-comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.ct-comments-section .comment-list .children {
    list-style: none;
    padding-left: 48px;
    margin-top: 12px;
    border-left: 2px solid var(--ct-border);
}

/* ── Single Comment ── */
.ct-comments-section .comment {
    margin-bottom: 20px;
}

.ct-comments-section .comment-body {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-lg);
    padding: 20px 24px;
    position: relative;
    transition: border-color var(--ct-ease);
}

.ct-comments-section .comment-body:hover {
    border-color: var(--ct-border-strong);
}

/* ── Comment header ── */
.ct-comments-section .comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ct-comments-section .comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ct-comments-section .comment-author img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--ct-border-strong);
    object-fit: cover;
    flex-shrink: 0;
}

.ct-comments-section .comment-author .fn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ct-heading);
    text-decoration: none;
}

.ct-comments-section .comment-author .fn:hover {
    color: var(--ct-accent);
}

.ct-comments-section .bypostauthor > .comment-body .fn::after {
    content: 'Autor';
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--ct-accent-glow);
    color: var(--ct-accent);
    border: 1px solid var(--ct-border-strong);
    padding: 1px 7px;
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
}

.ct-comments-section .comment-metadata {
    font-size: 0.75rem;
    color: var(--ct-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.ct-comments-section .comment-metadata a {
    color: var(--ct-text-muted);
    transition: color var(--ct-ease);
}

.ct-comments-section .comment-metadata a:hover {
    color: var(--ct-accent);
}

/* ── Comment content ── */
.ct-comments-section .comment-content {
    font-size: 0.925rem;
    line-height: 1.75;
    color: var(--ct-text);
}

.ct-comments-section .comment-content p {
    margin: 0 0 10px;
}

.ct-comments-section .comment-content p:last-child {
    margin-bottom: 0;
}

/* ── Comment actions ── */
.ct-comments-section .reply {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.ct-comments-section .comment-reply-link {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--ct-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--ct-ease);
}

.ct-comments-section .comment-reply-link::before {
    content: '↩';
    font-size: 0.9em;
}

.ct-comments-section .comment-reply-link:hover {
    color: var(--ct-accent-light);
}

.ct-comments-section .comment-edit-link {
    font-size: 0.75rem;
    color: var(--ct-text-muted);
    text-decoration: none;
    transition: color var(--ct-ease);
}

.ct-comments-section .comment-edit-link:hover {
    color: var(--ct-accent);
}

/* ── Unapproved ── */
.ct-comments-section .unapproved .comment-body {
    opacity: 0.6;
    border-style: dashed;
}

/* ── Comment Form ── */
.ct-comments-section #respond {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-lg);
    padding: 28px 32px;
}

.ct-comments-section #respond h3#reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--ct-heading);
    margin: 0 0 20px;
}

.ct-comments-section #respond .comment-notes {
    font-size: 0.82rem;
    color: var(--ct-text-muted);
    margin-bottom: 20px;
}

.ct-comments-section #respond label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ct-text-muted);
    margin-bottom: 6px;
}

.ct-comments-section #respond input[type="text"],
.ct-comments-section #respond input[type="email"],
.ct-comments-section #respond input[type="url"],
.ct-comments-section #respond textarea {
    width: 100%;
    background: var(--ct-bg-glass);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 10px 14px;
    color: var(--ct-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--ct-ease), box-shadow var(--ct-ease);
    box-sizing: border-box;
}

.ct-comments-section #respond input:focus,
.ct-comments-section #respond textarea:focus {
    border-color: var(--ct-accent);
    box-shadow: 0 0 0 3px var(--ct-accent-glow);
}

.ct-comments-section #respond textarea {
    min-height: 120px;
    resize: vertical;
}

.ct-comments-section #respond .comment-form-author,
.ct-comments-section #respond .comment-form-email,
.ct-comments-section #respond .comment-form-url,
.ct-comments-section #respond .comment-form-comment {
    margin-bottom: 18px;
}

.ct-comments-section #respond .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: var(--ct-text-muted);
}

.ct-comments-section #respond .form-submit {
    margin: 0;
}

.ct-comments-section #respond #submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: var(--ct-accent);
    color: #fff;
    border: none;
    border-radius: var(--ct-radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--ct-ease);
}

.ct-comments-section #respond #submit:hover {
    background: var(--ct-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--ct-accent-glow);
}

/* Cancel reply link */
.ct-comments-section #cancel-comment-reply-link {
    font-size: 0.8rem;
    color: var(--ct-text-muted);
    margin-left: 14px;
    text-decoration: none;
}

.ct-comments-section #cancel-comment-reply-link:hover {
    color: var(--ct-accent);
}

/* No comments */
.ct-comments-section .no-comments {
    text-align: center;
    color: var(--ct-text-muted);
    font-size: 0.9rem;
    padding: 24px 0;
}

/* ============================================
   18. UTILITY
   ============================================ */
.ct-text-center { text-align: center; }
.ct-mt-auto { margin-top: auto; }
.ct-accent-text { color: var(--ct-accent); }

.ct-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--ct-accent-glow);
    color: var(--ct-accent);
    border: 1px solid var(--ct-border-strong);
}

.ct-stat-bar {
    height: 5px;
    border-radius: 3px;
    background: var(--ct-border);
    margin-top: 8px;
    overflow: hidden;
}

.ct-stat-bar-fill {
    height: 100%;
    background: var(--ct-accent);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* BuyCoffee widget button */
.ct-support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--ct-accent);
    color: #fff;
    border-radius: var(--ct-radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ct-ease);
    margin-top: 16px;
}

.ct-support-btn:hover {
    background: var(--ct-accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--ct-shadow-glow);
}

/* Archive warning */
.ct-warning-box {
    background: rgba(255, 193, 7, 0.08);
    border-left: 3px solid #f0a500;
    padding: 14px 18px;
    border-radius: 0 var(--ct-radius) var(--ct-radius) 0;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--ct-text);
}

.ct-warning-box strong { color: #f0a500; }
