/* ===== BASE ===== */
html { font-size: 16px; }
body { margin: 0; background: #f8f9fa; color: #1a1a2e; }

/* ===== NAVBAR ===== */
.ywh-navbar {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ywh-navbar .navbar-brand { font-size: 1.3rem; letter-spacing: -0.5px; }
.brand-esc   { color: #f0c040; }
.brand-works { color: #fff; }
.brand-hub   { color: #5bbfff; }

.ywh-navbar .nav-link {
    color: black !important;
    font-size: .9rem;
    padding: .5rem .85rem !important;
    transition: background .15s, color .15s;
    margin-left: 0.5px !important;
    margin-right: 0.5px !important;
}
    .ywh-navbar .nav-link:hover,
    .ywh-navbar .nav-link.active {
        color: #fff !important;
        background: #106dae;
        box-shadow: 0 10px 18px 0 rgba(16,109,174,0.27);
    }
.search-input {
    /*
        background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
    color: #fff;
    */
    width: 180px;
}
.search-input::placeholder { color: rgba(255,255,255,.5); }
    .search-input:focus {
        /*
        background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.4);
    color: #fff;
    */
        box-shadow: none;
    }

/* ===== SPA LOADER ===== */
.spa-loader {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    height: 3px;
}
.spa-loader-bar {
    height: 3px;
    background: linear-gradient(90deg, #f0c040, #5bbfff);
    animation: loader-slide 1.2s ease-in-out infinite;
}
@keyframes loader-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== POST CARDS ===== */
.post-card-link { text-decoration: none; color: inherit; display: block; }
.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.post-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}
.post-card-img-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}
.post-card-body { padding: 1rem; }
.post-cat-badge {
    display: inline-block;
    background: #0d1b3e;
    color: #f0c040;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .5rem;
}
.post-cat-badge:hover { background: #1a2f5e; color: #f0c040; }
.post-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .5rem;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-excerpt {
    font-size: .85rem;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .5rem;
}
.post-card-meta { font-size: .78rem; color: #999; }

/* Small card variant (related posts) */
.post-card-sm .post-card-img-sm { height: 130px; }
.post-card-title-sm {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: .25rem;
    -webkit-line-clamp: 3;
}

/* ===== SINGLE POST ===== */
.post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0d1b3e;
    margin-bottom: .75rem;
}
.post-meta { color: #888; font-size: .9rem; }
.post-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
}
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d3748;
}
.post-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 1rem 0; }
.post-content h2, .post-content h3 { color: #0d1b3e; margin-top: 1.5rem; }
.post-content a { color: #1a5fa8; }
.post-content blockquote {
    border-left: 4px solid #f0c040;
    padding-left: 1rem;
    color: #555;
    font-style: italic;
}
.post-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.post-content table th, .post-content table td {
    border: 1px solid #dee2e6; padding: .5rem .75rem;
}
.post-content table th { background: #f1f5f9; }

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-badge {
    background: #f1f5f9;
    color: #4a5568;
    font-size: .78rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .15s;
}
.tag-badge:hover { background: #0d1b3e; color: #fff; }

/* ===== CATEGORY PAGE ===== */
.category-header { border-bottom: 2px solid #f0c040; padding-bottom: 1rem; }
.category-title { font-size: 1.8rem; font-weight: 800; color: #0d1b3e; }

/* ===== SECTION HEADINGS ===== */
.section-heading {
    font-weight: 700;
    color: #0d1b3e;
    padding-bottom: .5rem;
    border-bottom: 2px solid #f0c040;
    margin-bottom: 1rem;
}

/* ===== COMMENTS ===== */
.comment-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
}
.comment-author { font-weight: 600; color: #0d1b3e; }

/* ===== FOOTER ===== */
.ywh-footer { background: #0d1b3e; }

/* ===== PAGINATION ===== */
.pagination .page-link { color: #0d1b3e; }
.pagination .page-item.active .page-link {
    background: #0d1b3e;
    border-color: #0d1b3e;
}
