/* =============================================
   SlęŻyczenia — Premium Design System v3
   "Elegant Polish Editorial"
   ============================================= */

/* --- CSS Variables --- */
:root {
    --primary: #D4654A;
    --primary-hover: #C4523A;
    --primary-soft: #F2D3C8;
    --primary-bg: #FDF2ED;
    --primary-glow: rgba(212, 101, 74, 0.25);
    --gradient-primary: linear-gradient(135deg, #D4654A 0%, #E8956A 50%, #D4654A 100%);
    --gradient-warm: linear-gradient(135deg, #D4654A 0%, #C2506A 100%);

    --rose: #C2506A;
    --rose-soft: #F5D5DC;

    --gold: #C8953F;
    --gold-soft: #F8EDD4;

    --green: #4E8B5F;
    --green-soft: #D7EDDB;

    --blue: #4A7FB5;
    --blue-soft: #D3E4F4;

    --bg: #F7F0E8;
    --bg-warm: #F0E6D8;
    --bg-mesh: radial-gradient(ellipse at 15% 30%, rgba(212, 101, 74, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(194, 80, 106, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 85%, rgba(200, 149, 63, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(212, 168, 120, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 70%, rgba(78, 139, 95, 0.05) 0%, transparent 35%),
        radial-gradient(ellipse at 90% 50%, rgba(194, 80, 106, 0.04) 0%, transparent 30%);
    --surface: #FFFCF8;
    --surface-raised: #FFFDF9;
    --surface-glass: rgba(255, 252, 248, 0.82);

    --text: #1E0F08;
    --text-secondary: #5C4A3E;
    --text-muted: #9E8E82;
    --text-inverse: #FFFFFF;

    --border: #E8DDD4;
    --border-light: #F0E8E0;

    --heading: 'Playfair Display', Georgia, serif;
    --body: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(30, 15, 8, 0.04);
    --shadow-sm: 0 2px 8px rgba(30, 15, 8, 0.05), 0 1px 2px rgba(30, 15, 8, 0.03);
    --shadow-md: 0 4px 20px rgba(30, 15, 8, 0.07), 0 2px 6px rgba(30, 15, 8, 0.04);
    --shadow-lg: 0 12px 40px rgba(30, 15, 8, 0.10), 0 4px 12px rgba(30, 15, 8, 0.05);
    --shadow-glow: 0 0 30px rgba(212, 101, 74, 0.15);

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --duration: 0.3s;
    --duration-slow: 0.5s;

    --max-w: 1320px;
    --header-h: 56px;

    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
}

/* --- Background Animations --- */
@keyframes bgDrift {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }

    33% {
        background-position: 100% 50%, 0% 30%, 80% 20%;
    }

    66% {
        background-position: 30% 100%, 70% 0%, 20% 80%;
    }
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body);
    color: var(--text);
    background-color: var(--bg);
    background-image: var(--bg-mesh);
    background-attachment: fixed;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Parchment noise overlay (SVG feTurbulence) */
.parchment-noise {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    mix-blend-mode: multiply;
}

/* Ensure all content renders above the noise */
.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

/* Warm decorative accents + drifting color blobs */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        /* Corner warm washes — large and visible */
        radial-gradient(ellipse 900px 700px at 0% 0%, rgba(212, 101, 74, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 800px 900px at 100% 100%, rgba(200, 149, 63, 0.20) 0%, transparent 65%),
        radial-gradient(ellipse 700px 600px at 100% 0%, rgba(194, 80, 106, 0.16) 0%, transparent 65%),
        radial-gradient(ellipse 700px 550px at 0% 100%, rgba(78, 139, 95, 0.14) 0%, transparent 65%),
        /* Central floating orbs */
        radial-gradient(circle 500px at 50% 30%, rgba(212, 101, 74, 0.10) 0%, transparent 65%),
        radial-gradient(circle 450px at 30% 70%, rgba(200, 149, 63, 0.09) 0%, transparent 65%),
        radial-gradient(circle 400px at 75% 55%, rgba(194, 80, 106, 0.08) 0%, transparent 65%),
        /* Soft vignette */
        radial-gradient(ellipse 70% 60% at 50% 50%, transparent 60%, rgba(30, 15, 8, 0.06) 100%);
    animation: bgDrift 45s ease-in-out infinite;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

h2 {
    margin-bottom: 20px;
}

h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

h3 {
    margin-bottom: 14px;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============== HEADER =============== */
.site-header {
    z-index: 100;
    position: sticky;
    top: 0;
}

.top-bar {
    background: linear-gradient(135deg, #1a0f0a 0%, #2c1810 60%, #1a0f0a 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* Subtle warm accent line below header */
.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary) 20%,
            var(--gold) 50%,
            var(--rose) 80%,
            transparent 100%);
    opacity: 0.6;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 12px;
}

/* --- Brand --- */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform var(--duration) var(--ease);
}

.brand:hover {
    transform: scale(1.03);
}

/* Logo icon (SVG envelope+heart) */
.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(212, 101, 74, 0.3));
    transition: color var(--duration) var(--ease), filter var(--duration) var(--ease);
}

.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand:hover .brand-icon {
    color: #e8956a;
    filter: drop-shadow(0 0 10px rgba(212, 101, 74, 0.5));
}

/* Brand text */
.brand-text {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.brand-sle {
    font-family: var(--heading);
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary);
    letter-spacing: 0.02em;
    transition: color var(--duration) var(--ease);
}

.brand-zyczenia {
    font-family: var(--heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* --- Hamburger Toggle --- */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: all var(--duration) var(--ease);
    border-radius: 2px;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* --- Nav Links --- */
.nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a0f0a 0%, #2c1810 100%);
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 105;
}

.nav-links.open {
    display: block;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--duration) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(212, 101, 74, 0.15);
}

.nav-links a svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.nav-links a:hover svg,
.nav-links a.active svg {
    opacity: 1;
}

/* --- Desktop Nav --- */
@media (min-width: 768px) {
    .top-bar-inner {
        height: 64px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
        position: static;
        background: none;
        padding: 0;
        box-shadow: none;
        gap: 0;
        align-items: center;
    }

    .nav-links a {
        padding: 0 16px;
        height: 64px;
        border-bottom: 3px solid transparent;
        font-size: 0.82rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.65);
        position: relative;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: none;
        color: #fff;
        border-bottom-color: var(--primary);
    }

    .nav-links a svg {
        display: none;
    }
}

@media (min-width: 1024px) {
    .nav-links a {
        padding: 0 20px;
        font-size: 0.85rem;
    }
}

/* =============== MAIN =============== */
.site-main {
    min-height: 60vh;
}

/* --- Hero (Homepage) --- */
.home-hero {
    text-align: center;
    padding: 48px 20px 36px;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.home-hero h2 {
    font-family: var(--heading);
    font-size: 2rem;
    margin-bottom: 8px;
}

.home-hero .lead {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 52px 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-family: var(--body);
    background: #fff;
    transition: all var(--duration) var(--ease);
    outline: none;
    color: var(--text);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 101, 74, 0.1), 0 0 20px rgba(212, 101, 74, 0.08);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--primary);
    color: var(--text-inverse);
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration);
}

.search-box button:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.08);
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

.stat-badge strong {
    color: var(--primary);
    font-weight: 700;
}

/* --- Section Cards --- */
.section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 20px;
    max-width: var(--max-w);
    margin: 0 auto;
}

@media (min-width: 640px) {
    .section-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.section-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.section-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-soft);
    color: var(--text);
}

.card-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Per-card color themes */
.card-names .icon-circle {
    background: var(--gold-soft);
    color: var(--gold);
}

.card-occasions .icon-circle {
    background: var(--rose-soft);
    color: var(--rose);
}

.card-holidays .icon-circle {
    background: var(--green-soft);
    color: var(--green);
}

.card-zodiac .icon-circle {
    background: var(--blue-soft);
    color: var(--blue);
}

.card-body {
    padding: 0 16px 20px;
    text-align: center;
}

.card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

/* --- Homepage Bottom --- */
.home-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 8px 20px 40px;
}

.home-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .home-bottom {
        grid-template-columns: 1fr 300px;
    }
}

/* --- Today Box --- */
.today-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
}

.today-box h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-box .label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.today-box .names {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.today-box .names a {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-bg);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--duration) var(--ease);
}

.today-box .names a:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

/* --- Mini Calendar --- */
.mini-calendar {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
}

.mini-calendar .cal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    font-family: var(--heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.mini-calendar table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    text-align: center;
    font-size: 0.8rem;
}

.mini-calendar th {
    padding: 6px 2px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.mini-calendar td {
    padding: 6px 2px;
    border-radius: 6px;
    font-weight: 500;
}

.mini-calendar .today {
    background: var(--primary);
    color: var(--text-inverse);
    font-weight: 700;
}

.mini-calendar .weekend {
    color: var(--rose);
}

/* ============ PAGE HEADER ============ */
/* Category listing card wrapper */
.category-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
}

.category-card .page-header {
    text-align: center;
    padding: 0 0 28px;
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    animation: fadeInDown 0.8s var(--ease) both;
}

.page-header {
    text-align: center;
    padding: 36px 20px 28px;
    background: transparent;
    border-bottom: none;
    animation: fadeInDown 0.8s var(--ease) both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text);
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Category description (multi-paragraph intro text) */
.category-description {
    margin: 24px 0;
    padding: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.category-description p {
    margin-bottom: 12px;
}

.category-description p:last-child {
    margin-bottom: 0;
}

/* ============ NAMES SEARCH ============ */
.names-search {
    width: 100%;
    margin: 8px auto 16px;
}

.names-search form {
    display: flex;
    position: relative;
    width: 100%;
}

.names-search input {
    width: 100%;
    padding: 14px 56px 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: var(--body);
    background: var(--surface);
    transition: all var(--duration) var(--ease);
    outline: none;
    color: var(--text);
    box-sizing: border-box;
}

.names-search input::placeholder {
    color: var(--text-muted);
}

.names-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 101, 74, 0.1), 0 0 20px rgba(212, 101, 74, 0.08);
}

.names-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration) var(--ease);
}

.names-search button:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.06);
}

/* ============ NAMES A-Z ============ */
.alpha-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 24px 20px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.alpha-filter a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 6px 8px 4px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s var(--ease);
    line-height: 1.2;
}

.alpha-filter a .letter-count {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1px;
    transition: color 0.2s;
}

.alpha-filter a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 101, 74, 0.3);
}

.alpha-filter a:hover .letter-count {
    color: rgba(255, 255, 255, 0.8);
}

.alpha-filter a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(212, 101, 74, 0.35);
}

.alpha-filter a.active .letter-count {
    color: rgba(255, 255, 255, 0.85);
}

.alpha-filter .disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 6px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--bg);
    border: 1.5px dashed var(--border-light);
    color: var(--text-muted);
    opacity: 0.4;
    cursor: default;
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.name-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
    min-height: 44px;
}

.name-item:hover {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm), 0 0 12px var(--primary-glow);
    transform: translateY(-2px);
}

/* ============ NAME DETAIL ============ */
.name-header {
    padding: 40px 2rem 32px;
    text-align: center;
    background: var(--surface, #fff);
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
}

.name-header .badge {
    display: inline-block;
    background: var(--gradient-primary, var(--primary));
    color: var(--text-inverse, #fff);
    padding: 5px 18px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.name-header h1 {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.name-header .diminutives {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.name-header .similar-names {
    margin-top: 12px;
    font-size: 0.9rem;
}

.name-detail {
    margin: 0 auto;
    padding: 0;
    background: var(--surface, #fff);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.detail-section {
    padding: 1.0rem 3rem;
    border-top: 1px solid var(--border-light);
}

.detail-section:first-child {
    border-top: none;
}

.detail-section:last-child {
    border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
}

.detail-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.nameday-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nameday-list li {
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.wish-card {
    background: var(--surface);
    border-left: 4px solid;
    border-image: var(--gradient-warm) 1;
    padding: 22px 24px;
    margin-bottom: 14px;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
    transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.wish-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: var(--text);
}

.song-item:hover {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.song-item .play-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #CC0000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.song-item .song-info {
    flex: 1;
    min-width: 0;
}

.song-item .song-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.song-item .song-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ============ OCCASIONS & HOLIDAYS ============ */
.occasion-group-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--rose);
    margin: 28px 0 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rose-soft);
}

.occasion-group-title:first-of-type {
    margin-top: 0;
}

.occasions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 16px 8px 20px;
}

@media (min-width: 768px) {
    .occasions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.occasion-tile {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
}

.occasion-tile:hover {
    transform: translateY(-4px);
}

.occasion-tile .img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.35s var(--ease), transform 0.35s;
}

.occasion-tile:hover .img-wrap {
    box-shadow: 0 12px 35px rgba(212, 101, 74, 0.3);
}

.occasion-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-spring);
}

.occasion-tile:hover img {
    transform: scale(1.06);
}

.occasion-tile .title {
    color: var(--text);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--body);
    padding: 10px 4px 0;
    transition: color 0.3s;
}

.occasion-tile:hover .title {
    color: var(--primary);
}

/* --- Occasion Detail Page --- */
.intro-hero-img {
    text-align: center;
    margin-bottom: 40px;
}

.intro-hero-img img {
    max-width: 100%;
    width: 600px;
    /* Natural size of the generated graphics */
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    object-fit: contain;
}

.occasion-header {
    margin-bottom: 30px;
}

.badge-orange {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.occasion-title {
    font-size: 2.8rem;
    font-family: var(--heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    color: var(--text);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.occasion-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text);
}

/* --- Karuzela Zyczen --- */
.occasion-wishes-carousel {
    margin-top: 40px;
    margin-bottom: 40px;
}

.occasion-wishes-carousel h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.wish-slider-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.wish-slider-content {
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.wish-slider-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.wish-actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wish-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.holiday-list {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px;
}

.holiday-group {
    margin-bottom: 28px;
}

.holiday-group h3 {
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-soft);
    margin-bottom: 12px;
    color: var(--text);
}

.holiday-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    transition: all var(--duration);
}

.holiday-item:hover {
    border-color: var(--border);
    background: var(--bg-warm);
}

.holiday-date {
    min-width: 52px;
    text-align: center;
    padding: 4px 8px;
    background: var(--primary-bg);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.holiday-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.holiday-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--green);
    color: var(--text-inverse);
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ============ ZODIAC ============ */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px;
}

.zodiac-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease);
}

.zodiac-card:hover {
    border-color: rgba(212, 101, 74, 0.4);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 101, 74, 0.15);
    transform: translateY(-6px);
}

.zodiac-card .zodiac-symbol {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.zodiac-card h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.zodiac-card .zodiac-dates {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============ FOOTER ============ */
.site-footer {
    background: linear-gradient(180deg, #1a0f0a 0%, #0f0806 100%);
    color: rgba(255, 255, 255, 0.55);
    padding: 64px 0 24px;
    margin-top: 56px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.8fr 1fr 1.5fr;
    }
}

.footer-logo {
    font-family: var(--heading);
    font-size: 1.4rem;
    color: white;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(212, 101, 74, 0.4);
}

.site-footer p {
    font-size: 0.85rem;
    line-height: 1.55;
}

.site-footer h4 {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    transition: color var(--duration);
}

.footer-links a:hover {
    color: white;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all var(--duration);
}

.social-yt {
    background: rgba(255, 0, 0, 0.1);
    color: #FF6B6B;
}

.social-yt:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #FF8888;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.78rem;
}

/* ============ SCROLL TOP ============ */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--text-inverse);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    opacity: 0;
    transform: translateY(12px);
    transition: all var(--duration) var(--ease);
    z-index: 90;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
}

/* ============ 404 ============ */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}

.page-404 .error-code {
    font-family: var(--heading);
    font-size: 5rem;
    color: var(--border);
    font-weight: 700;
    line-height: 1;
}

.page-404 h1 {
    font-size: 1.3rem;
    margin: 12px 0;
}

.page-404 p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    font-family: var(--body);
}

.btn:hover {
    background: var(--primary-hover);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
    .logo-sle {
        font-size: 1.3rem;
    }

    .logo-zyczenia {
        font-size: 1.7rem;
    }

    .home-hero h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .name-header h1 {
        font-size: 2rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .zodiac-card {
        padding: 20px 12px;
    }
}

/* ============ PORADNIKI / GUIDES ============ */

/* --- Guides Grid (listing page) --- */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.guide-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: all var(--duration) var(--ease);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-soft);
    color: var(--text);
}

.guide-thumb {
    height: 180px;
    overflow: hidden;
    background: var(--bg-warm);
}

.guide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.guide-card:hover .guide-thumb img {
    transform: scale(1.05);
}

.guide-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.guide-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-body h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.35;
}

.guide-body p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.55;
    flex: 1;
}

.guide-read {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.01em;
    transition: color var(--duration);
}

.guide-card:hover .guide-read {
    color: var(--primary-hover);
}

/* --- Guide Layout (two-column: article + sidebar) --- */
.guide-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 50px 20px 48px;
}

@media (min-width: 768px) {
    .guide-layout {
        grid-template-columns: 1fr 300px;
    }
}

/* Hero image */
.guide-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 4px;
    max-height: 420px;
}

.guide-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Category badge */
.guide-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* --- Guide Article (detail page) --- */
.guide-article {
    max-width: 100%;
    padding: 0;
}

.guide-header {
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 28px;
}

.guide-header h1 {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--duration);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .sep {
    opacity: 0.5;
    font-size: 0.7rem;
}

.guide-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Article content */
.guide-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.guide-content h2 {
    font-size: 1.4rem;
    margin: 32px 0 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.guide-content h2:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.guide-content h3 {
    font-size: 1.1rem;
    margin: 20px 0 8px;
    color: var(--text);
}

.guide-content p {
    margin-bottom: 16px;
}

.guide-content ul,
.guide-content ol {
    margin: 12px 0 20px;
    padding-left: 24px;
    list-style: disc;
}

.guide-content ol {
    list-style: decimal;
}

.guide-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.guide-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary-soft);
    text-underline-offset: 2px;
}

.guide-content a:hover {
    color: var(--primary-hover);
    text-decoration-color: var(--primary-hover);
}

.guide-content strong {
    font-weight: 600;
    color: var(--text);
}

.guide-content em {
    font-style: italic;
}

.guide-content figure {
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.guide-content figure img {
    width: 100%;
    border-radius: var(--radius);
}

.guide-content figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.guide-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--primary);
    background: var(--bg-warm);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.guide-content th,
.guide-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.guide-content th {
    background: var(--bg-warm);
    font-weight: 600;
}

/* Guide footer nav */
.guide-footer {
    padding: 28px 0 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 36px;
}

.guide-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--duration);
}

.guide-back:hover {
    color: var(--primary-hover);
    gap: 12px;
}

/* ============ SIDEBAR ============ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.sidebar-title--accent {
    color: #fff;
    background: var(--primary);
    margin: -20px -20px 16px;
    padding: 10px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-section {
    margin-bottom: 14px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sidebar-holiday-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.82rem;
    line-height: 1.4;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-holiday-item:last-child {
    border-bottom: none;
}

.sidebar-holiday-day {
    font-weight: 700;
    color: var(--primary);
    min-width: 22px;
}

.sidebar-holiday-name {
    color: var(--text);
}

/* Sidebar mini-calendar inherits .mini-calendar styles */
.sidebar .mini-calendar {
    margin: 0;
    border: none;
    box-shadow: none;
}

/* --- Responsive for guides --- */
@media (max-width: 768px) {
    .guide-layout {
        grid-template-columns: 1fr;
        padding: 0 16px 36px;
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 480px) {
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px 36px;
    }

    .guide-thumb {
        height: 160px;
    }

    .guide-header h1 {
        font-size: 1.4rem;
    }

    .guide-content h2 {
        font-size: 1.15rem;
    }

    .guide-hero {
        max-height: 240px;
    }
}

/* --- Generic two-column: content + sidebar --- */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 50px 20px 48px;
}

@media (min-width: 768px) {
    .page-with-sidebar {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 768px) {
    .page-with-sidebar {
        padding: 16px 16px 36px;
    }

    .page-with-sidebar .sidebar {
        order: 2;
    }
}

.page-main {
    min-width: 0;
    /* prevent grid blowout */
}

/* Gender illustration in meaning section */
.meaning-content {
    display: block;
    overflow: hidden;
}

.meaning-text {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.02rem;
    text-align: justify;
}

.clearfix {
    clear: both;
}

.meaning-content p {
    margin: 0 0 1.2rem 0;
    line-height: 1.8;
}

.meaning-content ul,
.meaning-content ol {
    margin: 0.8rem 0 1.2rem 1.5rem;
    padding: 0;
    line-height: 1.7;
}

.meaning-content ul {
    list-style-type: disc;
}

.meaning-content ol {
    list-style-type: decimal;
}

.meaning-content li {
    margin-bottom: 0.5em;
    color: var(--text-secondary);
}

.meaning-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-light);
}

.meaning-content h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 1.8rem 0 0.8rem 0;
}

.meaning-content h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 1.2rem 0 0.8rem;
}

.meaning-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.meaning-content a:hover {
    color: var(--primary-dark, var(--primary));
    text-decoration-thickness: 2px;
}

.gender-illustration {
    float: left;
    width: 120px;
    height: auto;
    margin: 4px 20px 12px 0;
    border-radius: var(--radius);
}

/* Hero image for detail pages (occasions, holidays, zodiac) */
.detail-hero-image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius, 8px);
    margin-bottom: 2.5rem;
    text-align: center;
}

.detail-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius, 8px);
}

/* =========================================================================
   SIDEBAR CALENDAR & HOLIDAYS (Ported from Eskim Plugins)
========================================================================= */

.eskim-mini-calendar {
    --w: 240px;
    --pad: 0.55rem;
    --radius: 10px;
    --line: #e5e7eb;
    --muted: #6b7280;
    --accent: #fe6f48;
    --today-bg: #fff4ef;
    --today-br: #fe6f48;
    --bg: #ffffff;

    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 13px;
    margin-bottom: 2rem;
}

.eskim-mini-calendar .cal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.50rem 0.65rem;
    border-bottom: 2px solid #000;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    background: transparent;
}

.eskim-mini-calendar .cal-hdr .ttl {
    font-weight: 800;
    color: #111;
    font-size: 14px;
}

.eskim-mini-calendar .nav {
    display: flex;
    gap: 0.25rem;
}

.eskim-mini-calendar .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    color: #111;
    font-weight: 700;
}

.eskim-mini-calendar .nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.eskim-mini-calendar .cal-grid {
    padding: var(--pad);
    padding-bottom: 0.4rem;
}

.eskim-mini-calendar .dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    color: #374151;
    font-weight: 700;
    text-align: center;
}

.eskim-mini-calendar .dow span {
    padding: 2px 0;
}

.eskim-mini-calendar .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.eskim-mini-calendar .day {
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eskim-mini-calendar .day span {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 26px;
    text-align: center;
    text-decoration: none;
    color: #111;
    border-radius: 8px;
}

.eskim-mini-calendar .day.empty {
    border: 1px dashed #f3f4f6;
}

.eskim-mini-calendar .day.today span {
    box-shadow: inset 0 0 0 2px var(--today-br);
    background: var(--today-bg);
}

.eskim-mini-calendar .day.weekend span {
    color: #64748b;
}

/* Holiday Color Coding */
.eskim-mini-calendar .day.hol-red span {
    background: #ffe6de;
    color: #b04b2f;
    border-color: #ffd5c8;
}

.eskim-mini-calendar .day.hol-blue span {
    background: #dbeafe;
    color: #1e3a8a;
    border-color: #bfdbfe;
}

.eskim-mini-calendar .day.hol-purple span {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #e9d5ff;
}

/* Side Lists (Holidays) */
.sidebar-holidays {
    display: flex;
    flex-direction: column;
}

.sidebar-holidays .hol {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #f3f4f6;
    font-size: 14px;
}

.sidebar-holidays .hol:last-child {
    border-bottom: none;
}

.sidebar-holidays a {
    text-decoration: none;
}

.sidebar-holidays a:hover,
.sidebar-holidays a:hover .t,
.sidebar-holidays a:hover .d,
.sidebar-holidays a:hover .d-black,
.sidebar-holidays a:hover .d-type,
.sidebar-holidays a:hover .d-free {
    color: var(--color-primary);
}

.sidebar-holidays a.t {
    text-decoration: underline;
    text-decoration-color: rgba(254, 111, 72, 0.4);
    /* var(--color-primary) semi-transparent */
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.sidebar-holidays a.t:hover {
    text-decoration-color: var(--color-primary);
}

.sidebar-holidays .hol span {
    text-decoration: none;
    line-height: 1.4;
}

.sidebar-holidays .hol span strong,
.sidebar-holidays .hol a strong {
    font-weight: 900;
}

.sidebar-holidays .d {
    min-width: 1.8rem;
    color: #fe6f48;
}

.sidebar-holidays .d-free {
    min-width: 1.8rem;
    color: #1e3a8a;
}

.sidebar-holidays .d-type {
    min-width: 1.8rem;
    color: #6b21a8;
}

.sidebar-holidays .d-black {
    min-width: 1.8rem;
    color: #1f2937;
}

.sidebar-holidays .t {
    color: #111;
}

.names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    font-size: 14px;
}

.names .nm {
    color: var(--text);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
}

.names .nm:hover {
    color: var(--primary);
    background: rgba(212, 101, 74, 0.1);
    transform: translateX(2px);
}

.diminutives-list {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Wishes widget */
.zr-widget {
    display: grid;
    gap: 10px;
    max-width: 800px;
}

.zr-card {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    background: #fff;
    min-height: 80px;
}

.zr-text {
    white-space: pre-wrap;
    line-height: 1.6;
    transition: opacity .18s ease;
    font-size: 0.95rem;
}

.zr-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.zr-btn {
    border: 1px solid #e2e2e2;
    background: #fafafa;
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background .15s, transform .1s;
}

.zr-btn:hover {
    background: #f0f0f0;
}

.zr-btn:active {
    transform: translateY(1px);
}

.zr-count {
    opacity: .6;
    font-size: .88rem;
    margin-left: 4px;
}

/* --- Table of Contents --- */
.toc-section {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.toc-section h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.15rem;
}

.toc-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.toc-list a:hover {
    color: var(--primary);
}

/* --- Parent Breadcrumb --- */
.parent-breadcrumb {
    margin-bottom: 1rem;
}

.parent-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.parent-breadcrumb a:hover {
    text-decoration: underline;
}

/* --- Song Embed Blocks --- */
.song-block {
    margin-bottom: 28px;
}

.song-block:last-child {
    margin-bottom: 0;
}

.song-meta-info p {
    margin: 2px 0;
    font-size: 0.92rem;
}

.yt-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 16px 0;
    border-radius: 12px;
}

.yt-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.song-lyrics {
    margin-top: 20px;
}

.song-lyrics h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.lyrics-columns {
    column-count: 3;
    column-gap: 28px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.lyrics-verse {
    break-inside: avoid;
    margin-bottom: 16px;
}

.verse-header {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.verse-text {
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .lyrics-columns {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .lyrics-columns {
        column-count: 1;
    }
}

/* --- Names Search Box --- */
.names-search {
    margin-bottom: 20px;
}

.names-search form {
    display: flex;
    gap: 0;
    max-width: 480px;
}

.names-search input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.95rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.names-search input:focus {
    border-color: var(--primary);
}

.names-search button {
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.names-search button:hover {
    background: var(--primary-hover);
}

.search-info {
    margin-bottom: 16px;
    color: var(--text-muted);
}


/* ============ UTILITY ============ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.82rem;
}

.mb-1 {
    margin-bottom: 14px;
}

.mb-2 {
    margin-bottom: 24px;
}

.mt-1 {
    margin-top: 14px;
}

.mt-2 {
    margin-top: 24px;
}

.page-section {
    padding: 36px 0;
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.animate-in.visible .occasion-tile:nth-child(1) {
    transition-delay: 0ms;
}

.animate-in.visible .occasion-tile:nth-child(2) {
    transition-delay: 60ms;
}

.animate-in.visible .occasion-tile:nth-child(3) {
    transition-delay: 120ms;
}

.animate-in.visible .occasion-tile:nth-child(4) {
    transition-delay: 180ms;
}

/* ============ GLASSMORPHISM UTILITY ============ */
.glass {
    background: var(--surface-glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
}

.gradient-text {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ HOME PAGE CLASSES ============ */
.home-search-container {
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.home-search-container h1 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.8rem;
}

.home-search-container p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============ NAME DAY BANNER ============ */
.nameday-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fdf6f0 0%, #fef0e6 100%);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.nameday-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.nameday-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nameday-names {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

.nameday-names a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.nameday-names a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Inline variant (inside articles) */
.nameday-inline {
    padding: 14px 2rem 14px;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.nameday-inline-icon {
    margin-right: 6px;
}

.nameday-inline-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 4px;
}

.nameday-inline a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--duration) var(--ease);
}

.nameday-inline a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.daily-info-post {
    background: var(--surface);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.daily-info-post header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.daily-badge {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: var(--gradient-primary);
    padding: 5px 14px;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.daily-info-post h1 {
    margin: 0;
    color: var(--text);
    font-size: 2rem;
    line-height: 1.3;
}

.daily-info-post h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.8rem;
    line-height: 1.3;
}

.post-content {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.02rem;
    text-align: justify;
}

.post-content p {
    margin: 0 0 1.2rem 0;
}

.post-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 2rem 0 1rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.post-content h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 1.5rem 0 0.8rem 0;
}

.post-content ul,
.post-content ol {
    margin: 0.8rem 0 1.2rem 1.5rem;
    padding: 0;
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 0.4rem;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: var(--primary-dark, var(--primary));
    text-decoration-thickness: 2px;
}

.home-categories {
    margin-top: 2.5rem;
}

.home-categories h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.5rem;
}

.home-categories h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin-top: 8px;
    border-radius: 2px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.cat-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    background: var(--surface);
    border: 1px solid var(--border-light);
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cat-card .cat-img {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cat-card .cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.cat-card:hover .cat-img img {
    transform: scale(1.08);
}

.cat-card .cat-title {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
}

/* Nav link relative for ::after pseudo */
.nav-links a {
    position: relative;
}

/* ============ ANIMATED BRAND ACCENT ============ */
.brand::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--rose), var(--gold), var(--primary));
    background-size: 200% 100%;
    animation: brandShimmer 4s ease infinite;
    border-radius: 2px;
}

@keyframes brandShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============ PAGE HEADER ACCENT LINE ============ */
.page-header {
    position: relative;
}

.page-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 12px auto 0;
    border-radius: 2px;
    animation: accentGrow 0.8s var(--ease) both;
}

@keyframes accentGrow {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 80px;
        opacity: 1;
    }
}

/* ============ SIDEBAR TITLE SHIMMER ============ */
.sidebar-title--accent {
    position: relative;
    overflow: hidden;
}

.sidebar-title--accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: sidebarShimmer 3s ease-in-out infinite;
}

@keyframes sidebarShimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* ============ FLOATING SCROLL-TOP ============ */
@keyframes gentlePulse {

    0%,
    100% {
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(212, 101, 74, 0.3);
    }

    50% {
        box-shadow: var(--shadow-md), 0 0 0 8px rgba(212, 101, 74, 0);
    }
}

.scroll-top.visible {
    animation: gentlePulse 3s ease infinite;
}

/* ============ NAME ITEM STAGGER ============ */
.name-item {
    animation: fadeInUp 0.4s var(--ease) both;
}

.name-item:nth-child(5n+1) {
    animation-delay: 0ms;
}

.name-item:nth-child(5n+2) {
    animation-delay: 30ms;
}

.name-item:nth-child(5n+3) {
    animation-delay: 60ms;
}

.name-item:nth-child(5n+4) {
    animation-delay: 90ms;
}

.name-item:nth-child(5n+5) {
    animation-delay: 120ms;
}

/* ============ CATEGORY CARD BORDER SHIMMER ============ */
.cat-card {
    position: relative;
}

.cat-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    background: linear-gradient(135deg, var(--primary-soft), transparent, var(--rose-soft));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease);
}

.cat-card:hover::before {
    opacity: 1;
}

/* ============ SIDEBAR WIDGET ENTRANCE ============ */
.sidebar-widget {
    animation: fadeInUp 0.5s var(--ease) both;
}

.sidebar-widget:nth-child(2) {
    animation-delay: 100ms;
}

.sidebar-widget:nth-child(3) {
    animation-delay: 200ms;
}

.sidebar-widget:nth-child(4) {
    animation-delay: 300ms;
}

/* ============ ZODIAC CARD HOVER ICON ============ */
.zodiac-card:hover .zodiac-symbol {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.4s var(--ease-spring);
}

.zodiac-card .zodiac-symbol {
    transition: transform 0.4s var(--ease);
}

/* ============ GUIDE CARD READ-MORE ARROW ============ */
.guide-read::after {
    content: ' →';
    display: inline-block;
    transition: transform var(--duration) var(--ease);
}

.guide-card:hover .guide-read::after {
    transform: translateX(4px);
}

/* ============ OCCASION TILE OVERLAY ============ */
.occasion-tile .img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(30, 15, 8, 0.08) 100%);
    border-radius: var(--radius-lg);
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
    opacity: 0;
}

.occasion-tile .img-wrap {
    position: relative;
}

.occasion-tile:hover .img-wrap::after {
    opacity: 1;
}

/* ============ WISH CARD NUMBER BADGE ============ */
.wish-card {
    counter-increment: wish;
    position: relative;
}

/* ============ ENHANCED SEARCH FOCUS ============ */
@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 4px rgba(212, 101, 74, 0.1), 0 0 20px rgba(212, 101, 74, 0.08);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(212, 101, 74, 0.06), 0 0 30px rgba(212, 101, 74, 0.1);
    }

    100% {
        box-shadow: 0 0 0 4px rgba(212, 101, 74, 0.1), 0 0 20px rgba(212, 101, 74, 0.08);
    }
}

.search-box input:focus {
    animation: searchPulse 2s ease infinite;
}

/* ============ HOLIDAY ITEM HOVER ============ */
.sidebar-holidays .hol {
    transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
    border-radius: 6px;
    padding: 0.35rem 0.4rem;
}

.sidebar-holidays .hol:hover {
    transform: translateX(4px);
    background: rgba(212, 101, 74, 0.04);
}

/* ============ ALPHA FILTER ENHANCED ============ */
.alpha-filter a {
    transition: all var(--duration) var(--ease);
}

.alpha-filter a:hover {
    transform: scale(1.08);
}

/* ============================================================
   SCROLL-REVEAL ANIMATION SYSTEM
   Works with IntersectionObserver in main.js
   ============================================================ */

/* Base: hidden state */
.animate-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

/* Revealed state */
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variants */
.animate-in--left {
    transform: translateX(-40px) translateY(0);
}

.animate-in--left.visible {
    transform: translateX(0) translateY(0);
}

.animate-in--right {
    transform: translateX(40px) translateY(0);
}

.animate-in--right.visible {
    transform: translateX(0) translateY(0);
}

.animate-in--scale {
    transform: scale(0.92);
    transform-origin: center;
}

.animate-in--scale.visible {
    transform: scale(1);
}

.animate-in--fade {
    transform: none;
}

.animate-in--fade.visible {
    transform: none;
}


/* ============================================================
   STAGGERED CATEGORY CARD ENTRANCES
   ============================================================ */

.cat-card {
    opacity: 0;
    transform: translateY(24px);
    animation: cardEntrance 0.6s var(--ease) both;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cat-card:nth-child(1) {
    animation-delay: 0.05s;
}

.cat-card:nth-child(2) {
    animation-delay: 0.12s;
}

.cat-card:nth-child(3) {
    animation-delay: 0.19s;
}

.cat-card:nth-child(4) {
    animation-delay: 0.26s;
}

.cat-card:nth-child(5) {
    animation-delay: 0.33s;
}

/* Section cards (homepage grid) */
.section-card {
    opacity: 0;
    animation: cardEntrance 0.5s var(--ease) both;
}

.section-card:nth-child(1) {
    animation-delay: 0.05s;
}

.section-card:nth-child(2) {
    animation-delay: 0.1s;
}

.section-card:nth-child(3) {
    animation-delay: 0.15s;
}

.section-card:nth-child(4) {
    animation-delay: 0.2s;
}

/* ============================================================
   ENHANCED HERO / SEARCH CONTAINER
   ============================================================ */

@keyframes heroShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.home-search-container {
    position: relative;
    overflow: visible;
    z-index: 100;
}

.home-search-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 101, 74, 0.04) 25%,
            rgba(200, 149, 63, 0.06) 50%,
            rgba(212, 101, 74, 0.04) 75%,
            transparent 100%);
    background-size: 200% 100%;
    animation: heroShimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.home-search-container>* {
    position: relative;
    z-index: 1;
}

/* Hero title entrance */
.home-search-container h1 {
    animation: fadeInDown 0.8s var(--ease) both;
}

.home-search-container p {
    animation: fadeInDown 0.8s var(--ease) 0.15s both;
}

.home-search-container .search-box {
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

/* ============================================================
   DAILY POST ENTRANCE
   ============================================================ */

.daily-info-post {
    animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

/* ============================================================
   WISH CARD STAGGER (Detail pages)
   ============================================================ */

.wish-card {
    opacity: 0;
    animation: cardEntrance 0.5s var(--ease) both;
}

.wish-card:nth-child(1) {
    animation-delay: 0.05s;
}

.wish-card:nth-child(2) {
    animation-delay: 0.1s;
}

.wish-card:nth-child(3) {
    animation-delay: 0.15s;
}

.wish-card:nth-child(4) {
    animation-delay: 0.2s;
}

.wish-card:nth-child(5) {
    animation-delay: 0.25s;
}

.wish-card:nth-child(n+6) {
    animation-delay: 0.3s;
}

/* ============================================================
   OCCASION / ZODIAC / GUIDE TILE HOVER ENHANCEMENTS
   ============================================================ */

.occasion-tile,
.zodiac-card,
.guide-card {
    transition: transform var(--duration-slow) var(--ease),
        box-shadow var(--duration-slow) var(--ease);
}

.occasion-tile:hover,
.zodiac-card:hover,
.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   ACCESSIBILITY — prefers-reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }


    .parchment-noise {
        opacity: 0.2;
    }

    body::after {
        animation: none;
    }
}