/* Basic container */
.wac-carousel-container {
    max-width: 1200px;
    margin: 2rem auto 4rem auto;
    padding: 0 1rem;
    position: relative;
}

/* Card styling */
.creator-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 1rem;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.creator-card:hover {
    transform: translateY(-5px);
}

/* Image section — applies to the actual rendered markup (.wac-image-container).
   Enforces a uniform 4:5 portrait crop regardless of source image aspect ratio. */
.wac-image-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f2f2f2; /* fallback if image fails to load */
}

.wac-image-container > a,
.wac-image-container > a > img,
.wac-image-container > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* favor faces over feet when cropping */
}

/* Autoplay progress bar (top of carousel, fills over autoplay duration) */
.wac-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 175, 240, 0.15);
    z-index: 2;
    overflow: hidden;
    border-radius: 2px;
    pointer-events: none;
}

.wac-progress-fill {
    position: absolute;
    inset: 0;
    background: #00aff0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Info section */
.creator-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: auto;
}

.creator-info h3 {
    margin: 0 0 1rem 0;
    padding: 0;
    font-size: 1.25rem;
    color: #333;
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Metrics styling */
.creator-metrics {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.75rem 0 1.5rem 0;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #666;
}

.metric .icon {
    font-size: 1rem;
}

.metric .value {
    font-weight: 500;
}

.metric.price {
    color: #00aff0;
    font-weight: 600;
}

/* Button section */
.creator-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.btn {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    line-height: 1;
    font-size: 0.9rem;
    min-width: 120px;
}

.btn-learn {
    background-color: transparent;
    color: #00aff0;
    border: 2px solid #00aff0;
}

.btn-learn:hover {
    background-color: rgba(0, 175, 240, 0.1);
}

.btn-follow {
    background-color: #00aff0;
    color: #fff;
}

.btn-follow:hover {
    background-color: #0095d9;
}

/* Swiper specific styles */
.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: #00aff0;
    background-color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #00aff0;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .creator-metrics {
        gap: 0.5rem;
    }

    .btn {
        min-width: 100px;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .creator-info h3 {
        font-size: 1.1rem;
        height: 35px;
    }

    .metric {
        font-size: 0.8rem;
    }
}
