/* assets/css/blog-page.css */

/* Blog Hero Section */
.blog-hero {
    background: var(--gradient-primary);
    padding: 8rem 5% 4rem;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.blog-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Main Section */
.blog-main {
    padding: 4rem 5%;
    background: var(--bg-light);
    min-height: 60vh;
}

/* Blog Controls */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.blog-search input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.blog-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.blog-search i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.blog-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-sort label {
    color: var(--text-dark);
    font-weight: 500;
}

.blog-sort select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.blog-sort select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Results Count */
.results-count {
    text-align: center;
    color: var(--text-light);
    margin: 2rem 0 1rem;
    font-size: 1.1rem;
}

.results-count span {
    color: var(--text-dark);
    font-weight: 600;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Newsletter Section */
.newsletter {
    background: white;
    padding: 5rem 5%;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.newsletter p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.newsletter-form button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Share Buttons */
.share-buttons {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.share-buttons h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.share-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-link {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Active navigation state */
.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    width: 100%;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }

    .blog-hero-content p {
        font-size: 1.1rem;
    }

    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search {
        max-width: 100%;
    }

    .blog-sort {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 6rem 3% 3rem;
    }

    .blog-main {
        padding: 2rem 3%;
    }

    .newsletter {
        padding: 3rem 3%;
    }

    .newsletter h2 {
        font-size: 2rem;
    }

    .newsletter p {
        font-size: 1rem;
    }
}