﻿/**
 * Blog Page Styles
 * Standalone CSS for the blog/security news page
 * Matches React template styling from src/pages/BlogList.tsx
 */

/* ============================================
   BLOG PAGE LAYOUT
   ============================================ */
.blog-page {
    min-height: 100vh;
    background-color: hsl(var(--background));
}

.blog-main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ============================================
   BREADCRUMB (Standardized across all pages)
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: hsl(var(--foreground));
}

.breadcrumb-separator {
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1em;
    line-height: 1;
}

.breadcrumb-separator svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.breadcrumb-current {
    color: hsl(var(--foreground));
    font-weight: 500;
}

/* ============================================
   ASPECT RATIO CONTAINERS
   ============================================ */
.aspect-ratio-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: hsl(var(--muted));
}

.aspect-ratio-container[data-aspect-ratio="16/9"] {
    padding-bottom: 56.25%;
}

.aspect-ratio-container[data-aspect-ratio="1/1"] {
    padding-bottom: 100%;
}

.aspect-ratio-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   HERO / FEATURED ARTICLE
   Matches React: rounded-lg, gradient background
   ============================================ */
.blog-hero {
    margin-bottom: 3rem;
    border: 2px solid hsl(var(--destructive) / 0.2);
    border-radius: 0.5rem;
    background: linear-gradient(to bottom right, hsl(var(--destructive) / 0.1), hsl(var(--background)), hsl(var(--background)));
    overflow: hidden;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

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

.blog-hero-image {
    position: relative;
    background-color: hsl(var(--muted));
}

.blog-hero-badge-wrapper {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.blog-hero-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.blog-hero-title-link {
    text-decoration: none;
}

.blog-hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    color: hsl(var(--foreground));
    transition: color 0.2s ease;
}

.blog-hero-title-link:hover .blog-hero-title {
    color: hsl(var(--primary));
}

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

.blog-hero-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ============================================
   BADGES - Match React Badge component
   ============================================ */
.blog-badge-critical {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
}

.blog-badge-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    background-color: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.blog-badge-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.blog-badge-destructive {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

/* ============================================
   BUTTONS - Match React Button component
   ============================================ */
.blog-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    width: fit-content;
    height: 2.75rem;
}

.blog-button-primary:hover {
    background-color: hsl(var(--primary));
}

.blog-button-primary svg {
    width: 1rem;
    height: 1rem;
}

/* Large button variant */
.blog-button-lg {
    height: 3rem;
    padding: 0.75rem 1.5rem;
}

/* ============================================
   MAIN LAYOUT (Content + Sidebar)
   React uses lg:grid-cols-4 (3 + 1)
   ============================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

/* ============================================
   SECTION HEADER
   ============================================ */
.blog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.blog-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0;
}

.blog-section-link,
.blog-section-header a[href*="archive"],
.text-primary {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.blog-section-link:hover,
.blog-section-header a[href*="archive"]:hover {
    text-decoration: underline;
}

/* ============================================
   ARTICLE GRID (3 columns)
   Matches React: md:grid-cols-3 with rounded-lg cards
   ============================================ */
.blog-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .blog-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-article-card {
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.blog-article-card:hover {
    box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.1), 0 4px 6px -4px hsl(var(--foreground) / 0.1);
    border-color: hsl(var(--primary) / 0.5);
}

.blog-article-image {
    position: relative;
}

.blog-article-content {
    padding: 1rem;
}

.blog-article-content .blog-badge-outline {
    margin-bottom: 0.5rem;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.blog-article-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-article-card a {
    text-decoration: none;
}

.blog-article-card a:hover .blog-article-title {
    color: hsl(var(--primary));
}

.blog-article-description,
.blog-article-excerpt {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   COMPACT LIST
   Matches React: hover:bg-muted/30 p-3 rounded-lg
   ============================================ */
.blog-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.blog-compact-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.blog-compact-item:hover {
    background-color: hsl(var(--muted) / 0.3);
}

.blog-compact-item:last-child {
    border-bottom: none;
}

.blog-compact-thumbnail,
.blog-compact-image {
    width: 6rem;
    flex-shrink: 0;
    border-radius: 0.25rem;
    overflow: hidden;
}

.blog-compact-thumbnail .aspect-ratio-container,
.blog-compact-image .aspect-ratio-container {
    padding-bottom: 100%;
}

.blog-compact-content {
    flex: 1;
    min-width: 0;
}

.blog-compact-content .blog-badge-secondary {
    margin-bottom: 0.5rem;
}

.blog-compact-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: hsl(var(--foreground));
    margin: 0 0 0.25rem 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-compact-item a {
    text-decoration: none;
}

.blog-compact-item a:hover .blog-compact-title {
    color: hsl(var(--primary));
}

.blog-compact-description,
.blog-compact-excerpt {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-compact-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.blog-compact-meta svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* ============================================
   PAGINATION
   Matches React Pagination component
   ============================================ */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.blog-pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.blog-pagination-item:hover {
    background-color: hsl(var(--muted));
}

.blog-pagination-item.active {
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
}

.blog-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    color: hsl(var(--muted-foreground));
}

.blog-pagination-btn,
.blog-pagination-next {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-decoration: none;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-pagination-btn:hover:not(:disabled),
.blog-pagination-next:hover {
    background-color: hsl(var(--muted));
}

.blog-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.blog-pagination-btn svg,
.blog-pagination-next svg {
    width: 1rem;
    height: 1rem;
}

/* ============================================
   SIDEBAR
   Matches React: space-y-6 with rounded-lg sections
   ============================================ */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-sidebar-section {
    padding: 1rem;
    background-color: hsl(0, 0%, 100%);
    background-color: hsl(var(--background));
    border: 1px solid hsl(0, 0%, 88%);
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
}

.blog-sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(0, 0%, 13%);
    color: hsl(var(--foreground));
    margin: 0 0 1rem 0;
}

/* Critical Alerts Section - matches React destructive styling */
.blog-sidebar-alerts {
    background-color: hsla(0, 84%, 60%, 0.05) !important;
    border: 2px solid hsla(0, 84%, 60%, 0.2) !important;
}

.blog-sidebar-alerts-header {
    /* Force icon + title to stay on the same row (some global styles were overriding flex in some environments) */
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
}

.blog-sidebar-alerts-header .blog-sidebar-title {
    /* Ensure the H3 doesn't behave like a full-width block inside the header */
    flex: 0 1 auto;
    line-height: 1.2;
}

/* ============================================
   LIVE SITE COMPATIBILITY (blog-alerts-*)
   The production blog uses blog-alerts-* classnames.
   Keep these in sync with the sidebar alerts styling.
   ============================================ */

.blog-sidebar-alerts .blog-alerts-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-sidebar-alerts .blog-alerts-header > span {
    line-height: 1;
}

.blog-sidebar-alerts .blog-alerts-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--destructive));
    margin: 0;
    line-height: 1.2;
}

.blog-sidebar-alerts .blog-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-sidebar-alerts .blog-alert-item {
    font-size: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsla(0, 84%, 60%, 0.10);
    border-bottom: 1px solid hsl(var(--destructive) / 0.10);
}

.blog-sidebar-alerts .blog-alert-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-sidebar-alerts .blog-alert-cve {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem;
    color: hsl(var(--destructive));
    margin-bottom: 0.25rem;
}

.blog-sidebar-alerts .blog-alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.blog-sidebar-alerts .blog-alert-title a {
    color: inherit;
    text-decoration: none;
}

.blog-sidebar-alerts .blog-alert-title a:hover {
    color: hsl(var(--primary));
}

.blog-sidebar-alerts .blog-alert-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-sidebar-alerts-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(0, 84%, 60%);
    color: hsl(var(--destructive));
}

.blog-sidebar-alerts .blog-sidebar-title {
    color: hsl(0, 84%, 60%) !important;
    margin: 0;
}

/* Sidebar List Items */
.blog-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-sidebar-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--destructive) / 0.1);
    text-decoration: none;
}

.blog-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-sidebar-item:first-child {
    padding-top: 0;
}

.blog-sidebar-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.blog-sidebar-item-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem;
    color: hsl(var(--destructive));
    margin-bottom: 0.25rem;
}

.blog-sidebar-item-desc {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.3;
    transition: color 0.2s ease;
}

.blog-sidebar-item:hover .blog-sidebar-item-desc {
    color: hsl(var(--primary));
}

.blog-sidebar-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.blog-sidebar-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary));
    text-decoration: none;
}

.blog-sidebar-view-all:hover {
    text-decoration: underline;
}

/* Trending Topics - matches React hover styling */
.blog-sidebar-topics .blog-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-sidebar-topics .blog-sidebar-title svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
}

.blog-topic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.blog-topic-item:hover {
    background-color: hsl(var(--muted));
}

.blog-topic-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

/* Quick Stats - matches React centered layout */
.blog-sidebar-stats {
    background-color: hsl(var(--primary) / 0.05);
    border-color: hsl(var(--primary) / 0.2);
}

.blog-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-stat {
    text-align: center;
}

.blog-stat-value {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1;
}

.blog-stat-value.blog-stat-primary {
    color: hsl(var(--primary));
}

.blog-stat-value.blog-stat-critical {
    color: hsl(var(--destructive));
}

.blog-stat-label {
    display: block;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Newsletter - matches React styling */
.blog-sidebar-newsletter {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--background)) 100%);
    border-color: hsl(var(--primary) / 0.2);
}

.blog-newsletter-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.blog-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-newsletter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-newsletter-input:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.blog-newsletter-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.blog-newsletter-button {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.blog-newsletter-button:hover {
    background-color: hsl(var(--primary));
}

/* Trending Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    background-color: hsl(var(--muted));
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
}

/* ============================================
   BLOG ARTICLE PAGE
   Matches React: BlogArticle.tsx layout
   ============================================ */

.blog-article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .blog-article-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.blog-article-main {
    min-width: 0;
}

/* Article Content */
.blog-article {
    margin-bottom: 3rem;
}

.blog-article-date {
    display: block;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.blog-article-heading {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
    margin: 0 0 1.5rem 0;
}

@media (min-width: 768px) {
    .blog-article-heading {
        font-size: 2.5rem;
    }
}

.blog-article-body {
    font-size: 1rem;
    line-height: 1.75;
    color: hsl(var(--foreground));
}

.blog-article-body p {
    margin: 0 0 1rem 0;
}

.blog-article-body p:last-child {
    margin-bottom: 0;
}

.blog-article-body a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.blog-article-body a:hover {
    text-decoration: underline;
}

.blog-article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-article-back:hover {
    color: hsl(var(--destructive));
}

.blog-article-back svg {
    width: 1rem;
    height: 1rem;
}

/* Latest Posts Section */
.blog-latest-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.blog-latest-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0 0 1.5rem 0;
}

.blog-latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-latest-post-card {
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0;
    background-color: hsl(var(--background));
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-latest-post-card:hover {
    box-shadow: 0 4px 12px hsl(var(--foreground) / 0.1);
    border-color: hsl(var(--primary) / 0.5);
}

.blog-latest-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.blog-latest-post-title a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-latest-post-title a:hover {
    color: hsl(var(--primary));
}

.blog-latest-post-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Sidebar - Article Page Specific */
.blog-sidebar-title-primary {
    color: hsl(var(--primary)) !important;
}

/* Popular Posts List */
.blog-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-popular-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.blog-popular-item:first-child {
    padding-top: 0;
}

.blog-popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-popular-item a {
    text-decoration: none;
}

.blog-popular-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: hsl(var(--foreground));
    margin: 0;
    transition: color 0.2s ease;
}

.blog-popular-item a:hover .blog-popular-item-title {
    color: hsl(var(--primary));
}

/* Featured Vulnerabilities List */
.blog-vuln-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-vuln-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.blog-vuln-item:first-child {
    padding-top: 0;
}

.blog-vuln-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-vuln-item a {
    text-decoration: none;
}

.blog-vuln-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem 0;
    transition: color 0.2s ease;
}

.blog-vuln-item a:hover .blog-vuln-item-title {
    color: hsl(var(--primary));
}

.blog-vuln-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
}

.blog-vuln-item-date {
    display: block;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Badge Variants */
.blog-badge-warning {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0;
    background-color: hsl(var(--warning));
    color: hsl(var(--warning-foreground));
}

.blog-badge-success {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0;
    background-color: hsl(var(--success));
    color: hsl(var(--success-foreground));
}

/* ============================================
   FOOTER SPACING
   ============================================ */
.blog-page .footer {
    margin-top: 3rem;
}

/* ============================================
   BLOG ARCHIVE PAGE
   Matches React: /blog/archive route
   ============================================ */

/* Archive Container */
.blog-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
}

/* Archive Content */
.blog-archive-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Archive Header */
.blog-archive-header {
    margin-bottom: 3rem;
}

.blog-archive-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.blog-archive-subtitle {
    color: hsl(var(--muted-foreground));
}

/* Archive Grid */
.blog-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

/* Archive Posts */
.blog-archive-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-archive-post-item {
    display: block;
}

.blog-archive-post {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-archive-post h2,
.group h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
    transition: color 0.2s ease;
}

.blog-archive-post:hover h2,
.blog-archive-post-item:hover h2,
.group:hover h2 {
    color: hsl(var(--primary));
}

.blog-archive-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.blog-archive-date {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Archive Sidebar */
.blog-archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-sidebar-card {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: hsl(var(--card));
}

.blog-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.blog-popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-popular-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-popular-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    color: hsl(var(--foreground));
    transition: color 0.2s ease;
}

.blog-popular-item:hover .blog-popular-title {
    color: hsl(var(--primary));
}

.blog-popular-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Archive Pagination */
.blog-archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.blog-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-pagination-btn:hover:not(:disabled) {
    background-color: hsl(var(--muted));
}

.blog-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-pagination-btn svg {
    flex-shrink: 0;
}

.blog-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-pagination-number {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background-color: transparent;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-pagination-number:hover {
    background-color: hsl(var(--muted));
}

.blog-pagination-number.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.blog-pagination-ellipsis {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
}

/* Back to Blog Link */
.blog-archive-back {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

.blog-back-link {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 600;
    transition: text-decoration 0.2s ease;
}

.blog-back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-archive-container {
        padding: 5rem 1rem 2rem;
    }

    .blog-archive-title {
        font-size: 1.875rem;
    }

    .blog-archive-post h2,
    .group h2 {
        font-size: 1.25rem;
    }

    .blog-pagination-btn span {
        display: none;
    }

    .blog-pagination-btn {
        padding: 0.5rem;
    }
}
/* Default list styling */
ul, ol {
    padding-left: 1.5rem;
    margin-left: 0;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}
