/* ===========================
   SCAFOX Deck Swiper Styling
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500;600&display=swap');

.scafox-cards {
    --scafox-bg: #050816;
    --scafox-bg-soft: #0b1020;
    --scafox-card-bg: #070b12;
    --scafox-card-border: #1a2235;
    --scafox-card-border-active: #FA4302;
    --scafox-text-main: #f5f7ff;
    --scafox-text-muted: #a3afc7;
    --scafox-accent: #FA4302;
    --scafox-shadow-strong: 0 22px 60px rgba(0,0,0,.75);
    --scafox-shadow-soft: 0 14px 36px rgba(0,0,0,.55);
    --scafox-radius-lg: 22px;
    --scafox-radius-pill: 999px;
}

/* outer */
.cards-deck-swiper.scafox-cards {
    min-height: 80vh;
    padding: 80px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at 0% 0%, rgba(250,67,2,0.14), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(124,224,246,0.10), transparent 55%),
        var(--scafox-bg);
    color: var(--scafox-text-main);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.scafox-cards__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    position: relative; /* for watermark */
}

@media (max-width: 880px) {
    .scafox-cards__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

.scafox-cards__heading {
    max-width: 560px;
}

.scafox-cards__title {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(2.8rem, 4vw, 3.6rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: #ffffff;
}

.scafox-cards__subtitle {
    font-size: 1.02rem;
    line-height: 1.5;
    margin: 0 0 18px;
    color: var(--scafox-text-muted);
}

/* stack area */

.cards-deck-swiper .stack-cards {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    max-height: 520px;
    position: relative;
    text-align: center;
    width: 100%;
}

.cards-deck-swiper .control {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    width: 64px;
    z-index: 2;
}

.cards-deck-swiper .control_btn {
    width: 44px;
    height: 44px;
    border-radius: var(--scafox-radius-pill);
    border: none;
    background: radial-gradient(circle at 30% 0%, #ffffff, #ffd1b5 40%, #f36b1f 70%, #8b2a06 100%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
    color: #120602;
    cursor: pointer;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(.25,1,.5,1),
                box-shadow 0.25s cubic-bezier(.25,1,.5,1);
}

.cards-deck-swiper .control_btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.cards-deck-swiper .control_btn:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
}

.cards-deck-swiper .stack {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    max-width: 320px;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 0;
}

.cards-deck-swiper .before {
    padding-top: 140%;
}

.cards-deck-swiper .collection {
    position: absolute;
    inset: 0;
}

.cards-deck-swiper .collection_list {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cards-deck-swiper .list_item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* card */

.cards-deck-swiper .item_card {
    background:
        radial-gradient(circle at 20% 0, rgba(250, 67, 2, 0.2), transparent 55%),
        var(--scafox-card-bg);
    border: 8px solid var(--scafox-card-border);
    box-shadow: var(--scafox-shadow-soft);
    color: var(--scafox-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 26px 20px;
    position: absolute;
    inset: 0;
    border-radius: var(--scafox-radius-lg);
    transition:
        border-color 0.25s cubic-bezier(.25,1,.5,1),
        box-shadow 0.25s cubic-bezier(.25,1,.5,1),
        background 0.25s cubic-bezier(.25,1,.5,1);
}

.cards-deck-swiper .list_item.is--active .item_card {
    border-color: var(--scafox-card-border-active);
    box-shadow: var(--scafox-shadow-strong);
    background:
        radial-gradient(circle at 20% 0, rgba(250, 67, 2, 0.32), transparent 60%),
        var(--scafox-bg-soft);
}

.cards-deck-swiper .card_title {
    flex: 1 1 auto;
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    position: relative;
    z-index: 1;
}

.cards-deck-swiper .card_caption {
    flex: 0 0 auto;
    font-size: 1.02rem;
    line-height: 1.4;
    color: var(--scafox-text-muted);
    position: relative;
    z-index: 1;
}

.cards-deck-swiper .card_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    pointer-events: none;
    transform: scale(1.03);
    filter: contrast(110%) saturate(115%);
    z-index: 0;
}

/* watermark */

.scafox-watermark {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.45;
    font-size: 13px;
    color: var(--scafox-text-muted);
    pointer-events: none;
}

.scafox-watermark img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
