/*
Theme Name: Warehouse 3D Viewer
Theme URI: https://example.com/
Author: Codex
Description: Standalone WordPress theme for the Warehouse 3D viewer.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: warehouse-3d-viewer
*/

html,
body {
  height: 100%;
  margin: 0;
}

body.warehouse-3d-theme {
  min-height: 100%;
  background: #f5f7fb;
  color: #172033;
  font-family: Segoe UI, Arial, sans-serif;
}

body.warehouse-3d-theme.admin-bar {
  min-height: calc(100% - 32px);
}

#wpadminbar {
  z-index: 999999;
}

a {
  color: #0f5fbf;
}

.siteShell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.siteHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid #d9e0ea;
  background: #ffffff;
}

.siteBrand a {
  color: #172033;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

.siteBrand p {
  margin: 6px 0 0;
  color: #5f6b7a;
  font-size: 14px;
}

.siteNav .menu,
.siteNav .siteMenu,
.siteNav .page_item_has_children > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.siteNav a {
  text-decoration: none;
  font-weight: 600;
}

.siteContent {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.contentCard {
  padding: 24px;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.contentHeader h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.15;
}

.contentBody > :first-child {
  margin-top: 0;
}

.contentBody > :last-child {
  margin-bottom: 0;
}

.warehouse-viewer-page {
  height: 100vh;
  overflow: hidden;
}

.warehouse-viewer-page.admin-bar {
  height: calc(100vh - 32px);
}

.warehouse-viewer-page .app {
  height: 100%;
}

@media (max-width: 782px) {
  body.warehouse-3d-theme.admin-bar,
  .warehouse-viewer-page.admin-bar {
    min-height: calc(100% - 46px);
    height: calc(100vh - 46px);
  }
}

@media (max-width: 860px) {
  .siteHeader {
    flex-direction: column;
    padding: 16px;
  }

  .siteContent {
    width: min(100%, calc(100% - 20px));
    margin: 16px auto 24px;
  }

  .contentCard {
    padding: 18px;
  }

  .contentHeader h1 {
    font-size: 28px;
  }
}
