/**
 * Turto Catalog Slider Styles
 * Estilos para el shortcode [turto_slider]
 */

/* ========================================
   WRAPPER PRINCIPAL
======================================== */
.turto-slider-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   HEADER CON TOGGLE
======================================== */
.turto-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.slider-title-section {
    flex: 1;
    min-width: 250px;
}

.slider-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.slider-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   TOGGLE BUTTONS
======================================== */
.turto-slider-toggle {
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.toggle-btn:hover {
    color: #374151;
}

.toggle-btn.active {
    background: #ffffff;
    color: #e11d48;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========================================
   LOADING STATE
======================================== */
.turto-slider-loading {
    text-align: center;
    padding: 60px 20px;
}

.turto-slider-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: #e11d48;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.turto-slider-loading p {
    color: #6b7280;
    font-size: 1rem;
}

/* ========================================
   SWIPER CONTAINER
======================================== */
.turto-slider-swiper {
    position: relative;
    padding: 20px 0;
    margin: 0 -10px;
}

.swiper-wrapper {
    padding: 10px 0;
}

/* ========================================
   SLIDER CARD (TARJETA) - IDÉNTICA AL CATÁLOGO
======================================== */
.turto-slider-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.turto-slider-card:hover {
    border-color: #881337;
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Card Image Wrapper */
.card-image-wrapper {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(136, 19, 55, 0.1);
    z-index: 10;
    transition: background-color 0.3s;
}

.turto-slider-card:hover .card-image-overlay {
    background: transparent;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s;
}

.turto-slider-card:hover .card-image {
    transform: scale(1.05);
}

/* Status Badge */
.badge-status-container {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
}

.badge-status {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    color: #881337;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.live {
    background: #e11d48;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.recorded {
    background: #f59e0b;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Card Content */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

/* Category Badge */
.badge-category {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.badge-category.gold {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-category.burgundy {
    background: rgba(255, 241, 242, 1);
    color: #881337;
    border-color: rgba(136, 19, 55, 0.2);
}

/* Rating */
.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #78716c;
}

.rating svg {
    width: 14px;
    height: 14px;
    color: #f59e0b;
    fill: #f59e0b;
}

/* Card Title */
.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #450a0a;
    margin: 0 0 12px 0;
    line-height: 1.25;
    transition: color 0.2s;
}

.turto-slider-card:hover .card-title {
    color: #be123c;
}

/* Card Excerpt */
.card-excerpt {
    font-size: 14px;
    color: #78716c;
    line-height: 1.625;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f5f5f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-box .label {
    font-size: 10px;
    text-transform: uppercase;
    color: #a8a29e;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.price-box .price {
    font-size: 20px;
    font-weight: 700;
    color: #881337;
}

.btn-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8a29e;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.turto-slider-card:hover .btn-arrow {
    background: #881337;
    color: #fef3c7;
    border-color: #881337;
    box-shadow: 0 10px 15px -3px rgba(136, 19, 55, 0.3);
}

.btn-arrow svg {
    width: 20px;
    height: 20px;
}

/* Info Row (Fecha/Horas) */
.card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #fafaf9;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #78716c;
    border: none;
    transition: all 0.3s ease;
}

.card-info-row:hover {
    background: #fff1f2;
    transform: translateY(-1px);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.info-item.right {
    justify-content: flex-end;
}

.info-item svg {
    width: 18px;
    height: 18px;
    color: #e11d48;
    filter: drop-shadow(0 2px 4px rgba(2, 132, 199, 0.2));
}

/* Footer Redesign */
.card-footer-redesign {
    margin-top: auto;
    padding-top: 8px;
}

.price-row {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-row .price {
    font-size: 28px;
    font-weight: 800;
    color: #450a0a;
    letter-spacing: -0.03em;
}

/* Actions Row */
.actions-row {
    display: flex;
    gap: 12px;
}

.btn-details {
    flex: 1;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(2, 132, 199, 0.35);
}

.btn-add-cart-square {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2px solid #f5f5f4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8a29e;
    transition: all 0.3s;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-add-cart-square:hover {
    border-color: #e11d48;
    color: #e11d48;
    background: #fff1f2;
    transform: rotate(-5deg);
}

.btn-add-cart-square svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   NAVIGATION ARROWS - OCULTAS
======================================== */
.turto-slider-prev,
.turto-slider-next {
    display: none !important;
}

/* ========================================
   PAGINATION
======================================== */
.turto-slider-pagination {
    position: relative;
    margin-top: 24px;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #e11d48;
    width: 24px;
    border-radius: 5px;
}

/* ========================================
   VER MÁS BUTTON
======================================== */
.turto-slider-footer {
    text-align: center;
    margin-top: 32px;
}

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: #e11d48;
    border: 2px solid #e11d48;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ver-mas svg {
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.btn-ver-mas:hover {
    background: #e11d48;
    color: #ffffff;
}

.btn-ver-mas:hover svg {
    transform: translateX(4px);
}

/* ========================================
   EMPTY STATE
======================================== */
.turto-slider-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
    font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    .turto-slider-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .slider-title {
        font-size: 1.5rem;
    }

    .slider-subtitle {
        font-size: 0.9rem;
    }

    .turto-slider-toggle {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .turto-slider-prev,
    .turto-slider-next {
        width: 40px;
        height: 40px;
    }

    .card-image-wrapper {
        height: 180px;
    }

    .card-title {
        font-size: 1rem;
    }

    .btn-ver-mas {
        width: 100%;
        justify-content: center;
    }
}
