/**
 * Theros Categories Slider - Front CSS
 * Path: modules/theroscategoriesslider/views/css/front.css
 */

.theros-categories-section {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Header */
.theros-categories-header {
    margin-bottom: 50px;
}

.theros-categories-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #008080;
    margin: 0;
    padding-left: 20px;
    border-left: 5px solid #008080;
    line-height: 1.2;
}

/* Slider Wrapper */
.theros-categories-slider-wrapper {
    position: relative;
    margin-top: 40px;
}

.theros-categories-slider {
    margin: 0 -15px;
}

.theros-category-slide {
    padding: 0 15px;
    outline: none;
}

/* Category Card */
.theros-category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.theros-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 128, 128, 0.15);
    background: #f0f8f8;
}

/* Image */
.theros-category-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #ffffff;
}

.theros-category-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.theros-category-card:hover .theros-category-image {
    transform: scale(1.05);
}

/* Content */
.theros-category-content {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theros-category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.theros-category-description {
    font-size: 0.9375rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Button */
.theros-category-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: #008080;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theros-category-card:hover .theros-category-button {
    background: #006666;
}

.theros-category-btn-text {
    color: #ffffff;
}

.theros-category-button svg {
    transition: transform 0.3s ease;
}

.theros-category-card:hover .theros-category-button svg {
    transform: translateX(4px);
}

/* Slick Slider Customization */
.theros-categories-slider-dots {
    text-align: center;
    margin-top: 40px;
}

.theros-categories-slider-dots .slick-dots {
    position: relative;
    bottom: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.theros-categories-slider-dots .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.theros-categories-slider-dots .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s ease;
    position: relative;
}

.theros-categories-slider-dots .slick-dots li button:hover {
    background: #b0b0b0;
    transform: scale(1.1);
}

.theros-categories-slider-dots .slick-dots li.slick-active button {
    background: #008080;
    width: 12px;
    height: 12px;
}

.theros-categories-slider-dots .slick-dots li button:before {
    display: none;
}

/* Slick Track */
.theros-categories-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.theros-categories-slider .slick-slide {
    height: auto;
    display: flex;
}

.theros-categories-slider .slick-slide > div {
    width: 100%;
    display: flex;
}

.theros-categories-slider .slick-list {
    margin: 0 -15px;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .theros-categories-title {
        font-size: 2.25rem;
    }

    .theros-category-image-wrapper {
        height: 180px;
    }
}

@media (max-width: 992px) {
    .theros-categories-section {
        padding: 60px 0;
    }

    .theros-categories-title {
        font-size: 2rem;
        padding-left: 16px;
        border-left-width: 4px;
    }

    .theros-category-image-wrapper {
        height: 160px;
    }

    .theros-category-name {
        font-size: 1.125rem;
    }

    .theros-category-content {
        padding: 20px 16px;
    }

    .theros-category-button {
        padding: 14px 16px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 768px) {
    .theros-categories-section {
        padding: 50px 0;
    }

    .theros-categories-title {
        font-size: 1.75rem;
        padding-left: 14px;
    }

    .theros-category-image-wrapper {
        height: 150px;
    }

    .theros-category-name {
        font-size: 1.0625rem;
    }

    .theros-category-description {
        font-size: 0.875rem;
    }

    .theros-categories-slider-dots {
        margin-top: 35px;
    }
}

@media (max-width: 576px) {
    .theros-categories-section {
        padding: 40px 0;
    }

    .theros-categories-title {
        font-size: 1.5rem;
        padding-left: 12px;
        border-left-width: 3px;
    }

    .theros-category-image-wrapper {
        height: 180px;
    }

    .theros-category-content {
        padding: 18px 14px;
    }

    .theros-category-name {
        font-size: 1rem;
    }

    .theros-category-button {
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    .theros-categories-slider-dots {
        margin-top: 30px;
    }

    .theros-categories-slider-dots .slick-dots li button {
        width: 10px;
        height: 10px;
    }

    .theros-categories-slider-dots .slick-dots li.slick-active button {
        width: 10px;
        height: 10px;
    }
}

/* Animation d'entrée */
.theros-categories-section {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.theros-categories-slider {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.theros-categories-slider.slick-initialized {
    opacity: 1;
}

/* États de focus pour l'accessibilité */
.theros-category-card:focus {
    outline: 2px solid #008080;
    outline-offset: 4px;
}

.theros-category-card:focus:not(:focus-visible) {
    outline: none;
}

/* Espacement entre les slides */
.theros-categories-slider .slick-slide {
    margin: 0;
}

/* Container ajustement */
@media (min-width: 1200px) {
    .theros-categories-section .container {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .theros-categories-section .container {
        max-width: 1320px;
    }
}