/**
 * Modern Blog Redesign
 * Yeni modern blog tasarımı - Card-based layout
 * Magazine-style modern görünüm
 */

/* Blog Page Header - Modern Hero */
.vt-blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.vt-blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="grain" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ffffff;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23ffffff;stop-opacity:0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.1;
}

.vt-blog-hero-content {
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.vt-blog-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.vt-blog-hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vt-blog-search-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.vt-blog-search-form input {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.vt-blog-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.vt-blog-search-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.vt-blog-search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #667eea;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vt-blog-search-form button:hover {
    background: #f8f9ff;
    transform: translateY(-50%) scale(1.05);
}

/* Blog Categories Filter */
.vt-blog-filters {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.02);
}

.vt-blog-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vt-filter-tab {
    padding: 10px 24px;
    background: #f8f9fa;
    color: #666;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.vt-filter-tab:hover,
.vt-filter-tab.active {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* Modern Blog Layout */
.vt-blog-main {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.vt-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Grid - Masonry Style */
.vt-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Modern Blog Card */
.vt-blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.vt-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Featured Post - Larger Card */
.vt-blog-card.featured {
    grid-column: span 2;
    flex-direction: row;
    min-height: 300px;
}

.vt-blog-card.featured .vt-blog-image {
    width: 50%;
    height: 300px;
}

.vt-blog-card.featured .vt-blog-content {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Blog Image */
.vt-blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

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

/* Category Badge */
.vt-blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(102, 126, 234, 0.9);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Reading Time */
.vt-blog-reading-time {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Blog Content */
.vt-blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vt-blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666;
}

.vt-blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-blog-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
}

.vt-blog-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vt-blog-date i {
    opacity: 0.7;
}

.vt-blog-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.vt-blog-card:hover .vt-blog-title {
    color: #667eea;
}

.vt-blog-title a {
    color: inherit;
    text-decoration: none;
}

.vt-blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-size: 15px;
}

.vt-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vt-blog-tag {
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vt-blog-tag:hover {
    background: #667eea;
    color: #ffffff;
}

/* Read More Button */
.vt-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.vt-blog-read-more:hover {
    color: #5a6fd8;
    gap: 12px;
}

.vt-blog-read-more i {
    transition: transform 0.3s ease;
}

.vt-blog-read-more:hover i {
    transform: translateX(4px);
}

/* Modern Pagination */
.vt-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.vt-pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vt-pagination-btn:hover,
.vt-pagination-btn.current {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.vt-pagination-btn.prev,
.vt-pagination-btn.next {
    width: auto;
    padding: 0 16px;
    gap: 8px;
}

/* Sidebar Redesign */
.vt-blog-sidebar {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 160px;
}

.vt-sidebar-widget {
    margin-bottom: 40px;
}

.vt-sidebar-widget:last-child {
    margin-bottom: 0;
}

.vt-sidebar-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.vt-sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #667eea;
}

/* Popular Posts */
.vt-popular-post {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vt-popular-post:hover {
    background: #f8f9ff;
}

.vt-popular-post-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.vt-popular-post-content {
    flex: 1;
}

.vt-popular-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 8px;
}

.vt-popular-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vt-popular-post-title a:hover {
    color: #667eea;
}

.vt-popular-post-date {
    font-size: 12px;
    color: #999;
}

/* Newsletter Signup */
.vt-newsletter-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.vt-newsletter-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.vt-newsletter-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.vt-newsletter-form {
    display: flex;
    gap: 8px;
}

.vt-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vt-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.vt-newsletter-form button {
    background: #ffffff;
    color: #667eea;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vt-newsletter-form button:hover {
    background: #f8f9ff;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vt-blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .vt-blog-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .vt-blog-card.featured .vt-blog-image {
        width: 100%;
        height: 240px;
    }
    
    .vt-blog-card.featured .vt-blog-content {
        width: 100%;
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .vt-blog-hero-title {
        font-size: 36px;
    }
    
    .vt-blog-hero-subtitle {
        font-size: 18px;
    }
    
    .vt-blog-container {
        padding: 0 16px;
    }
    
    .vt-blog-sidebar {
        margin-top: 40px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .vt-blog-hero {
        padding: 80px 0 60px;
    }
    
    .vt-blog-hero-title {
        font-size: 28px;
    }
    
    .vt-blog-hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .vt-blog-filters {
        padding: 20px 0;
        position: relative;
        top: auto;
    }
    
    .vt-blog-filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 20px;
    }
    
    .vt-filter-tab {
        white-space: nowrap;
    }
    
    .vt-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vt-blog-main {
        padding: 40px 0;
    }
    
    .vt-blog-content {
        padding: 24px;
    }
    
    .vt-blog-title {
        font-size: 20px;
    }
    
    .vt-blog-sidebar {
        padding: 24px;
    }
    
    .vt-newsletter-form {
        flex-direction: column;
    }
}

/* Loading Animation */
.vt-blog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.vt-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .vt-blog-main {
        background: #1a1a1a;
    }
    
    .vt-blog-card {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .vt-blog-title {
        color: #ffffff;
    }
    
    .vt-blog-sidebar {
        background: #2a2a2a;
    }
}

/* Contact Section on Blog Page */
body.blog .contact,
body.archive .contact {
    margin-top: 60px !important;
    background: #f8f9fa;
}

body.blog .contact .xb-contact,
body.archive .contact .xb-contact {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    padding: 40px;
}

body.blog .contact .xb-item--holder h3,
body.archive .contact .xb-item--holder h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

body.blog .contact .xb-item--holder span,
body.archive .contact .xb-item--holder span {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
}

/* Print Styles */
@media print {
    .vt-blog-hero,
    .vt-blog-filters,
    .vt-blog-sidebar,
    .vt-blog-pagination,
    .contact {
        display: none;
    }
    
    .vt-blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
}