/* --- Blog Article Page Styles for TasarMiPiso --- */

/* Article Header */
.article-header {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.article-breadcrumb {
    margin-bottom: 24px;
}

.article-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.article-breadcrumb a:hover {
    color: #059669;
}

.article-breadcrumb span {
    color: #94a3b8;
    margin: 0 8px;
}

.article-category {
    display: inline-block;
    background: #059669;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 48px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article Content */
.article-content {
    padding: 60px 0;
    background: white;
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
    margin: 0 auto;
}

.article-featured-image {
    margin: 40px 0;
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Typography styles for article content */
.article-content .lead {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #059669;
    border-radius: 8px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 48px 0 24px;
    line-height: 1.3;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 40px 0 20px;
    line-height: 1.4;
    position: relative;
}

.article-content h3:before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #059669;
    border-radius: 2px;
}

.article-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 32px 0 16px;
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 24px;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

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

.article-content blockquote {
    border-left: 4px solid #059669;
    padding: 20px 24px;
    margin: 32px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.article-content a {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: #059669;
    background: rgba(5, 150, 105, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Additional content styling */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-content .highlight-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.article-content .highlight-box h4 {
    color: #0369a1;
    margin-top: 0;
    margin-bottom: 16px;
}

/* Improved list styling */
.article-content ul {
    list-style: none;
    position: relative;
}

.article-content ul li {
    position: relative;
    padding-left: 24px;
}

.article-content ul li:before {
    content: "•";
    color: #059669;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.article-content ol li {
    padding-left: 8px;
}

/* Step-by-step styling */
.article-content h3[id*="paso"] {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin: 40px 0 20px;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.2);
}

.article-content h3[id*="paso"]:before {
    display: none;
}

/* Code and inline elements */
.article-content code {
    background: #f1f5f9;
    color: #059669;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 16px;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

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

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.article-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.article-content tr:hover {
    background: #f8fafc;
}

/* Special content boxes */
.article-content .info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
    position: relative;
}

.article-content .info-box:before {
    content: "ℹ️";
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 20px;
}

.article-content .info-box p {
    margin-left: 32px;
    margin-bottom: 0;
}

.article-content .warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
    position: relative;
}

.article-content .warning-box:before {
    content: "⚠️";
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 20px;
}

.article-content .warning-box p {
    margin-left: 32px;
    margin-bottom: 0;
}

.article-body .highlight-box h4 {
    color: #0369a1;
    margin-top: 0;
    margin-bottom: 16px;
}

/* Internal Links Box */
.internal-links {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin: 48px 0;
}

.internal-links h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.internal-link {
    display: block;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.internal-link:hover {
    background: #059669;
    color: white;
    border-color: #059669;
    transform: translateY(-2px);
}

/* Article Navigation */
.article-nav {
    padding: 60px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.article-nav .container {
    max-width: 800px;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.article-nav .nav-link {
    display: block;
    padding: 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-nav .nav-link:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #059669;
}

.article-nav .nav-link-direction {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}

.article-nav .nav-link-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.article-nav .nav-link.prev .nav-link-direction {
    color: #10b981;
}

.article-nav .nav-link.next .nav-link-direction {
    color: #059669;
}

/* Back to Blog */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 32px;
    transition: all 0.2s ease;
}

.back-to-blog:hover {
    color: #047857;
    transform: translateX(-4px);
}

.back-to-blog i {
    font-size: 14px;
}

/* CTA Section */
.article-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    text-align: center;
}

.article-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.article-cta p {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.article-cta .btn-primary-large {
    background: white;
    color: #059669;
}

.article-cta .btn-primary-large:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .article-header {
        padding: 60px 0 30px;
    }
    
    .article-title {
        font-size: 36px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .article-content {
        padding: 40px 20px;
        font-size: 16px;
    }
    
    .article-featured-image img {
        height: 240px;
    }
    
    .article-content .lead {
        font-size: 18px;
        padding: 20px;
        margin-bottom: 32px;
    }
    
    .article-content h2 {
        font-size: 28px;
        margin: 40px 0 20px;
    }
    
    .article-content h3 {
        font-size: 22px;
        margin: 32px 0 16px;
    }
    
    .article-content h3:before {
        display: none;
    }
    
    .article-content h4 {
        font-size: 18px;
        margin: 24px 0 12px;
    }
    
    .article-content ul, .article-content ol {
        padding-left: 24px;
    }
    
    .article-content .info-box,
    .article-content .warning-box {
        padding: 16px 20px;
        margin: 24px 0;
    }
    
    .article-content .info-box p,
    .article-content .warning-box p {
        margin-left: 24px;
    }
    
    .article-body h2 {
        font-size: 28px;
        margin: 40px 0 20px;
    }
    
    .article-body h3 {
        font-size: 22px;
        margin: 32px 0 16px;
    }
    
    .article-body h4 {
        font-size: 18px;
        margin: 24px 0 12px;
    }
    
    .internal-links {
        padding: 24px;
        margin: 40px 0;
    }
    
    .internal-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-nav {
        padding: 40px 0;
    }
    
    .article-cta h2 {
        font-size: 28px;
    }
    
    .article-cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 40px 0 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        padding: 32px 16px;
        font-size: 15px;
    }
    
    .article-featured-image img {
        height: 200px;
        margin-bottom: 24px;
    }
    
    .article-content .lead {
        font-size: 16px;
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .article-content h2 {
        font-size: 24px;
        margin: 32px 0 16px;
    }
    
    .article-content h3 {
        font-size: 20px;
        margin: 24px 0 12px;
        padding: 12px 16px;
    }
    
    .article-content h4 {
        font-size: 16px;
        margin: 20px 0 8px;
    }
    
    .article-content ul, .article-content ol {
        padding-left: 20px;
    }
    
    .article-content .info-box,
    .article-content .warning-box {
        padding: 12px 16px;
        margin: 20px 0;
    }
    
    .article-content .info-box p,
    .article-content .warning-box p {
        margin-left: 20px;
    }
    
    .article-content table {
        font-size: 14px;
    }
    
    .article-content th,
    .article-content td {
        padding: 8px 12px;
    }
    
    .internal-links {
        padding: 20px;
    }
    
    .article-nav .nav-link {
        padding: 20px;
    }
    
    .article-cta {
        padding: 60px 0;
    }
    
    .article-cta h2 {
        font-size: 24px;
    }
}
