/* 실버라이프 PWA 스타일 */

/* 앱 설치 프롬프트 (제거됨) */

/* 알림 스타일 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  animation: slideIn 0.3s ease-out;
  border-left: 4px solid #48bb78;
}

.notification-success {
  border-left-color: #48bb78;
}

.notification-warning {
  border-left-color: #ed8936;
}

.notification-error {
  border-left-color: #e53e3e;
}

.notification-content {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-message {
  flex: 1;
  margin-right: 1rem;
  font-size: 0.95rem;
  color: #2d3748;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #718096;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.notification-close:hover {
  background-color: #f7fafc;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 로딩 오버레이 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #48bb78;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: #4a5568;
  font-size: 1.1rem;
  margin: 0;
}

/* 뒤로가기 버튼 (모바일) */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  color: #2d3748;
  padding: 0.75rem 1rem;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.back-button:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 터치 친화적 스타일 */
button, a, input[type="submit"], input[type="button"] {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .back-button {
    top: 10px;
    left: 10px;
  }
  
  .nav-links {
    min-height: 70px;
    height: 70px;
  }
  .nav-links li {
    flex: 1;
    text-align: center;
  }
  .nav-links a {
    color: #4a5568;
    font-size: 1.05rem;
    padding: 0.5rem 0 0.2rem 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-height: 70px;
    height: 70px;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
    font-weight: 600;
    line-height: 1.2;
  }
  .nav-links a::before {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
    line-height: 1;
  }
}

/* PWA 앱 모드 스타일 */
@media (display-mode: standalone) {
  body {
    padding-top: 0;
  }
  
  .navbar {
    padding-top: env(safe-area-inset-top);
  }
  
  .back-button {
    top: calc(20px + env(safe-area-inset-top));
  }
  
  .notification {
    top: calc(20px + env(safe-area-inset-top));
  }
}

/* 시니어 친화적 터치 영역 */
.touch-friendly {
  min-height: 48px;
  min-width: 48px;
  padding: 12px 16px;
  font-size: 1.1rem;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* 포커스 표시 개선 */
*:focus {
  outline: 2px solid #48bb78;
  outline-offset: 2px;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .notification {
    border-width: 2px;
  }
  
  .back-button {
    border-width: 2px;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .notification {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .back-button {
    background: rgba(45, 55, 72, 0.9);
    color: #e2e8f0;
    border-color: #4a5568;
  }
  
  .loading-overlay {
    background: rgba(26, 32, 44, 0.9);
  }
  
  .loading-spinner p {
    color: #e2e8f0;
  }
} 