/**
 * Blogs Shared CSS
 * Premium, uniforme styling voor alle blog pagina's
 */

/* ===========================
   BLOG CARDS (Swiper/Grid)
   =========================== */

.blog-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(0, 123, 255, 0.3);
}

.blog-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}


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

.blog-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2857;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card .btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    align-self: flex-start;
}

.blog-card .btn-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* ===========================
   BLOG BODY CONTENT
   =========================== */

.blog-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2c3e50;
}

.blog-body h2,
.blog-body h3,
.blog-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a2857;
}

.blog-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.blog-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.blog-body p {
    margin-bottom: 1.25rem;
}

.blog-body ul,
.blog-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.blog-body a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.blog-body a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.blog-body strong {
    font-weight: 600;
    color: #1a2857;
}

.blog-body em {
    font-style: italic;
    color: #495057;
}

/* ===========================
   ENHANCED TAGS
   =========================== */

.enhanced-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.enhanced-tag:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(0, 123, 255, 0.08) 100%);
}

/* ===========================
   SWIPER CONTAINER
   =========================== */

.swiper-container {
    padding: 3rem 0;
}

.swiper-slide {
    height: auto;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .blog-card .card-body {
        padding: 1.5rem;
    }

    .blog-card h5 {
        font-size: 1.1rem;
    }

    .blog-card img {
        height: 200px;
    }

    .blog-body {
        font-size: 1rem;
    }

    .blog-body h2 {
        font-size: 1.5rem;
    }

    .blog-body h3 {
        font-size: 1.3rem;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card img,
    .btn-read,
    .enhanced-tag {
        transition: none !important;
    }

    .blog-card:hover {
        transform: none !important;
    }
}

/* Focus states */
.blog-card:focus-within {
    outline: 3px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

.btn-read:focus {
    outline: 3px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}
