/* ===================
   BLOG PAGE STYLES
   blog.css
=================== */

/* =================== BACKGROUND CIRCLES =================== */
.blog-page .yellow-circle {
    position: absolute;
    background: radial-gradient(circle, #FADE83 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(7.8125vw);
    z-index: 0;
    opacity: 0.5;
}
.blog-page .circle-1 { width: 55vw; height: 55vw; top: -5%; right: -15%; }
.blog-page .circle-2 { width: 50vw; height: 50vw; top: 40%; left: -30%; }
.blog-page .circle-3 { width: 45vw; height: 45vw; bottom: 10%; right: -20%; opacity: 0.3; }

/* =================== HERO =================== */
.blog-hero {
    min-height: 38vh;
    padding-top: 7vw;
    padding-bottom: 2vw;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.blog-hero-inner { text-align: center; }

.blog-hero-eyebrow {
    display: inline-block;
    font-size: 0.75vw;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: 1vw;
}
.blog-hero-title {
    font-family: 'Nasalization', sans-serif;
    font-size: 4vw;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.12em;
    margin-bottom: 1vw;
    line-height: 1.1;
}
.blog-hero-subtitle {
    font-size: 1vw;
    color: var(--color-gray);
    max-width: 36vw;
    margin: 0 auto;
    line-height: 1.7;
}

/* =================== SEARCH & FILTER TOOLBAR =================== */
.blog-toolbar-section {
    position: relative;
    z-index: 2;
    margin-bottom: 1vw;
}

.blog-toolbar {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(32, 30, 39, 0.65);
    border: 1px solid rgba(223, 202, 132, 0.18);
    border-radius: 0.7vw;
    padding: 0;
    backdrop-filter: blur(16px);
    overflow: hidden;
}

/* Search */
.blog-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6vw;
    padding: 0.7vw 1.2vw;
    min-width: 0;
}
.blog-search-icon {
    width: 1vw;
    height: 1vw;
    color: rgba(174, 174, 174, 0.5);
    flex-shrink: 0;
}
.blog-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-size: 0.85vw;
    font-family: 'Roboto', sans-serif;
    min-width: 0;
}
.blog-search-input::placeholder { color: rgba(174, 174, 174, 0.4); }

/* Divider */
.blog-toolbar-divider {
    width: 1px;
    height: 2vw;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Select wrapper */
.blog-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4vw;
    padding: 0.7vw 1.2vw;
    flex-shrink: 0;
    cursor: pointer;
}
.blog-select-wrap:hover { background: rgba(255,255,255,0.03); }

.blog-select-icon {
    width: 0.9vw;
    height: 0.9vw;
    color: rgba(174, 174, 174, 0.45);
    flex-shrink: 0;
}
.blog-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-size: 0.82vw;
    font-family: 'Roboto', sans-serif;
    padding-right: 1.4vw;
    cursor: pointer;
    white-space: nowrap;
}
.blog-select option { background: #1E1D26; color: #fff; }
.blog-select-chevron {
    position: absolute;
    right: 0.6vw;
    width: 0.75vw;
    height: 0.75vw;
    color: rgba(223, 202, 132, 0.5);
    pointer-events: none;
}

/* Reset */
.blog-reset-btn {
    display: flex;
    align-items: center;
    gap: 0.4vw;
    padding: 0.7vw 1.2vw;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    color: rgba(174, 174, 174, 0.55);
    font-size: 0.78vw;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}
.blog-reset-btn svg { width: 0.85vw; height: 0.85vw; }
.blog-reset-btn:hover { color: var(--color-gold-light); background: rgba(223,202,132,0.05); }

/* Results count */
.blog-results-count {
    font-size: 0.75vw;
    color: var(--color-gold-light);
    margin-top: 0.6vw;
    display: none;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
}

/* =================== PLACEHOLDER IMAGE =================== */
.blog-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.6vw;
    background: linear-gradient(135deg,
        rgba(49, 47, 63, 0.9) 0%,
        rgba(32, 30, 39, 0.8) 40%,
        rgba(139, 99, 41, 0.25) 70%,
        rgba(250, 222, 131, 0.15) 100%
    );
}
.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}
.blog-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6vw;
    z-index: 2;
}
.blog-img-placeholder svg { width: 3vw; height: 3vw; opacity: 0.22; }
.blog-img-placeholder span {
    font-size: 0.65vw;
    color: rgba(255,255,255,0.18);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}
.blog-img-badge {
    position: absolute;
    top: 0.8vw;
    left: 0.8vw;
    z-index: 3;
    padding: 0.3vw 0.9vw;
    border-radius: 4vw;
    font-size: 0.65vw;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(223, 202, 132, 0.18);
    border: 1px solid rgba(223, 202, 132, 0.35);
    color: var(--color-gold-light);
    font-family: 'Roboto', sans-serif;
}

/* =================== FEATURED POST =================== */
.blog-featured {
    padding-bottom: 2vw;
    position: relative;
    z-index: 1;
}
.blog-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3vw;
    background: rgba(32, 30, 39, 0.45);
    border: 1px solid rgba(223, 202, 132, 0.18);
    border-radius: 1.2vw;
    padding: 2.5vw;
    backdrop-filter: blur(14px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    align-items: center;
}
.blog-featured-card:hover {
    border-color: rgba(223, 202, 132, 0.5);
    box-shadow: 0 1.2vw 3vw rgba(0,0,0,0.45), 0 0 2vw rgba(223,202,132,0.08);
}
.blog-featured-card:hover .blog-img-wrap img { transform: scale(1.04); }

.blog-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1vw;
}
.blog-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    font-size: 0.7vw;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    font-family: 'Roboto', sans-serif;
}
.blog-featured-label::before {
    content: '';
    display: inline-block;
    width: 1.5vw;
    height: 1px;
    background: var(--color-gold-light);
}
.blog-featured-title {
    font-family: 'Nasalization', sans-serif;
    font-size: 1.7vw;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.35;
    margin: 0;
}
.blog-featured-excerpt { font-size: 0.9vw; color: var(--color-gray); line-height: 1.75; margin: 0; }
.blog-featured-meta { display: flex; align-items: center; gap: 1.5vw; flex-wrap: wrap; }
.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4vw;
    font-size: 0.75vw;
    color: rgba(174,174,174,0.7);
    font-family: 'Roboto', sans-serif;
}
.blog-meta-item svg { width: 0.9vw; height: 0.9vw; opacity: 0.6; flex-shrink: 0; }
.blog-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    margin-top: 0.5vw;
    font-size: 0.85vw;
    font-weight: 600;
    color: var(--color-gold-light);
    font-family: 'Roboto', sans-serif;
    transition: gap 0.25s ease;
}
.blog-featured-cta:hover { gap: 0.9vw; }
.blog-featured-cta svg { width: 1vw; height: 1vw; }

/* =================== SECTION HEADER =================== */
.blog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2vw;
}
.blog-section-title {
    font-family: 'Nasalization', sans-serif;
    font-size: 1.5vw;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    position: relative;
    padding-left: 1.2vw;
}
.blog-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-dark));
    border-radius: 2px;
}
.blog-page-indicator {
    font-size: 0.75vw;
    color: rgba(174, 174, 174, 0.5);
    font-family: 'Roboto', sans-serif;
}

/* =================== POST GRID =================== */
.blog-grid-section { padding-bottom: 3vw; position: relative; z-index: 1; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
}

/* Scroll animation */
.animate-card {
    opacity: 0;
    transform: translateY(1.8vw);
    transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.animate-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(32, 30, 39, 0.4);
    border: 1px solid rgba(223, 202, 132, 0.1);
    border-radius: 1vw;
    overflow: hidden;
    text-decoration: none;
    /* Override animate-card transform in hover — separate transitions */
}
.blog-card.card-visible:hover {
    transform: translateY(-0.4vw);
    border-color: rgba(223, 202, 132, 0.4);
    box-shadow: 0 1vw 2.5vw rgba(0,0,0,0.4), 0 0 1.5vw rgba(223,202,132,0.08);
}
.blog-card.card-visible:hover .blog-img-wrap img { transform: scale(1.05); }

.blog-card-img { width: 100%; }
.blog-card-img .blog-img-wrap { border-radius: 0; }

.blog-card-body {
    padding: 1.4vw 1.5vw 1.8vw;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.7vw;
}
.blog-card-category {
    font-size: 0.65vw;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    font-family: 'Roboto', sans-serif;
}
.blog-card-title {
    font-family: 'Nasalization', sans-serif;
    font-size: 1.05vw;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.4;
    margin: 0;
    transition: color 0.25s ease;
}
.blog-card.card-visible:hover .blog-card-title { color: var(--color-gold-light); }
.blog-card-excerpt {
    font-size: 0.8vw;
    color: var(--color-gray);
    line-height: 1.65;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5vw;
    padding-top: 1vw;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.blog-card-date { font-size: 0.7vw; color: rgba(174,174,174,0.6); font-family: 'Roboto', sans-serif; }
.blog-card-read { font-size: 0.7vw; color: rgba(174,174,174,0.5); font-family: 'Roboto', sans-serif; margin-left: 0.5vw; }
.blog-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8vw;
    height: 1.8vw;
    border-radius: 50%;
    border: 1px solid rgba(223,202,132,0.25);
    color: var(--color-gold-light);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}
.blog-card.card-visible:hover .blog-card-arrow {
    background: rgba(223,202,132,0.12);
    border-color: rgba(223,202,132,0.5);
    transform: translateX(0.2vw);
}
.blog-card-arrow svg { width: 0.9vw; height: 0.9vw; }

/* =================== DIVIDER =================== */
.blog-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(223,202,132,0.25), transparent);
    margin: 0.5vw 0 2vw;
}

/* =================== PAGINATION =================== */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    margin-top: 3vw;
    padding-bottom: 1vw;
}
.blog-pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4vw;
    height: 2.4vw;
    padding: 0 0.6vw;
    border-radius: 0.5vw;
    border: 1px solid rgba(223,202,132,0.2);
    background: rgba(32,30,39,0.4);
    color: var(--color-white);
    font-size: 0.85vw;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(4px);
}
.blog-pag-btn:hover:not(.disabled):not(.active) {
    border-color: rgba(223,202,132,0.5);
    color: var(--color-gold-light);
    background: rgba(223,202,132,0.07);
    transform: translateY(-1px);
}
.blog-pag-btn.active {
    background: linear-gradient(90deg, var(--color-gold-light) 0%, var(--color-gold-dark) 100%);
    border-color: var(--color-gold-light);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0.2vw 0.8vw rgba(208,184,114,0.35);
}
/* =================== EMPTY STATE =================== */
.blog-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6vw 3vw;
    background: radial-gradient(ellipse at center, rgba(223, 202, 132, 0.05) 0%, rgba(255, 255, 255, 0.01) 70%);
    border: 1px dashed rgba(223, 202, 132, 0.2);
    border-radius: 1.5vw;
    margin: 3vw 0;
    transition: opacity 0.3s ease;
}
.blog-empty-icon {
    width: 4.5vw;
    height: 4.5vw;
    margin-bottom: 1.5vw;
    color: var(--color-gold-light, #dfca84);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-empty-icon svg {
    width: 100%;
    height: 100%;
}
.blog-empty-title {
    font-size: 1.6vw;
    font-weight: 600;
    color: var(--color-white, #fff);
    margin-bottom: 0.8vw;
    letter-spacing: -0.01em;
}
.blog-empty-desc {
    font-size: 1vw;
    color: rgba(255, 255, 255, 0.6);
    max-width: 35vw;
    line-height: 1.6;
    margin-bottom: 2vw;
}
.blog-empty-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6vw;
    padding: 0.8vw 2vw;
    background: rgba(223, 202, 132, 0.12);
    border: 1px solid rgba(223, 202, 132, 0.4);
    border-radius: 3vw;
    color: var(--color-gold-light, #dfca84);
    font-size: 0.95vw;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-empty-reset-btn:hover {
    background: rgba(223, 202, 132, 0.25);
    border-color: rgba(223, 202, 132, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 202, 132, 0.2);
}
.blog-empty-reset-btn svg {
    width: 1.2vw;
    height: 1.2vw;
}

/* =================== RESPONSIVE — TABLET =================== */
@media (max-width: 1024px) {
    .blog-hero-title    { font-size: 6vw; }
    .blog-hero-subtitle { font-size: 1.8vw; max-width: 65vw; }
    .blog-hero-eyebrow  { font-size: 1.3vw; margin-bottom: 2vw; }

    /* Toolbar */
    .blog-toolbar       { gap: 0; }
    .blog-search-input  { font-size: 1.6vw; }
    .blog-select        { font-size: 1.5vw; }
    .blog-reset-btn     { font-size: 1.5vw; }
    .blog-search-icon, .blog-select-icon { width: 1.8vw; height: 1.8vw; }
    .blog-select-chevron { width: 1.4vw; height: 1.4vw; }

    /* Featured */
    .blog-featured-card   { grid-template-columns: 1fr; gap: 3vw; }
    .blog-featured-title  { font-size: 2.8vw; }
    .blog-featured-excerpt{ font-size: 1.6vw; }
    .blog-featured-label  { font-size: 1.2vw; }
    .blog-meta-item       { font-size: 1.4vw; }
    .blog-meta-item svg   { width: 1.8vw; height: 1.8vw; }
    .blog-featured-cta    { font-size: 1.5vw; }
    .blog-featured-cta svg{ width: 1.8vw; height: 1.8vw; }

    /* Grid */
    .blog-grid          { grid-template-columns: repeat(2, 1fr); gap: 3vw; }
    .blog-card-title    { font-size: 2vw; }
    .blog-card-excerpt  { font-size: 1.5vw; }
    .blog-card-date, .blog-card-read { font-size: 1.3vw; }
    .blog-card-arrow    { width: 3.5vw; height: 3.5vw; }
    .blog-card-arrow svg{ width: 1.8vw; height: 1.8vw; }
    .blog-card-category { font-size: 1.2vw; }
    .blog-card-body     { padding: 2.5vw 2.8vw 3vw; gap: 1.5vw; }
    .blog-section-title { font-size: 2.8vw; }
    .blog-page-indicator{ font-size: 1.3vw; }

    /* Pagination */
    .blog-pag-btn       { min-width: 4.5vw; height: 4.5vw; font-size: 1.6vw; }

    /* Placeholder */
    .blog-img-placeholder svg  { width: 6vw; height: 6vw; }
    .blog-img-placeholder span { font-size: 1.2vw; }
    .blog-img-badge            { font-size: 1.2vw; padding: 0.6vw 1.8vw; top: 1.5vw; left: 1.5vw; }

    /* Empty State */
    .blog-empty-state { padding: 8vw 4vw; border-radius: 2vw; }
    .blog-empty-icon { width: 7vw; height: 7vw; margin-bottom: 2vw; }
    .blog-empty-title { font-size: 2.8vw; }
    .blog-empty-desc { font-size: 1.8vw; max-width: 60vw; margin-bottom: 3vw; }
    .blog-empty-reset-btn { font-size: 1.6vw; padding: 1.2vw 3vw; gap: 1vw; }
    .blog-empty-reset-btn svg { width: 1.8vw; height: 1.8vw; }
}

/* =================== RESPONSIVE — MOBILE =================== */
@media (max-width: 768px) {
    .blog-hero          { padding-top: 22vw; min-height: unset; }
    .blog-hero-title    { font-size: 9vw; letter-spacing: 0.06em; }
    .blog-hero-subtitle { font-size: 3.5vw; max-width: 85vw; }
    .blog-hero-eyebrow  { font-size: 2.5vw; margin-bottom: 2.5vw; }

    /* Toolbar — wrap on mobile */
    .blog-toolbar {
        flex-wrap: wrap;
        gap: 0;
        border-radius: 3vw;
    }
    .blog-search-wrap   { padding: 3.5vw 4vw; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .blog-search-icon   { width: 4vw; height: 4vw; }
    .blog-search-input  { font-size: 3.5vw; }
    .blog-toolbar-divider { display: none; }
    .blog-select-wrap   { padding: 3vw 4vw; flex: 1; }
    .blog-select        { font-size: 3vw; }
    .blog-select-icon   { width: 3.5vw; height: 3.5vw; }
    .blog-select-chevron{ width: 3vw; height: 3vw; right: 1vw; }
    .blog-reset-btn     { padding: 3vw 4vw; border-left: none; border-top: 1px solid rgba(255,255,255,0.08); width: 100%; justify-content: center; font-size: 3vw; }
    .blog-reset-btn svg { width: 3.5vw; height: 3.5vw; }
    .blog-results-count { font-size: 3vw; margin-top: 2vw; }

    /* Featured */
    .blog-featured-card { grid-template-columns: 1fr; gap: 5vw; padding: 5vw; border-radius: 4vw; }
    .blog-featured-title{ font-size: 5vw; }
    .blog-featured-excerpt{ font-size: 3.2vw; }
    .blog-featured-meta { gap: 4vw; }
    .blog-meta-item     { font-size: 2.8vw; }
    .blog-meta-item svg { width: 3.5vw; height: 3.5vw; }
    .blog-featured-cta  { font-size: 3.2vw; margin-top: 2vw; }
    .blog-featured-cta svg { width: 3.5vw; height: 3.5vw; }
    .blog-featured-label{ font-size: 2.4vw; }
    .blog-featured-label::before { width: 4vw; }

    /* Grid */
    .blog-grid          { grid-template-columns: 1fr; gap: 5vw; }
    .blog-card          { border-radius: 4vw; }
    .blog-card-body     { padding: 4vw 4.5vw 5vw; gap: 2.5vw; }
    .blog-card-title    { font-size: 4.5vw; }
    .blog-card-excerpt  { font-size: 3.2vw; -webkit-line-clamp: 4; }
    .blog-card-date, .blog-card-read { font-size: 2.8vw; }
    .blog-card-arrow    { width: 7vw; height: 7vw; }
    .blog-card-arrow svg{ width: 3.5vw; height: 3.5vw; }
    .blog-card-category { font-size: 2.4vw; }
    .blog-section-title { font-size: 5.5vw; padding-left: 3vw; }
    .blog-section-title::before { width: 4px; }
    .blog-section-header{ margin-bottom: 5vw; }
    .blog-page-indicator{ font-size: 2.8vw; }

    /* Pagination */
    .blog-pagination    { gap: 2vw; margin-top: 7vw; }
    .blog-pag-btn       { min-width: 9vw; height: 9vw; font-size: 3.5vw; border-radius: 2vw; }

    /* Placeholder */
    .blog-img-placeholder svg  { width: 10vw; height: 10vw; }
    .blog-img-placeholder span { font-size: 2.5vw; }
    .blog-img-badge { font-size: 2.4vw; padding: 1.2vw 3vw; top: 3vw; left: 3vw; border-radius: 8vw; }
    .blog-img-wrap  { border-radius: 2vw; }
    .animate-card { transform: translateY(6vw); }

    /* Empty State */
    .blog-empty-state { padding: 12vw 6vw; border-radius: 4vw; margin: 6vw 0; }
    .blog-empty-icon { width: 12vw; height: 12vw; margin-bottom: 3vw; }
    .blog-empty-title { font-size: 5vw; }
    .blog-empty-desc { font-size: 3.5vw; max-width: 85vw; margin-bottom: 5vw; }
    .blog-empty-reset-btn { font-size: 3.5vw; padding: 3vw 6vw; gap: 2vw; border-radius: 6vw; }
    .blog-empty-reset-btn svg { width: 4vw; height: 4vw; }
}
