/* ==========================================
   BLOG LIST PAGE STYLES
   Royal Bronze Theme
   ========================================== */

:root {
    --blog-max: 1200px;
}

.blog-wrap {
    width: min(var(--blog-max), calc(100% - 48px));
    margin: 0 auto;
    padding: calc(72px + 60px) 0 100px;
}

.blog-hero {
    margin-bottom: 40px;
}

/* Title — Cormorant Garamond */
.blog-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-h1);
    font-style: normal;
    line-height: 1.1;
    color: #2C3E50;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

html[data-theme="dim"] .blog-title { color: #f5f2ed; }

/* Subtitle — Inter */
.blog-sub {
    font-family: var(--font-body);
    font-size: var(--text-lead);
    font-weight: var(--weight-lead);
    color: rgba(44, 62, 80, 0.7);
    max-width: 700px;
    line-height: 1.6;
    margin: 0;
}

html[data-theme="dim"] .blog-sub { color: rgba(245, 242, 237, 0.7); }

/* Controls — Inter */
.blog-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin: 30px 0;
}

.blog-input,
.blog-select {
    font-family: var(--font-body);
    font-size: var(--text-label);
    background: rgba(44, 62, 80, 0.05);
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #2C3E50;
    outline: none;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

html[data-theme="dim"] .blog-input,
html[data-theme="dim"] .blog-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f5f2ed;
}

.blog-input::placeholder { color: rgba(44, 62, 80, 0.5); }
html[data-theme="dim"] .blog-input::placeholder { color: rgba(245, 242, 237, 0.5); }

.blog-input  { flex: 1; min-width: 240px; }
.blog-select { min-width: 180px; }

.blog-input:focus,
.blog-select:focus {
    border-color: rgba(176, 141, 87, 0.5);
    background: rgba(176, 141, 87, 0.05);
}

html[data-theme="dim"] .blog-input:focus,
html[data-theme="dim"] .blog-select:focus {
    background: rgba(176, 141, 87, 0.15);
}

.blog-count {
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: var(--weight-label);
    color: rgba(44, 62, 80, 0.6);
    margin-left: auto;
}

html[data-theme="dim"] .blog-count { color: rgba(245, 242, 237, 0.6); }

/* State */
.blog-state {
    margin: 20px 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed rgba(44, 62, 80, 0.2);
    color: rgba(44, 62, 80, 0.7);
    background: rgba(44, 62, 80, 0.05);
    font-family: var(--font-body);
    font-size: var(--text-small);
}

html[data-theme="dim"] .blog-state {
    border: 1px dashed rgba(245, 242, 237, 0.2);
    color: rgba(245, 242, 237, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Card */
.blog-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

html[data-theme="dim"] .blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(176, 141, 87, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 141, 87, 0.5);
    box-shadow: 0 16px 48px rgba(176, 141, 87, 0.15);
}

html[data-theme="dim"] .blog-card:hover {
    box-shadow: 0 16px 48px rgba(176, 141, 87, 0.2);
}

.blog-cover {
    aspect-ratio: 16/9;
    width: 100%;
    display: block;
    background: rgba(176, 141, 87, 0.08);
    object-fit: cover;
}

html[data-theme="dim"] .blog-cover { background: rgba(176, 141, 87, 0.1); }

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Meta — Inter */
.blog-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(44, 62, 80, 0.6);
    flex-wrap: wrap;
}

html[data-theme="dim"] .blog-meta { color: rgba(176, 141, 87, 0.8); }

.blog-pill {
    border: 1px solid rgba(176, 141, 87, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(176, 141, 87, 0.1);
    color: #8a6d3f;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--weight-label);
    white-space: nowrap;
}

html[data-theme="dim"] .blog-pill {
    border: 1px solid rgba(176, 141, 87, 0.4);
    background: rgba(176, 141, 87, 0.15);
    color: #B08D57;
}

/* Card title — Cormorant Garamond */
.blog-h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--weight-h3);
    font-style: normal;
    line-height: 1.3;
    color: #2C3E50;
}

html[data-theme="dim"] .blog-h2 { color: #f5f2ed; }

/* Excerpt — Inter */
.blog-excerpt {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: var(--weight-small);
    color: rgba(44, 62, 80, 0.7);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[data-theme="dim"] .blog-excerpt { color: rgba(245, 242, 237, 0.7); }

.blog-row {
    margin-top: auto;
    padding-top: 12px;
}

/* Button — Inter */
.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2C3E50;
    background: rgba(176, 141, 87, 0.1);
    border: 1px solid rgba(176, 141, 87, 0.3);
    padding: 10px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: var(--text-button);
    font-weight: var(--weight-button);
    transition: all 0.3s ease;
    cursor: pointer;
}

html[data-theme="dim"] .blog-btn {
    color: #f5f2ed;
    background: rgba(176, 141, 87, 0.15);
    border: 1px solid rgba(176, 141, 87, 0.4);
}

.blog-btn:hover {
    background: rgba(176, 141, 87, 0.2);
    border-color: #B08D57;
    color: #8a6d3f;
    transform: translateX(2px);
}

html[data-theme="dim"] .blog-btn:hover {
    background: rgba(176, 141, 87, 0.25);
    border-color: #B08D57;
    color: #d4b07a;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-wrap {
        width: calc(100% - 32px);
        padding-top: calc(72px + 40px);
    }

    .blog-grid        { grid-template-columns: 1fr; }
    .blog-controls    { flex-direction: column; align-items: stretch; }
    .blog-input,
    .blog-select      { min-width: 0; }
    .blog-count       { margin-left: 0; }
}