/* Blog Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--deep-emerald), var(--gold-ochre));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 40 L90 40 L68 58 L78 88 L50 70 L22 88 L32 58 L10 40 L40 40 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: twinkle 15s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Categories Navigation */
.blog-categories {
    background-color: var(--white);
    padding: 2rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.categories-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.category-btn {
    padding: 8px 20px;
    border: 2px solid var(--gold-ochre);
    background-color: transparent;
    color: var(--gold-ochre);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--gold-ochre);
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.blog-search {
    position: relative;
    max-width: 400px;
    margin-left: auto;
}

.blog-search input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--ash-grey);
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: var(--warm-ivory);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--gold-ochre);
    background-color: var(--white);
}

.blog-search .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--warm-brown);
    font-size: 18px;
}

/* Featured Article */
.featured-article {
    padding: 3rem 0;
    background-color: var(--warm-ivory);
}

.featured-post {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    height: 500px;
}

.featured-post:hover {
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--terracotta), var(--deep-emerald));
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 3rem;
    color: var(--white);
}

.featured-content .blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-content .blog-category {
    background-color: var(--gold-ochre);
    color: var(--charcoal);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-content .blog-date,
.featured-content .read-time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.featured-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Blog Grid */
.blog-posts {
    padding: 4rem 0;
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Enhanced Blog Cards */
.blog-card {
    background-color: var(--warm-ivory);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow);
    height: fit-content;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-placeholder {
    transform: scale(1.05);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

.read-more-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.read-more-btn:hover {
    background-color: var(--terracotta);
    color: var(--white);
    transform: scale(1.1);
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-category {
    background-color: var(--terracotta);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-date,
.read-time {
    color: var(--warm-brown);
    font-size: 0.85rem;
}

.read-time::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--muted-coral);
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--warm-brown);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--ash-grey);
    color: var(--warm-brown);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-link {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.blog-link:hover {
    color: var(--deep-emerald);
}

.blog-link::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.blog-link:hover::after {
    transform: translateX(5px);
}

/* Additional Blog Placeholders */
.blog-bg-1 {
    background: linear-gradient(135deg, var(--terracotta), var(--muted-coral));
}

.blog-bg-2 {
    background: linear-gradient(135deg, var(--deep-emerald), var(--gold-ochre));
}

.blog-bg-3 {
    background: linear-gradient(135deg, var(--gold-ochre), var(--muted-coral));
}

.blog-bg-4 {
    background: linear-gradient(135deg, var(--muted-coral), var(--terracotta));
}

.blog-bg-5 {
    background: linear-gradient(135deg, var(--deep-emerald), var(--terracotta));
}

.blog-bg-6 {
    background: linear-gradient(135deg, var(--gold-ochre), var(--deep-emerald));
}

.blog-bg-7 {
    background: linear-gradient(135deg, var(--terracotta), var(--gold-ochre));
}

.blog-bg-8 {
    background: linear-gradient(135deg, var(--deep-emerald), var(--muted-coral));
}

.blog-bg-9 {
    background: linear-gradient(135deg, var(--muted-coral), var(--gold-ochre));
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, var(--ash-grey), var(--warm-ivory));
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.newsletter-content p {
    margin-bottom: 2rem;
    color: var(--warm-brown);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--ash-grey);
    border-radius: 25px;
    font-size: 16px;
    background-color: var(--white);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold-ochre);
}

.newsletter-form button {
    padding: 12px 24px;
    border-radius: 25px;
    white-space: nowrap;
}

/* Filter Results Info */
.filter-results {
    padding: 1rem 0;
    text-align: center;
    color: var(--warm-brown);
    font-style: italic;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--warm-brown);
}

.empty-state i {
    font-size: 4rem;
    color: var(--muted-coral);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--charcoal);
}

/* Article Reading Progress */
.reading-progress {
    position: fixed;
    top: 70px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--gold-ochre));
    transition: width 0.1s ease;
    z-index: 1000;
}

/* Blog Article Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .categories-nav {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .blog-search {
        max-width: none;
        margin-left: 0;
    }

    .featured-title {
        font-size: 1.8rem;
    }

    .featured-excerpt {
        font-size: 1rem;
    }

    .featured-overlay {
        padding: 2rem;
    }

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

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input {
        margin-bottom: 1rem;
    }

    .blog-categories {
        position: relative;
        top: 0;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .featured-post {
        height: 400px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .categories-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-btn {
        text-align: center;
        width: 100%;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Blog Category Color Variations */
.blog-category.tutorial {
    background-color: var(--terracotta);
}

.blog-category.technique {
    background-color: var(--deep-emerald);
}

.blog-category.inspiration {
    background-color: var(--gold-ochre);
    color: var(--charcoal);
}

.blog-category.artist-story {
    background-color: var(--muted-coral);
    color: var(--charcoal);
}

.blog-category.tips {
    background-color: var(--warm-brown);
}

/* Hover Effects for Different Categories */
.blog-card[data-category="tutorial"]:hover {
    border-left: 4px solid var(--terracotta);
}

.blog-card[data-category="technique"]:hover {
    border-left: 4px solid var(--deep-emerald);
}

.blog-card[data-category="inspiration"]:hover {
    border-left: 4px solid var(--gold-ochre);
}

.blog-card[data-category="artist-story"]:hover {
    border-left: 4px solid var(--muted-coral);
}

.blog-card[data-category="tips"]:hover {
    border-left: 4px solid var(--warm-brown);
}
