/* ============================================
   BLOG STYLES - Eesti Fotograafid
   ============================================ */

/* --- Blog Archive --- */
.ef-blog-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

/* Breadcrumbs */
.ef-blog-crumbs {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 32px;
}
.ef-blog-crumbs a {
    color: var(--ef-accent, #e07a5f);
    text-decoration: none;
    transition: color 0.2s;
}
.ef-blog-crumbs a:hover {
    color: #1a1a2e;
    text-decoration: underline;
}
.ef-blog-crumbs-sep {
    margin: 0 8px;
    color: #ccc;
}

/* Archive Header */
.ef-blog-header {
    text-align: center;
    margin-bottom: 48px;
}
.ef-blog-header h1 {
    display: inline-block;
    background: linear-gradient(135deg, rgba(224,122,95,0.08) 0%, rgba(26,26,46,0.05) 100%);
    border: 1px solid rgba(224,122,95,0.15);
    border-radius: 16px;
    padding: 20px 48px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.ef-blog-header-line {
    width: 60px;
    height: 3px;
    background: var(--ef-accent, #e07a5f);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Grid */
.ef-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* Card */
.ef-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ef-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.ef-blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.ef-blog-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f0f0f0;
}
.ef-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ef-blog-card:hover .ef-blog-card-img img {
    transform: scale(1.05);
}
.ef-blog-card-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #f5f5f5;
}
.ef-blog-card-body {
    padding: 24px;
}
.ef-blog-card-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.4;
}
.ef-blog-card-body p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px;
}
.ef-blog-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--ef-accent, #e07a5f);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}
.ef-blog-card:hover .ef-blog-btn {
    background: #c96a50;
    transform: translateX(4px);
}

/* Pagination */
.ef-blog-pagi {
    text-align: center;
    margin-top: 24px;
}
.ef-blog-pagi .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ef-blog-pagi .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}
.ef-blog-pagi .page-numbers:hover {
    background: var(--ef-accent, #e07a5f);
    color: #fff;
    border-color: var(--ef-accent, #e07a5f);
}
.ef-blog-pagi .page-numbers.current {
    background: var(--ef-accent, #e07a5f);
    color: #fff;
    border-color: var(--ef-accent, #e07a5f);
}

/* Empty */
.ef-blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.ef-blog-empty svg {
    margin-bottom: 16px;
}

/* --- Single Post --- */
.ef-single-post {
    padding-bottom: 60px;
}

/* Hero */
.ef-single-hero {
    position: relative;
    min-height: 420px;
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.ef-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,26,46,0.3) 0%, rgba(26,26,46,0.75) 100%);
    display: flex;
    align-items: flex-end;
}
.ef-single-hero-inner {
    max-width: 900px;
    padding: 48px 32px;
    width: 100%;
    margin: 0 auto;
}
.ef-single-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ef-single-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ef-accent, #e07a5f);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}
.ef-single-badge:hover {
    background: #c96a50;
    color: #fff;
}
.ef-single-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Single Breadcrumbs */
.ef-single-crumbs {
    max-width: 780px;
    margin: 0 auto;
    padding: 24px 24px 0;
    font-size: 0.85rem;
    color: #999;
}
.ef-single-crumbs a {
    color: var(--ef-accent, #e07a5f);
    text-decoration: none;
}
.ef-single-crumbs a:hover {
    text-decoration: underline;
}
.ef-single-crumbs span {
    margin: 0 6px;
}

/* Single Content */
.ef-single-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}
.ef-single-content h2,
.ef-single-content h3,
.ef-single-content h4 {
    font-family: 'Playfair Display', serif;
    color: #1a1a2e;
    margin: 2em 0 0.8em;
    font-weight: 700;
}
.ef-single-content h2 {
    font-size: 1.6rem;
}
.ef-single-content h3 {
    font-size: 1.3rem;
}
.ef-single-content p {
    margin: 0 0 1.5em;
}
.ef-single-content a {
    color: var(--ef-accent, #e07a5f);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ef-single-content a:hover {
    color: #c96a50;
}
.ef-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}
.ef-single-content blockquote {
    border-left: 4px solid var(--ef-accent, #e07a5f);
    margin: 2em 0;
    padding: 16px 24px;
    background: rgba(224,122,95,0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}
.ef-single-content ul,
.ef-single-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}
.ef-single-content li {
    margin-bottom: 0.5em;
}

/* Meta */
.ef-single-meta {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px 32px;
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
    border-bottom: 1px solid #eee;
}
.ef-single-meta time,
.ef-single-meta-cat {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ef-single-meta svg {
    opacity: 0.6;
}

/* Post Navigation */
.ef-single-nav {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    gap: 24px;
}
.ef-single-nav-item {
    flex: 1;
    display: block;
    padding: 20px 24px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.ef-single-nav-item:hover {
    background: #fff;
    border-color: var(--ef-accent, #e07a5f);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.ef-single-nav-next {
    text-align: right;
}
.ef-single-nav-dir {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ef-accent, #e07a5f);
    margin-bottom: 8px;
}
.ef-single-nav-next .ef-single-nav-dir {
    justify-content: flex-end;
}
.ef-single-nav-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ef-blog-wrap {
        padding: 90px 16px 40px;
    }
    .ef-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ef-blog-header h1 {
        font-size: 1.5rem;
        padding: 16px 32px;
    }
    .ef-single-hero {
        min-height: 300px;
    }
    .ef-single-title {
        font-size: 1.6rem;
    }
    .ef-single-hero-inner {
        padding: 32px 20px;
    }
    .ef-single-content {
        padding: 24px 16px;
        font-size: 1rem;
    }
    .ef-single-nav {
        flex-direction: column;
        gap: 16px;
        padding: 24px 16px;
    }
    .ef-single-nav-next {
        text-align: left;
    }
    .ef-single-nav-next .ef-single-nav-dir {
        justify-content: flex-start;
    }
    .ef-single-meta {
        padding: 0 16px 24px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .ef-blog-header h1 {
        font-size: 1.3rem;
        padding: 14px 24px;
    }
    .ef-single-title {
        font-size: 1.35rem;
    }
}

/* --- Hide Easy Table of Contents plugin on blog posts --- */
div[class*="ez-toc-v2"],
div[class*="ez-toc-container-direction"],
.ez-toc-title-container,
#ez-toc-container {
    display: none !important;
}
