/* ===== Blog Styles ===== */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #AF5428, #d17a5c);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Category Filters */
.category-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

.category-filter:hover {
    background: rgba(175, 84, 40, 0.1);
    border-color: rgba(175, 84, 40, 0.3);
    color: #AF5428;
}

.category-filter.active {
    background: #AF5428;
    border-color: #AF5428;
    color: white;
}

/* Blog Cards */
.blog-card {
    opacity: 0;
    transform: translateY(20px);
    animation: blogCardFadeIn 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes blogCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Article Content - Medium Style ===== */
.article-content {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

.article-content h2 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content h4 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #d17a5c;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.75rem;
}

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

.article-content a {
    color: #AF5428;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #d17a5c;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style-type: none;
}

.article-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: #AF5428;
    border-radius: 50%;
}

.article-content ol {
    list-style-type: none;
    counter-reset: item;
}

.article-content ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    counter-increment: item;
}

.article-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #AF5428;
    font-family: 'Poppins', system-ui, sans-serif;
}

/* Blockquotes */
.article-content blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 2rem 2rem 3rem;
    background: linear-gradient(135deg, rgba(175, 84, 40, 0.1), rgba(175, 84, 40, 0.05));
    border-left: 4px solid #AF5428;
    border-radius: 0 16px 16px 0;
    font-style: italic;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    color: #AF5428;
    opacity: 0.5;
    font-family: Georgia, serif;
    line-height: 1;
}

.article-content blockquote p {
    margin-bottom: 0;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Code blocks */
.article-content code {
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    color: #d17a5c;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Images in article */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
}

.article-content figure {
    margin: 2.5rem 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Horizontal rule */
.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 3rem 0;
}

/* ===== Light Theme Blog Styles ===== */
.light-theme .reading-progress {
    background: linear-gradient(90deg, #AF5428, #d17a5c);
}

.light-theme .category-filter {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #666;
}

.light-theme .category-filter:hover {
    background: rgba(175, 84, 40, 0.1);
    border-color: rgba(175, 84, 40, 0.3);
    color: #AF5428;
}

.light-theme .category-filter.active {
    background: #AF5428;
    border-color: #AF5428;
    color: white;
}

.light-theme .blog-card .bg-gradient-to-br {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 249, 0.95));
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .article-content {
    color: #444;
}

.light-theme .article-content h2,
.light-theme .article-content h3 {
    color: #1C1917;
}

.light-theme .article-content h4 {
    color: #AF5428;
}

.light-theme .article-content strong {
    color: #1C1917;
}

.light-theme .article-content blockquote {
    background: linear-gradient(135deg, rgba(175, 84, 40, 0.08), rgba(175, 84, 40, 0.03));
}

.light-theme .article-content blockquote p {
    color: #333;
}

.light-theme .article-content code {
    background: rgba(0, 0, 0, 0.06);
    color: #AF5428;
}

.light-theme .article-content pre {
    background: #1C1917;
}

.light-theme .article-content pre code {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Responsive Blog Styles ===== */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content blockquote {
        padding: 1.5rem 1.5rem 1.5rem 2rem;
    }
    
    .article-content blockquote p {
        font-size: 1.1rem;
    }
}

/* Animation for article content */
.article-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: contentFadeIn 0.6s ease forwards;
}

.article-content > *:nth-child(1) { animation-delay: 0.1s; }
.article-content > *:nth-child(2) { animation-delay: 0.15s; }
.article-content > *:nth-child(3) { animation-delay: 0.2s; }
.article-content > *:nth-child(4) { animation-delay: 0.25s; }
.article-content > *:nth-child(5) { animation-delay: 0.3s; }
.article-content > *:nth-child(6) { animation-delay: 0.35s; }
.article-content > *:nth-child(7) { animation-delay: 0.4s; }
.article-content > *:nth-child(8) { animation-delay: 0.45s; }
.article-content > *:nth-child(9) { animation-delay: 0.5s; }
.article-content > *:nth-child(10) { animation-delay: 0.55s; }
.article-content > *:nth-child(n+11) { animation-delay: 0.6s; }

@keyframes contentFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

