/* SnagAFlight — Travel blog */

.section__header--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.section__header--row .section__sub { margin-bottom: 0; }

.blog-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, #0f2847 50%, var(--navy-800) 100%);
    color: #fff;
    padding: 110px 0 56px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15), transparent 50%);
    pointer-events: none;
}

.blog-hero .container { position: relative; z-index: 1; }

.blog-hero__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sky-400);
    margin-bottom: 12px;
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 640px;
}

.blog-hero__sub {
    margin-top: 14px;
    font-size: 1.05rem;
    opacity: 0.75;
    max-width: 520px;
    line-height: 1.6;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.blog-filter {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
}

.blog-filter:hover {
    border-color: var(--sky-400);
    color: var(--sky-600);
}

.blog-filter--active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(10, 22, 40, 0.12);
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.blog-card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-card:hover .blog-card__img { transform: scale(1.05); }

.blog-card__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(10, 22, 40, 0.75);
    color: #fff;
    backdrop-filter: blur(4px);
}

.blog-card__body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.55;
    flex: 1;
}

.blog-card__more {
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sky-500);
}

.blog-card__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 16px;
    padding: 10px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-900);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.blog-card__search:hover {
    background: rgba(59, 158, 255, 0.08);
    border-color: var(--sky-400);
    color: var(--sky-600);
}

.post-search-actions {
    margin: 40px 0 0;
    padding: 28px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.post-search-actions h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
}

.post-search-actions__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-search-btn--flights {
    background: linear-gradient(135deg, var(--sky-500), #2b7fd9);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 158, 255, 0.3);
}

.post-search-btn--hotels {
    background: linear-gradient(135deg, var(--teal-500), #0d9488);
    color: #fff;
}

.post-search-btn--cars {
    background: linear-gradient(135deg, var(--coral-500), #e85d3a);
    color: #fff;
}

.post-search-btn--explore,
.post-search-btn--home {
    background: var(--navy-900);
    color: #fff;
}

.post-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.post-search-btn__icon {
    font-size: 1.1rem;
}

[data-theme="dark"] .post-search-actions {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .post-search-actions h3 { color: #f1f5f9; }

[data-theme="dark"] .blog-card__search {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

/* Featured row on homepage */
.blog-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-featured .blog-card:first-child {
    grid-column: span 2;
}

.blog-featured .blog-card:first-child .blog-card__img-wrap {
    aspect-ratio: 21 / 9;
    min-height: 280px;
}

/* Single post */
.post-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    margin-top: -1px;
}

.post-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.post-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.4) 50%, rgba(10, 22, 40, 0.25) 100%);
}

.post-hero .container {
    position: relative;
    z-index: 1;
    padding: 120px 0 48px;
}

.post-hero__cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sky-300);
    margin-bottom: 12px;
}

.post-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    max-width: 800px;
}

.post-hero__meta {
    margin-top: 16px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

.post-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray-600);
    margin-bottom: 1.4em;
}

.post-content p:first-child {
    font-size: 1.15rem;
    color: var(--navy-800);
    font-weight: 500;
}

.post-cta {
    margin: 48px 0 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--navy-900), #1a365d);
    border-radius: var(--radius-lg);
    color: #fff;
    text-align: center;
}

.post-cta h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.post-cta p {
    opacity: 0.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.post-related {
    background: var(--gray-50);
    padding: 56px 0;
}

.post-related__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--navy-900);
}

[data-theme="dark"] .blog-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .blog-card__title { color: #f1f5f9; }
[data-theme="dark"] .blog-card__excerpt { color: #94a3b8; }
[data-theme="dark"] .blog-filter {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .blog-filter--active {
    background: var(--sky-600);
    border-color: var(--sky-600);
}
[data-theme="dark"] .post-content p { color: #94a3b8; }
[data-theme="dark"] .post-content p:first-child { color: #e2e8f0; }
[data-theme="dark"] .post-related { background: #0f172a; }
[data-theme="dark"] .post-related__title { color: #f1f5f9; }

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-featured {
        grid-template-columns: 1fr 1fr;
    }
    .blog-featured .blog-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    .blog-featured .blog-card:first-child .blog-card__img-wrap {
        aspect-ratio: 16 / 10;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .blog-grid,
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured .blog-card:first-child { grid-column: span 1; }
}
