/* =====================================================
   ORIGAMI KIDS - 작은슥슥이 종이접기
   Main Stylesheet
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
    /* Primary Colors - Warm, playful palette for children */
    --color-primary: #FF6B9D;
    --color-primary-light: #FF9ECD;
    --color-primary-dark: #E84580;
    --color-secondary: #7C5CFC;
    --color-secondary-light: #A78BFA;
    --color-accent-yellow: #FFD93D;
    --color-accent-green: #6BCB77;
    --color-accent-blue: #4FC3F7;
    --color-accent-orange: #FF8A5C;
    --color-accent-pink: #FF6FB7;

    /* Backgrounds */
    --bg-main: #FFF5F9;
    --bg-card: #FFFFFF;
    --bg-section: #FFF0F5;
    --bg-hero: linear-gradient(135deg, #FFE0F0 0%, #E8D5FF 30%, #D5EEFF 60%, #DFFFD5 100%);
    --bg-footer: #2D1B4E;

    /* Text */
    --text-primary: #2D1B4E;
    --text-secondary: #6B5B8D;
    --text-light: #9B8BB8;
    --text-white: #FFFFFF;

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(124, 92, 252, 0.1);
    --shadow-card-hover: 0 8px 40px rgba(124, 92, 252, 0.2);
    --shadow-btn: 0 4px 15px rgba(255, 107, 157, 0.3);
    --shadow-header: 0 2px 20px rgba(124, 92, 252, 0.08);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Typography */
    --font-main: 'Jua', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;

    /* Layout */
    --max-width: 1280px;
    --header-height: 70px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

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

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

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

/* Screen reader only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.screen-reader-text:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 12px 24px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--color-primary);
    color: white;
    font-size: 16px;
    z-index: 100000;
}

/* ---- Section Layout ---- */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-header);
    height: var(--header-height);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-lg);
}

.site-branding {
    flex-shrink: 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.site-logo-link:hover {
    transform: scale(1.03);
    color: var(--color-primary);
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 157, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.site-title-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item a:hover {
    background: var(--bg-section);
    color: var(--color-primary);
}

.cat-count {
    font-size: 0.7rem;
    background: var(--color-accent-yellow);
    color: var(--text-primary);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.nav-youtube a {
    background: #FF0000;
    color: white !important;
    font-weight: 600;
}

.nav-youtube a:hover {
    background: #CC0000;
    transform: scale(1.05);
}

.yt-icon {
    flex-shrink: 0;
}

/* Nav Search */
.nav-search {
    display: flex;
    align-items: center;
    background: var(--bg-section);
    border-radius: var(--radius-full);
    padding: 4px 4px 4px 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-search:focus-within {
    background: white;
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

.nav-search input {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    outline: none;
    width: 120px;
    font-family: var(--font-body);
    color: var(--text-primary);
}

.nav-search input::placeholder {
    color: var(--text-light);
}

.nav-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 27, 78, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    background: white;
    padding: var(--space-xl) var(--space-lg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-section);
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--bg-section);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}

.mobile-search input:focus {
    border-color: var(--color-primary-light);
}

.mobile-search button {
    padding: 12px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
}

.mobile-nav-menu {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.mobile-nav-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-section);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.mobile-nav-menu li a:hover {
    color: var(--color-primary);
}

.mobile-youtube-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 16px;
    background: #FF0000;
    color: white !important;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.mobile-youtube-btn:hover {
    transform: scale(1.02);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: var(--bg-hero);
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.15) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, -5%) scale(1.1); }
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    background-size: 200% 100%;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-family: var(--font-main);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-youtube {
    background: #FF0000;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
    background: #CC0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4);
}

.btn-shorts {
    background: linear-gradient(135deg, #FF0000, #FF6B9D);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
}

.btn-shorts:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4);
}

.btn-youtube-big {
    background: #FF0000;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
    font-size: 1.1rem;
    padding: 16px 36px;
}

.btn-youtube-big:hover {
    background: #CC0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
}

.btn-youtube-sm {
    background: #FF0000;
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2);
}

.btn-youtube-sm:hover {
    background: #CC0000;
    color: white;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-yt-embed {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card-hover);
    transition: transform 0.3s ease;
}

.hero-yt-embed:hover {
    transform: translateY(-4px);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-channel-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-primary);
    font-weight: 600;
    transition: background 0.3s ease;
}

.hero-channel-link:hover {
    background: var(--bg-section);
    color: var(--color-primary);
}

.hero-channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--color-primary-light);
}

/* =====================================================
   YOUTUBE SECTION
   ===================================================== */
.youtube-section {
    padding: var(--space-2xl) 0;
    background: white;
}

.section-title {
    font-family: var(--font-main);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--text-primary);
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 1rem;
}

.shorts-grid {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.shorts-card {
    width: 200px;
}

.shorts-link {
    display: block;
    text-decoration: none;
}

.shorts-placeholder {
    aspect-ratio: 9/16;
    max-height: 300px;
    background: linear-gradient(135deg, #FF0000, #FF6B9D);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
}

.shorts-placeholder:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 40px rgba(255, 0, 0, 0.3);
}

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

/* =====================================================
   CATEGORY SECTION
   ===================================================== */
.category-section {
    padding: var(--space-xl) 0;
    background: var(--bg-section);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    padding: var(--space-md) 0;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background: white;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cat-chip:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.cat-chip.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-btn);
}

.cat-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.chip-count {
    font-size: 0.75rem;
    background: var(--color-accent-yellow);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--text-primary);
}

/* =====================================================
   POSTS GRID
   ===================================================== */
.posts-section {
    padding: var(--space-2xl) 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.posts-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

/* Post Card */
.post-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: cardAppear 0.5s ease-out both;
}

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

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

.post-card-link {
    display: block;
    color: inherit;
}

.post-card-link:hover {
    color: inherit;
}

.post-card-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-section), #E8D5FF);
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.08);
}

.post-card-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
}

.no-thumb-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 27, 78, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-card-overlay {
    opacity: 1;
}

.post-card-view-btn {
    padding: 10px 24px;
    background: white;
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-view-btn {
    transform: translateY(0);
}

.post-card-content {
    padding: var(--space-md);
}

.post-card-title {
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--space-xs);
}

.post-card-cat {
    font-size: 0.75rem;
    padding: 2px 10px;
    background: var(--bg-section);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.post-card-date {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* Load More Button */
.load-more-wrap {
    text-align: center;
    padding: var(--space-lg) 0;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-btn);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4);
}

.load-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   ALL CATEGORIES GRID
   ===================================================== */
.all-categories-section {
    padding: var(--space-2xl) 0;
    background: white;
}

.all-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}

.all-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    border: 2px solid transparent;
}

.all-cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-card);
    color: var(--color-primary);
    background: white;
}

.all-cat-icon {
    font-size: 2.2rem;
}

.all-cat-name {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
}

.all-cat-count {
    font-size: 0.8rem;
    color: var(--text-light);
    background: white;
    padding: 2px 12px;
    border-radius: var(--radius-full);
}

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-post {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.single-post .section-inner {
    max-width: 860px;
}

.single-header {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.single-cat-badge {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.single-cat-badge:hover {
    transform: scale(1.05);
    color: white;
}

.single-date {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.single-title {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.single-thumbnail {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

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

/* Entry Content */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-main);
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--text-primary);
}

.entry-content h2 {
    font-size: 1.6rem;
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--color-primary-light);
}

.entry-content h3 {
    font-size: 1.3rem;
}

.entry-content p {
    margin-bottom: var(--space-md);
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) auto;
    box-shadow: var(--shadow-card);
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-primary-light);
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--color-primary-dark);
}

.entry-content ul, .entry-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.entry-content li {
    margin-bottom: var(--space-sm);
}

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background: var(--bg-section);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content iframe {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: var(--space-lg) auto;
    display: block;
}

.entry-content .wp-block-embed {
    margin: var(--space-lg) 0;
}

.entry-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.entry-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    margin: 0;
}

/* Tags */
.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    padding: var(--space-xl) 0;
    margin-top: var(--space-xl);
    border-top: 1px solid var(--bg-section);
}

.tags-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.single-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-section);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.single-tag:hover {
    background: var(--color-primary);
    color: white;
}

/* YouTube CTA in Post */
.single-youtube-cta {
    margin: var(--space-xl) 0;
}

.yt-cta-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #FFF0F5, #F0E6FF);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-primary-light);
}

.yt-cta-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--color-primary-light);
}

.yt-cta-text {
    flex: 1;
}

.yt-cta-text strong {
    display: block;
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.yt-cta-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.post-nav-link {
    display: block;
    padding: var(--space-lg);
    background: var(--bg-section);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    color: var(--text-primary);
    border: 2px solid transparent;
}

.post-nav-link:hover {
    border-color: var(--color-primary-light);
    background: white;
    transform: translateY(-2px);
    color: var(--color-primary);
}

.post-nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.post-nav-title {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
}

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

/* Related Posts */
.related-posts {
    margin: var(--space-2xl) 0;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--bg-section);
}

.related-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

/* =====================================================
   ARCHIVE / SEARCH PAGE
   ===================================================== */
.archive-page {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.archive-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-xl) 0;
}

.archive-title {
    font-family: var(--font-main);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.archive-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.archive-count,
.archive-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Pagination */
.pagination-wrap {
    padding: var(--space-xl) 0;
}

.pagination-wrap .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: white;
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-wrap .page-numbers:hover {
    background: var(--color-primary-light);
    color: white;
    transform: translateY(-2px);
}

.pagination-wrap .page-numbers.current {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: var(--shadow-btn);
}

/* Search form inline */
.search-again {
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.search-form-inline {
    display: flex;
    gap: var(--space-sm);
}

.search-form-inline input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--bg-section);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form-inline input:focus {
    border-color: var(--color-primary-light);
}

/* No results */
.no-results {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.no-results h3 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.suggested-searches {
    margin-top: var(--space-xl);
}

.suggest-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.suggest-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-section);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.suggest-tag:hover {
    background: var(--color-primary);
    color: white;
}

/* =====================================================
   404 PAGE
   ===================================================== */
.error-404-page {
    padding: var(--space-2xl) 0;
}

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

.error-icon {
    position: relative;
    margin-bottom: var(--space-xl);
}

.error-crane {
    font-size: 5rem;
    display: block;
    animation: float404 3s ease-in-out infinite;
}

@keyframes float404 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.error-number {
    font-family: var(--font-main);
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-title {
    font-family: var(--font-main);
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.error-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.error-search {
    display: flex;
    gap: var(--space-sm);
    max-width: 400px;
    margin: 0 auto var(--space-xl);
}

.error-search input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--bg-section);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}

.error-search input:focus {
    border-color: var(--color-primary-light);
}

.error-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.error-recent {
    margin-top: var(--space-2xl);
    text-align: center;
}

.error-recent h3 {
    font-family: var(--font-main);
    font-size: 1.3rem;
    margin-bottom: var(--space-xl);
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
    padding: var(--space-md) 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.breadcrumb .sep {
    margin: 0 var(--space-sm);
    color: var(--text-light);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-heading {
    font-family: var(--font-main);
    font-size: 1.3rem;
    color: white;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.footer-cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.footer-cat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-cat-item:hover {
    background: var(--color-primary);
    color: white;
}

.footer-cat-item span {
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    font-size: 2.5rem;
}

.footer-brand-text strong {
    display: block;
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: white;
}

.footer-brand-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-yt-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: #FF0000;
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.footer-yt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4);
    color: white;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-seo-text {
    margin-top: var(--space-sm);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Comments */
.single-comments {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--bg-section);
}

.comment-body {
    padding: var(--space-md);
    background: var(--bg-section);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.comment-author img {
    border-radius: 50%;
}

.comment-author strong {
    font-size: 0.95rem;
}

.comment-author time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-search {
        display: none;
    }

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

    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .all-cats-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --header-height: 60px;
        --space-xl: 32px;
        --space-2xl: 48px;
    }

    .site-logo-link {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: var(--space-xl) 0;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

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

    .all-cats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .all-cat-card {
        padding: var(--space-md) var(--space-sm);
    }

    .all-cat-icon {
        font-size: 1.6rem;
    }

    .all-cat-name {
        font-size: 0.82rem;
    }

    .single-title {
        font-size: 1.5rem;
    }

    .entry-content {
        font-size: 0.98rem;
    }

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

    .yt-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .footer-middle {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .category-chips {
        gap: 6px;
    }

    .cat-chip {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .archive-title {
        font-size: 1.5rem;
    }

    .error-number {
        font-size: 4rem;
    }

    .error-crane {
        font-size: 3.5rem;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-title {
        font-size: 1.6rem;
    }
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* WordPress Core Styles */
.aligncenter {
    display: block;
    margin: var(--space-lg) auto;
}

.alignleft {
    float: left;
    margin: var(--space-sm) var(--space-lg) var(--space-sm) 0;
}

.alignright {
    float: right;
    margin: var(--space-sm) 0 var(--space-sm) var(--space-lg);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--space-sm);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

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

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .antigravity-canvas,
    .mobile-menu-overlay,
    .hero-buttons,
    .youtube-section,
    .category-section,
    .single-youtube-cta,
    .related-posts,
    .post-navigation,
    .load-more-wrap {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .single-content {
        max-width: 100%;
    }
}
