/**
 * Category Carousel Component Styles
 * Unique class names to avoid conflicts
 */

/* Main container */
.cc-container {
    padding: 3rem 0;
}

.cc-wrapper {
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0.3), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2rem 3.5rem;
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

/* Carousel */
.cc-carousel {
    position: relative;
    padding: 10px 0;
    width: 100%;
}

.cc-carousel .owl-stage-outer {
    border-radius: 12px;
    overflow: hidden;
    padding: 10px 0;
}

.cc-carousel .owl-stage {
    display: flex;
    align-items: flex-start;
}

/* Item */
.cc-item {
    padding: 10px 8px;
    text-align: center;
}

/* Circle container - PERFECT CIRCLE */
.cc-circle {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid #fff;
    position: relative;
    aspect-ratio: 1 / 1;
}

.cc-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A8769 0%, #5d6b50 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cc-circle:hover::before {
    opacity: 1;
}

.cc-circle:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(122, 135, 105, 0.25),
        0 8px 16px rgba(93, 107, 80, 0.15);
}

/* Image - PERFECT CIRCLE */
.cc-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1 / 1;
}

.cc-circle:hover .cc-image {
    transform: scale(1.1);
}

/* Placeholder when no image */
.cc-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-placeholder i {
    font-size: 2.5rem;
    color: #999;
    transition: color 0.3s ease;
}

.cc-circle:hover .cc-placeholder {
    transform: scale(1.1);
}

.cc-circle:hover .cc-placeholder i {
    color: #7A8769;
}

/* Title */
.cc-title {
    padding: 12px 4px 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.cc-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: block;
    transition: color 0.3s ease;
    margin-bottom: 2px;
}

.cc-item:hover .cc-name {
    color: #7A8769;
}

.cc-subtitle {
    font-size: 0.8rem;
    color: #888;
    opacity: 0.9;
}

/* Navigation buttons */
.cc-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.cc-nav-btn:hover {
    background: #7A8769;
    border-color: #7A8769;
    color: #fff;
    box-shadow: 0 6px 20px rgba(122, 135, 105, 0.4);
}

.cc-nav-prev {
    left: 0.5rem;
}

.cc-nav-next {
    right: 0.5rem;
}

.cc-nav-btn i {
    font-size: 1.25rem;
    line-height: 1;
}

/* Empty state */
.cc-empty {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.cc-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .cc-circle {
        width: 110px;
        height: 110px;
    }
    .cc-wrapper {
        padding: 2rem 3rem;
    }
}

@media (max-width: 992px) {
    .cc-circle {
        width: 100px;
        height: 100px;
    }
    .cc-wrapper {
        padding: 1.5rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .cc-circle {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }
    .cc-name {
        font-size: 0.85rem;
    }
    .cc-wrapper {
        padding: 1.5rem 2rem;
    }
    .cc-nav-btn {
        width: 36px;
        height: 36px;
    }
    .cc-nav-prev {
        left: 0.25rem;
    }
    .cc-nav-next {
        right: 0.25rem;
    }
}

@media (max-width: 576px) {
    .cc-circle {
        width: 80px;
        height: 80px;
    }
    .cc-name {
        font-size: 0.8rem;
    }
    .cc-wrapper {
        padding: 1rem 1.5rem;
    }
}
