/**
 * Theme Alert Styles
 * 테마 알림 스타일 - 여러 컴포넌트에서 공통으로 사용하는 알림 스타일
 */

/* ===========================================
   알림 색상 변수 (테마 공통)
   =========================================== */

:root {
    /* 알림 색상 변수 */
    --theme-alert-info-bg: #e8f4f8;
    --theme-alert-info-text: #408090;
    --theme-alert-info-border: #b8e6f1;
    
    --theme-alert-warning-bg: #fef3cd;
    --theme-alert-warning-text: #856404;
    --theme-alert-warning-border: #ffeaa7;
    
    --theme-alert-danger-bg: #f8d7da;
    --theme-alert-danger-text: #721c24;
    --theme-alert-danger-border: #f5c6cb;
    
    --theme-alert-success-bg: #d4edda;
    --theme-alert-success-text: #155724;
    --theme-alert-success-border: #c3e6cb;
    
    --theme-alert-primary-bg: #d1ecf1;
    --theme-alert-primary-text: #0c5460;
    --theme-alert-primary-border: #bee5eb;
    
    --theme-alert-secondary-bg: #e2e3e5;
    --theme-alert-secondary-text: #383d41;
    --theme-alert-secondary-border: #d6d8db;
    
    /* radius 변수 */
    --theme-alert-radius: 4px;
}

/* ===========================================
   기본 알림 스타일 (테마 공통)
   =========================================== */

.alert {
    padding: 1rem;
    border-radius: var(--theme-alert-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: var(--theme-font-normal);
    font-size: var(--theme-font-size-body);
    line-height: 1.5;
    visibility: visible;
    border: 1px solid;
    transition: all 0.2s ease;
}

.alert .fa,
.alert .fas,
.alert .far,
.alert .fal,
.alert .fad,
.alert .fab {
    margin-top: 5px;
}

/* ===========================================
   알림 타입별 스타일 (테마 공통)
   =========================================== */

/* 정보 알림 */
.alert-info {
    background: var(--theme-alert-info-bg);
    color: var(--theme-alert-info-text);
    border-color: var(--theme-alert-info-border);
}

/* 경고 알림 */
.alert-warning {
    background: var(--theme-alert-warning-bg);
    color: var(--theme-alert-warning-text);
    border-color: var(--theme-alert-warning-border);
}

/* 위험 알림 */
.alert-danger {
    background: var(--theme-alert-danger-bg);
    color: var(--theme-alert-danger-text);
    border-color: var(--theme-alert-danger-border);
}

/* 성공 알림 */
.alert-success {
    background: var(--theme-alert-success-bg);
    color: var(--theme-alert-success-text);
    border-color: var(--theme-alert-success-border);
}

/* 주요 알림 */
.alert-primary {
    background: var(--theme-alert-primary-bg);
    color: var(--theme-alert-primary-text);
    border-color: var(--theme-alert-primary-border);
}

/* 보조 알림 */
.alert-secondary {
    background: var(--theme-alert-secondary-bg);
    color: var(--theme-alert-secondary-text);
    border-color: var(--theme-alert-secondary-border);
}

/* ===========================================
   알림 변형 스타일 (테마 공통)
   =========================================== */

/* 중앙 정렬 알림 */
.alert-center {
    justify-content: center;
    text-align: center;
}

/* 큰 알림 */
.alert-lg {
    padding: 1.25rem;
    font-size: var(--theme-font-size-input);
}

/* 작은 알림 */
.alert-sm {
    padding: 0.75rem;
    font-size: var(--theme-font-size-small);
}

/* 강조 알림 */
.alert-highlight {
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 간단한 알림 */
.alert-simple {
    justify-content: center;
}

/* 숨김 상태 */
.alert-hidden {
    display: none !important;
}

/* ===========================================
   문구 여백
   =========================================== */
.alert p {
    margin: 0;
}


/* ===========================================
   반응형 디자인 (테마 공통)
   =========================================== */

@media (max-width: 768px) {
    .alert {
        padding: 0.875rem;
        font-size: var(--theme-font-size-small);
        gap: 0.375rem;
    }
    
    .alert-lg {
        padding: 1rem;
        font-size: var(--theme-font-size-body);
    }
}

@media (max-width: 480px) {
    .alert {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}

/* ===========================================
   접근성 개선 (테마 공통)
   =========================================== */

.alert:focus {
    outline: 2px solid var(--theme-main-color);
    outline-offset: 2px;
}


/* ===========================================
   모달 알럿
   =========================================== */

.modal-alert-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-modal-bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    font-family: 'S-CoreDream-3', sans-serif;
}

.modal-alert-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-alert-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #333;
    font-family: 'S-CoreDream-3', sans-serif;
}

.modal-alert-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
    font-family: 'S-CoreDream-3', sans-serif;
}

/* 버튼 스타일은 button-styles.css의 .btn.btn-primary 사용 */

/* 반응형 디자인 */
@media (max-width: 480px) {
    .modal-alert-box {
        padding: 20px;
        margin: 20px;
    }
    
    .modal-alert-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .modal-alert-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .modal-alert-message {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .modal-alert-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* 애니메이션 효과 */
.modal-alert-container {
    animation: modalAlertFadeIn 0.3s ease-out;
}

.modal-alert-box {
    animation: modalAlertSlideIn 0.3s ease-out;
}

@keyframes modalAlertFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalAlertSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}