/* Shadcn UI 기반 모던 미니멀리즘 테마 */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.5rem;
  --nav-height: 64px;
}

* {
  border-color: hsl(var(--border));
  box-sizing: border-box;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

body.with-fixed-nav {
  padding-top: var(--nav-height);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Shadcn Card Style */
.shadcn-card {
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: var(--radius);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.shadcn-card-header {
  padding-bottom: 1rem;
}

.shadcn-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}

.shadcn-card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.shadcn-card-content {
  padding-top: 0;
}

/* Typography */
.shadcn-h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
}

.shadcn-h2 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 0.5rem;
}

.shadcn-p {
  line-height: 1.75;
  margin-bottom: 1rem;
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

/* Badge */
.shadcn-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* Shadcn Button Variants */
.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 500;
  cursor: pointer;
}

/* Navigation */
.shadcn-nav {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.shadcn-nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.shadcn-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: hsl(var(--foreground));
  white-space: nowrap;
}

.shadcn-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.4vw, 3rem);
}

.shadcn-nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #4b5563;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.shadcn-nav-links a:hover,
.shadcn-nav-links a.active {
  color: #111827;
}

.shadcn-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.nav-utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0;
  border: none;
  background: none;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-utility-link:hover,
.nav-utility-link.active {
  color: #0f172a;
}

.nav-utility-link--login {
  min-height: 42px;
  padding: 0.72rem 1.25rem;
  border: 1px solid #d9ccff;
  border-radius: 9999px;
  background-color: #fcfaff;
  color: #7c5cff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(124, 92, 255, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-utility-link--login:hover,
.nav-utility-link--login.active {
  color: #6c4df5;
  border-color: #cbb8ff;
  background-color: #f7f2ff;
  box-shadow: 0 8px 18px rgba(124, 92, 255, 0.12);
}

.nav-utility-link--emphasis {
  color: #0f3d91;
  font-weight: 700;
}

.nav-utility-link--danger {
  color: #dc2626;
}

button.nav-utility-link {
  cursor: pointer;
}

.nav-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 190px;
  min-height: 42px;
  padding: 0.72rem 1.3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #9b7bff 0%, #7c5cff 55%, #6c4df5 100%);
  box-shadow: 0 8px 18px rgba(124, 92, 255, 0.22);
  text-decoration: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nav-account-link:hover,
.nav-account-link.active {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(124, 92, 255, 0.28);
}

.nav-account-link.mobile {
  width: 100%;
  max-width: none;
  justify-content: center;
}

.nav-account-text {
  display: block;
  max-width: 100%;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile Menu */
.mobile-menu-container {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 40;
  padding: 1.1rem 1.5rem 2rem;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-end;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.55rem;
  align-items: flex-end;
  text-align: right;
}

.mobile-menu-links a {
  font-size: 1.15rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  line-height: 1.45;
}

.mobile-menu-links a.active {
  color: #2538ff;
}

.mobile-menu-container.open {
  display: flex;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: hsl(var(--foreground));
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }

  .shadcn-nav-container {
    display: flex;
    justify-content: space-between;
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .shadcn-logo {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background-color: transparent;
  }

  .mobile-menu-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
  }

  .mobile-menu-actions .nav-utility-link,
  .mobile-menu-actions .nav-account-link {
    min-height: auto;
    width: auto;
    max-width: none;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: right;
  }

  .mobile-menu-actions .nav-account-link.active,
  .mobile-menu-actions .nav-utility-link.active {
    color: #2538ff;
    transform: none;
    box-shadow: none;
  }
}

.modal-signup-link {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.92rem;
  color: hsl(var(--muted-foreground));
}

.modal-signup-link a {
  color: #6c4df5;
  font-weight: 700;
  text-decoration: none;
}

.modal-signup-link a:hover {
  text-decoration: underline;
}

.home-footer {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  background: #12052f;
  color: rgba(255, 255, 255, 0.82);
}

.home-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.25rem;
}

.home-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.home-footer__brand {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.home-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.home-footer__links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.home-footer__links a:hover {
  text-decoration: underline;
}

.home-footer__body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.home-footer__company p,
.home-footer__contact p,
.home-footer__contact a {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.home-footer__contact {
  text-align: left;
}

.home-footer__contact a:hover {
  text-decoration: underline;
}

.home-footer__copy {
  margin: 1.8rem 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

@media (max-width: 768px) {
  .home-footer__inner {
    padding: 1.5rem 1rem 1.75rem;
  }

  .home-footer__top,
  .home-footer__body {
    grid-template-columns: 1fr;
    display: grid;
    gap: 1rem;
  }

  .home-footer__links {
    justify-content: flex-start;
  }

  .home-footer__brand {
    font-size: 1.2rem;
  }

  .home-footer__company p,
  .home-footer__contact p,
  .home-footer__contact a,
  .home-footer__copy {
    font-size: 0.92rem;
  }
}

/* Button Sizes */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Dialog Extensions */
.shadcn-dialog-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
  font-size: 1.25rem;
  opacity: 0.5;
}

.shadcn-dialog-close:hover {
  opacity: 1;
}

.sd-dialog-header {
  margin-bottom: 1.5rem;
}

.sd-dialog-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.sd-dialog-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

/* Labels */
.sd-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Table */
.shadcn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.shadcn-table-head {
  text-align: left;
  padding: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
}

.shadcn-table-cell {
  padding: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.shadcn-table-row:hover {
  background-color: hsl(var(--muted)/0.5);
}

/* Dialog / Modal */
.shadcn-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.shadcn-dialog-content {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
  padding: 1.5rem;
  position: relative;
}

/* Input Style */
.shadcn-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background-color: transparent;
}
