/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #6A0DAD 0%, #FFD700 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/blog-hero-bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.blog-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Blog Filters */
.blog-filters {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.filters-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.filter-select,
.filter-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #6A0DAD;
    box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.1);
}

.filter-input {
    min-width: 250px;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 60px 0;
}

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

.blog-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(106, 13, 173, 0.9);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    min-width: 50px;
}

.blog-post-date .day {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.blog-post-date .month {
    font-size: 0.8rem;
    opacity: 0.9;
}

.blog-post-content {
    padding: 20px;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.blog-category {
    background: #6A0DAD;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-actions {
    display: flex;
    gap: 10px;
}

.share-btn,
.save-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.share-btn:hover,
.save-btn:hover {
    background: #f8f9fa;
    color: #6A0DAD;
}

.blog-post-title {
    margin-bottom: 15px;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #6A0DAD;
}

.blog-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.read-time {
    color: #666;
    font-size: 0.8rem;
}

.post-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
}

.post-stats i {
    color: #6A0DAD;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #6A0DAD;
}

.newsletter-form button {
    padding: 15px 30px;
    background: #6A0DAD;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #5a0c9d;
}

.newsletter-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.newsletter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
}

.newsletter-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6A0DAD;
}

/* Popular Tags */
.popular-tags {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.tags-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tags-content h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.tags-cloud {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: #e9ecef;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #6A0DAD;
    color: white;
    transform: scale(1.05);
}

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

#load-more-btn {
    padding: 15px 30px;
    background: #6A0DAD;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

#load-more-btn:hover {
    background: #5a0c9d;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.no-results h3 {
    color: #333;
    margin-bottom: 1rem;
}

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

    .blog-hero-stats {
        gap: 1.5rem;
    }

    .blog-hero-stats .stat-item {
        margin-bottom: 1rem;
    }

    .filters-content {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }

    .filter-input {
        min-width: unset;
        flex: 1;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post-card {
        margin: 0 10px;
    }

    .blog-hero {
        padding: 60px 0;
    }

    .blog-posts {
        padding: 30px 0;
    }

    .newsletter {
        padding: 30px 0;
    }

    .popular-tags {
        padding: 20px 0;
    }

    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-post-date {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 10px;
    }

    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-post-actions {
        align-self: flex-end;
    }
}