/* Textway Website - Global Styles */

/* 폰트 설정 - Noto Sans 적용 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Sans:wght@300;400;500;700&display=swap');

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

body {
  font-family: 'Noto Sans KR', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  z-index: 1000;
  height: 64px;
}

.site-header.minimal {
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo img {
  height: 28px;
  width: auto;
}

/* Navigation Styles */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav.minimal {
  gap: 24px;
}

.nav-group {
  position: relative;
}

.nav-parent {
  background: none;
  border: none;
  color: #333;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
  transition: color 0.2s ease;
}

.nav-parent:hover {
  color: #111;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.nav-group:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.nav-dropdown a:hover {
  background: #f8f9fa;
  color: #333;
}

.minimal-playground {
  background: #333;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.minimal-playground:hover {
  background: #555;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav {
  transform: translateX(0);
}

.mobile-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav .nav-group {
  margin-bottom: 16px;
}

.mobile-nav .nav-parent {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav .nav-dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  border: none;
  box-shadow: none;
  padding: 8px 0 0 16px;
  background: transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav .nav-dropdown.active {
  max-height: 200px;
}

.mobile-nav .minimal-playground {
  display: block;
  margin-top: 24px;
  text-align: center;
}

/* Main Content Spacing */
main {
  padding-top: 64px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: #333;
  color: #fff;
}

.btn-primary:hover {
  background: #555;
  transform: translateY(-1px);
}

.btn--primary {
  background: #333;
  color: #fff;
}

.btn--primary:hover {
  background: #555;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #333;
  border: 1px solid #e8e8e8;
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #ddd;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 16px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Highlight Colors */
.highlight-blue {
  color: #007bff;
}

.highlight-yellow {
  color: #ffc107;
}

/* Footer Styles - Basic styles only, detailed styles in privacy.css */
.footer-minimal {
  background: #f8f9fa;
  border-top: 1px solid #e8e8e8;
  padding: 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-inner.minimal {
  gap: 32px;
}

.footer-logo-social img {
  height: 24px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-links.minimal {
  gap: 32px;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group span {
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.footer-group a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-group a:hover {
  color: #333;
}

.footer-lang select {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
}

.footer-line {
  height: 1px;
  background: #e8e8e8;
  margin: 32px 0 16px 0;
}

.footer-copyright {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
}

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

/* Responsive styles for footer */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

footer:not(.footer-minimal) .footer-group a {
    display: block;
    color: #7a8b9a;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
    font-weight: 300;
}

footer:not(.footer-minimal) .footer-group a:hover {
    color: white;
}

footer:not(.footer-minimal) .footer-lang select {
    background: #34495e;
    color: white;
    border: 1px solid #4a5f7a;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}