/* ========================================
   Sal Negra Tenerife - Blog Stylesheet
   ======================================== */

.blog-hero {
    position: relative;
    height: 40vh;
    min-height: 320px;
    background: linear-gradient(135deg, rgba(10,10,10,0.7), rgba(45,43,42,0.7)), url('../images/gallery3.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    margin-top: 80px;
}

.blog-hero h1 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.blog-hero p {
    color: var(--color-gray-light);
    font-size: 1.15rem;
    letter-spacing: 1px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-lang-switch {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
    color: var(--color-gray);
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.blog-lang-switch a {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.blog-lang-switch a:hover {
    border-bottom-color: var(--color-primary);
}

.blog-section {
    padding: 4rem 0;
    background: var(--color-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.blog-card-meta .sep {
    color: var(--color-gray-light);
    margin: 0 0.5rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: var(--color-black);
    line-height: 1.3;
}

.blog-card h2 a {
    color: inherit;
}

.blog-card h2 a:hover {
    color: var(--color-primary);
}

.blog-card-excerpt {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.blog-card-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-self: flex-start;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
}

.blog-card-link:hover {
    color: var(--color-black);
    border-bottom-color: var(--color-black);
}

/* === POST (detail page) === */
.post-hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    margin-top: 80px;
    display: flex;
    align-items: flex-end;
}

.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

.post-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    color: var(--color-white);
    width: 100%;
}

.post-hero-meta {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gray-light);
    margin-bottom: 1rem;
}

.post-hero h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin: 0;
}

.post-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #2a2a2a;
}

.post-body h2 {
    font-size: 1.9rem;
    margin-top: 2.8rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.post-body h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-black);
}

.post-body p {
    margin-bottom: 1.25rem;
    color: #2a2a2a;
    font-size: 1.08rem;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.5rem 1.5rem;
    padding-left: 1rem;
}

.post-body ul {
    list-style: disc;
}

.post-body ol {
    list-style: decimal;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: #2a2a2a;
}

.post-body a {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    font-weight: 500;
}

.post-body a:hover {
    color: var(--color-black);
    border-bottom-color: var(--color-black);
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-primary);
    background: #faf7f4;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: #3a3a3a;
}

.post-cta {
    max-width: 760px;
    margin: 0 auto 5rem;
    padding: 2.5rem 2rem;
    background: #faf7f4;
    border-radius: 8px;
    text-align: center;
}

.post-cta h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.post-cta p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.post-nav {
    max-width: 760px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.post-nav a {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.post-nav a:hover {
    color: var(--color-black);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .blog-hero {
        height: 32vh;
    }

    .post-body {
        padding: 2.5rem 1.5rem 3rem;
        font-size: 1rem;
    }

    .post-body p,
    .post-body li {
        font-size: 1rem;
    }
}
