/* ============================================
   알림 배너 스타일
   ============================================ */

.alert-banner {
  position: relative;
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 0;
  animation: slideDown 0.5s ease-out;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 100px;
    padding: 16px 20px;
  }
  to {
    opacity: 0;
    max-height: 0;
    padding: 0 20px;
  }
}

/* 알림 타입별 색상 - 라이트모드 */
.alert-banner.alert-info {
  background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%) !important;
  color: #052c65 !important;
}

.alert-banner.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%) !important;
  color: #664d03 !important;
}

.alert-banner.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%) !important;
  color: #58151c !important;
}

.alert-banner.alert-success {
  background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%) !important;
  color: #0a3622 !important;
}

/* 알림 내부 구조 */
.alert-banner .alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.alert-banner .alert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.alert-banner .alert-text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-banner .alert-title {
  font-size: 16px !important;
  font-weight: 700 !important;
}

.alert-banner .alert-message {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.alert-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
  color: currentColor;
}

.alert-close:hover {
  opacity: 1;
}

/* 다크모드 - 사이트 테마 설정 기반 */
[data-theme="dark"] .alert-banner.alert-info {
  background: linear-gradient(135deg, #122e54 0%, #0a1e39 100%) !important;
  color: #bfdbfe !important;
}

[data-theme="dark"] .alert-banner.alert-warning {
  background: linear-gradient(135deg, #5d380c 0%, #3d2306 100%) !important;
  color: #fef08a !important;
}

[data-theme="dark"] .alert-banner.alert-danger {
  background: linear-gradient(135deg, #551616 0%, #380d0d 100%) !important;
  color: #fecaca !important;
}

[data-theme="dark"] .alert-banner.alert-success {
  background: linear-gradient(135deg, #113e24 0%, #092615 100%) !important;
  color: #bbf7d0 !important;
}

[data-theme="dark"] .alert-banner {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .alert-close {
  background: none;
  border: none;
}

/* 반응형 */
@media (max-width: 768px) {
  .alert-banner {
    padding: 12px 16px;
  }
  
  .alert-icon {
    font-size: 20px;
  }
  
  .alert-title {
    font-size: 14px;
  }
  
  .alert-message {
    font-size: 13px;
  }
}
