    /* NSX Bilişim - Blog CSS Styles */
/* ======================================= */

/* BLOG PREVIEW SECTION */
.blog-preview {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.blog-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="blog-bg" cx="50%" cy="50%"><stop offset="0%" stop-color="%23274083" stop-opacity="0.02"/><stop offset="100%" stop-color="%23274083" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23blog-bg)"/><circle cx="800" cy="400" r="200" fill="url(%23blog-bg)"/><circle cx="400" cy="800" r="180" fill="url(%23blog-bg)"/></svg>');
    pointer-events: none;
}

/* BLOG GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

/* BLOG CARD */
.blog-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(39, 64, 131, 0.08);
    position: relative;
    cursor: pointer;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(39, 64, 131, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 2;
    pointer-events: none;
}

.blog-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-light);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover::after {
    left: 100%;
}

/* BLOG IMAGE */
.blog-image {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blog-grid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23blog-grid)"/></svg>');
    opacity: 0.6;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.1) 100%);
}

/* BLOG CATEGORY BADGE */
.blog-category {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    color: var(--white);
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

/* BLOG CONTENT */
.blog-content {
    padding: 2.5rem;
    position: relative;
    z-index: 3;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-light);
    transform: translateX(5px);
}

.blog-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BLOG META */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-secondary);
    margin-top: auto;
}

.blog-date {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.blog-date::before {
    content: '📅';
    font-size: 1rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.blog-card:hover .blog-date::before {
    filter: grayscale(0);
}

.blog-card:hover .blog-date {
    color: var(--primary-light);
    transform: translateX(3px);
}

.read-time {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    border: 1px solid rgba(39, 64, 131, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.read-time::before {
    content: '⏱️';
    font-size: 1rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.blog-card:hover .read-time {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    transform: scale(1.05);
}

.blog-card:hover .read-time::before {
    filter: grayscale(0);
}

/* BLOG CTA */
.blog-cta {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

/* BLOG SPECIFIC ANIMATIONS */
.blog-card {
    animation: blogFadeIn 0.6s ease-out;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.blog-card:nth-child(2) { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.blog-card:nth-child(3) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.blog-card:nth-child(4) { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }

@keyframes blogFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* BLOG LOADING STATES */
.blog-loading {
    height: 400px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255, 255, 255, 0.5) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: blogLoading 1.8s infinite;
    border-radius: 24px;
}

@keyframes blogLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* BLOG CATEGORIES */
.blog-category.ai { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.3));
    border-color: rgba(139, 92, 246, 0.4);
}

.blog-category.cloud { 
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(56, 189, 248, 0.3));
    border-color: rgba(14, 165, 233, 0.4);
}

.blog-category.security { 
    background: linear-gradient(135deg, rgba(220, 38, 127, 0.3), rgba(244, 114, 182, 0.3));
    border-color: rgba(220, 38, 127, 0.4);
}

.blog-category.web { 
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(74, 222, 128, 0.3));
    border-color: rgba(34, 197, 94, 0.4);
}

.blog-category.mobile { 
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(251, 146, 60, 0.3));
    border-color: rgba(249, 115, 22, 0.4);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-preview {
        padding: 6rem 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .blog-card {
        margin: 0 1rem;
        border-radius: 20px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 2rem;
    }
    
    .blog-content h3 {
        font-size: 1.3rem;
        -webkit-line-clamp: 3;
    }
    
    .blog-content p {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
        margin-bottom: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .read-time {
        align-self: flex-end;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog-preview {
        padding: 4rem 0;
    }
    
    .blog-card {
        margin: 0 0.5rem;
        border-radius: 16px;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .blog-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .blog-meta {
        font-size: 0.85rem;
        padding-top: 1rem;
    }
    
    .blog-date {
        gap: 0.4rem;
    }
    
    .read-time {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .blog-category {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .blog-cta {
        margin-top: 3rem;
    }
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
    .blog-preview.auto-dark {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    }
    
    .blog-card.auto-dark {
        background: #334155;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .blog-card.auto-dark .blog-content h3 {
        color: #e2e8f0;
    }
    
    .blog-card.auto-dark .blog-content p {
        color: #94a3b8;
    }
    
    .blog-card.auto-dark .read-time {
        background: #475569;
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .blog-card {
        border: 2px solid var(--primary-color);
    }
    
    .blog-category {
        border: 2px solid currentColor;
        background: var(--primary-color);
    }
    
    .blog-content h3 {
        color: var(--primary-color);
        font-weight: 900;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-content h3,
    .blog-date,
    .read-time,
    .blog-category {
        transition: none;
        animation: none;
    }
    
    .blog-card:hover {
        transform: none;
    }
    
    .blog-card::after {
        display: none;
    }
}

/* PRINT STYLES */
@media print {
    .blog-preview {
        background: white;
        padding: 2rem 0;
    }
    
    .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .blog-image {
        height: 150px;
        background: #f5f5f5;
    }
    
    .blog-category {
        background: #f5f5f5;
        color: #333;
        border: 1px solid #ccc;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-meta {
        border-top: 1px solid #ccc;
    }
}

/* ACCESSIBILITY ENHANCEMENTS */
.blog-card:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.blog-card[aria-pressed="true"] {
    background: var(--bg-secondary);
}

/* PERFORMANCE OPTIMIZATIONS */
.blog-card {
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.blog-image {
    transform: translateZ(0);
}

/* END OF BLOG CSS */