/**
 * Dealy - PWA 업데이트 알림 스타일
 */

.update-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  max-width: 500px;
  width: calc(100% - 32px);
  
  z-index: 10000;
  
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.update-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.update-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.update-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.update-text {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.update-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.update-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.update-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.update-btn:active {
  transform: translateY(0);
}

.update-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.update-close:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

/* 모바일 최적화 */
@media (max-width: 480px) {
  .update-notification {
    top: 60px;
    width: calc(100% - 24px);
  }
  
  .update-content {
    padding: 12px;
  }
  
  .update-icon {
    width: 36px;
    height: 36px;
  }
  
  .update-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .update-title {
    font-size: 14px;
  }
  
  .update-subtitle {
    font-size: 12px;
  }
  
  .update-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}
