/* ═══════════════════════════════════════════
   gauravyadav.dev — Blog Styles
   ═══════════════════════════════════════════ */

.blog-page {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

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

.blog-header h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.blog-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
}

/* ─── CATEGORY TABS ─── */
.blog-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0;
}

.blog-tab {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.blog-tab:hover { color: var(--text-secondary); }

.blog-tab.active {
    color: var(--accent-cyan);
}

.blog-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* ─── POST CARDS ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.post-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Post hero image */
.post-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 229, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.post-card-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg-card));
}

/* Post with no image — icon placeholder */
.post-card-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.03), rgba(41, 121, 255, 0.03));
    border-bottom: 1px solid var(--border-subtle);
}

.post-card-icon i {
    font-size: 36px;
    color: var(--accent-cyan);
    opacity: 0.4;
}

.post-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.post-card-meta .post-category {
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-category--tech {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.post-category--travel {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.post-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-card:hover .post-card-title {
    color: var(--accent-cyan);
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.post-card-footer .read-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.post-card-footer .read-more {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.post-card:hover .read-more {
    letter-spacing: 2px;
}

/* ─── TAGS ROW ─── */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

/* ─── EMPTY STATE ─── */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-dim);
}

.blog-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.blog-empty p {
    font-family: var(--font-mono);
    font-size: 14px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .blog-header h1 { font-size: 2rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-tabs { overflow-x: auto; }
}
