/* ============================================
   BLOG STYLES — Cognis Games
   Brutalist Technical Design System
   ============================================ */

/* ===========================================
   IN DEVELOPMENT SECTION (Blog) - Compact Mode
   =========================================== */

.in-dev-section {
    padding: 48px 0;
    background: linear-gradient(180deg, rgba(14, 211, 207, 0.02) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.in-dev-section .games-category-dev {
    max-width: 100%;
}

.in-dev-section .category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.in-dev-section .category-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.in-dev-section .category-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(14, 211, 207, 0.08);
    border: 1px solid rgba(14, 211, 207, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-secondary, #0ED3CF);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.in-dev-section .category-status .status-dot {
    width: 6px;
    height: 6px;
    background: var(--color-secondary, #0ED3CF);
    border-radius: 50%;
    animation: pulse-subtle 3s ease-in-out infinite;
}

.in-dev-section .category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text, #fff);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.in-dev-section .category-title::before {
    content: '//';
    color: var(--color-primary, #39FF14);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.in-dev-section .category-description {
    font-size: 0.85rem;
    color: var(--color-text-muted, #6B6B85);
    margin: 0;
}

.in-dev-section .devlog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.in-dev-section .devlog-card {
    padding: 20px;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 2px solid var(--color-secondary, #0ED3CF);
}

.in-dev-section .devlog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255,255,255,0.1);
}

.in-dev-section .devlog-cta {
    display: none; /* Hidden for compact mode */
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* ===========================================
   BLOG INDEX PAGE STYLES
   =========================================== */

/* Blog Hero */
.blog-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--background) 0%, rgba(26, 26, 46, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(57, 255, 20, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(57, 255, 20, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.5;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(57, 255, 20, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(14, 211, 207, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.blog-hero-title span {
    color: var(--primary);
}

.blog-hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

.blog-hero h1 span {
    color: var(--primary);
}

.blog-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.filter-btn:hover {
    border-color: rgba(57, 255, 20, 0.3);
    color: var(--primary);
    background: rgba(57, 255, 20, 0.05);
}

.filter-btn.active {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.project-select {
    padding: 10px 16px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: auto;
    min-width: 160px;
    transition: all 0.2s ease;
}

.project-select:focus {
    outline: none;
    border-color: var(--primary);
}

.project-select option {
    background: var(--surface);
    color: var(--text-primary);
}

/* Blog Layout */
.blog-content {
    padding: 80px 0;
    background: var(--background);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
}

/* Blog Main */
.blog-main {
    min-width: 0;
}

/* Featured Post */
.featured-post {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(57, 255, 20, 0.02) 50%, transparent 100%);
}

.post-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-featured:hover {
    border-color: rgba(57, 255, 20, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.post-featured::before {
    content: 'DESTAQUE';
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: rgba(57, 255, 20, 0.15);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 5;
}

.post-featured-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(13, 13, 13, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.post-featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(57, 255, 20, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(14, 211, 207, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.post-featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    background: linear-gradient(to left, rgba(26, 26, 46, 0.95), transparent);
}

.featured-placeholder {
    position: relative;
    z-index: 1;
}

.post-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-project {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-tag {
    padding: 3px 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-devlog {
    background: rgba(57, 255, 20, 0.1);
    color: var(--primary);
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.tag-patch {
    background: rgba(255, 107, 53, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.tag-news {
    background: rgba(0, 150, 255, 0.1);
    color: #0096FF;
    border: 1px solid rgba(0, 150, 255, 0.2);
}

.tag-tech {
    background: rgba(155, 89, 182, 0.1);
    color: #9B59B6;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.tag-major {
    background: rgba(14, 211, 207, 0.15);
    color: var(--color-secondary, #0ED3CF);
    border: 1px solid rgba(14, 211, 207, 0.3);
}

.post-date,
.post-read-time {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-featured-title {
    font-size: 1.75rem;
    margin: 0 0 16px;
    line-height: 1.25;
    font-weight: 600;
}

.post-featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-featured-title a:hover {
    color: var(--primary);
}

.post-featured-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.post-featured h2 {
    font-size: 2rem;
    margin: 0 0 16px;
    line-height: 1.2;
}

.post-featured h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-featured h2 a:hover {
    color: var(--primary);
}

.post-featured .post-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.85rem;
}

.author-name {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Posts Grid */
.posts-grid-title {
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--surface-light);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Post Card */
.post-card {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease;
}

.post-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    background: rgba(26, 26, 46, 0.6);
}

.post-card:hover::before {
    height: 100%;
}

.post-card:hover::after {
    opacity: 1;
}

.post-card-image {
    aspect-ratio: 16/9;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-content {
    padding: 20px;
}

.post-card .post-meta {
    margin-bottom: 12px;
}

.post-card h3 {
    font-size: 1.1rem;
    margin: 0 0 12px;
    line-height: 1.3;
}

.post-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-card .post-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    position: relative;
    transition: all 0.2s ease;
}

.sidebar-widget:hover {
    border-color: rgba(255,255,255,0.08);
    background: rgba(26, 26, 46, 0.4);
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), transparent);
    opacity: 0.6;
}

.widget-title {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '//';
    opacity: 0.5;
}

/* Projects Widget */
.widget-projects,
.project-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-project-item,
.project-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(13, 13, 13, 0.4);
    border: 1px solid rgba(255,255,255,0.03);
    text-decoration: none;
    transition: all 0.2s ease;
}

.widget-project-item:hover,
.project-item:hover {
    border-color: rgba(57, 255, 20, 0.2);
    background: rgba(57, 255, 20, 0.03);
    transform: translateX(3px);
}

.project-icon {
    width: 32px;
    height: 32px;
    background: rgba(57, 255, 20, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.project-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.project-count {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* Tags Widget */
.widget-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.widget-tag {
    padding: 5px 10px;
    background: rgba(13, 13, 13, 0.4);
    border: 1px solid rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.newsletter-input {
    padding: 14px;
    background: var(--background);
    border: 1px solid var(--surface-light);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

/* Discord Widget */
.discord-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.discord-preview {
    padding: 16px;
    background: #5865F2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.discord-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.discord-info {
    flex: 1;
}

.discord-name {
    font-weight: 700;
    color: #fff;
}

.discord-members {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.discord-online {
    display: inline-block;
    padding: 2px 6px;
    background: #57F287;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-discord {
    background: #5865F2;
    border-color: #5865F2;
    color: #fff;
    width: 100%;
}

.btn-discord:hover {
    background: #4752C4;
    border-color: #4752C4;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--surface-light);
}

.pagination-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--surface-light);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--background);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: var(--text-muted);
}


/* ===========================================
   ARTICLE PAGE STYLES
   =========================================== */

/* Navigation Breadcrumb */
.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.nav-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--surface-light);
}

.breadcrumb-current {
    color: var(--text-secondary);
}

/* Article Header */
.article-header {
    padding: 140px 0 60px;
    background: var(--surface);
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(57, 255, 20, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(57, 255, 20, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.article-project {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.article-tag {
    padding: 6px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-version {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px;
    max-width: 900px;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 800px;
}

.article-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar-large {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-details {
    display: flex;
    align-items: center;
    gap: 24px;
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-date svg,
.article-read-time svg {
    opacity: 0.7;
}

/* Featured Image */
.article-featured-image {
    background: var(--background);
    padding: 40px 0;
}

.featured-image-placeholder {
    aspect-ratio: 21/9;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--surface-light);
}

.placeholder-text {
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
}

/* Article Content Layout */
.article-content {
    padding: 60px 0 0;
    background: var(--background);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 80px;
}

.content-main {
    min-width: 0;
}

/* Content Body */
.content-body {
    max-width: 720px;
}

.content-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.content-body p.lead {
    font-size: 1.3rem;
    color: var(--text-primary);
    border-left: 3px solid var(--primary);
    padding-left: 24px;
    margin-bottom: 40px;
}

.content-body h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 48px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--surface-light);
}

.content-body h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.content-body ul,
.content-body ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.content-body li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.content-body li strong {
    color: var(--text-primary);
}

/* Content Images */
.content-image {
    margin: 40px 0;
}

.image-placeholder {
    aspect-ratio: 16/9;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.image-caption {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* Callouts */
.content-callout {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin: 32px 0;
    border: 1px solid var(--surface-light);
    background: var(--surface);
}

.callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.callout-content {
    flex: 1;
}

.callout-content strong {
    color: var(--text-primary);
}

.callout-info {
    border-left: 4px solid #0096FF;
}

.callout-warning {
    border-left: 4px solid var(--secondary);
}

.callout-success {
    border-left: 4px solid var(--primary);
}

/* Content Table */
.content-table {
    margin: 32px 0;
    overflow-x: auto;
}

.content-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.content-table th {
    background: var(--surface);
    padding: 14px 16px;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    border: 1px solid var(--surface-light);
}

.content-table td {
    padding: 14px 16px;
    border: 1px solid var(--surface-light);
    color: var(--text-secondary);
}

.content-table tr:hover td {
    background: rgba(57, 255, 20, 0.02);
}

/* Changelog */
.changelog-section {
    margin: 32px 0;
}

.changelog-category {
    margin-bottom: 24px;
}

.changelog-category h4 {
    margin-bottom: 12px;
}

.changelog-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.label-added {
    background: rgba(57, 255, 20, 0.15);
    color: var(--primary);
}

.label-changed {
    background: rgba(241, 196, 15, 0.15);
    color: #F1C40F;
}

.label-fixed {
    background: rgba(0, 150, 255, 0.15);
    color: #0096FF;
}

.changelog-category ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-category li.change-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.changelog-category li .change-icon {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.changelog-added li .change-icon {
    color: var(--primary);
}

.changelog-changed li .change-icon {
    color: #F1C40F;
}

.changelog-fixed li .change-icon {
    color: #0096FF;
}

.changelog-class {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--primary);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--surface-light);
}

.changelog-changes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.change-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.change-type {
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.change-buff .change-type {
    background: rgba(57, 255, 20, 0.2);
    color: var(--primary);
}

.change-nerf .change-type {
    background: rgba(255, 107, 53, 0.2);
    color: var(--secondary);
}

.change-fix .change-type {
    background: rgba(0, 150, 255, 0.2);
    color: #0096FF;
}

.change-new .change-type {
    background: rgba(155, 89, 182, 0.2);
    color: #9B59B6;
}

.change-rework .change-type {
    background: rgba(241, 196, 15, 0.2);
    color: #F1C40F;
}

/* Roadmap Preview */
.roadmap-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.roadmap-item {
    display: grid;
    grid-template-columns: 80px 100px 1fr;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border-left: 3px solid var(--surface-light);
    transition: border-color 0.3s ease;
}

.roadmap-item:hover {
    border-left-color: var(--primary);
}

.roadmap-version {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
}

.roadmap-date {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.roadmap-content {
    color: var(--text-secondary);
}

/* Article CTA */
.article-cta {
    margin: 60px 0 40px;
    padding: 40px;
    background: var(--surface);
    border: 2px solid var(--primary);
    text-align: center;
}

.article-cta h3 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.article-cta p {
    margin: 0 0 24px;
    color: var(--text-secondary);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Article Footer */
.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 32px 0;
    border-top: 1px solid var(--surface-light);
    margin-top: 40px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tags-label {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tag-link {
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Table of Contents */
.content-toc {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 100px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    padding: 24px;
}

.toc-title {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--surface-light);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-link {
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.toc-link:hover {
    color: var(--primary);
    border-left-color: var(--surface-light);
    background: rgba(57, 255, 20, 0.02);
}

.toc-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(57, 255, 20, 0.05);
}

.toc-download {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--surface-light);
}

.toc-download .btn {
    width: 100%;
}


/* ===========================================
   COMMENTS SECTION
   =========================================== */

.comments-section {
    padding: 80px 0;
    background: var(--surface);
}

.comments-container {
    max-width: 800px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.comments-title {
    font-size: 1.5rem;
    margin: 0;
}

.comments-count {
    color: var(--primary);
}

.comments-sort {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sort-select {
    padding: 8px 12px;
    background: var(--background);
    border: 1px solid var(--surface-light);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Comment Form */
.comment-form-container {
    background: var(--background);
    border: 1px solid var(--surface-light);
    padding: 24px;
    margin-bottom: 40px;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: var(--surface-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.comment-login-prompt {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

.comment-textarea {
    width: 100%;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.comment-guidelines {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-guidelines a {
    color: var(--primary);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment {
    background: var(--background);
    border: 1px solid var(--surface-light);
    padding: 24px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-author {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-badge {
    padding: 2px 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-dev {
    background: var(--primary);
    color: var(--background);
}

.badge-mod {
    background: var(--secondary);
    color: var(--background);
}

.comment-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 8px;
}

.comment-body p:last-child {
    margin: 0;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--surface-light);
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-icon {
    font-size: 1rem;
}

.action-count {
    font-weight: 600;
}

/* Comment Replies */
.comment-replies {
    margin-top: 24px;
    padding-left: 40px;
    border-left: 2px solid var(--surface-light);
}

.comment-reply {
    background: var(--surface);
    border: none;
}

.comment-avatar-dev {
    background: var(--primary);
    color: var(--background);
}

/* Load More */
.comments-load-more {
    text-align: center;
    margin-top: 32px;
}


/* ===========================================
   RELATED POSTS
   =========================================== */

.related-posts {
    padding: 80px 0;
    background: var(--background);
}

.related-title {
    font-size: 1.2rem;
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--surface-light);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.related-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.related-card-title {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.related-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card-title a:hover {
    color: var(--primary);
}


/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .content-layout {
        grid-template-columns: 1fr 240px;
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-widget {
        flex: 1 1 300px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-toc {
        display: none;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-featured h2 {
        font-size: 1.5rem;
    }

    .article-header {
        padding: 120px 0 40px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .content-body p {
        font-size: 1rem;
    }

    .content-body p.lead {
        font-size: 1.1rem;
    }

    .content-body h2 {
        font-size: 1.4rem;
    }

    .roadmap-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-share {
        width: 100%;
        flex-wrap: wrap;
    }

    .share-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-replies {
        padding-left: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .post-featured-content {
        padding: 20px;
    }

    .post-card-content {
        padding: 16px;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .comment {
        padding: 16px;
    }

    .comment-footer {
        flex-wrap: wrap;
    }

    .comment-action {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* ============================================
   DYNAMIC CONTENT COMPONENTS
   Rendered by blog-content-loader.js
   ============================================ */

/* Attack Categories Grid */
.attack-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.attack-category-card {
    background: var(--surface);
    border: 1px solid var(--surface-light);
    padding: 20px;
    transition: all 0.3s ease;
}

.attack-category-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.category-emoji {
    font-size: 1.5rem;
    margin-right: 8px;
}

.category-name {
    color: var(--primary);
    font-size: 1.1rem;
}

.category-color {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 4px;
}

.category-description {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--surface-light);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.tech-card {
    background: var(--surface);
    border: 1px solid var(--surface-light);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tech-card strong {
    color: var(--primary);
}

.tech-card span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.comparison-before,
.comparison-after {
    background: var(--surface);
    border: 1px solid var(--surface-light);
    padding: 24px;
}

.comparison-before h4 {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.comparison-after h4 {
    color: var(--primary);
    margin-bottom: 16px;
}

.comparison-before ul,
.comparison-after ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-before li,
.comparison-after li {
    padding: 8px 0;
    border-bottom: 1px solid var(--surface-light);
}

.comparison-before li:last-child,
.comparison-after li:last-child {
    border-bottom: none;
}

/* Tool Cards */
.tool-card {
    background: var(--surface);
    border: 1px solid var(--surface-light);
    padding: 24px;
    margin: 16px 0;
}

.tool-card h4 {
    color: var(--primary);
    margin: 0 0 12px 0;
}

.tool-path {
    display: inline-block;
    background: var(--background);
    padding: 4px 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    border: 1px solid var(--surface-light);
}

.tool-card ul {
    margin: 0;
    padding-left: 20px;
}

.tool-card li {
    color: var(--text-secondary);
    padding: 4px 0;
}

/* Ideal For List */
.ideal-for-list {
    background: var(--surface);
    border: 1px solid var(--surface-light);
    padding: 24px 24px 24px 44px;
    margin: 24px 0;
}

.ideal-for-list li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.ideal-for-list li::marker {
    color: var(--primary);
}

/* ===========================================
   INLINE SVG ICONS (Emoji Replacement)
   =========================================== */

.inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 4px;
}

.inline-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Inline icons in headings */
h2 .inline-icon,
h3 .inline-icon {
    margin-right: 8px;
}

h2 .inline-icon svg {
    width: 24px;
    height: 24px;
}

/* Inline icons in lists */
li .inline-icon {
    margin-right: 6px;
}

/* Category cards emoji replacement */
.category-emoji .inline-icon {
    margin-right: 0;
}

.category-emoji .inline-icon svg {
    width: 28px;
    height: 28px;
}

/* Attack category cards */
.attack-category-card .category-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
}

.attack-category-card .category-emoji .inline-icon svg {
    width: 32px;
    height: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .attack-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .inline-icon svg {
        width: 18px;
        height: 18px;
    }
    
    h2 .inline-icon svg {
        width: 20px;
        height: 20px;
    }
}
