/**
 * External Blogger Slider Styles
 * Custom CSS for the slider component
 */

/* Slider Wrapper */
.external-blogger-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Title Section Wrapper */
.ebs-title-section {
    margin-bottom: 60px;
    padding: 0;
}

/* Subtitle */
.ebs-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
}

/* Section Title */
.ebs-section-title {
    font-size: 48px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 50px 0;
    padding: 0;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.5px;
}

.ebs-section-title em {
    font-style: italic;
    font-weight: inherit;
}

.ebs-section-title strong {
    font-weight: 700;
}

/* Description */
.ebs-description {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.ebs-description p {
    margin: 0 0 10px 0;
}

.ebs-description p:last-child {
    margin-bottom: 0;
}

/* Button Wrapper */
.ebs-button-wrapper {
    margin-top: 25px;
}

/* Button Styles */
.ebs-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ebs-button-image {
    max-width: 24px;
    height: auto;
    display: block;
}

/* Button Style Variations */
.ebs-button-default {
    background: #333;
    color: #fff;
    border: 2px solid #333;
}

.ebs-button-default:hover {
    background: #000;
    border-color: #000;
}

.ebs-button-primary {
    background: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.ebs-button-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.ebs-button-secondary {
    background: #6c757d;
    color: #fff;
    border: 2px solid #6c757d;
}

.ebs-button-secondary:hover {
    background: #545b62;
    border-color: #545b62;
}

.ebs-button-outline {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.ebs-button-outline:hover {
    background: #333;
    color: #fff;
}

.ebs-button-link {
    background: transparent;
    color: #007bff;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.ebs-button-link:hover {
    color: #0056b3;
}

/* Title Style Variations */
/* Default Style */
.ebs-title-style-default .ebs-section-title {
    font-size: 36px;
    font-weight: 700;
}

.ebs-title-style-default .ebs-subtitle {
    font-size: 14px;
}

/* Elegant Style */
.ebs-title-style-elegant .ebs-section-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.ebs-title-style-elegant .ebs-subtitle {
    font-size: 13px;
    font-weight: 500;
}

.ebs-title-style-elegant .ebs-description {
    font-size: 15px;
    font-style: italic;
}

/* Modern Style */
.ebs-title-style-modern .ebs-section-title {
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ebs-title-style-modern .ebs-subtitle {
    font-size: 12px;
    font-weight: 700;
}

/* Bold Style */
.ebs-title-style-bold .ebs-section-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
}

.ebs-title-style-bold .ebs-subtitle {
    font-size: 16px;
    font-weight: 700;
}

/* Minimal Style */
.ebs-title-style-minimal .ebs-section-title {
    font-size: 32px;
    font-weight: 400;
}

.ebs-title-style-minimal .ebs-subtitle {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
}

.ebs-title-style-minimal .ebs-description {
    font-size: 14px;
}

/* Color Style Variations */
/* Default Color */
.ebs-color-style-default .ebs-section-title {
    color: #000;
}

.ebs-color-style-default .ebs-subtitle {
    color: #666;
}

.ebs-color-style-default .ebs-description {
    color: #666;
}

/* Dark Color */
.ebs-color-style-dark .ebs-section-title {
    color: #1a1a1a;
}

.ebs-color-style-dark .ebs-subtitle {
    color: #333;
}

.ebs-color-style-dark .ebs-description {
    color: #444;
}

/* Light Color */
.ebs-color-style-light .ebs-section-title {
    color: #fff;
}

.ebs-color-style-light .ebs-subtitle {
    color: #f0f0f0;
}

.ebs-color-style-light .ebs-description {
    color: #e0e0e0;
}

/* Accent Color */
.ebs-color-style-accent .ebs-section-title {
    color: #007bff;
}

.ebs-color-style-accent .ebs-subtitle {
    color: #0056b3;
}

.ebs-color-style-accent .ebs-description {
    color: #666;
}

/* Custom Color - can be overridden with inline styles */
.ebs-color-style-custom .ebs-section-title {
    color: inherit;
}

.ebs-color-style-custom .ebs-subtitle {
    color: inherit;
}

.ebs-color-style-custom .ebs-description {
    color: inherit;
}

/* Swiper Container */
.external-blogger-slider {
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}

.external-blogger-slider.pagination-bottom {
    padding-bottom: 30px;
}

.external-blogger-slider.pagination-top {
    padding-top: 30px;
}

.external-blogger-slider.pagination-left {
    padding-left: 30px;
}

.external-blogger-slider.pagination-right {
    padding-right: 30px;
}

/* Swiper Slide */
.external-blogger-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Slide Content */
.ebs-slide-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
}

.ebs-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.ebs-slide-content:hover {
    transform: none;
    box-shadow: none;
}

/* Slide Image */
.ebs-slide-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f0f0f0;
}

.ebs-slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.ebs-slide-content:hover .ebs-slide-image::before {
    background: rgba(0, 0, 0, 0.3);
}

.ebs-slide-image::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #ab6cdb url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>') no-repeat center center;
    background-size: 28px 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.hide-eye-icon .ebs-slide-image::after {
    display: none;
}

.ebs-slide-content:hover .ebs-slide-image::after {
    opacity: 1;
    top: 50%;
}

.ebs-eye-icon-link {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 3;
    display: none;
    background: #ab6cdb;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.ebs-eye-icon-link .eg-icon-eye {
    font-size: 24px;
    color: #fff;
}

.ebs-eye-icon-link:hover {
    background: #9854c9;
}

.icon-click-only .ebs-eye-icon-link {
    display: flex;
}

.icon-click-only .ebs-slide-content:hover .ebs-eye-icon-link {
    opacity: 1;
    top: 50%;
}

.ebs-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: none;
}

.ebs-slide-content:hover .ebs-slide-image img {
    transform: none;
}

/* Slide Text Content */
.ebs-slide-text {
    padding: 30px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Slide Date */
.ebs-slide-date {
    font-size: 10px;
    color: #888;
    margin-bottom: 15px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ebs-slide-text[style*="text-align: center"] .ebs-slide-date,
.ebs-slide-text[style*="text-align: right"] .ebs-slide-date {
    width: 100%;
}

.ebs-slide-text[style*="text-align: center"] .ebs-slide-date {
    justify-content: center;
}

.ebs-slide-text[style*="text-align: right"] .ebs-slide-date {
    justify-content: flex-end;
}

.ebs-slide-title + .ebs-slide-date {
    margin-top: 15px;
    margin-bottom: 0;
}

.ebs-slide-date::after {
    content: '♥ 2';
    font-size: 10px;
    color: #888;
    font-weight: 400;
}

/* Slide Title */
.ebs-slide-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.2px;
}

/* Click Behavior Styles */
.full-click .swiper-slide {
    cursor: pointer;
}

.icon-click-only .ebs-slide-content {
    pointer-events: none;
}

.icon-click-only .ebs-eye-icon-link {
    pointer-events: all;
}

/* Read More Button */
.ebs-read-more {
    display: none;
}

/* Swiper Navigation Buttons */
.external-blogger-slider .swiper-button-next,
.external-blogger-slider .swiper-button-prev {
    display: none;
}

/* Swiper Pagination */
.external-blogger-slider .swiper-pagination {
    position: absolute;
    display: block !important;
    z-index: 10;
}

.external-blogger-slider.pagination-bottom .swiper-pagination {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.external-blogger-slider.pagination-top .swiper-pagination {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.external-blogger-slider.pagination-left .swiper-pagination {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
    flex-direction: column;
    width: auto;
    height: auto;
}

.external-blogger-slider.pagination-right .swiper-pagination {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
    flex-direction: column;
    width: auto;
    height: auto;
}

.external-blogger-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d4d4d4;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    margin: 0 5px;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #d4d4d4;
}

.external-blogger-slider.pagination-left .swiper-pagination-bullet,
.external-blogger-slider.pagination-right .swiper-pagination-bullet {
    margin: 5px 0;
}

.external-blogger-slider .swiper-pagination-bullet-active {
    background: #333;
    border-color: #333;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ebs-title-section {
        margin-bottom: 30px;
    }
    
    .ebs-section-title {
        font-size: 38px;
        margin-bottom: 40px;
    }
    
    .ebs-title-style-elegant .ebs-section-title {
        font-size: 42px;
    }
    
    .ebs-title-style-modern .ebs-section-title {
        font-size: 40px;
    }
    
    .ebs-title-style-bold .ebs-section-title {
        font-size: 46px;
    }
    
    .ebs-title-style-minimal .ebs-section-title {
        font-size: 36px;
    }
    
    .ebs-subtitle {
        font-size: 12px;
    }
    
    .ebs-description {
        font-size: 15px;
    }
    
    .ebs-button {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .ebs-slide-title {
        font-size: 20px;
    }
    
    .ebs-slide-date {
        font-size: 9px;
    }
    
    .ebs-slide-text {
        padding: 20px 0 0 0;
    }
    
    .ebs-slide-image {
        height: 300px;
    }
    
    .ebs-slide-date {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .ebs-title-section {
        margin-bottom: 25px;
    }
    
    .ebs-section-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
    
    .ebs-title-style-elegant .ebs-section-title {
        font-size: 36px;
    }
    
    .ebs-title-style-modern .ebs-section-title {
        font-size: 34px;
    }
    
    .ebs-title-style-bold .ebs-section-title {
        font-size: 38px;
    }
    
    .ebs-title-style-minimal .ebs-section-title {
        font-size: 30px;
    }
    
    .ebs-subtitle {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .ebs-description {
        font-size: 14px;
    }
    
    .ebs-button {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .ebs-button-wrapper {
        margin-top: 20px;
    }
    
    .ebs-slide-title {
        font-size: 18px;
    }
    
    .ebs-slide-date {
        font-size: 8px;
        margin-bottom: 12px;
    }
    
    .ebs-slide-text {
        padding: 15px 0 0 0;
    }
    
    .ebs-slide-image {
        height: 250px;
    }
    
    .ebs-slide-image::after {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Loading State */
.ebs-slide-content.loading {
    background: #f5f5f5;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* No Image Placeholder */
.ebs-slide-image:empty::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
