/* assets/css/blog.css - Rebuilt Premium Blog Section Styling (Light Fintech Theme) */

:root {
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --primary-glow: rgba(13, 148, 136, 0.08);
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --bg: #f8fafc;
    --bg-dark: #f1f5f9;
    --white: #ffffff;
    --text-main: #0f172a;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border: #e2e8f0;
    --border-hover: #14b8a6;
}

body {
    background: var(--bg) !important;
    color: var(--text-main) !important;
    font-family: 'Outfit', 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Navbar overrides to stay premium */
.public-navbar {
    background: rgba(248, 250, 252, 0.85) !important;
    border-bottom: 1px solid var(--border-light) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.public-navbar a.btn-back {
    color: var(--primary) !important;
}

.public-navbar a.btn-back:hover {
    color: var(--primary-dark) !important;
}

/* Blog Header Hero */
.blog-hero {
    padding: 8rem 8% 6rem;
    text-align: center;
    background: linear-gradient(135deg, #090d16 0%, #0f172a 100%);
    color: var(--white);
    position: relative;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p {
    color: rgba(248, 250, 252, 0.75);
    font-size: 1.18rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Layout Grid */
.blog-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
}

/* Category Filters and Search Container */
.blog-filter-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.blog-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-cat-btn {
    background: var(--white);
    color: var(--text-light);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-cat-btn:hover {
    background: rgba(13, 148, 136, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.blog-cat-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Search Box */
.blog-search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.blog-search-box input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-radius: 14px;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.25s ease;
}

.blog-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.blog-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Content Area spacing */
.blog-content-area {
    min-width: 0;
}

/* Spotlight featured layout */
.featured-spotlight-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 3.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.015);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    grid-column: 1 / -1;
}

.featured-spotlight-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}

.featured-spotlight-img-side {
    height: 360px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.featured-spotlight-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-spotlight-card:hover .featured-spotlight-img-side img {
    transform: scale(1.04);
}

.featured-spotlight-info-side {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-spotlight-info-side h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0.5rem 0 10px 0;
    line-height: 1.3;
    letter-spacing: -0.6px;
    transition: color 0.2s ease;
}

.featured-spotlight-card:hover .featured-spotlight-info-side h2 {
    color: var(--primary);
}

.featured-spotlight-info-side p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

/* Articles Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.2rem;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.015);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.04);
}

.blog-card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
}

.blog-card-img-wrapper i {
    font-size: 3.5rem;
    color: rgba(13, 148, 136, 0.35);
    transition: transform 0.5s ease, color 0.5s ease;
}

.blog-card:hover .blog-card-img-wrapper i {
    transform: scale(1.08) rotate(3deg);
    color: var(--primary);
}

.blog-card-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.04);
}

.blog-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.blog-card-meta {
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    gap: 15px;
    font-weight: 600;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-meta i {
    color: var(--primary);
}

.blog-card-body h3 {
    font-size: 1.2rem;
    font-weight: 750;
    color: var(--text-main);
    margin: 8px 0 12px 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-body h3 {
    color: var(--primary);
}

.blog-card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-more {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-more i {
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-more i {
    transform: translateX(4px);
}

/* Sidebar Widgets */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.01);
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 1.5rem 0;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    line-height: 1.2;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.recent-post-item {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recent-post-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.recent-post-item:hover .recent-post-icon {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.recent-post-info {
    flex: 1;
    overflow: hidden;
}

.recent-post-info h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.recent-post-item:hover h5 {
    color: var(--primary);
}

.recent-post-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Tags cloud formatting */
.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-badge {
    background: var(--bg);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(13, 148, 136, 0.04);
}

/* Single Article Comfort Read layout */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 1.5rem 5rem;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.article-breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
    color: var(--primary);
}

.article-breadcrumbs i {
    font-size: 0.62rem;
    color: var(--text-muted);
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.22;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 1.1rem 0;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.author-details {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.author-details span:first-child {
    font-weight: 750;
    color: var(--text-main);
    font-size: 0.88rem;
}

.author-details span:last-child {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.article-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: translateY(-2px);
}

/* Reading Progress Indicator */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(15, 23, 42, 0.05);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-light);
    transition: width 0.1s ease-out;
}

/* Banner featured container */
.article-featured-media {
    height: 420px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 6rem;
    border: 1px solid var(--border-light);
    margin-bottom: 3.5rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.02);
    overflow: hidden;
}

/* Typography elements for reading comfort */
.article-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-light);
}

.article-content p {
    margin: 0 0 1.8rem 0;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 2.8rem 0 1.25rem 0;
    letter-spacing: -0.5px;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 2.4rem 0 1rem 0;
    letter-spacing: -0.3px;
}

.article-content ol, .article-content ul {
    padding-left: 24px;
    margin: 0 0 1.8rem 0;
}

.article-content li {
    margin-bottom: 0.6rem;
}

.article-content strong {
    color: var(--text-main);
    font-weight: 750;
}

/* Tags Footer */
.article-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* Related articles spacing */
.related-posts-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.related-posts-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 2rem 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .blog-main {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .blog-sidebar {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 6.5rem 5% 4.5rem;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1.05rem;
    }
    
    .blog-main {
        padding: 2.5rem 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-container {
        padding: 6.5rem 1rem 4rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-featured-media {
        height: 240px;
        font-size: 4rem;
        margin-bottom: 2.2rem;
        border-radius: 16px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Creator & Dashboard Custom Styles */
.creator-dashboard-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.015);
}

.creator-dashboard-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.creator-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.creator-stat-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
}

.creator-stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.05);
}

.creator-stat-val {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 6px;
    font-family: monospace;
}

.creator-stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.creator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.creator-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.creator-form-group label {
    font-size: 0.88rem;
    font-weight: 750;
    color: var(--text-main);
}

.creator-input, .creator-textarea, .creator-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    outline: none;
    font-size: 0.92rem;
    color: var(--text-main);
    background: var(--white);
    transition: all 0.25s ease;
}

.creator-input:focus, .creator-textarea:focus, .creator-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.creator-textarea {
    min-height: 120px;
    resize: vertical;
}

.eligibility-checklist {
    background: rgba(13, 148, 136, 0.02);
    border: 1px dashed var(--border-light);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eligibility-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-light);
}

.eligibility-item input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.creator-btn {
    align-self: flex-start;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.creator-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
    filter: brightness(1.05);
}

.creator-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.creator-btn-secondary:hover {
    background: var(--bg);
    border-color: var(--text-light);
}

/* History table */
.creator-table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.creator-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.creator-table th {
    background: var(--bg);
    color: var(--text-light);
    font-weight: 750;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.creator-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
}

.creator-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: capitalize;
}

.status-badge.pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.status-badge.approved {
    background: #f0fdfa;
    color: #0d9488;
    border: 1px solid #ccfbf1;
}

.status-badge.rejected {
    background: #fff1f2;
    color: #dc2626;
    border: 1px solid #ffe4e6;
}

.status-badge.suspended {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

