/* assets/css/blog.css - Max Space Racking Blog Stylesheet */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #0b1329 0%, #1a2b4c 100%);
    padding: 45px 0 50px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

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

.blog-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.blog-hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.blog-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-breadcrumbs a {
    color: #f26522;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-breadcrumbs a:hover {
    color: #ffffff;
}

.blog-breadcrumbs i {
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-breadcrumbs span {
    color: #e2e8f0;
}

/* Blog Filter & Search Bar */
.blog-toolbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: sticky;
    top: calc(var(--header-height, 80px) + var(--topbar-height, 40px));
    z-index: 90;
}

.blog-toolbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.category-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-pill {
    padding: 8px 18px;
    border-radius: 25px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.cat-pill:hover,
.cat-pill.active {
    background: #f26522;
    color: #ffffff;
    border-color: #f26522;
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.25);
}

.blog-search-box {
    position: relative;
    min-width: 280px;
}

.blog-search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border-radius: 25px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.blog-search-input:focus {
    border-color: #f26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
}

.blog-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Blog Cards Grid */
.blog-section {
    padding: 60px 0 80px;
    background: #f8fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 12px;
}

.blog-card-meta i {
    color: #f26522;
    margin-right: 4px;
}

.blog-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #f26522;
}

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

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.blog-card-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more-link {
    color: #f26522;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.read-more-link:hover {
    gap: 10px;
}

/* Blog Single Detail Article Page */
.blog-detail-container {
    padding: 40px 0 80px;
    background: #ffffff;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
}

@media (max-width: 992px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
}

.article-header {
    margin-bottom: 32px;
}

.article-category {
    display: inline-block;
    background: rgba(242, 101, 34, 0.1);
    color: #f26522;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 20px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #64748b;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-item i {
    color: #f26522;
}

.article-featured-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 36px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.article-content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    font-weight: 700;
    margin: 32px 0 16px;
    line-height: 1.3;
}

.article-content h2 { font-size: 1.8rem; }
.article-content h3 { font-size: 1.4rem; }

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    list-style: disc !important;
    list-style-type: disc !important;
    margin: 0 0 24px 28px !important;
    padding-left: 8px !important;
}

.article-content ol {
    list-style: decimal !important;
    list-style-type: decimal !important;
    margin: 0 0 24px 28px !important;
    padding-left: 8px !important;
}

.article-content ul ul {
    list-style: circle !important;
    list-style-type: circle !important;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
}

.article-content ol ol {
    list-style: lower-alpha !important;
    list-style-type: lower-alpha !important;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
}

.article-content li {
    display: list-item !important;
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content li::marker {
    color: #f26522;
    font-weight: 700;
}

.article-content blockquote {
    border-left: 4px solid #f26522;
    background: #fff7ed;
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #9a3412;
    font-size: 1.1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

/* Responsive Rich Text Blog Article Tables */
.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.article-content th {
    background: #0f172a;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 3px solid #f26522;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.article-content td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    color: #334155;
    background: #ffffff;
    transition: background 0.2s ease;
    vertical-align: top;
}

.article-content td:last-child {
    border-right: none;
}

.article-content tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.article-content tbody tr:hover td {
    background: #fff7ed;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

/* Alternative Table Bordered Variant */
.article-content table.table-bordered td,
.article-content table.table-bordered th {
    border: 1px solid #cbd5e1;
}

/* Minimalist Variant */
.article-content table.table-minimal {
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-top: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
}

.article-content table.table-minimal th {
    background: transparent;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
}

/* Mobile Responsive Table Scrolling Container */
@media (max-width: 768px) {
    .article-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* Author Box */
.author-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f26522;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: #0f172a;
}

.author-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}

.widget-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f26522;
}

.recent-post-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    align-items: center;
}

.recent-post-thumb {
    width: 80px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-post-info h5 {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}

.recent-post-info h5 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.recent-post-info h5 a:hover {
    color: #f26522;
}

.recent-post-date {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #0b1329 0%, #1a2b4c 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.cta-widget h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-widget p {
    font-size: 0.92rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-widget-btn {
    display: inline-block;
    background: #f26522;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-widget-btn:hover {
    background: #d85213;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .blog-hero {
        padding: 30px 0 40px;
    }
    .blog-detail-container {
        padding: 25px 0 60px;
    }
    .blog-hero-title {
        font-size: 2rem;
    }
    .article-title {
        font-size: 1.8rem;
    }
}

