/* ═══════════════════════════════════════════════════════════════
   Track iT — Luxury Digital Banking Editorial & Magazine Stylesheet
   Matte Black (#09090b) + Burnished Gold (#d4af37) + Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

/* ── Blog Hero Banner ────────────────────────────────────────── */
.blog-hero {
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 70%),
                linear-gradient(180deg, #18181b 0%, #09090b 100%) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #fff;
    padding: 72px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800;
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.blog-hero p {
    color: #a1a1aa;
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Category Filter Tabs ────────────────────────────────────── */
.category-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 40px 0 32px;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 9px 20px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(10px);
    color: #a1a1aa;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.filter-tag:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: #d4af37;
    transform: translateY(-2px);
}

.filter-tag.active {
    background: linear-gradient(135deg, #d4af37 0%, #b89728 100%);
    border-color: #d4af37;
    color: #09090b;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

/* ── Blog Preview Cards (3-Col Grid) ─────────────────────────── */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.blog-preview-card {
    background: rgba(24, 24, 27, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.blog-preview-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.12);
}

.blog-preview-img {
    width: 100%;
    height: 200px;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1), #18181b);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.blog-preview-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.blog-preview-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #71717a;
    margin-bottom: 12px;
}

.blog-preview-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 12px;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-preview-card:hover .blog-preview-title {
    color: #d4af37;
}

.blog-preview-excerpt {
    font-size: 0.92rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: #d4af37;
    font-weight: 600;
    margin-top: auto;
}

/* ── Article Content Typography ──────────────────────────────── */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.article-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.1rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    color: #ffffff;
}

.article-author-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    background: rgba(24, 24, 27, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 9999px;
}

.author-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b89728);
    color: #09090b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Featured Article Image */
.article-featured-image {
    width: 100%;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15), #18181b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Body prose */
.article-prose {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #d4d4d8;
}

.article-prose p {
    margin-bottom: 24px;
}

.article-prose h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 40px 0 16px;
    color: #ffffff;
}

.article-prose h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: #ffffff;
}

.article-prose ul, .article-prose ol {
    margin: 16px 0 28px 24px;
    color: #a1a1aa;
}

.article-prose li {
    margin-bottom: 12px;
}

.article-prose blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 4px solid #d4af37;
    background: rgba(24, 24, 27, 0.6);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: #e4e4e7;
}

/* Share Links Bar */
.article-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 48px 0;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 768px) {
    .article-featured-image { height: 240px; }
    .category-filter-bar { flex-direction: column; align-items: stretch; }
    .blog-preview-grid { grid-template-columns: 1fr; }
}

/* ── Premium Search Bar ── */
.blog-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 560px;
}
.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}
.search-input {
    width: 100%;
    background: rgba(15, 15, 18, 0.75);
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    color: var(--text-main);
    padding: 12px 16px 12px 46px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-family: var(--font-inter);
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    height: 48px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.search-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12), 0 2px 16px rgba(0,0,0,0.3);
    background: rgba(15, 15, 18, 0.9);
}
.search-input::placeholder {
    color: var(--text-muted);
}
.search-clear {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}
.search-clear:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 860px) {
    .blog-search-form {
        max-width: 100%;
    }
}


/* ── Back Pill Link ── */
.back-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 14px;
    border-radius: 99px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-pill-link:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}
