/* styles/blog.css */

/* ===== HERO SECTION ===== */
.blog-hero {
    padding: 4rem 0 3rem;
    padding-top: 400px;
}

.badge-label {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 50px;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #0d6efd;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SEARCH & FILTER ===== */
.search-filter-section {
    transition: box-shadow 0.3s ease;
}

.search-form .input-group {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form .input-group:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.search-form .input-group-text {
    border: none;
}

.search-form .form-control {
    border: none;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn {
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.filter-tag a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.filter-tag a:hover {
    opacity: 0.7;
}

/* ===== BLOG CARDS ===== */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.blog-card-link {
    text-decoration: none;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f8f9fa;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.read-more-btn {
    padding: 0.625rem 1.5rem;
    background: #fff;
    color: #0d6efd;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-category {
    padding: 0.375rem 0.875rem;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #0d6efd;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a1a;
}

.read-time {
    font-size: 0.8125rem;
    color: #6c757d;
}

.blog-link-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.blog-link-arrow:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateX(4px);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 5rem;
    color: #dee2e6;
}

.empty-icon i {
    display: block;
}

/* ===== PAGINATION ===== */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #495057;
    padding: 0.625rem 1rem;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.page-item.active .page-link {
    background: #0d6efd;
    border-color: #0d6efd;
}

.page-item.disabled .page-link {
    border-color: #e9ecef;
    background: #f8f9fa;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: #f8f9fa;
}

.newsletter-card {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(111, 66, 193, 0.05));
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 20px;
    padding: 3rem 2.5rem;
}

.newsletter-form .input-group {
    border: 2px solid #e9ecef;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .blog-hero {
        padding: 3rem 0 2rem;
    }

    .search-filter-section {
        position: relative !important;
        top: 0 !important;
    }

    .newsletter-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-meta {
        font-size: 0.8125rem;
    }

    .blog-title {
        font-size: 1.125rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 12px;
    }

    .newsletter-form .form-control {
        border-radius: 12px 12px 0 0;
    }

    .newsletter-form .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        border-radius: 0 0 12px 12px;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .search-form .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    .author-name {
        font-size: 0.8125rem;
    }
}