/* YASHODA ORGANIC Blog v2 Styles
   Prefix: yo-v2- to prevent conflicts
*/

/* Base Styles */
.yo-v2-blog {
    --primary: #548235;
    --primary-light: #76a84f;
    --primary-dark: #3a5a25;
    --accent: #ca9b52;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
    color: var(--text-dark);
}

/* Hero Section */
.yo-v2-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.yo-v2-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 1;
}

/* Featured Posts */
.yo-v2-featured {
    position: relative;
    margin-top: -50px;
    z-index: 2;
    padding: 0 20px;
}

.yo-v2-featured .swiper-slide {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.yo-v2-featured .swiper-slide-active {
    transform: scale(1);
}

.yo-v2-featured__item {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.yo-v2-featured__content {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

.swiper-slide-active .yo-v2-featured__content {
    transform: translateY(0);
    opacity: 1;
}

/* Blog Cards */
.yo-v2-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.yo-v2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.yo-v2-card__image {
    height: 200px;
    overflow: hidden;
}

.yo-v2-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.yo-v2-card:hover .yo-v2-card__image img {
    transform: scale(1.1);
}

.yo-v2-card__content {
    padding: 20px;
}

.yo-v2-card .category-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-light);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.yo-v2-card .post-title {
    font-size: 1.2rem;
    margin: 10px 0;
    line-height: 1.4;
}

.yo-v2-card .post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.yo-v2-card .post-title a:hover {
    color: var(--primary);
}

.yo-v2-card .excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.yo-v2-card .meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Sidebar Widgets */
.yo-v2-widget {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.yo-v2-widget__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}

.yo-v2-widget__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.category-list a:hover {
    background: var(--primary-light);
    color: var(--white);
}

.category-list .count {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.popular-post .thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.popular-post .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post .content {
    flex: 1;
}

.popular-post h4 {
    font-size: 1rem;
    margin: 0 0 5px;
}

.popular-post h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.popular-post h4 a:hover {
    color: var(--primary);
}

.popular-post .date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Newsletter Form */
.newsletter-form {
    text-align: center;
}

.newsletter-form p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.newsletter-form .form-group {
    margin-bottom: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(84,130,53,0.1);
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* Call to Action */
.yo-v2-cta {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 80px 0;
    margin: 60px 0;
    text-align: center;
}

.yo-v2-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.yo-v2-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.yo-v2-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.yo-v2-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Pagination */
.yo-v2-pagination {
    margin-top: 40px;
}

.yo-v2-pagination .page-link {
    padding: 10px 20px;
    color: var(--text-dark);
    border: none;
    margin: 0 5px;
    border-radius: 8px;
    transition: var(--transition);
}

.yo-v2-pagination .page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
}

.yo-v2-pagination .page-link:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* Empty State */
.yo-v2-empty {
    text-align: center;
    padding: 60px 20px;
}

.yo-v2-empty .empty-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.yo-v2-empty h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.yo-v2-empty p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 991px) {
    .yo-v2-hero {
        height: 60vh;
    }
    
    .yo-v2-featured {
        margin-top: -30px;
    }
    
    .yo-v2-featured__item {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .yo-v2-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .yo-v2-hero__title {
        font-size: 2.5rem;
    }
    
    .yo-v2-featured {
        margin-top: 0;
        padding: 40px 0;
    }
    
    .yo-v2-featured__item {
        height: 300px;
    }
    
    .yo-v2-cta {
        padding: 60px 0;
    }
    
    .yo-v2-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .yo-v2-hero__title {
        font-size: 2rem;
    }
    
    .yo-v2-hero__subtitle {
        font-size: 1rem;
    }
    
    .yo-v2-featured__item {
        height: 250px;
    }
    
    .yo-v2-card {
        margin-bottom: 20px;
    }
    
    .yo-v2-pagination .page-link {
        padding: 8px 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading States */
.yo-v2-loading {
    position: relative;
    min-height: 200px;
}

.yo-v2-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--bg-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hover Effects */
.yo-v2-hover-lift {
    transition: var(--transition);
}

.yo-v2-hover-lift:hover {
    transform: translateY(-5px);
}

.yo-v2-hover-shadow {
    transition: var(--transition);
}

.yo-v2-hover-shadow:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Custom Scrollbar */
.yo-v2-blog ::-webkit-scrollbar {
    width: 8px;
}

.yo-v2-blog ::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.yo-v2-blog ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.yo-v2-blog ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 

/* Sticky Sidebar on Desktop */
@media (min-width: 992px) {
    .yo-v2-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Scroll-to-Top Button */
.yo-scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.yo-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.yo-scroll-top:hover {
    background: var(--primary-dark);
} 