/**
 * BLOG SYSTEM - Magnificent design with branding integration
 * SEO-optimized, responsive, and editor-friendly
 */

/* ============================================================================
   BLOG LIST / GRID
   ========================================================================= */
.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--p-050) 0%, var(--c-050) 100%);
    border-radius: 16px;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--p-600);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.blog-header .subtitle {
    font-size: 1.25rem;
    color: var(--n-700);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured article banner */
.blog-featured {
    margin-bottom: 3rem;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(var(--p-500-rgb), 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, var(--p-500) 0%, var(--c-500) 100%);
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.blog-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(var(--p-500-rgb), 0.25);
}

.blog-featured-edit {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 999px;
    display: inline-flex;
    z-index: 100; /* Much higher to ensure it's above everything */
    align-items: center;
    gap: 0.35rem;
    background: white !important; /* Force white background */
    color: var(--p-600) !important; /* Force color */
    border: 2px solid var(--p-600) !important;
    pointer-events: auto; /* Ensure clickable */
}

.blog-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.blog-featured-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    color: white;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.blog-featured-content .category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-featured-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.blog-featured-content .excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 800px;
    position: relative;
    max-height: 4.8rem;
    overflow: hidden;
}

.blog-featured-content .excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.6rem;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    pointer-events: none;
}

.blog-featured-content .meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Article grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--n-000);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(var(--p-500-rgb), 0.2);
}
 
.blog-card-image {
    width: 100%;
    height: 240px;
    object-fit: contain; /* Ensure full image is visible without cropping */
    object-position: center;
    background: linear-gradient(135deg, var(--p-050) 0%, var(--c-050) 100%);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--p-050);
    color: var(--p-600);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--n-900);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--n-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
    position: relative;
    max-height: 4.8rem;
    overflow: hidden;
}

.blog-card-excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.6rem;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--n-700);
    padding-top: 1rem;
    border-top: 1px solid var(--n-100);
}

.blog-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--n-050);
    color: var(--n-700);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
}

/* ============================================================================
   SINGLE ARTICLE VIEW
   ========================================================================= */
.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-article-category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--p-050);
    color: var(--p-600);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.blog-article-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--n-900);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.blog-article-subtitle {
    font-size: 1.5rem;
    color: var(--n-700);
    font-weight: 400;
    margin: 0 0 2rem 0;
    line-height: 1.4;
}

.blog-article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--n-700);
    padding: 1.5rem 0;
    border-top: 1px solid var(--n-100);
    border-bottom: 1px solid var(--n-100);
}

.blog-article-meta i {
    color: var(--p-500);
    margin-right: 0.5rem;
}

.blog-article-featured-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 500px;
    margin: 2rem 0 3rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    background: var(--n-050);
}

.blog-article-featured-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) brightness(0.9);
    opacity: 0.7;
    transform: scale(1.0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-article-featured-image-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-article-featured-image {
    position: relative;
    width: 100%;
    max-height: 500px;
    object-fit: contain; /* Ensure full image is visible without cropping */
    object-position: center;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* visibility controlled by JS after canvas is drawn */
}

.blog-article-featured-image-wrapper:hover .blog-article-featured-image,
.blog-article-featured-image-wrapper:hover .blog-article-featured-image-canvas,
.blog-article-featured-image-wrapper:hover .blog-article-featured-image-bg {
    transform: scale(1.03);
}

.blog-article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--n-900);
}

.blog-article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--p-600);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.blog-article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--p-600);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

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

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.blog-article-content blockquote {
    border-left: 4px solid var(--p-500);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--p-050);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--n-700);
}

.blog-article-content code {
    background: var(--n-050);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: var(--p-600);
}

.blog-article-content pre {
    background: var(--n-900);
    color: var(--n-000);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-article-content ul, .blog-article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

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

.blog-article-content a {
    color: var(--c-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.blog-article-content a:hover {
    border-bottom-color: var(--c-500);
}

/* Image gallery sidebar for editor */
.image-gallery-sidebar {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 260px;
    max-height: 80vh;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    border: 1px solid var(--n-100);
    display: none;
    flex-direction: column;
    z-index: 12000;
}

.image-gallery-sidebar.active {
    display: flex;
}

.image-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--n-100);
}

.image-gallery-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--p-600);
}

.image-gallery-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--n-500);
}

.image-gallery-tabs {
    display: flex;
    padding: 0.5rem;
    gap: 0.25rem;
}

.image-gallery-tab {
    flex: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    background: var(--n-050);
    color: var(--n-600);
}

.image-gallery-tab.active {
    background: var(--p-500);
    color: white;
}

.image-gallery-content {
    padding: 0.5rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.image-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--n-100);
}

.image-gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.image-gallery-item span {
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    font-size: 0.6rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FontAwesome icons in content */
.blog-article-content .fa, .blog-article-content .fas, .blog-article-content .far, .blog-article-content .fal, .blog-article-content .fab {
    margin: 0 0.5rem;
    color: var(--p-500);
}

/* Article tags */
.blog-article-tags {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--n-100);
}

.blog-article-tags h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--n-700);
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
}

/* ============================================================================
   RICH TEXT EDITOR
   ========================================================================= */
.blog-editor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.blog-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--n-100);
}

.blog-editor-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--p-600);
    margin: 0;
}

.blog-editor-actions {
    display: flex;
    gap: 1rem;
}

.auto-save-indicator {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--n-050);
    border: 1px solid var(--n-100);
    transition: all 0.3s ease;
    z-index: 10;
}

.auto-save-indicator.saved {
    color: var(--c-500);
    background: rgba(var(--c-500-rgb), 0.1);
    border-color: var(--c-500);
}

.auto-save-indicator.saving {
    color: var(--p-500);
    background: rgba(var(--p-500-rgb), 0.1);
    border-color: var(--p-500);
}

.auto-save-indicator.error {
    color: var(--t-500);
    background: rgba(var(--t-500-rgb), 0.1);
    border-color: var(--t-500);
}

.blog-editor-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.blog-editor-section {
    margin-bottom: 2rem;
}

.blog-editor-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--p-600);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--n-100);
}

.blog-editor-field {
    margin-bottom: 1.5rem;
}

.blog-editor-advanced {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--n-050);
    border-radius: 8px;
    border: 1px solid var(--n-100);
}

.blog-editor-advanced summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--p-600);
    user-select: none;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem 1rem -0.5rem;
    list-style: none;
}

.blog-editor-advanced summary::-webkit-details-marker {
    display: none;
}

.blog-editor-advanced summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.blog-editor-advanced[open] summary::before {
    transform: rotate(90deg);
}

.blog-editor-advanced summary:hover {
    color: var(--p-700);
}

.blog-editor-field label {
    display: block;
    font-weight: 600;
    color: var(--n-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.blog-editor-field label .hint {
    font-weight: 400;
    color: var(--n-700);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.blog-editor-field input[type="text"], .blog-editor-field textarea, .blog-editor-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--n-100);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-editor-field input[type="text"]:focus, .blog-editor-field textarea:focus, .blog-editor-field select:focus {
    outline: none;
    border-color: var(--p-500);
    box-shadow: 0 0 0 3px rgba(var(--p-500-rgb), 0.1);
}

.blog-editor-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    cursor: pointer;
}

.blog-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--n-050);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--n-100);
}

.blog-editor-toolbar button {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--n-100);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-editor-toolbar button:hover {
    background: var(--p-050);
    border-color: var(--p-500);
    color: var(--p-600);
}

.blog-editor-toolbar button.active {
    background: var(--p-500);
    color: white;
    border-color: var(--p-500);
}

.blog-editor-content {
    min-height: 500px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
    border: 2px solid var(--n-100);
    border-radius: 8px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--n-900);
    transition: border-color 0.2s ease;
}

.blog-editor-content-raw {
    width: 100%;
    min-height: 500px;
    max-height: 70vh;
    padding: 1.5rem;
    border: 2px solid var(--n-100);
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--n-900);
    resize: vertical;
}

.blog-editor-content:focus {
    outline: none;
    border-color: var(--p-500);
}

/* Match article content styles in editor - EXACT WYSIWYG */
.blog-editor-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--p-600);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.blog-editor-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--p-600);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.blog-editor-content p {
    margin: 0 0 1.5rem 0;
}

.blog-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.blog-editor-content blockquote {
    border-left: 4px solid var(--p-500);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--p-050);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--n-700);
}

.blog-editor-content code {
    background: var(--n-050);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: var(--p-600);
}

.blog-editor-content pre {
    background: var(--n-900);
    color: var(--n-000);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-editor-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-editor-content ul, .blog-editor-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-editor-content li {
    margin-bottom: 0.75rem;
}

.blog-editor-content a {
    color: var(--c-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.blog-editor-content a:hover {
    border-bottom-color: var(--c-500);
}

.blog-editor-content .fa, .blog-editor-content .fas, .blog-editor-content .far, .blog-editor-content .fal, .blog-editor-content .fab {
    margin: 0 0.5rem;
    color: var(--p-500);
}

.blog-editor-floating-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1rem 0;
    margin-top: 1rem;
    background: linear-gradient(to top, white 70%, transparent 100%);
    border-top: 1px solid var(--n-100);
}

.blog-editor-floating-actions .btn {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-editor-preview {
    background: var(--n-050);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.blog-editor-preview h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--p-600);
    margin: 0 0 1rem 0;
}

/* Icon picker modal */
.icon-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.icon-picker-modal.active {
    display: flex;
}

.icon-picker-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 48px rgba(0,0,0,0.3);
}

.icon-picker-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--n-100);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
}

.icon-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid var(--n-100);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-picker-item:hover {
    background: var(--p-050);
    border-color: var(--p-500);
}

.icon-picker-item i {
    font-size: 2rem;
    color: var(--p-500);
    margin-bottom: 0.5rem;
}

.icon-picker-item span {
    font-size: 0.7rem;
    color: var(--n-700);
    text-align: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--c-500);
    color: white;
}

.btn-primary:hover {
    background: var(--c-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--c-500-rgb), 0.3);
}

.btn-secondary {
    background: var(--p-500);
    color: white;
}

.btn-secondary:hover {
    background: var(--p-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--p-500-rgb), 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--p-600);
    border: 2px solid var(--p-500);
}

.btn-outline:hover {
    background: var(--p-050);
}

.btn-danger {
    background: var(--danger-500);
    color: white;
}

.btn-danger:hover {
    background: #e63939;
}

/* ============================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 768px) {
    .blog-container {
        padding: 1rem 1rem;
    }

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

    .blog-featured-content {
        padding: 2rem 1rem;
    }

    .blog-header {
        padding: 2rem 1rem;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-featured-content h2 {
        font-size: 1.75rem;
    }

    .blog-article-title {
        font-size: 2rem;
    }

    .blog-article-subtitle {
        font-size: 1.125rem;
    }

    .blog-article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .blog-article-tags h4 {
        font-size: 1rem;
    }

    .blog-editor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ============================================================================
   SEO ENHANCEMENTS
   ========================================================================= */
.blog-breadcrumb {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    color: var(--n-700);
}

.blog-breadcrumb a {
    color: var(--p-600);
    text-decoration: none;
}

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

.blog-share {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--n-100);
    border-bottom: 1px solid var(--n-100);
}

.blog-share-button {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.blog-share-button:hover {
    transform: translateY(-2px);
}

.blog-share-twitter {
    background: #1DA1F2;
    color: white;
}

.blog-share-linkedin {
    background: #0A66C2;
    color: white;
}

.blog-share-facebook {
    background: #1877F2;
    color: white;
}

