/*
  Fibby Blog — Design Extension
  Extends: ../style.css
*/

/* ============================================
   OVERRIDES FOR BLOG (white header from start)
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header .logo,
.header .nav-link {
    color: var(--text-black);
}

.nav-link-active {
    opacity: 1 !important;
    border-bottom: 2px solid #6248FF;
    padding-bottom: 2px;
}

/* ============================================
   BLOG CONTAINER (wider than landing)
   ============================================ */
.blog-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   BLOG HERO
   ============================================ */
.blog-hero {
    background: var(--gradient-hero-deep);
    color: var(--text-white);
    padding: 120px 0 60px;
    text-align: center;
}

.blog-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.blog-hero-title {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.blog-hero-subtitle {
    font-size: 17px;
    font-weight: 400;
    opacity: 0.85;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .blog-hero-title {
        font-size: 64px;
    }
}

/* ============================================
   BLOG POSTS SECTION
   ============================================ */
.blog-posts-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
}

/* Featured card (full-width) */
.blog-card-featured {
    display: block;
    background: var(--bg-white);
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 24px;
    text-decoration: none;
    color: var(--text-black);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.blog-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    border-radius: 24px 24px 0 0;
}

.blog-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-featured .blog-card-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 12px 0 14px;
}

/* Grid for regular cards */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Regular card */
.blog-card {
    display: block;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    color: var(--text-black);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blog-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.blog-card .blog-card-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.65;
    margin-bottom: 16px;
}

.blog-card-featured .blog-card-excerpt {
    font-size: 16px;
    max-width: 600px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light-gray);
    font-weight: 500;
}

.blog-card-meta::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-light-gray);
}

/* ============================================
   BLOG CTA
   ============================================ */
.blog-cta {
    padding: 60px 0;
    background: var(--bg-white);
}

.blog-cta-card {
    background: var(--gradient-hero-deep);
    border-radius: 28px;
    padding: 48px 32px;
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    margin: 0 auto;
}

.blog-cta-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.blog-cta-text {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 28px;
}

.blog-cta .btn-primary {
    background: white;
    color: black;
    height: 52px;
    padding: 0 36px;
    font-size: 16px;
}

.blog-cta .btn-primary:hover {
    background: #f5f5f5;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.post-hero {
    background: var(--gradient-hero-deep);
    color: var(--text-white);
    padding: 110px 0 50px;
    text-align: center;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.post-hero-title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.7;
    font-weight: 400;
}

@media (min-width: 768px) {
    .post-hero-title {
        font-size: 52px;
    }
}

/* Post Body */
.post-body-section {
    padding: 60px 0 80px;
    background: var(--bg-white);
}

.post-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.post-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.post-content h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-black);
    margin: 44px 0 16px;
    line-height: 1.2;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-black);
    margin: 32px 0 12px;
}

.post-content ul,
.post-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.post-content li {
    font-size: 17px;
    line-height: 1.8;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.post-content strong {
    font-weight: 700;
    color: var(--text-black);
}

/* Callout box */
.post-callout {
    background: #EDE8FF;
    border-left: 4px solid #6248FF;
    border-radius: 0 16px 16px 0;
    padding: 20px 24px;
    margin: 32px 0;
}

.post-callout p {
    margin-bottom: 0;
    font-size: 16px;
    color: #3a2d7a;
}

/* Post CTA inline */
.post-inline-cta {
    background: var(--gradient-hero-deep);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    color: white;
    margin: 48px 0;
}

.post-inline-cta h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.post-inline-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 15px;
}

.post-inline-cta .btn-primary {
    background: white;
    color: black;
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
}

/* Back to blog link */
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.post-back:hover {
    color: var(--text-black);
}

/* Post separator */
.post-divider {
    border: none;
    border-top: 1px solid #E5E5EA;
    margin: 40px 0;
}

/* Rule number list for tips */
.tip-list {
    list-style: none;
    padding: 0;
    counter-reset: tip-counter;
}

.tip-list li {
    counter-increment: tip-counter;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #F2F2F7;
}

.tip-list li:last-child {
    border-bottom: none;
}

.tip-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
}

.tip-list li > div {
    flex: 1;
}

.tip-list li strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
}

.tip-list li span {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}
