/* =========================================================
   BLOG INDEX PAGE - blog.css
   Home-page palette: blue #0b5edd, green #16b67c
   ========================================================= */

/* -- HERO -- */
.bl-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #eef4ff 0%, #f0fdf9 50%, #f8fafc 100%);
    padding: 40px 0 36px;
    text-align: center;
}
.bl-hero-dots {
    position: absolute; inset: -50%;
    background-image: radial-gradient(rgba(11,94,221,0.16) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.55; z-index: 0;
    animation: blDots 55s linear infinite alternate;
}
@keyframes blDots {
    0%   { transform: translate(0,0) rotate(0deg); }
    100% { transform: translate(28px,18px) rotate(2deg); }
}
.bl-blob {
    position: absolute; border-radius: 50%;
    filter: blur(90px); z-index: 0;
    animation: blBlob 12s infinite alternate ease-in-out;
}
.bl-blob-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(11,94,221,0.13) 0%, transparent 70%);
    top: -190px; right: -140px;
}
.bl-blob-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(22,182,124,0.13) 0%, transparent 70%);
    bottom: -160px; left: -130px;
    animation-duration: 16s; animation-delay: -6s;
}
@keyframes blBlob {
    0%   { transform: scale(1) translate(0,0); }
    100% { transform: scale(1.12) translate(-22px,30px); }
}
.bl-hero-inner { position: relative; z-index: 10; max-width: 760px; margin: 0 auto; }

.bl-breadcrumb {
    display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.85rem; font-weight: 500; color: #64748b; margin-bottom: 18px;
}
.bl-breadcrumb a { color: #475569; text-decoration: none; transition: color 0.3s; }
.bl-breadcrumb a:hover { color: #0b5edd; }
.bl-breadcrumb .sep { color: #cbd5e1; }
.bl-breadcrumb .curr { color: #0b5edd; font-weight: 600; }

.bl-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(11,94,221,0.08); border: 1px solid rgba(11,94,221,0.2);
    color: #0b5edd; border-radius: 50px; padding: 6px 16px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.4px; margin-bottom: 16px;
}
.bl-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #16b67c; animation: blPulse 2s infinite; }
@keyframes blPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.3); } }

.bl-title { font-size: 2.8rem; font-weight: 900; line-height: 1.18; color: #0f172a; margin: 0 0 16px; }
.bl-title span, .bl-section-title span {
    background: linear-gradient(135deg, #0b5edd, #16b67c);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bl-title small { display: block; font-size: 1.1rem; font-weight: 700; color: #64748b; margin-top: 6px; }
.bl-desc { font-size: 1.08rem; color: #475569; line-height: 1.7; margin: 0 auto; max-width: 640px; }

/* -- POSTS -- */
.bl-posts { background: #fff; padding: 56px 0 84px; }
.bl-posts-head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px;
}
.bl-posts-title { font-size: 1.6rem; font-weight: 900; color: #0f172a; margin: 0; }
.bl-posts-count { font-size: 0.9rem; font-weight: 600; color: #64748b; margin: 0; }

.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bl-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 22px; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.bl-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(11,94,221,0.12); border-color: rgba(11,94,221,0.35); }

.bl-thumb {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9; text-decoration: none; overflow: hidden;
}
.bl-thumb svg { width: 56px; height: 56px; transition: transform 0.4s ease; }
.bl-card:hover .bl-thumb svg { transform: scale(1.12) rotate(-4deg); }
.bl-thumb::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 18px 18px; opacity: 0.6;
}
.bl-thumb svg { position: relative; z-index: 1; }
.bl-thumb--optimization { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #0b5edd; }
.bl-thumb--reviews      { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.bl-thumb--seo          { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #0f9d6b; }
.bl-thumb--posts        { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1; }
.bl-thumb--ranking      { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }
.bl-thumb--ai           { background: linear-gradient(135deg, #0b5edd, #16b67c); color: #fff; }
.bl-latest {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: #fff; color: #0b5edd; border-radius: 50px; padding: 4px 12px;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.bl-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.bl-cat {
    align-self: flex-start; margin-bottom: 12px;
    background: rgba(11,94,221,0.08); color: #0b5edd; border-radius: 50px; padding: 4px 12px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.4px;
}
.bl-card-title { font-size: 1.15rem; font-weight: 800; line-height: 1.4; margin: 0 0 10px; }
.bl-card-title a { color: #1e293b; text-decoration: none; transition: color 0.25s; }
.bl-card-title a:hover { color: #0b5edd; }
.bl-excerpt { font-size: 0.92rem; color: #64748b; line-height: 1.65; margin: 0 0 18px; }
.bl-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
    margin-top: auto; padding-top: 14px; border-top: 1px solid #f1f5f9;
    font-size: 0.78rem; font-weight: 600; color: #94a3b8;
}
.bl-author { color: #475569; }
.bl-dot { width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; }

/* -- PAGINATION -- */
.bl-pagination { margin-top: 52px; }
.bl-pagination ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
}
.bl-page {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 44px; height: 44px; padding: 0 14px;
    border-radius: 12px; border: 1px solid #e2e8f0; background: #fff;
    font-size: 0.95rem; font-weight: 700; color: #334155; text-decoration: none;
    transition: all 0.25s;
}
a.bl-page:hover { border-color: #0b5edd; color: #0b5edd; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,94,221,0.14); }
.bl-page.is-current {
    background: linear-gradient(135deg, #0b5edd, #16b67c); border-color: transparent; color: #fff;
    box-shadow: 0 8px 20px rgba(11,94,221,0.3);
}
.bl-page.is-disabled { color: #cbd5e1; background: #f8fafc; cursor: not-allowed; }
.bl-page-gap { border: 0; background: none; min-width: 24px; padding: 0; color: #94a3b8; }

/* -- TOPICS -- */
.bl-topics { background: #f8fafc; padding: 84px 0; }
.bl-head { text-align: center; margin-bottom: 48px; }
.bl-section-badge {
    display: inline-block; background: rgba(11,94,221,0.08); color: #0b5edd;
    border-radius: 50px; padding: 5px 16px;
    font-size: 0.74rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px;
}
.bl-section-title { font-size: 2.3rem; font-weight: 900; color: #0f172a; line-height: 1.22; margin: 0 0 14px; }
.bl-section-desc { font-size: 1.05rem; color: #64748b; line-height: 1.65; max-width: 640px; margin: 0 auto; }
.bl-topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bl-topic {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 28px 24px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
@keyframes blColorWave {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.bl-topic:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 20px 50px -15px rgba(15,23,42,0.35);
    background: linear-gradient(120deg, #0b3a8f, #0d7a5a, #0b3a8f, #0d7a5a);
    background-size: 300% 300%;
    animation: blColorWave 2s ease infinite;
}
.bl-topic-ic {
    width: 50px; height: 50px; border-radius: 15px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0b5edd, #16b67c); color: #fff;
}
.bl-topic-ic svg { width: 24px; height: 24px; }
.bl-topic h3 { font-size: 1.08rem; font-weight: 800; color: #1e293b; margin: 0 0 8px; transition: color 0.3s ease; }
.bl-topic p { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin: 0; transition: color 0.3s ease; }
.bl-topic:hover h3 { color: #fff; }
.bl-topic:hover p { color: #e2e8f0; }

/* -- CTA -- */
.bl-cta-section { padding: 84px 0; background: #fff; }
.bl-cta-banner {
    text-align: center; background: linear-gradient(135deg, #0b5edd 0%, #16b67c 100%);
    border-radius: 32px; padding: 64px 32px;
}
.bl-cta-inner { max-width: 700px; margin: 0 auto; }
.bl-cta-inner h2 { font-size: 2.3rem; font-weight: 900; color: #fff; margin: 0 0 14px; }
.bl-cta-inner p { color: rgba(255,255,255,0.88); font-size: 1.05rem; line-height: 1.65; margin: 0 0 30px; }
.bl-cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.bl-btn-light {
    background: #fff; color: #0b5edd; font-weight: 700; text-decoration: none;
    padding: 14px 32px; border-radius: 50px; transition: all 0.25s;
}
.bl-btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(0,0,0,0.18); color: #0b5edd; }
.bl-btn-outline {
    color: #fff; font-weight: 700; text-decoration: none;
    padding: 14px 32px; border-radius: 50px; border: 2px solid rgba(255,255,255,0.7); transition: all 0.25s;
}
.bl-btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }

/* -- RESPONSIVE -- */
@media (max-width: 991px) {
    .bl-title { font-size: 2.4rem; }
    .bl-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .bl-topic-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .bl-hero { padding: 28px 0 28px; }
    .bl-title { font-size: 1.95rem; }
    .bl-desc { font-size: 1rem; }
    .bl-posts { padding: 40px 0 60px; }
    .bl-grid, .bl-topic-grid { grid-template-columns: 1fr; }
    .bl-topics, .bl-cta-section { padding: 60px 0; }
    .bl-section-title, .bl-cta-inner h2 { font-size: 1.7rem; }
    .bl-cta-banner { padding: 44px 22px; }
    .bl-pagination ul { gap: 6px; }
    .bl-page { min-width: 40px; height: 40px; padding: 0 10px; }
    .bl-page-nav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-hero-dots, .bl-blob, .bl-badge-dot, .bl-topic:hover { animation: none; }
}
