@charset "UTF-8";

/* =========================================================
   FIGMA LAYOUT CSS
   - Layout.tsx 원본 Tailwind 기준 변환
   - Header / Nav / Dropdown / Mobile Nav / Footer
========================================================= */

/* Header */
.figma-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #f3f4f6;
  backdrop-filter: blur(4px);
}

.figma-header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.figma-header-row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.figma-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.figma-logo-symbol {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.figma-logo-text {
  color: #000000;
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Desktop Nav */
.figma-desktop-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.figma-nav-item {
  position: relative;
}

.figma-nav-link,
.figma-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 200ms ease;
}

.figma-nav-link:hover,
.figma-nav-button:hover,
.figma-nav-item.is-open > .figma-nav-button {
  color: #1f89ff;
}

.figma-nav-arrow {
  width: 12px;
  height: 12px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.figma-nav-item.is-open .figma-nav-arrow {
  transform: rotate(180deg);
}

/* Desktop Dropdown */
.figma-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  padding-top: 12px;
  min-width: 160px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.figma-nav-item.is-open .figma-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.figma-dropdown-box {
  min-width: 160px;
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.10),
    0 4px 6px -4px rgba(0, 0, 0, 0.10);
}

.figma-dropdown-link {
  display: block;
  padding: 8px 16px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.2s ease, background 0.2s ease;
}

.figma-dropdown-link:hover {
  color: #1f89ff;
  background: #eff6ff;
}

/* Mobile Button */
.figma-mobile-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.figma-mobile-toggle:hover {
  background: #f9fafb;
}

.figma-mobile-toggle-line {
  position: relative;
  width: 20px;
  height: 2px;
  background: #111111;
  transition: background 0.2s ease;
}

.figma-mobile-toggle-line::before,
.figma-mobile-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #111111;
  transition: top 0.2s ease, transform 0.2s ease;
}

.figma-mobile-toggle-line::before {
  top: -6px;
}

.figma-mobile-toggle-line::after {
  top: 6px;
}

.figma-mobile-toggle.is-active .figma-mobile-toggle-line {
  background: transparent;
}

.figma-mobile-toggle.is-active .figma-mobile-toggle-line::before {
  top: 0;
  transform: rotate(45deg);
}

.figma-mobile-toggle.is-active .figma-mobile-toggle-line::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.figma-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 49;
  max-height: 80vh;
  overflow-y: auto;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.figma-mobile-menu.is-open {
  display: block;
}

.figma-mobile-menu-inner {
  padding: 12px 16px;
}

.figma-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.figma-mobile-nav-link,
.figma-mobile-nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.figma-mobile-nav-link:hover,
.figma-mobile-nav-button:hover {
  background: #f9fafb;
}

.figma-mobile-nav-button {
  text-align: left;
  color: #374151;
}

.figma-mobile-nav-arrow {
  width: 16px;
  height: 16px;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.figma-mobile-nav-item.is-expanded .figma-mobile-nav-arrow {
  transform: rotate(180deg);
}

.figma-mobile-submenu {
  display: none;
  margin-left: 12px;
  margin-bottom: 4px;
  padding-left: 12px;
  border-left: 1px solid #f3f4f6;
}

.figma-mobile-nav-item.is-expanded .figma-mobile-submenu {
  display: block;
}

.figma-mobile-submenu-link {
  display: block;
  padding: 8px 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.figma-mobile-submenu-link:hover {
  color: #111111;
  background: #f9fafb;
}

/* Footer */
.figma-footer {
  padding: 48px 0;
  color: #ffffff;
  background: #111827;
}

.figma-footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.figma-footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.figma-footer-brand {
  grid-column: span 2;
}

.figma-footer-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.figma-footer-logo-symbol {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.figma-footer-logo-text {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.figma-footer-desc {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.625;
  letter-spacing: 0.025em;
}

.figma-footer-title {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.figma-footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.figma-footer-link,
.figma-footer-text {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
}

.figma-footer-text {
  margin: 0;
}

.figma-footer-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.figma-footer-link:hover {
  color: #ffffff;
}

.figma-footer-bottom {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #1f2937;
  text-align: center;
}

.figma-footer-copy {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}
.figma-footer-policy {
  display: none;
}

/* Responsive */
@media (min-width: 640px) {
  .figma-header-inner,
  .figma-footer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 768px) {
  .figma-footer-top {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .figma-footer-brand {
    grid-column: span 1;
  }
}

@media (min-width: 1024px) {
  .figma-header-inner,
  .figma-footer-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .figma-desktop-nav {
    display: flex;
  }

  .figma-mobile-toggle,
  .figma-mobile-menu {
    display: none !important;
  }
}

.figma-desktop-nav > .figma-nav-item:first-child .figma-nav-link,
.figma-desktop-nav > .figma-nav-link:first-child {
  color: #000000;
}

.figma-header-admin-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  color: #ffffff !important;
  background: #030712;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  transition: background-color 200ms ease;
}

.figma-header-admin-login:hover {
  background: #111827;
}

.figma-mobile-admin-login {
  color: #ffffff !important;
  background: #030712;
  justify-content: center;
  font-weight: 500;
}

.figma-mobile-admin-login:hover {
  color: #ffffff !important;
  background: #111827;
}