/* ===== CSS Blog - MelhorLink ===== */

/* Categories Filter */
.blog-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s;
}

.category-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.category-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: #fff;
}

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.featured-image {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    min-height: 350px;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin: 15px 0;
    line-height: 1.3;
}

.featured-content p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Blog Link */
.blog-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    display: inline-block;
    transition: color 0.3s;
}

.blog-link:hover {
    color: #4f46e5;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.tip-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    border-left: 4px solid #6366f1;
}

.tip-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    font-weight: 700;
    color: #e2e8f0;
}

.tip-card h4 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tip-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Checklist Grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.checklist-column {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
}

.checklist-column h4 {
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li::before {
    content: "☐";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-size: 1.1rem;
}

/* Article Page Styles */
.article-header {
    text-align: center;
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.article-header h1 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    color: #64748b;
    margin-bottom: 30px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.article-content h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    color: #334155;
    font-size: 1.2rem;
    margin: 25px 0 15px;
}

.article-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 20px;
    color: #475569;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-content strong {
    color: #1e293b;
}

.article-content blockquote {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid #6366f1;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #334155;
}

.article-content .highlight-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.article-content .highlight-box h4 {
    color: #92400e;
    margin-bottom: 10px;
}

.article-content .highlight-box p {
    color: #78350f;
    margin: 0;
}

.article-content .tip-box {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.article-content .tip-box h4 {
    color: #166534;
    margin-bottom: 10px;
}

.article-content .tip-box p,
.article-content .tip-box ul {
    color: #15803d;
    margin: 0;
}

.article-content .warning-box {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.article-content .warning-box h4 {
    color: #991b1b;
    margin-bottom: 10px;
}

.article-content .warning-box p {
    color: #b91c1c;
    margin: 0;
}

.article-content .example-box {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.article-content .example-box h4 {
    color: #6366f1;
    margin-bottom: 10px;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    text-align: center;
    color: #fff;
}

.article-footer h3 {
    margin-bottom: 10px;
}

.article-footer p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.article-footer .btn-white {
    display: inline-block;
    background: #fff;
    color: #6366f1;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.article-footer .btn-white:hover {
    transform: translateY(-3px);
}

/* Related Posts */
.related-posts {
    max-width: 800px;
    margin: 50px auto;
}

.related-posts h3 {
    color: #1e293b;
    margin-bottom: 25px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card h4 {
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.related-card span {
    color: #64748b;
    font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.breadcrumb a {
    color: #6366f1;
    text-decoration: none;
}

.breadcrumb span {
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 200px;
        font-size: 5rem;
    }
    
    .featured-content {
        padding: 25px;
    }
    
    .featured-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-header h1 {
        font-size: 1.6rem;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
    }
}
