/**
 * Blog Styles - Modern Grid Layout - LEVEL 2030
 */

/* ============================================
   BLOG CONTAINER & LAYOUT
   ============================================ */

.blog-archive,
.blog-single {
    background-color: #1a1a1a;
    min-height: calc(100vh - 80px);
    padding: 4rem 6rem;
    margin: 0;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
}

.blog-header {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-header .page-title {
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.archive-description {
    color: #999;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ============================================
   BLOG NAVIGATION CONTROLS
   ============================================ */

.blog-nav-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Kategorien Dropdown - Modern */
.blog-categories-filter {
    position: relative;
    flex: 1;
}

.blog-categories-filter select,
.blog-categories-dropdown {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    appearance: none;
    font-family: 'Inter', sans-serif;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" width="14" height="8" viewBox="0 0 14 8"%3e%3cpath fill="%23C19A6B" d="M1 1l6 6 6-6" stroke="%23C19A6B" stroke-width="1.5" fill="none" stroke-linecap="round"/%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: all 0.3s ease;
}

.blog-categories-filter select:hover,
.blog-categories-dropdown:hover {
    border-color: var(--color-primary, #C19A6B);
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.blog-categories-filter select:focus,
.blog-categories-dropdown:focus {
    outline: none;
    border-color: var(--color-primary, #C19A6B);
    box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.1);
}

.blog-search {
    flex: 1;
}

/* Search Form - Modern */
.search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-field {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.search-field:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.06);
}

.search-field:focus {
    outline: none;
    border-color: var(--color-primary, #C19A6B);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.1);
}

.search-field::placeholder {
    color: #666;
}

.search-submit {
    padding: 0.875rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--color-primary, #C19A6B);
    border-radius: 8px;
    color: var(--color-primary, #C19A6B);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.search-submit:hover {
    background-color: var(--color-primary, #C19A6B);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 154, 107, 0.3);
}

/* ============================================
   BLOG POSTS GRID - 2 Columns
   ============================================ */

.blog-content-wrap {
    max-width: 100%;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

/* ============================================
   BLOG CARD - Modern Grid Style
   ============================================ */

.blog-card {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(193, 154, 107, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.04);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #000;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    align-items: center;
}

.blog-card-category {
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    background-color: rgba(193, 154, 107, 0.12);
    border: 1px solid rgba(193, 154, 107, 0.2);
}

.blog-card-category a {
    color: var(--color-primary, #C19A6B);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Inter', sans-serif;
}

.blog-card-date {
    color: #666;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.blog-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.blog-card-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--color-primary, #C19A6B);
}

.blog-card-excerpt {
    color: #999;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

.blog-card-footer {
    margin-top: auto;
}

/* ============================================
   BLOG SIDEBAR (Hidden on Archive)
   ============================================ */

.blog-archive .blog-sidebar {
    display: none;
}

.widget {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-title {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary, #C19A6B);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--color-primary, #C19A6B);
}

/* ============================================
   SINGLE POST
   ============================================ */

.single-post-article {
    background-color: #1a1a1a;
}

.back-to-blog {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary, #C19A6B);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #B8860B;
    gap: 0.75rem;
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #999;
}

.breadcrumbs a {
    color: #CCCCCC;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary, #C19A6B);
}

.breadcrumbs .current {
    color: var(--color-primary, #C19A6B);
}

.single-post-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.single-post-content {
    background-color: #2a2a2a;
    padding: 3rem;
    border-radius: 8px;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-meta-top {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-category a {
    color: var(--color-primary, #C19A6B);
    text-decoration: none;
    font-weight: 600;
}

.post-date,
.reading-time {
    color: #999;
}

.entry-title {
    color: #FFFFFF;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.post-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

/* Entry Content */
.entry-content {
    color: #CCCCCC;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.entry-content h2 {
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    font-family: 'Playfair Display', serif;
}

.entry-content h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
}

.entry-content a {
    color: var(--color-primary, #C19A6B);
    text-decoration: underline;
}

.entry-content a:hover {
    color: #B8860B;
}

/* Post Tags */
.post-tags {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tags-label {
    color: #999;
    margin-right: 0.75rem;
    font-weight: 600;
}

.tag-link {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: rgba(193, 154, 107, 0.15);
    color: var(--color-primary, #C19A6B);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: var(--color-primary, #C19A6B);
    color: #2C2C2C;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-posts-title {
    color: #FFFFFF;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.05);
}

.related-post-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 1rem;
}

.related-post-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.related-post-title a {
    color: #FFFFFF;
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--color-primary, #C19A6B);
}

.related-post-meta {
    font-size: 0.85rem;
    color: #999;
}

/* Post Navigation */
.post-navigation-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-previous,
.nav-next {
    display: flex;
}

.nav-previous a,
.nav-next a {
    flex: 1;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: rgba(193, 154, 107, 0.15);
}

.nav-next {
    text-align: right;
}

.nav-label {
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Pagination - Modern */
.blog-pagination {
    grid-column: 1 / -1;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-numbers {
    min-width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    color: #999;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.page-numbers:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary, #C19A6B);
    color: var(--color-primary, #C19A6B);
    transform: translateY(-2px);
}

.page-numbers.current {
    background-color: var(--color-primary, #C19A6B);
    color: #1a1a1a;
    border-color: var(--color-primary, #C19A6B);
    font-weight: 600;
}

/* No Posts Found */
.no-posts-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.no-posts-found h2 {
    color: #FFFFFF;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.no-posts-found p {
    color: #999;
    font-size: 1rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

.search-again {
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet */
@media (max-width: 1024px) {
    .blog-container {
        max-width: 900px;
    }
    
    .blog-posts-grid {
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-archive,
    .blog-single {
        padding: 2rem 1.5rem;
    }
    
    .blog-header .page-title {
        font-size: 2rem;
    }
    
    /* Navigation controls stack on mobile */
    .blog-nav-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        max-width: 100%;
    }
    
    .blog-categories-filter,
    .blog-search {
        flex: none;
        width: 100%;
    }
    
    .search-field {
        flex: 1;
    }
    
    /* Blog grid becomes single column */
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.375rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .single-post-content {
        padding: 1.5rem;
    }
    
    .single-post-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-archive {
        padding: 1.5rem 1rem;
    }
    
    .blog-header .page-title {
        font-size: 1.75rem;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.9rem;
    }
}

