/* ================================
   트레이너 카드 스타일 - 블랙 모던 테마
================================ */

/* 트레이너 카드 컨테이너 (마이룸 내) */
.trainer-card-section {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* 트레이너 카드 - 골드 액센트 */
.trainer-card-section .trainer-card {
    width: 320px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(30, 30, 30, 0.95) 50%, rgba(212, 175, 55, 0.15) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.trainer-card-section .trainer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.trainer-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.trainer-card-avatar {
    width: 64px;
    height: 64px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.trainer-card-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.trainer-card-title {
    font-size: 12px;
    opacity: 0.9;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: #000;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
}

.trainer-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

.trainer-card-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 8px;
}

.trainer-card-stat .value {
    font-size: 20px;
    font-weight: 700;
    display: block;
    color: var(--gold-primary);
}

.trainer-card-stat .label {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 4px;
    color: var(--text-secondary);
}

.trainer-card-featured {
    margin-top: 16px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.trainer-card-featured img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.trainer-card-featured .featured-info {
    flex: 1;
}

.trainer-card-featured .featured-label {
    font-size: 10px;
    color: var(--text-secondary);
}

.trainer-card-featured .featured-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 도감 비교 모달 - 밝은 테마 */
.compare-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: #ffffff !important;
    border: 1px solid #dee2e6;
    color: #2c3e50 !important;
}

/* 도감 비교 모달 제목 */
#compare-modal .compare-modal-content h2 {
    color: #1a237e !important;
    font-weight: 700;
}

#compare-modal .compare-modal-content p {
    color: #2c3e50 !important;
    font-weight: 500;
}

.compare-summary {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin-bottom: 16px;
}

.compare-summary-item {
    text-align: center;
}

.compare-summary-item .count {
    font-size: 24px;
    font-weight: 700;
}

.compare-summary-item .label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.compare-summary-item.mine .count {
    color: #22c55e;
}

.compare-summary-item.theirs .count {
    color: #06b6d4;
}

.compare-section {
    margin-bottom: 20px;
}

.compare-section h4 {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
    color: #1a237e;
    font-weight: 700;
}

.compare-section h4.i-have {
    color: #15803d;
    border-color: #22c55e;
}

.compare-section h4.they-have {
    color: #0891b2;
    border-color: #06b6d4;
}

.compare-pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}

.compare-pokemon-item {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.compare-pokemon-item:hover {
    transform: scale(1.05);
    background: #e9ecef;
    border-color: #d4af37;
}

.compare-pokemon-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.compare-pokemon-item .name {
    font-size: 10px;
    color: #1a237e;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.compare-pokemon-item.tradeable {
    background: #dcfce7;
    border: 1px solid #22c55e;
    cursor: pointer;
}

.compare-pokemon-item.tradeable:hover {
    background: #bbf7d0;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.compare-pokemon-item.tradeable .name {
    color: #15803d;
}

.compare-empty {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-size: 14px;
}

/* 도감 비교 모달 닫기 버튼 */
#compare-modal .btn-secondary {
    background: #6c757d !important;
    color: #ffffff !important;
    border: 1px solid #5a6268 !important;
    margin-top: 20px;
    width: 100%;
}

#compare-modal .btn-secondary:hover {
    background: #5a6268 !important;
    border-color: #495057 !important;
}

/* 트레이너 페이지 도감 비교 버튼 */
.trainer-card-with-compare {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-compare {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--neon-cyan), #0099cc);
    color: #000;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-compare:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.4);
}

/* 반응형 */
@media (max-width: 480px) {
    .trainer-card {
        width: 100%;
        max-width: 320px;
    }

    .compare-modal-content {
        max-width: 100%;
    }
}
