/* ========================================
   BLOG SECTION STYLES
   Modern Blog Kartları - Premium Design
   ======================================== */

/* ===== SECTION WRAPPER ===== */
.blog-section {
    padding: 120px 0;
    position: relative;
    z-index: 4;
    overflow: hidden;
}

/* ===== SECTION HEADER ===== */
.blog-header {
    text-align: center;
    margin-bottom: 70px;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid rgba(233, 30, 99, 0.4);
    background: rgba(233, 30, 99, 0.08);
    color: #E91E63;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.blog-badge svg {
    width: 16px;
    height: 16px;
}

.blog-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.2px;
    color: #FFF;
    margin-bottom: 16px;
}

.blog-subtitle {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: #9ca3af;
    max-width: 580px;
    margin: 0 auto;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* ===== BLOG CARD ===== */
.blog-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.15);
}

/* Card Image */
.blog-card__image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.08);
}

.blog-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(233, 30, 99, 0.95);
    backdrop-filter: blur(8px);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-card__date {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(16, 16, 18, 0.90);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.blog-card__date i {
    font-size: 11px;
    color: #E91E63;
}

/* Card Content */
.blog-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title {
    color: #E91E63;
}

.blog-card__excerpt {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Card Footer */
.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card__author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(233, 30, 99, 0.3);
    object-fit: cover;
}

.blog-card__author-name {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}

.blog-card__reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
}

.blog-card__reading-time i {
    font-size: 11px;
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #E91E63;
    text-decoration: none;
    transition: gap 0.3s ease;
    white-space: nowrap;
}

.blog-card:hover .blog-card__read-more {
    gap: 10px;
}

.blog-card__read-more i {
    font-size: 12px;
}

/* ===== VIEW ALL BUTTON ===== */
.blog-cta {
    text-align: center;
    margin-top: 20px;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 100px;
    background: transparent;
    border: 2px solid rgba(233, 30, 99, 0.4);
    color: #E91E63 !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-cta-btn:hover {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    border-color: #E91E63;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
}

.blog-cta-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.blog-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ===== LIGHT MODE ===== */
body.light-mode .blog-section {
    background: #ffffff;
}

body.light-mode .blog-badge {
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

body.light-mode .blog-title {
    color: #1d1d1f;
}

body.light-mode .blog-subtitle {
    color: #6b7280;
}

body.light-mode .blog-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.light-mode .blog-card:hover {
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.12);
}

body.light-mode .blog-card__title {
    color: #1d1d1f;
    font-weight: 700;
}

body.light-mode .blog-card:hover .blog-card__title {
    color: #E91E63;
}

body.light-mode .blog-card__excerpt {
    color: #4b5563;
    font-weight: 400;
}

body.light-mode .blog-card__footer {
    border-top-color: #e5e7eb;
}

body.light-mode .blog-card__author-name {
    color: #1d1d1f;
}

body.light-mode .blog-card__reading-time {
    color: #6b7280;
}

body.light-mode .blog-card__date {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1d1d1f;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .blog-card__date i {
    color: #E91E63;
}

body.light-mode .blog-card__category {
    background: rgba(233, 30, 99, 0.95);
    color: #ffffff !important;
}

body.light-mode .blog-cta-btn {
    border-color: rgba(233, 30, 99, 0.3);
}

body.light-mode .blog-cta-btn:hover {
    border-color: #E91E63;
}

/* ===== RESPONSIVE ===== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .blog-section {
        padding: 80px 0;
    }
    
    .blog-header {
        margin-bottom: 50px;
    }
    
    .blog-title {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .blog-subtitle {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .blog-card__image {
        height: 220px;
    }
    
    .blog-card__title {
        font-size: 18px;
    }
    
    .blog-card__excerpt {
        font-size: 13px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-header {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .blog-badge {
        font-size: 11px;
        padding: 6px 16px;
        gap: 6px;
    }
    
    .blog-badge svg {
        width: 14px;
        height: 14px;
    }
    
    .blog-title {
        font-size: 26px;
        letter-spacing: -0.8px;
    }
    
    .blog-subtitle {
        font-size: 15px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card__image {
        height: 200px;
    }
    
    .blog-card__content {
        padding: 20px;
    }
    
    .blog-card__title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .blog-card__excerpt {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .blog-card__footer {
        padding-top: 14px;
    }
    
    .blog-card__author-avatar {
        width: 28px;
        height: 28px;
    }
    
    .blog-card__author-name {
        font-size: 12px;
    }
    
    .blog-card__read-more {
        font-size: 12px;
    }
    
    .blog-cta {
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .blog-cta-btn {
        padding: 12px 28px;
        font-size: 14px;
        gap: 8px;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .blog-section {
        padding: 50px 0;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-subtitle {
        font-size: 14px;
    }
    
    .blog-card__image {
        height: 180px;
    }
    
    .blog-card__category {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    .blog-card__date {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease-out;
}

.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ===== ACCESSIBILITY ===== */
.blog-card:focus,
.blog-cta-btn:focus {
    outline: 2px solid #E91E63;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .blog-section {
        padding: 40px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card {
        break-inside: avoid;
    }
    
    .blog-cta {
        display: none;
    }
}
