/* ===== BLOG PAGE STYLES ===== */

/* Blog Hero */
.blog-hero {
    text-align: center;
    padding: 160px 0 60px;
    position: relative;
}

.blog-hero .section-label {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(78, 130, 238, 0.3);
    background: rgba(78, 130, 238, 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters Bar */
.blog-filters {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    backdrop-filter: blur(12px);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.blog-search {
    position: relative;
    width: 100%;
    max-width: 260px;
}

.blog-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 10px 40px 10px 18px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.blog-search input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.blog-search input:focus {
    border-color: var(--accent);
}

.blog-search .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    font-size: 14px;
}

/* Article Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.4s ease;
    will-change: transform;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(78, 130, 238, 0.12);
    border-color: rgba(78, 130, 238, 0.25);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.blog-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.blog-card:hover .blog-card-title {
    color: var(--accent);
}

.blog-card-summary {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-footer {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.blog-card:hover .blog-card-footer {
    gap: 10px;
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.blog-loading {
    text-align: center;
    padding: 80px;
    color: rgba(255, 255, 255, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* ===== ARTICLE PAGE STYLES ===== */
.article-page {
    padding: 160px 0 80px;
    max-width: 820px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.article-meta .cat-label {
    color: var(--accent);
    text-transform: uppercase;
}

.article-meta .dot {
    color: rgba(255, 255, 255, 0.2);
}

.article-meta .date {
    color: rgba(255, 255, 255, 0.5);
}

.article-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
}

.article-cover {
    width: 100%;
    height: auto;
    max-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 48px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(78, 130, 238, 0.08);
    position: relative;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-cover .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark, #0a0a0f), transparent);
    opacity: 0.4;
}

.article-content {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.78);
    white-space: pre-wrap;
    margin-bottom: 48px;
}

.article-source-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 32px;
    transition: border-color 0.3s;
}

.article-source-box:hover {
    border-color: rgba(78, 130, 238, 0.25);
}

.article-source-box .source-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.article-source-box .source-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.article-source-box .btn-original {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 24px rgba(78, 130, 238, 0.2);
}

.article-source-box .btn-original:hover {
    box-shadow: 0 12px 32px rgba(78, 130, 238, 0.35);
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.article-back:hover {
    gap: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search {
        max-width: 100%;
    }

    .article-page {
        padding: 120px 20px 60px;
    }

    .article-source-box {
        flex-direction: column;
        text-align: center;
    }
}