/**
 * 알림 메시지 개선된 디자인
 */

/* 기본 알림 스타일 */
.alert {
    position: relative;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

/* 성공 메시지 - 금색 테마 */
.alert-success {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    border-left: 4px solid #d4af37;
    font-weight: 500;
}

.alert-success strong {
    color: #000;
    font-weight: 700;
}

/* 에러 메시지 */
.alert-danger {
    background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
    color: #fff;
    border-left: 4px solid #cc0000;
}

.alert-danger strong {
    color: #fff;
    font-weight: 700;
}

/* 정보 메시지 */
.alert-info {
    background: linear-gradient(135deg, #36a2eb 0%, #5cb3f9 100%);
    color: #fff;
    border-left: 4px solid #0066cc;
}

/* 경고 메시지 */
.alert-warning {
    background: linear-gradient(135deg, #ff9f40 0%, #ffb366 100%);
    color: #000;
    border-left: 4px solid #ff6600;
}

/* 닫기 버튼 개선 */
.alert .btn-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.alert .btn-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) rotate(90deg);
}

/* 성공 메시지 전용 닫기 버튼 */
.alert-success .btn-close {
    background: rgba(0, 0, 0, 0.1);
}

.alert-success .btn-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 애니메이션 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 페이드 아웃 애니메이션 */
.alert.fade-out {
    animation: fadeOut 0.4s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* 아이콘 스타일 */
.alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.2rem;
}

/* 플래시 메시지 컨테이너 */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 500px;
    width: calc(100% - 40px);
}

@media (max-width: 768px) {
    .flash-messages {
        top: 70px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
    
    .alert {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* 토스트 스타일 알림 (선택적) */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 300px;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
    animation: slideUp 0.4s ease-out;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 금색 강조 효과 */
.gold-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
}