/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", sans-serif;
  line-height: 1.5;
  color: #1e293b;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Header Styles */
.nav-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0ea5e9;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.logo i {
  font-size: 1.5rem;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: #64748b;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #0ea5e9;
  background: #f0f9ff;
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  white-space: nowrap;
}

.lang-link {
  color: #64748b;
  text-decoration: none;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
  font-weight: 500;
}

.lang-link:hover,
.lang-link.active {
  color: #0ea5e9;
  background: #f0f9ff;
}

.lang-separator {
  color: #cbd5e1;
}

/* Mobile Menu */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-button:hover {
  color: #0ea5e9;
}

/* Responsive Design */
@media (max-width: 640px) {
  .nav-header-container {
    padding: 0 1rem;
    flex-direction: row;
    gap: 1rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .nav.show {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .lang-selector {
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
  }

  .mobile-menu-button {
    display: block;
  }
}

/* 모달 기본 스타일 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.modal-message {
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* 모달 버튼 스타일 */
.modal-button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.modal-cancel {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.modal-cancel:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.modal-delete {
  background-color: #ef4444;
  border: none;
  color: #ffffff;
}

.modal-delete:hover {
  background-color: #dc2626;
}

/* 모달 애니메이션 */
.modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.2s ease-out;
}

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

/* Main Content */
main.container {
  flex: 1;
}

/* Footer Styles */
.footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #0ea5e9;
}

/* Responsive Footer */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-copyright {
    text-align: left;
  }
}
