/* ============================================
   FF Carousel — Featured Business Carousel
   ============================================ */

/* === Container === */
.ffc-carousel {
    position: relative;
    width: 100%;
    height: var(--ffc-height, 500px);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin: 0 auto 2rem;
}

/* === Track & Slides === */
.ffc-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.ffc-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.ffc-slide--active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* === Background Image === */
.ffc-slide__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* === Gradient Overlay === */
.ffc-slide__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 3;
}

/* === Content === */
.ffc-slide__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2.5rem;
    z-index: 4;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ffc-slide__content:hover .ffc-slide__cta {
    background: #fff;
    color: #1a1a1a;
}

/* === Tier Badge === */
.ffc-slide__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ffc-badge--founding {
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #1a1a1a;
}

.ffc-badge--premium {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

/* === Title === */
.ffc-slide__title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* === Subtitle === */
.ffc-slide__subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.85;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* === CTA Button === */
.ffc-slide__cta {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.25s ease;
    background: transparent;
}

/* === Arrow Controls === */
.ffc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.ffc-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.ffc-arrow--prev {
    left: 16px;
}

.ffc-arrow--next {
    right: 16px;
}

/* === Dot Indicators === */
.ffc-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ffc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.ffc-dot--active,
.ffc-dot:hover {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* === Pause Button === */
.ffc-pause {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.ffc-pause:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* === Responsive === */
@media (max-width: 768px) {
    .ffc-carousel {
        height: calc(var(--ffc-height, 500px) * 0.7);
        border-radius: 8px;
    }

    .ffc-slide__title {
        font-size: 1.3rem;
    }

    .ffc-slide__subtitle {
        font-size: 0.85rem;
    }

    .ffc-slide__content {
        padding: 1.5rem;
    }

    .ffc-slide__cta {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .ffc-arrow {
        width: 36px;
        height: 36px;
    }

    .ffc-arrow--prev {
        left: 8px;
    }

    .ffc-arrow--next {
        right: 8px;
    }

    .ffc-slide__badge {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .ffc-carousel {
        height: calc(var(--ffc-height, 500px) * 0.55);
        border-radius: 6px;
    }

    .ffc-slide__title {
        font-size: 1.1rem;
    }

    .ffc-slide__cta {
        display: none;
    }

    .ffc-dots {
        bottom: 10px;
    }

    .ffc-dot {
        width: 8px;
        height: 8px;
    }
}