/* Darkframe Game Site — Layout */

/* Container */
.dgsf-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Page wrapper */
.dgsf-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.dgsf-header {
  background: var(--dfsf-header-bg, #ffffff);
  border-bottom: 1px solid var(--dfsf-border, #e5e7eb);
  position: sticky;
  top: 0;
  z-index: 100;
}

.dgsf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.dgsf-header__brand {
  flex-shrink: 0;
}

.dgsf-header__site-name {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--dfsf-text, #111111);
  letter-spacing: 0.02em;
}

/* Primary navigation */
.dgsf-nav {
  display: flex;
  align-items: center;
}

.dgsf-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dgsf-nav__list li a {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dfsf-nav-text, #374151);
  text-decoration: none;
  border-radius: var(--dfsf-radius, 4px);
  transition: background 0.15s, color 0.15s;
}

.dgsf-nav__list li a:hover,
.dgsf-nav__list li.current-menu-item > a,
.dgsf-nav__list li.current-page-ancestor > a {
  background: var(--dfsf-nav-hover-bg, #f3f4f6);
  color: var(--dfsf-nav-active-text, #111111);
}

/* Main content area */
.dgsf-main {
  flex: 1;
}

/* Content area (standard pages) */
.dgsf-content-area {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.dgsf-entry-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dfsf-text, #111111);
}

.dgsf-entry-content {
  max-width: 72ch;
}

.dgsf-entry-meta {
  font-size: 0.875rem;
  color: var(--dfsf-muted, #6b7280);
  margin-bottom: 1.5rem;
}

/* Fabricator page — full bleed, no container restriction */
.dgsf-fabricator-page {
  width: 100%;
}

.dgsf-fabricator-page__content {
  width: 100%;
}

/* Footer */
.dgsf-footer {
  background: var(--dfsf-footer-bg, #f9fafb);
  border-top: 1px solid var(--dfsf-border, #e5e7eb);
  margin-top: auto;
}

.dgsf-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.dgsf-footer__site-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dfsf-text, #111111);
}

.dgsf-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.dgsf-footer-nav__list li a {
  font-size: 0.8125rem;
  color: var(--dfsf-muted, #6b7280);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

.dgsf-footer-nav__list li a:hover {
  color: var(--dfsf-text, #111111);
}

.dgsf-footer__copy {
  font-size: 0.8125rem;
  color: var(--dfsf-muted, #6b7280);
  margin: 0;
}

/* 404 */
.dgsf-404 {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.dgsf-404__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.dgsf-404__message {
  color: var(--dfsf-muted, #6b7280);
  margin-bottom: 2rem;
}

.dgsf-404__home-link {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 767px) {
  .dgsf-header__inner {
    height: 56px;
  }

  .dgsf-nav {
    display: none;
  }

  .dgsf-entry-title {
    font-size: 1.5rem;
  }

  .dgsf-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
