/* 원정대 시스템 스타일 - 다크 모드 통합 */
.expedition-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.expedition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.expedition-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.synergy-bonus-display {
    background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
    color: var(--text-primary);
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-weight: bold;
    border: 1px solid var(--gold-primary);
}

.synergy-icon {
    font-size: 1.2rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.synergy-value {
    font-size: 1.1rem;
    color: var(--neon-cyan);
}

.expedition-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

/* 슬롯 카드 스타일 (다크 모드) */
.exp-slot-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    position: relative;
    border: var(--card-border);
}

.exp-slot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--gold-primary);
}

.exp-slot-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-slot-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommended-type-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 타입 뱃지 (선택 그리드 / 진행 중 슬롯) */
.type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    margin: 1px 2px 1px 0;
}

.type-normal { background: #A8A878; }
.type-fire { background: #F08030; }
.type-water { background: #6890F0; }
.type-electric { background: #F8D030; }
.type-grass { background: #78C850; }
.type-ice { background: #98D8D8; }
.type-fighting { background: #C03028; }
.type-poison { background: #A040A0; }
.type-ground { background: #E0C068; }
.type-flying { background: #A890F0; }
.type-psychic { background: #F85888; }
.type-bug { background: #A8B820; }
.type-rock { background: #B8A038; }
.type-ghost { background: #705898; }
.type-dragon { background: #7038F8; }
.type-dark { background: #705848; }
.type-steel { background: #B8B8D0; }
.type-fairy { background: #EE99AC; }

.exp-card-types,
.exp-mini-types {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 4px;
}

.exp-mini-types {
    justify-content: center;
    margin-top: 4px;
}

/* 슬롯 상태별 스타일 */
.exp-slot-body {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

/* 비어있는 슬롯 */
.exp-slot-card.empty .exp-slot-body {
    background: rgba(255, 255, 255, 0.01);
}

.empty-slot-msg {
    text-align: center;
    color: var(--text-muted);
}

.empty-slot-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.15;
    color: var(--text-primary);
}

/* 원정 중인 슬롯 */
.exp-pokemon-stage {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.exp-pokemon-mini {
    width: 85px;
    height: 85px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-pokemon-mini img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.type-match-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--neon-green);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}

.exp-progress-container {
    width: 100%;
    text-align: center;
}

.exp-time-elapsed {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold-light);
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 0 10px rgba(240, 208, 96, 0.2);
}

.exp-reward-preview {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 20px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.95rem;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.preview-item span:first-child {
    font-size: 1.1rem;
}

/* 수령 가능 알림 */
.exp-slot-card.claimable {
    border-color: var(--gold-primary);
    animation: border-pulse 2s infinite;
}

@keyframes border-pulse {
    0% {
        border-color: var(--gold-primary);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }

    50% {
        border-color: var(--gold-light);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }

    100% {
        border-color: var(--gold-primary);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
}

/* 잠긴 슬롯 */
.exp-slot-card.locked {
    background: rgba(0, 0, 0, 0.2);
}

.locked-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
}

.unlock-cost {
    background: var(--neon-red);
    color: white;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

/* 대원 선택 모달 내 포켓몬 카드 최적화 */
#expedition-pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    padding: 15px;
}

.pokemon-select-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.pokemon-select-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

.pokemon-select-card img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.pokemon-select-card .info .name {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pokemon-select-card .info .level {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pokemon-select-card.selected {
    border-color: var(--neon-cyan);
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.pokemon-select-card.type-match {
    border-color: var(--neon-green);
    background-color: rgba(0, 255, 136, 0.05);
}

/* 선택 순서(자리) 표시 */
.exp-slot-num {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-cyan);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
    z-index: 1;
}

/* 등급별 희귀도 스타일 개선 */
.rarity {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.rarity-common {
    background: #95a5a6;
    color: white;
}

.rarity-rare {
    background: #3498db;
    color: white;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.rarity-epic {
    background: #9b59b6;
    color: white;
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.6);
}

.rarity-legendary {
    background: #f1c40f;
    color: black;
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.7);
}

.rarity-mythical {
    background: #e74c3c;
    color: white;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.8);
    animation: mythical-glow 2s infinite;
}

@keyframes mythical-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(231, 76, 60, 0.8);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(231, 76, 60, 1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(231, 76, 60, 0.8);
    }
}

/* 원정대원 선택 정보 영역 */
.expedition-selection-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-load-recent {
    background: linear-gradient(135deg, #0984e3, #6c5ce7);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-load-recent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.4);
    filter: brightness(1.1);
}

.btn-load-recent:active {
    transform: translateY(0);
}

/* 필터 컨트롤 스타일 */
.expedition-filter-controls {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px 15px;
    background: rgba(255, 255, 255, 0.02);
}

.expedition-filter-controls input,
.expedition-filter-controls select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    /* 텍스트 보장 */
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* 셀렉트 옵션 가독성 확보 */
.expedition-filter-controls select option {
    background-color: #121212;
    color: white;
}

.expedition-filter-controls input {
    flex: 2;
}

.expedition-filter-controls select {
    flex: 1;
}

.match-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--neon-green);
    color: #000;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
}

/* 원정 중단 버튼 */
.btn-exp-cancel {
    margin-top: 15px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-exp-cancel:hover {
    background: var(--neon-red);
    color: white;
    border-color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
}

/* 버튼 스타일 */
.btn-exp-start {
    width: 85%;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    border: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-exp-start:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-exp-claim {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--gold-light), #e17055);
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-exp-claim:hover {
    filter: brightness(1.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-unlock {
    padding: 12px 30px;
    border-radius: 12px;
    background: var(--gold-primary);
    color: #000;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.btn-unlock:hover {
    background: var(--gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* 정렬 및 요약 섹션 */
.expedition-selection-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.recommended-type-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 반응형 */
@media (max-width: 768px) {
    .expedition-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .expedition-slots-grid {
        grid-template-columns: 1fr;
    }
}