/* Blog-specific styles extending the main design system */

/* Navigation active state */
.nav-active {
    color: #000000 !important;
    font-weight: 600;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000000;
}

/* Blog Header */
.blog-header {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)),
        url('../images/supply-chain-security-best-practices.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.blog-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-title {
    font-family: "Inter var", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
    font-size: 1.25rem;
    color: #F0F0F0;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Newsletter Signup */
.newsletter-signup {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E5E5;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 600;
}

.newsletter-content p {
    color: #666666;
    margin-bottom: 24px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    border: 2px solid #E5E5E5;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
    background: #FAFAFA;
}

.newsletter-input:focus {
    outline: none;
    border-color: #000000;
    background: #FFFFFF;
}

.newsletter-btn {
    padding: 16px 32px;
    font-size: 1rem;
    min-height: auto;
    white-space: nowrap;
}

/* Featured Post */
.featured-post {
    background: #FFFFFF;
    padding: 80px 0;
    border-bottom: 1px solid #E5E5E5;
}

.featured-badge {
    display: inline-block;
    background: #000000;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.featured-content {
    max-width: 600px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.post-category.critical {
    color: #E02424;
    border-color: #E02424;
    background-color: #FEF2F2;
}

.post-date {
    color: #888888;
    font-size: 0.9rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.featured-title {
    font-family: "Inter var", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.featured-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: #333333;
}

.featured-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 24px;
}

.featured-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tag {
    background: #F5F5F5;
    color: #666666;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #E5E5E5;
    color: #000000;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
}

.read-more-btn:hover {
    transform: translateX(4px);
    color: #333333;
    border-bottom-color: #333333;
}

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #E5E5E5;
}

/* Blog Main Content */
.blog-main {
    background: #FAFAFA;
    padding: 80px 0;
}

.blog-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.section-title {
    font-family: "Inter var", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000000;
    font-weight: 700;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.post-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E5E5;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.post-card.featured-card {
    border: 2px solid #000000;
}

.post-card.coming-soon {
    opacity: 0.7;
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-image.placeholder {
    background: linear-gradient(135deg, #F5F5F5 0%, #E5E5E5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #888888;
}

.placeholder-icon {
    font-size: 2rem;
}

.placeholder-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.post-category-badge.critical {
    color: #E02424;
    border-color: #E02424;
    background-color: rgba(254, 242, 242, 0.95);
    backdrop-filter: blur(4px);
}

.post-content {
    padding: 24px;
}

.post-content .post-meta {
    margin-bottom: 12px;
}

.read-time {
    color: #888888;
    font-size: 0.85rem;
}

.post-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 600;
}

.post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #333333;
}

.post-excerpt {
    color: #666666;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.post-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.post-tags .tag {
    font-size: 0.8rem;
    padding: 4px 12px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #E5E5E5;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F0F0F0;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666666;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.category-link:hover {
    color: #000000;
}

.count {
    color: #888888;
    font-size: 0.85rem;
}

/* Threat List */
.threat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.threat-item-small {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: #FAFAFA;
    border-radius: 12px;
    border-left: 3px solid;
}

.threat-item-small.critical {
    border-left-color: #E02424;
}

.threat-badge-small {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.threat-badge-small.critical {
    background: #E02424;
    color: #FFFFFF;
}

.threat-content-small h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.threat-content-small p {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.threat-content-small time {
    font-size: 0.8rem;
    color: #888888;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Tools List */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-link {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: #FAFAFA;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tool-link:hover {
    background: #F0F0F0;
    transform: translateY(-1px);
}

.tool-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tool-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2px;
}

.tool-content p {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 30px 0 50px;
        background-attachment: scroll;
    }
    
    .blog-header-content {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .blog-title {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .newsletter-signup {
        padding: 24px 20px;
        margin: 0 20px;
        max-width: calc(100% - 40px);
    }
    
    .newsletter-content h3 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    
    .newsletter-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .newsletter-input {
        min-width: auto;
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .featured-post {
        padding: 50px 0;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }
    
    .featured-badge {
        margin-bottom: 24px;
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .featured-title {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }
    
    .featured-excerpt {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .post-meta {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .post-category {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .post-date {
        font-size: 0.8rem;
    }
    
    .featured-tags {
        gap: 6px;
        margin-bottom: 24px;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .blog-main {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 0 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .post-card {
        border-radius: 12px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 14px;
    }
    
    .post-tags .tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .read-time {
        font-size: 0.8rem;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .category-link {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    .threat-item-small {
        padding: 14px;
    }
    
    .threat-content-small h4 {
        font-size: 0.85rem;
    }
    
    .threat-content-small p {
        font-size: 0.8rem;
    }
    
    .threat-content-small time {
        font-size: 0.75rem;
    }
    
    .tool-link {
        padding: 14px;
    }
    
    .tool-content h4 {
        font-size: 0.9rem;
    }
    
    .tool-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 20px 0 40px;
    }
    
    .blog-header-content {
        padding: 0 16px;
    }
    
    .blog-title {
        font-size: 1.875rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .blog-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .newsletter-signup {
        padding: 20px 16px;
        margin: 0 16px;
        max-width: calc(100% - 32px);
        border-radius: 16px;
    }
    
    .newsletter-content h3 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .newsletter-content p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    
    .newsletter-form {
        gap: 10px;
    }
    
    .newsletter-input {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 40px;
    }
    
    .newsletter-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 40px;
    }
    
    .featured-post {
        padding: 40px 0;
    }
    
    .featured-article {
        gap: 20px;
        padding: 0 16px;
    }
    
    .featured-badge {
        margin-bottom: 20px;
        font-size: 0.75rem;
        padding: 5px 14px;
    }
    
    .featured-title {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 0.5rem;
    }
    
    .featured-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .post-meta {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .post-category {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .post-date {
        font-size: 0.75rem;
    }
    
    .featured-tags {
        gap: 4px;
        margin-bottom: 20px;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .read-more-btn {
        font-size: 0.9rem;
    }
    
    .blog-main {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        padding: 0 16px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .post-card {
        border-radius: 10px;
    }
    
    .post-image {
        height: 160px;
    }
    
    .post-category-badge {
        top: 12px;
        left: 12px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .post-content {
        padding: 16px;
    }
    
    .post-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .post-excerpt {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .post-tags {
        gap: 4px;
    }
    
    .post-tags .tag {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .read-time {
        font-size: 0.75rem;
    }
    
    .blog-sidebar {
        padding: 0 16px;
    }
    
    .sidebar-widget {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .widget-title {
        font-size: 1rem;
        margin-bottom: 14px;
    }
    
    .category-link {
        font-size: 0.85rem;
        padding: 4px 0;
    }
    
    .count {
        font-size: 0.8rem;
    }
    
    .threat-item-small {
        padding: 12px;
        border-radius: 10px;
    }
    
    .threat-badge-small {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
    
    .threat-content-small h4 {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .threat-content-small p {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .threat-content-small time {
        font-size: 0.7rem;
    }
    
    .tool-link {
        padding: 12px;
        border-radius: 10px;
    }
    
    .tool-icon {
        font-size: 1.25rem;
    }
    
    .tool-content h4 {
        font-size: 0.85rem;
        margin-bottom: 1px;
    }
    
    .tool-content p {
        font-size: 0.75rem;
    }
}

/* Additional mobile-specific improvements */
@media (max-width: 320px) {
    .blog-header-content {
        padding: 0 12px;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .newsletter-signup {
        margin: 0 12px;
        max-width: calc(100% - 24px);
        padding: 16px 12px;
    }
    
    .featured-article {
        padding: 0 12px;
    }
    
    .featured-title {
        font-size: 1.35rem;
    }
    
    .section-title {
        padding: 0 12px;
        font-size: 1.35rem;
    }
    
    .posts-grid {
        padding: 0 12px;
    }
    
    .blog-sidebar {
        padding: 0 12px;
    }
    
    .sidebar-widget {
        padding: 14px;
    }
}
