/**
 * 🎰 소환 페이지 프리미엄 스타일
 * NIKKE + Blue Archive 스타일
 */

/* ===== 소환 컨테이너 ===== */
#content-summon {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== 배너 캐러셀 ===== */
.current-banner {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-banner:hover {
    border-color: #6B5CE7;
    box-shadow: 0 0 30px rgba(107, 92, 231, 0.4);
}

.banner-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.2), transparent 60%);
    pointer-events: none;
}

.banner-content {
    display: flex;
    height: 200px;
    position: relative;
    z-index: 1;
}

.banner-image {
    width: 40%;
    object-fit: cover;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.banner-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.banner-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.banner-countdown {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
}

/* 배너 인디케이터 */
.banner-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
}

.banner-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicator.active {
    background: #6B5CE7;
    transform: scale(1.3);
}

/* ===== 소환 버튼 ===== */
.summon-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.summon-btn {
    position: relative;
    padding: 20px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.summon-btn.normal {
    background: linear-gradient(135deg, #4a4a6a, #2d2d4a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.summon-btn.premium {
    background: linear-gradient(135deg, #6B5CE7, #8B5CF6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(107, 92, 231, 0.4);
}

.summon-btn.gold {
    background: linear-gradient(135deg, #FFD700, #FF9800);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.summon-btn:hover {
    transform: translateY(-3px);
}

.summon-btn .count {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.summon-btn .cost {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 10연차 반짝임 효과 */
.summon-btn.premium::before,
.summon-btn.gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 60%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ===== 천장 카운터 ===== */
.pity-counter {
    background: var(--bg-card);
    border: 1px solid var(--accent-danger);
    border-radius: 16px;
    padding: 20px;
}

.pity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pity-title {
    color: #EF5350;
    font-weight: bold;
    font-size: 1rem;
}

.pity-value {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.pity-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.pity-fill {
    height: 100%;
    background: linear-gradient(90deg, #EF5350, #FF9800);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* ===== 확률표 ===== */
.probability-info {
    background: var(--bg-glass);
    border-radius: 12px;
    padding: 15px;
}

.prob-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prob-row:last-child {
    border-bottom: none;
}

.prob-rarity {
    font-weight: bold;
}

.prob-value {
    color: #aaa;
}

/* ===== 시네마틱 오버레이 ===== */
#summon-cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 40%, #1a1a3e, #000);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cinematic-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: float-up 3s ease-out infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* 결과 카드 */
.result-card {
    position: relative;
    width: 200px;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    animation: card-reveal 0.8s ease-out;
}

@keyframes card-reveal {
    0% {
        transform: scale(0.5) rotateY(90deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotateY(0);
    }

    100% {
        transform: scale(1) rotateY(0);
        opacity: 1;
    }
}

.result-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.result-card .name {
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-weight: bold;
}

/* 등급별 카드 테두리 */
.result-card.rarity-UR {
    border: 3px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.result-card.rarity-SSR {
    border: 3px solid #EF5350;
    box-shadow: 0 0 20px rgba(239, 83, 80, 0.5);
}

.result-card.rarity-SR {
    border: 3px solid #FF7043;
    box-shadow: 0 0 15px rgba(255, 112, 67, 0.4);
}

/* 배치 그리드 */
.batch-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 30px;
}

@media (max-width: 800px) {
    .batch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .batch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   🌞 라이트 모드 - 소환 탭
   Blue Archive 청량 스타일
   ======================================== */

[data-theme="light"] .current-banner {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1),
            rgba(255, 255, 255, 0.95));
    border: 2px solid rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .current-banner:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .banner-glow {
    background: radial-gradient(circle at 50% 30%,
            rgba(59, 130, 246, 0.2), transparent 60%);
}

[data-theme="light"] .banner-title {
    color: #1e40af;
    text-shadow: none;
}

[data-theme="light"] .banner-description {
    color: #64748b;
}

[data-theme="light"] .banner-countdown {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .banner-indicator {
    background: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .banner-indicator.active {
    background: #3b82f6;
}

/* 소환 버튼 */
[data-theme="light"] .summon-btn.normal {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e293b;
}

[data-theme="light"] .summon-btn.premium {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .summon-btn.gold {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* 천장 카운터 */
[data-theme="light"] .pity-counter {
    background: linear-gradient(135deg,
            rgba(239, 68, 68, 0.1),
            rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .pity-title {
    color: #dc2626;
}

[data-theme="light"] .pity-value {
    color: #1e293b;
}

[data-theme="light"] .pity-bar {
    background: rgba(0, 0, 0, 0.1);
}

/* 확률표 */
[data-theme="light"] .probability-info {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .prob-row {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .prob-value {
    color: #64748b;
}

/* 시네마틱 오버레이 - 그대로 유지 (다크 느낌이 맞음) */

/* 결과 카드 */
[data-theme="light"] .result-card .name {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
}