/*
Theme Name: AUZZ Catalogue Viewer
Theme URI: https://aseco.com.au/
Author: ASE Australia
Description: A lightweight, single-page WordPress theme for browsing the AUZZ product catalogue.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: auzz-catalogue
*/

:root {
  color-scheme: light;
  --auzz-blue: #087db6;
  --auzz-blue-dark: #075f8c;
  --auzz-ink: #163044;
  --auzz-muted: #667783;
  --auzz-surface: #ffffff;
  --auzz-background: #eef3f6;
  --auzz-border: rgba(22, 48, 68, 0.14);
  --auzz-shadow: 0 16px 50px rgba(12, 49, 71, 0.18);
}

* { box-sizing: border-box; }

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

body {
  background: var(--auzz-background);
  color: var(--auzz-ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

.auzz-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auzz-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(110deg, #075f8c, #078fc8);
  box-shadow: 0 2px 14px rgba(5, 62, 92, 0.2);
  position: relative;
  z-index: 10;
}

.auzz-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.auzz-brand strong {
  font-size: 23px;
  letter-spacing: .08em;
}

.auzz-brand span {
  font-size: 13px;
  opacity: .82;
  white-space: nowrap;
}

.auzz-download {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
}

.auzz-download:hover,
.auzz-download:focus-visible { background: rgba(255,255,255,.14); }

.auzz-main {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.auzz-stage {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  touch-action: pan-y;
}

.auzz-paper {
  position: relative;
  display: inline-flex;
  background: #fff;
  box-shadow: var(--auzz-shadow);
  line-height: 0;
}

#auzz-canvas {
  display: block;
  max-width: none;
  background: #fff;
}

.auzz-loading,
.auzz-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--auzz-muted);
  background: #fff;
  line-height: 1.5;
  text-align: center;
}

.auzz-loading[hidden], .auzz-error[hidden] { display: none; }
.auzz-error { color: #a33131; }

.auzz-controls {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  background: var(--auzz-surface);
  border-top: 1px solid var(--auzz-border);
}

.auzz-button {
  min-width: 44px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--auzz-border);
  border-radius: 8px;
  background: #fff;
  color: var(--auzz-ink);
  font-weight: 700;
  cursor: pointer;
}

.auzz-button:hover:not(:disabled),
.auzz-button:focus-visible:not(:disabled) {
  color: var(--auzz-blue-dark);
  border-color: var(--auzz-blue);
  background: #f4fbfe;
}

.auzz-button:disabled { opacity: .35; cursor: not-allowed; }

.auzz-page-status {
  min-width: 105px;
  color: var(--auzz-muted);
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.auzz-zoom-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--auzz-border);
}

.auzz-zoom-label {
  min-width: 48px;
  color: var(--auzz-muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 650px) {
  .auzz-header { height: 56px; padding: 0 15px; }
  .auzz-brand strong { font-size: 20px; }
  .auzz-brand span { display: none; }
  .auzz-download { font-size: 12px; padding: 8px 10px; }
  .auzz-stage { min-height: 280px; padding: 10px; }
  .auzz-controls { min-height: 66px; gap: 6px; padding: 10px 8px; }
  .auzz-button { height: 40px; min-width: 40px; padding: 0 11px; }
  .auzz-button-text { display: none; }
  .auzz-page-status { min-width: 82px; font-size: 13px; }
  .auzz-zoom-group { margin-left: 2px; padding-left: 8px; }
}

@media print {
  .auzz-header, .auzz-controls { display: none; }
  .auzz-stage { padding: 0; overflow: visible; }
  .auzz-paper { box-shadow: none; }
}
