/* CloudLode Collector Profile - Frontend Styles */

.clcp-achievement-badges-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.clcp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.clcp-section-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clcp-section-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.clcp-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
}

.clcp-new-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
}

.clcp-section-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.clcp-section-count {
    background: #1e293b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #94a3b8;
}

.clcp-section-count span {
    color: #f59e0b;
    font-weight: 600;
}

.clcp-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1e293b, transparent);
    margin: 20px 0;
}

/* Medal Grid */
.clcp-medal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.clcp-medal-card {
    background: linear-gradient(180deg, #111827 0%, #0d1320 100%);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clcp-medal-card:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.clcp-medal-card.clcp-locked {
    opacity: 0.5;
}

.clcp-medal-card.clcp-locked:hover {
    border-color: #334155;
    transform: none;
    box-shadow: none;
}

.clcp-medal-card.clcp-unlocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.clcp-medal-stars {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.clcp-star-filled {
    color: #f59e0b;
}

.clcp-star-empty {
    color: #1e293b;
}

.clcp-medal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    position: relative;
}

.clcp-medal-icon-unlocked {
    background: radial-gradient(circle, #f59e0b 30%, #b45309 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    border: 3px solid #fbbf24;
}

.clcp-medal-icon-locked {
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid #334155;
    filter: grayscale(1);
}

.clcp-medal-name {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.clcp-medal-name-locked {
    color: #475569;
}

.clcp-medal-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.clcp-medal-rarity {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.clcp-rarity-legendary {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.clcp-rarity-epic {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.clcp-rarity-rare {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.clcp-rarity-common {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* 自定义稀有度 — 尊贵金红渐变样式 */
.clcp-rarity-custom {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(180, 83, 9, 0.18) 100%);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.45);
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
}

.clcp-medal-status {
    font-size: 11px;
    color: #475569;
    margin-top: 6px;
}

.clcp-medal-status.clcp-unlocked {
    color: #22c55e;
}

.clcp-unlock-hint {
    font-size: 11px;
    color: #475569;
    margin-top: 4px;
}

/* Modal */
.clcp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.clcp-modal-overlay.active {
    display: flex;
}

.clcp-modal {
    background: linear-gradient(180deg, #111827 0%, #0a0e1a 100%);
    border: 1px solid #1e293b;
    border-radius: 20px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.clcp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #1e293b;
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
}

.clcp-modal-close:hover {
    background: #334155;
    color: #f1f5f9;
}

.clcp-modal-header {
    text-align: center;
    padding: 32px 24px 16px;
    border-bottom: 1px solid #1e293b;
}

.clcp-modal-medal-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    background: radial-gradient(circle, #f59e0b 30%, #b45309 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.2);
    border: 4px solid #fbbf24;
}

.clcp-modal-medal-name {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.clcp-modal-medal-rarity {
    margin-bottom: 12px;
}

.clcp-modal-body {
    padding: 24px;
}

.clcp-modal-section {
    margin-bottom: 24px;
}

.clcp-modal-section-title {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clcp-modal-desc {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
}

.clcp-benefits-list {
    list-style: none;
}

.clcp-benefits-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clcp-benefit-locked {
    color: #475569;
}

.clcp-obtained-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.clcp-modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
}

.clcp-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.clcp-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0a0e1a;
}

.clcp-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.clcp-btn-secondary {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

.clcp-btn-secondary:hover {
    background: #334155;
}

@media (max-width: 768px) {
    .clcp-medal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .clcp-medal-card {
        padding: 16px 12px;
    }
    .clcp-medal-icon {
        width: 56px;
        height: 56px;
    }
    .clcp-medal-icon-unlocked,
    .clcp-medal-icon-locked {
        font-size: 20px;
    }
}
