/* 
 * Blog Sayfa CSS - Blog İçerik Sayfaları İçin
 * Mersin Bilişim - v12
 * Kullanım: Blog yazı sayfaları için özelleştirilmiş stiller
 */

/* Ana Blog Container */
.article-container {
    max-width: 800px; /* Updated for better readability */
    margin: 0 auto;
    padding: 20px;
}

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

.article-header h1 {
    color: #073269;
    font-size: 32px;
    margin-bottom: 15px;
}

.article-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-meta span {
    margin-right: 20px;
}

.article-meta i {
    color: #073269;
    margin-right: 5px;
}

/* Article Image */
.article-image {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Content */
.article-content {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.article-content h2 {
    color: #073269;
    font-size: 24px;
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-content h3 {
    color: #073269;
    font-size: 20px;
    margin: 25px 0 12px;
    font-weight: 500;
}

.article-content h4 {
    color: #073269;
    font-size: 18px;
    margin: 20px 0 10px;
    font-weight: 500;
}

.article-content p {
    margin-bottom: 20px;
    text-align: left !important;
}

/* Service pages override - prevent wide word spacing */
.service-details .article-content p,
.service-details .article-content div,
.service-details .article-content li,
.service-details .article-content td {
    text-align: left !important;
    word-spacing: normal !important;
}

/* Universal text-align for all article content */
.article-content *:not(table):not(th):not(.stat-number):not(.timeline-marker) {
    text-align: left !important;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: #073269;
    font-weight: 600;
}

/* Özel İçerik Kutuları */
.guide-box,
.warning-box,
.tip-box,
.info-box,
.strategy-box {
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

/* Text alignment override for all box paragraphs */
.guide-box p,
.warning-box p,
.tip-box p,
.info-box p,
.strategy-box p,
.metric-box p,
.security-box p,
.backup-box p,
.feature-box p,
.timeline-content p {
    text-align: left !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
}

.guide-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-left: 4px solid #2196f3;
}

.warning-box {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-left: 4px solid #ff9800;
}

.tip-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #4caf50;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-left: 4px solid #2196f3;
}

.strategy-box {
    background: #f3e5f5;
    border: 1px solid #e1bee7;
    border-left: 4px solid #9c27b0;
}

/* Tablolar */
.comparison-table {
    width: 100%;
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.comparison-table table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #dee2e6;
    padding: 15px 12px;
    text-align: left;
    min-width: 200px;
}

.comparison-table th {
    background: #f8f9fa; /* Updated to match internal style */
    color: #073269; /* Updated to match internal style */
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tr:hover {
    background: #e3f2fd;
}

/* Checklist */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
}

.checklist li:before {
    content: "\2713"; /* Updated to match internal style */
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Requirement Levels */
.requirement-level {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    margin-right: 10px;
    text-transform: uppercase;
}

.requirement-high {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.requirement-medium {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.requirement-low {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Impact Levels (from internal CSS) */
.impact-level {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
}

.impact-high {
    background: #e8f5e9;
    color: #2e7d32;
}

.impact-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.impact-low {
    background: #ffebee;
    color: #c62828;
}

/* Breadcrumb (from internal CSS) */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-top: 20px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.breadcrumb span {
    color: white;
}

/* Special styles for security pages */
.article-content .security-box {
    background: #ffebee !important;
    border: 1px solid #ffcdd2 !important;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #f44336 !important;
    color: #c62828;
}

.article-content .backup-box {
    background: #e8f5e9 !important;
    border: 1px solid #c8e6c9 !important;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #4caf50 !important;
    color: #2e7d32;
}

.article-content .command-box {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
    position: relative;
}

.command-box:before {
    content: 'Terminal';
    position: absolute;
    top: 8px;
    right: 15px;
    background: #073269;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Risk Levels */
.article-content .risk-level {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    margin-right: 10px;
    text-transform: uppercase;
}

.article-content .risk-high {
    background: #ffebee !important;
    color: #c62828 !important;
    border: 1px solid #ffcdd2 !important;
}

.article-content .risk-medium {
    background: #fff3e0 !important;
    color: #ef6c00 !important;
    border: 1px solid #ffe0b2 !important;
}

.article-content .risk-low {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 1px solid #c8e6c9 !important;
}

/* SEO Page Specific Styles */
.strategy-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #2196f3;
}

.metric-box {
    background: #f3e5f5;
    border: 1px solid #e1bee7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #9c27b0;
}

.example-code {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap !important;
    overflow-x: auto;
    position: relative;
    min-height: 50px;
    display: block !important;
}

.example-code:before {
    content: 'Code';
    position: absolute;
    top: 8px;
    right: 15px;
    background: #073269;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Code Box for HTML/CSS Examples - Using Working Command Box Style */
.code-box {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
    position: relative;
}

.code-box:before {
    content: 'Code';
    position: absolute;
    top: 8px;
    right: 15px;
    background: #073269;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0;
}

/* Security Camera System Specific Styles */
.security-box {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.feature-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.camera-type {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
}

.camera-indoor {
    background: #e3f2fd;
    color: #1565c0;
}

.camera-outdoor {
    background: #fff3e0;
    color: #ef6c00;
}

.camera-specialty {
    background: #f3e5f5;
    color: #7b1fa2;
}

.resolution-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.resolution-item {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
    text-align: center;
}

.resolution-item h4 {
    margin: 0 0 10px;
    color: #073269;
}

.resolution-item p {
    margin: 0;
    font-size: 14px;
}

/* Computer Repair Specific Styles */
.problem-box {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.solution-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.diagnostic-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.tool-box {
    background: #f3e5f5;
    border: 1px solid #e1bee7;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.command-box {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-family: monospace;
    white-space: pre;
    overflow-x: auto;
}

.severity-level {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
}

.severity-high {
    background: #ffebee;
    color: #c62828;
}

.severity-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.severity-low {
    background: #e8f5e9;
    color: #2e7d32;
}

.step-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.step-item {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 2px solid #dee2e6;
}

.step-item .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #073269;
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-item h3 {
    color: #073269;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.step-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Web Design Specific Styles */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.color-item {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    color: white;
    font-weight: bold;
}

.device-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.device-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.device-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.device-item h4 {
    margin: 0 0 10px;
    color: #073269;
}

.device-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.code-block {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-family: monospace;
    white-space: pre;
    overflow-x: auto;
}

.priority-level {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
}

.priority-high {
    background: #ffebee;
    color: #c62828;
}

.priority-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.priority-low {
    background: #e8f5e9;
    color: #2e7d32;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #073269;
}

.timeline-item h4 {
    margin: 0 0 10px;
    color: #073269;
}

.timeline-item p {
    margin: 0;
    color: #666;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .article-container {
        padding: 15px;
    }
    
    .breadcrumb {
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    .step-box {
        flex-direction: column;
    }
    
    .step-item {
        min-width: 100%;
    }
    
    .resolution-box {
        flex-direction: column;
    }
    
    .color-palette {
        flex-direction: column;
    }
    
    .device-preview {
        flex-direction: column;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
}

/* Location Grid Styles for Security Pages */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.location-item {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
}

.location-item h4 {
    color: #073269;
    margin: 0 0 10px;
}

.location-item ul {
    margin: 0;
    padding-left: 20px;
}

/* Computer Maintenance Specific Styles */
.maintenance-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.stat-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #073269;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-item h4 {
    color: #073269;
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
}

.feature-item ul {
    margin: 0;
    padding-left: 20px;
}

.feature-item li {
    margin-bottom: 8px;
}

/* Step Box */
.step-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.step-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-3px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: #073269;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.step-item h4 {
    margin: 10px 0 15px;
    color: #073269;
    font-size: 18px;
    font-weight: 600;
}

.step-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    padding: 25px;
    border-left: 3px solid #073269;
    margin-left: 25px;
    position: relative;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
    margin-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -12px;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #073269;
    box-shadow: 0 0 0 4px white;
}

.timeline-item h4 {
    margin: 0 0 10px;
    color: #073269;
    font-size: 18px;
    font-weight: 600;
}

.timeline-item p {
    margin: 0;
    color: #666;
}

/* Code Box */
.code-box {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    position: relative;
}

.code-box:before {
    content: 'Code';
    position: absolute;
    top: 8px;
    right: 15px;
    background: #073269;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Breadcrumb Responsive */
@media screen and (max-width: 768px) {
    .breadcrumb {
        font-size: 14px;
        flex-wrap: wrap;
    }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .article-container {
        padding: 15px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-image {
        height: 250px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .step-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .timeline-item {
        margin-left: 15px;
        padding: 20px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}

@media screen and (max-width: 480px) {
    .article-container {
        padding: 10px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-image {
        height: 200px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .feature-item,
    .step-item {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .step-box {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Digital Marketing Page Specific Styles */
/* Channel Types */
.channel-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    margin-right: 10px;
    text-transform: uppercase;
}

.channel-organic {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.channel-paid {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.channel-social {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* Stats Grid - duplicate override removed, see main definition */

/* Strategy and Metric Boxes */
.strategy-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #2196f3;
}

.metric-box {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #ff9800;
}

/* Threat Levels for Security Articles */
.threat-level {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
}

.threat-high {
    background: #ffebee;
    color: #c62828;
}

.threat-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.threat-low {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Priority Levels for Maintenance Articles */
.priority-level {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
}

.priority-high {
    background: #ffebee;
    color: #c62828;
}

.priority-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.priority-low {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Command Box for Technical Instructions */
.command-box {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
    position: relative;
}

.command-box:before {
    content: 'Command Line';
    position: absolute;
    top: 8px;
    right: 15px;
    background: #073269;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Mobile Responsiveness for Digital Marketing Elements */
@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .channel-type {
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .strategy-box,
    .metric-box {
        padding: 15px;
        margin: 20px 0;
    }
    
    .priority-level {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .command-box {
        font-size: 12px;
        padding: 15px;
    }
}
