/* ==========================================
   김프존 프리미엄 기능 스타일
   - 즐겨찾기
   - 알림 설정
   - 알림함
   - 김프 계산기
   ========================================== */

/* ==========================================
   1. 즐겨찾기 (Favorites)
   ========================================== */

.favorite-star {
    cursor: pointer;
    font-size: 1rem;
    margin-right: 0.5rem;
    transition: transform 0.2s;
    user-select: none;
    display: inline-block;
}

.favorite-star:hover {
    transform: scale(1.3);
}

.favorites-filter-btn {
    padding: 0.5rem 1rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 0.5rem;
    color: #e4e4e7;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.favorites-filter-btn:hover {
    background: #3f3f46;
}

.favorites-filter-btn.active {
    background: #fbbf24;
    color: #000;
    border-color: #fbbf24;
}

.favorite-item {
    padding: 0.75rem;
    background: #27272a;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #3f3f46;
    transition: all 0.2s;
}

.favorite-item:hover {
    border-color: #52525b;
    background: #2d2d30;
}

.favorite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.favorite-symbol {
    font-weight: 700;
    color: #e4e4e7;
    font-size: 0.9375rem;
}

.favorite-remove {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    transition: color 0.2s;
}

.favorite-remove:hover {
    color: #ef4444;
}

.favorite-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.favorite-price {
    color: #a1a1aa;
}

.favorite-premium {
    font-weight: 600;
}

/* ==========================================
   2. 알림 설정 (Alert Settings)
   ========================================== */

.alert-setting-item {
    padding: 0.75rem;
    background: #27272a;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #3f3f46;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.alert-setting-item:hover {
    border-color: #52525b;
}

.alert-setting-item.inactive {
    opacity: 0.5;
}

.alert-info {
    flex: 1;
}

.alert-coin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.alert-symbol {
    font-weight: 700;
    color: #e4e4e7;
    font-size: 0.9375rem;
}

.alert-exchange {
    font-size: 0.75rem;
    color: #71717a;
    background: #3f3f46;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.alert-condition {
    font-size: 0.875rem;
    color: #a1a1aa;
}

.alert-actions {
    display: flex;
    gap: 0.5rem;
}

.alert-toggle-btn,
.alert-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s;
}

.alert-toggle-btn:hover {
    transform: scale(1.2);
}

.alert-remove-btn {
    color: #71717a;
}

.alert-remove-btn:hover {
    color: #ef4444;
}

/* ==========================================
   3. 알림함 (Alert History)
   ========================================== */

.alert-history-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}

.alert-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #3f3f46;
}

.alert-filter-tab {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.alert-filter-tab:hover {
    color: #e4e4e7;
}

.alert-filter-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.alert-history-list {
    max-height: 500px;
    overflow-y: auto;
}

.alert-date-group {
    margin-bottom: 1.5rem;
}

.alert-date-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #71717a;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.alert-history-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #27272a;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #3f3f46;
}

.alert-history-item:hover {
    background: #2d2d30;
    border-color: #52525b;
}

.alert-history-item.unread {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-item-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.alert-item-indicator.unread-indicator {
    background: #3b82f6;
}

.alert-item-content {
    flex: 1;
}

.alert-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.alert-item-coin {
    font-weight: 700;
    color: #e4e4e7;
    font-size: 0.9375rem;
}

.alert-item-exchange {
    font-size: 0.75rem;
    color: #71717a;
    background: #3f3f46;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.alert-item-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: #71717a;
}

.alert-item-message {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin-bottom: 0.25rem;
}

.alert-item-premium {
    font-size: 0.875rem;
    font-weight: 600;
}

.alert-item-delete {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.alert-item-delete:hover {
    color: #ef4444;
}

/* ==========================================
   4. 김프 계산기 (Calculator)
   ========================================== */

.modal-content-medium {
    max-width: 600px;
}

.quick-amounts {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-amount-btn {
    flex: 1;
    padding: 0.5rem;
    background: #3f3f46;
    border: 1px solid #52525b;
    border-radius: 0.375rem;
    color: #e4e4e7;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amount-btn:hover {
    background: #52525b;
    border-color: #71717a;
}

.price-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-info-item {
    background: #27272a;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #3f3f46;
}

.price-label {
    display: block;
    font-size: 0.75rem;
    color: #71717a;
    margin-bottom: 0.5rem;
}

.price-input {
    width: 100%;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 0.375rem;
    padding: 0.5rem;
    color: #e4e4e7;
    font-size: 0.875rem;
}

.current-premium {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem;
}

.fee-settings {
    background: #27272a;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #3f3f46;
}

.fee-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 0.75rem;
}

.fee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.fee-item label {
    display: block;
    font-size: 0.75rem;
    color: #71717a;
    margin-bottom: 0.25rem;
}

.fee-input {
    width: 100%;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 0.375rem;
    padding: 0.5rem;
    color: #e4e4e7;
    font-size: 0.875rem;
}

.calculator-result {
    background: #27272a;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #3f3f46;
}

.calculator-result h3 {
    font-size: 0.9375rem;
    color: #e4e4e7;
    margin-bottom: 0.75rem;
}

.result-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.result-label {
    color: #a1a1aa;
}

.result-value {
    color: #e4e4e7;
    font-weight: 500;
}

.result-divider {
    height: 1px;
    background: #3f3f46;
    margin: 0.5rem 0;
}

.result-total {
    font-weight: 600;
}

.result-profit {
    font-size: 1rem;
    font-weight: 700;
}

.result-profit-rate {
    font-weight: 700;
}

.profit-positive {
    color: #10b981 !important;
}

.profit-negative {
    color: #ef4444 !important;
}

.calculator-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.calculator-warning p {
    font-size: 0.75rem;
    color: #fbbf24;
    margin: 0.25rem 0;
}

/* ==========================================
   공통 스타일
   ========================================== */

.btn-text {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #e4e4e7;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 스크롤바 스타일 */
.alert-history-list::-webkit-scrollbar {
    width: 6px;
}

.alert-history-list::-webkit-scrollbar-track {
    background: #18181b;
    border-radius: 3px;
}

.alert-history-list::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 3px;
}

.alert-history-list::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}
