/**
 * Pokeca Cards Slider Styles
 *
 * @package Pokeca
 */

/* ==========================================================================
   コンテナ
   ========================================================================== */

.pokeca-cards-slider-container {
    width: 100%;
    padding: 10px 0;
    margin: 20px 0;
}

/* 親要素からのwhite-space継承を防ぐ */
.pokeca-cards-slider-container,
.pokeca-cards-slider-container * {
    white-space: normal;
}

.pokeca-cards-swiper {
    width: 100%;
    padding-bottom: 40px;
}

/* ==========================================================================
   スライドカード
   ========================================================================== */

.pokeca-slider-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pokeca-slider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.pokeca-slider-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   カード画像
   ========================================================================== */

.pokeca-slider-card-image {
    aspect-ratio: 63 / 88;
    overflow: hidden;
    background: #f0f0f1;
}

.pokeca-slider-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pokeca-slider-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #646970;
    font-size: 12px;
}

/* ==========================================================================
   カード情報
   ========================================================================== */

.pokeca-slider-card-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pokeca-slider-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pokeca-slider-card-rarity {
    font-size: 11px;
    color: #0073aa;
    font-weight: 500;
}

.pokeca-slider-card-memo {
    font-size: 10px;
    color: #646970;
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.pokeca-slider-card-price {
    font-size: 14px;
    color: #d63638;
    font-weight: 700;
}

/* 価格差分 */
.pokeca-slider-price-diff {
    font-size: 11px;
    font-weight: 600;
    margin-left: 2px;
}

.pokeca-slider-price-up {
    color: #d63638;
}

.pokeca-slider-price-down {
    color: #00a32a;
}

/* ==========================================================================
   ナビゲーションボタン
   ========================================================================== */

.pokeca-cards-swiper .swiper-button-prev,
.pokeca-cards-swiper .swiper-button-next {
    color: #0073aa;
    background: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

/* ==========================================================================
   ページネーション
   ========================================================================== */

.pokeca-cards-swiper .swiper-pagination-bullet {
    background: #0073aa;
}

.pokeca-cards-swiper .swiper-pagination-bullet-active {
    background: #005a87;
}

/* ==========================================================================
   レスポンシブ - スマホ (480px以下)
   ========================================================================== */

@media screen and (max-width: 480px) {
    .pokeca-slider-card-info {
        padding: 8px;
    }

    .pokeca-slider-card-name {
        font-size: 12px;
    }

    .pokeca-slider-card-rarity {
        font-size: 10px;
    }

    .pokeca-slider-card-memo {
        font-size: 9px;
        padding: 1px 4px;
    }

    .pokeca-slider-card-price {
        font-size: 13px;
    }

    .pokeca-slider-price-diff {
        font-size: 10px;
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    .pokeca-cards-swiper .swiper-button-prev,
    .pokeca-cards-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .pokeca-cards-swiper .swiper-button-prev:after,
    .pokeca-cards-swiper .swiper-button-next:after {
        font-size: 14px;
    }
}

/* ==========================================================================
   レスポンシブ - タブレット (768px以下)
   ========================================================================== */

@media screen and (max-width: 768px) {
    .pokeca-cards-slider-container {
        margin: 15px 0;
    }
}
