/* Roammate Blog — extends city-guide.css */

.blog-index {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.blog-article {
    max-width: 740px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.blog-breadcrumb {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.blog-breadcrumb a {
    color: #0089CA;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef0f3;
}

.blog-article-header h1 {
    margin: 0 0 0.5rem;
    font-size: 2.1rem;
    line-height: 1.2;
}

.blog-article-header .meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.blog-article-body p,
.blog-article-body li {
    line-height: 1.7;
}

.blog-article-body h2 {
    margin-top: 2rem;
    color: #0089CA;
}

.blog-article-body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: #0b3d62;
}

.blog-article-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    text-transform: none;
    letter-spacing: 0;
}

.blog-article-body hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.blog-article-body img + em {
    display: block;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* Article hero image */

.blog-article-hero {
    margin: 0 0 2rem;
}

.blog-article-hero img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 12px;
}

.blog-article-hero-credit {
    font-size: 0.75rem;
    font-style: italic;
    text-align: center;
    color: #888;
    margin: 0;
    padding: 0.3rem 0 0;
    background: #fff;
}

/* Post grid */

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.post-card--featured {
    grid-column: 1 / -1;
}

.post-card-media-link {
    display: block;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    flex-shrink: 0;
}

.post-card:not(.post-card--featured) .post-card-media-link {
    aspect-ratio: 16 / 9;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.post-card:hover .post-card-image {
    transform: scale(1.04);
}

/* Placeholder — shown when no image is set */

.post-card-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
}

.post-card-placeholder::after {
    content: attr(data-label);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.pillar-london        { background: linear-gradient(135deg, #e32017 0%, #7a0000 100%); }
.pillar-paris         { background: linear-gradient(135deg, #5c78c1 0%, #2d3d8b 100%); }
.pillar-rome          { background: linear-gradient(135deg, #d2622a 0%, #7a2a08 100%); }
.pillar-barcelona     { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.pillar-preparation   { background: linear-gradient(135deg, #0089CA 0%, #005070 100%); }
.pillar-first-quarter { background: linear-gradient(135deg, #6366f1 0%, #3730a3 100%); }
.pillar-default       { background: linear-gradient(135deg, #0089CA 0%, #005070 100%); }

/* Card body */

.post-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card--featured .post-card-body {
    padding: 1.5rem 2rem 2rem;
}

.post-card-pillar {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #0089CA;
    margin-bottom: 0.5rem;
}

.post-card-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.post-card--featured .post-card-title {
    font-size: 1.45rem;
}

.post-card-title a {
    color: #111827;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #0089CA;
}

.post-card-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0 0 0.75rem;
}

.post-card-excerpt {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Pagination */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eef0f3;
}

.blog-pagination-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.blog-pagination-btn:hover {
    border-color: #0089CA;
    color: #0089CA;
}

.blog-pagination-btn--disabled {
    color: #d1d5db;
    cursor: default;
    pointer-events: none;
}

.blog-pagination-info {
    font-size: 0.85rem;
    color: #9ca3af;
    min-width: 3rem;
    text-align: center;
}

@media (max-width: 620px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-card--featured {
        grid-column: auto;
    }
}

/* Blog post reminder CTA — appears at the bottom of city-specific posts */
.blog-cta-reminder {
    margin: 3rem 0 1rem;
    padding: 1.75rem 1.5rem;
    background: #f0f7ff;
    border: 1px solid #cfe4f6;
    border-radius: 12px;
}

.blog-cta-reminder-text h2 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
    color: #0b3d62;
}

.blog-cta-reminder-text p {
    margin: 0 0 1.25rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}

.blog-cta-reminder-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-cta-reminder-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.blog-cta-reminder-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.blog-cta-reminder-field span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
}

.blog-cta-reminder-field input {
    padding: 0.55rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

.blog-cta-reminder-field input:focus {
    outline: 2px solid #0089CA;
    outline-offset: 1px;
    border-color: #0089CA;
}

.blog-cta-reminder-submit {
    align-self: flex-start;
    padding: 0.6rem 1.25rem;
    background: #0089CA;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.blog-cta-reminder-submit:hover:not(:disabled) {
    background: #006fa3;
}

.blog-cta-reminder-submit:disabled {
    cursor: default;
    opacity: 0.7;
}

.blog-cta-reminder .reminder-success {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #065f46;
    font-size: 0.9rem;
}

@media (max-width: 520px) {
    .blog-cta-reminder-fields {
        grid-template-columns: 1fr;
    }
    .blog-cta-reminder-submit {
        align-self: stretch;
    }
}

/* Share button — single neutral button, native share sheet on mobile,
   clipboard-copy fallback elsewhere. Sits between the article body and
   the reminder CTA. Left-aligned so macOS Safari's share popover
   anchors below the button instead of drifting into the right margin. */
.blog-share {
    margin: 2.5rem 0 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.blog-share-btn:hover {
    border-color: #0089CA;
    color: #0089CA;
}

.blog-share-btn:active {
    background: #f0f7ff;
}

.blog-share-btn .lucide {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 520px) {
    .blog-share {
        justify-content: stretch;
    }
    .blog-share-btn {
        width: 100%;
        justify-content: center;
    }
}
