/**
 * Swiper Slider CSS
 * Custom styles cho product và posts sliders với Swiper.js
 */

/* ================================================
   COMMON SLIDER STYLES
   ================================================ */

/* Slide wrapper */
.hello-products-slide-wrapper,
.hello-posts-slide-wrapper {
    margin: 0px 0;
    position: relative;
}

/* Header với title và view all */
.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.slide-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slide-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
}

.slide-title i {
    font-size: 22px;
}

.slide-view-all .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #007cba, #0056a3);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.slide-view-all .view-all-link:hover {
    background: linear-gradient(135deg, #0056a3, #007cba);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.slide-view-all .view-all-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.slide-view-all .view-all-link:hover i {
    transform: translateX(3px);
}

/* ================================================
   SWIPER CONTAINER OVERRIDES
   ================================================ */

/* Swiper container */
.hello-products-swiper,
.hello-posts-swiper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Swiper wrapper */
.hello-products-swiper .swiper,
.hello-posts-swiper .swiper {
    padding: 10px 0;
}

/* Navigation buttons - Custom styling */
.hello-products-swiper .swiper-button-next,
.hello-products-swiper .swiper-button-prev,
.hello-posts-swiper .swiper-button-next,
.hello-posts-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #333;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 124, 186, 0.1);
    z-index: 10;
}

.hello-products-swiper .swiper-button-next::after,
.hello-products-swiper .swiper-button-prev::after,
.hello-posts-swiper .swiper-button-next::after,
.hello-posts-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 900;
}

.hello-products-swiper .swiper-button-next:hover,
.hello-products-swiper .swiper-button-prev:hover,
.hello-posts-swiper .swiper-button-next:hover,
.hello-posts-swiper .swiper-button-prev:hover {
    background: #007cba;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.3);
}

.hello-products-swiper .swiper-button-disabled,
.hello-posts-swiper .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pagination dots */
.hello-products-swiper .swiper-pagination,
.hello-posts-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.hello-products-swiper .swiper-pagination-bullet,
.hello-posts-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(0, 124, 186, 0.3);
    border-radius: 50%;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.hello-products-swiper .swiper-pagination-bullet-active,
.hello-posts-swiper .swiper-pagination-bullet-active {
    background: #007cba;
    transform: scale(1.2);
}

/* ================================================
   PRODUCT SLIDE CARDS
   ================================================ */

.product-slide-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 124, 186, 0.1);
}

.product-slide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 124, 186, 0.3);
}

.product-slide-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f9fa;
}

.product-slide-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-slide-card:hover .product-slide-thumbnail img {
    transform: scale(1.05);
}

.status-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.product-slide-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-slide-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.product-slide-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-slide-title a:hover {
    color: #007cba;
}

.product-slide-price {
    margin-top: auto;
    font-weight: 600;
}

.product-slide-price .sale-price {
    color: #dc3545;
    font-size: 18px;
    margin-right: 8px;
}

.product-slide-price .regular-price {
    color: #6c757d;
    font-size: 14px;
    text-decoration: line-through;
}

.product-slide-price .current-price {
    color: #007cba;
    font-size: 18px;
}

.product-slide-price .discount-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

.contact-price {
    color: #007cba;
    font-weight: 600;
}

.contact-price .contact-text {
    display: block;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
}

.contact-price .contact-phone {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-weight: 600;
}

.contact-price .contact-phone:hover {
    color: #20c997;
}

/* ================================================
   POST SLIDE CARDS
   ================================================ */

.post-slide-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 124, 186, 0.1);
}

.post-slide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 124, 186, 0.3);
}

.post-slide-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f8f9fa;
}

.post-slide-thumbnail.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 124, 186, 0.1);
    border-radius: 50%;
    color: #007cba;
    font-size: 24px;
}

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

.post-slide-card:hover .post-slide-thumbnail img {
    transform: scale(1.05);
}

.post-slide-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-slide-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.post-slide-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-slide-title a:hover {
    color: #007cba;
}

.post-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6c757d;
}

.post-category-badge a {
    background: rgba(0, 124, 186, 0.1);
    color: #007cba;
    padding: 4px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.post-category-badge a:hover {
    background: #007cba;
    color: white;
}

.post-date,
.post-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-slide-excerpt {
    margin-bottom: 15px;
    flex: 1;
}

.post-slide-excerpt p {
    margin: 0;
    color: #2c2d2d;
    line-height: 1.5;
    font-size: 15px;
}

.post-slide-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 19px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #0056a3;
    border-bottom-color: #0056a3;
}

.read-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .slide-title h3 {
        font-size: 22px;
    }
    
    .product-slide-content,
    .post-slide-content {
        padding: 16px;
    }
    
    .hello-products-swiper .swiper-button-next,
    .hello-products-swiper .swiper-button-prev,
    .hello-posts-swiper .swiper-button-next,
    .hello-posts-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hello-products-slide-wrapper,
    .hello-posts-slide-wrapper {
        margin: 30px 0;
    }
    
    .slide-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .slide-title h3 {
        font-size: 20px;
    }
    
    .product-slide-content,
    .post-slide-content {
        padding: 14px;
    }
    
    .product-slide-title,
    .post-slide-title {
        font-size: 18px;
    }
    
    .post-slide-title {
        font-size: 16px;
    }
    
    /* Hide navigation arrows on mobile, rely on touch */
    .hello-products-swiper .swiper-button-next,
    .hello-products-swiper .swiper-button-prev,
    .hello-posts-swiper .swiper-button-next,
    .hello-posts-swiper .swiper-button-prev {
        display: none;
    }
    
    /* Make pagination more prominent on mobile */
    .hello-products-swiper .swiper-pagination-bullet,
    .hello-posts-swiper .swiper-pagination-bullet {
        width: 14px;
        height: 14px;
        margin: 0 6px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .slide-title h3 {
        font-size: 18px;
    }
    
    .product-slide-content,
    .post-slide-content {
        padding: 12px;
    }
    
    .view-all-link {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ================================================
   RTL SUPPORT (if needed)
   ================================================ */

[dir="rtl"] .slide-header {
    direction: rtl;
}

[dir="rtl"] .slide-title {
    flex-direction: row-reverse;
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
    .hello-products-slide-wrapper,
    .hello-posts-slide-wrapper {
        display: none;
    }
}