/*
Theme Name:   ATE Client Lounge
Theme URI:    https://company.promo
Description:  PlugZero Client Lounge Viewer — American Traders Enterprises. Dark branded product showcase powered by Essential Grid.
Author:       American Traders Enterprises
Author URI:   https://americantraders.online
Version:      1.0.0
Text Domain:  ate-lounge
Tags:         custom-background, full-width-template, custom-menu, post-thumbnails
*/

/* ============================================================
   ATE BRAND TOKENS
   ============================================================ */
:root {
  --ate-bg:          #0f0f0e;
  --ate-bg-2:        #171716;
  --ate-bg-3:        #1e1e1c;
  --ate-gold:        #c47f00;
  --ate-gold-light:  #e09a10;
  --ate-gold-glow:   rgba(196, 127, 0, 0.15);
  --ate-white:       #f7f7f5;
  --ate-muted:       #888884;
  --ate-border:      rgba(255, 255, 255, 0.08);
  --ate-font-head:   'Clash Display', 'DM Sans', system-ui, sans-serif;
  --ate-font-body:   'Switzer', 'DM Sans', system-ui, sans-serif;
  --ate-radius:      4px;
  --ate-ease:        0.25s ease;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--ate-bg);
  color: var(--ate-white);
  font-family: var(--ate-font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   LOUNGE HEADER — fixed, frosted glass
   ============================================================ */
.pz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(15, 15, 14, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ate-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

/* Logo mark + wordmark */
.pz-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pz-header__logo-icon {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.pz-header__logo-text {
  font-family: var(--ate-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ate-gold);
  white-space: nowrap;
}

.pz-header__logo-divider {
  width: 1px;
  height: 18px;
  background: var(--ate-border);
  margin: 0 2px;
}

.pz-header__logo-sub {
  font-family: var(--ate-font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ate-muted);
  white-space: nowrap;
}

/* Category nav */
.pz-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.pz-header__nav a {
  font-family: var(--ate-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ate-muted);
  transition: color var(--ate-ease);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--ate-ease), border-color var(--ate-ease);
}

.pz-header__nav a:hover,
.pz-header__nav a.is-active {
  color: var(--ate-gold);
  border-bottom-color: var(--ate-gold);
}

/* Sign in / out button */
.pz-btn-ghost {
  font-family: var(--ate-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ate-muted);
  background: transparent;
  border: 1px solid var(--ate-border);
  border-radius: var(--ate-radius);
  padding: 6px 14px;
  cursor: pointer;
  transition: color var(--ate-ease), border-color var(--ate-ease), background var(--ate-ease);
  text-decoration: none;
  display: inline-block;
}

.pz-btn-ghost:hover {
  color: var(--ate-gold);
  border-color: var(--ate-gold);
  background: var(--ate-gold-glow);
}

/* ============================================================
   LOUNGE CANVAS — main wrapper
   ============================================================ */
.pz-canvas {
  padding-top: 64px;
  min-height: 100vh;
  background: var(--ate-bg);
}

/* ============================================================
   HERO
   ============================================================ */
.pz-hero {
  position: relative;
  padding: 80px 48px 56px;
  overflow: hidden;
}

/* Radial gold glow */
.pz-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 340px;
  background: radial-gradient(ellipse at center, rgba(196, 127, 0, 0.10) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.pz-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.pz-hero__eyebrow {
  font-family: var(--ate-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ate-gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pz-hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ate-gold);
  opacity: 0.6;
}

.pz-hero__title {
  font-family: var(--ate-font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ate-white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.pz-hero__title em {
  font-style: normal;
  color: var(--ate-gold);
}

.pz-hero__sub {
  font-family: var(--ate-font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ate-muted);
  line-height: 1.65;
  max-width: 480px;
}

/* Horizontal rule below hero */
.pz-hero__rule {
  margin-top: 48px;
  border: none;
  height: 1px;
  background: var(--ate-border);
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.pz-section-label {
  padding: 28px 48px 0;
  font-family: var(--ate-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ate-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pz-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ate-border);
}

/* ============================================================
   GRID SECTION — wraps Essential Grid output
   ============================================================ */
.pz-grid-section {
  padding: 24px 24px 80px;
}

/* ── Essential Grid skin overrides — ATE Dark Card ── */

/* Container background */
.pz-grid-section .eg-wrapper,
.pz-grid-section .esg-grid {
  background: transparent !important;
}

/* Individual entry */
.pz-grid-section .esg-entry,
.pz-grid-section .esg-entry-cover {
  background: var(--ate-bg-2) !important;
  border: 1px solid var(--ate-border) !important;
  border-radius: var(--ate-radius) !important;
  overflow: hidden !important;
  transition: border-color var(--ate-ease), transform var(--ate-ease), box-shadow var(--ate-ease) !important;
}

.pz-grid-section .esg-entry:hover {
  border-color: var(--ate-gold) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 40px rgba(196, 127, 0, 0.14) !important;
  z-index: 2 !important;
}

/* Image zoom on hover */
.pz-grid-section .esg-entry .esg-media-cover img {
  transition: transform 0.45s ease !important;
}

.pz-grid-section .esg-entry:hover .esg-media-cover img {
  transform: scale(1.05) !important;
}

/* Gradient overlay */
.pz-grid-section .esg-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 15, 14, 0.92) 0%,
    rgba(15, 15, 14, 0.35) 55%,
    transparent 100%
  ) !important;
}

/* Entry title */
.pz-grid-section .esg-entry-title,
.pz-grid-section .esg-h3 {
  font-family: var(--ate-font-head) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ate-white) !important;
  letter-spacing: 0.01em !important;
  line-height: 1.25 !important;
}

/* Category tag */
.pz-grid-section .esg-entry-category,
.pz-grid-section .esg-category {
  font-family: var(--ate-font-body) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--ate-gold) !important;
}

/* Item Number badge */
.pz-item-number {
  font-family: var(--ate-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ate-gold);
  background: rgba(196, 127, 0, 0.10);
  border: 1px solid rgba(196, 127, 0, 0.28);
  border-radius: 2px;
  padding: 2px 8px;
  display: inline-block;
}

/* Filter buttons */
.pz-grid-section .esg-filterbutton,
.pz-grid-section .esg-nav-filter > li > a {
  font-family: var(--ate-font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--ate-muted) !important;
  background: transparent !important;
  border: 1px solid var(--ate-border) !important;
  border-radius: 2px !important;
  padding: 7px 16px !important;
  margin: 0 4px 8px !important;
  transition: color var(--ate-ease), border-color var(--ate-ease), background var(--ate-ease) !important;
}

.pz-grid-section .esg-filterbutton:hover,
.pz-grid-section .esg-filterbutton.selected,
.pz-grid-section .esg-nav-filter > li.active > a {
  color: var(--ate-gold) !important;
  border-color: var(--ate-gold) !important;
  background: var(--ate-gold-glow) !important;
}

/* Load more button */
.pz-grid-section .esg-loadmore {
  font-family: var(--ate-font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--ate-gold) !important;
  background: transparent !important;
  border: 1px solid var(--ate-gold) !important;
  border-radius: var(--ate-radius) !important;
  padding: 10px 28px !important;
  margin-top: 32px !important;
  transition: background var(--ate-ease) !important;
}

.pz-grid-section .esg-loadmore:hover {
  background: var(--ate-gold-glow) !important;
}

/* ============================================================
   WATERMARK — fixed brand stamp, bottom-right
   ============================================================ */
.pz-watermark {
  position: fixed;
  bottom: 36px;
  right: 48px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.pz-watermark img,
.pz-watermark svg {
  width: 160px;
  height: auto;
  filter: invert(1) sepia(1) saturate(0);
}

/* ============================================================
   FOOTER STRIP
   ============================================================ */
.pz-footer {
  border-top: 1px solid var(--ate-border);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ate-bg);
}

.pz-footer p,
.pz-footer a {
  font-family: var(--ate-font-body);
  font-size: 11px;
  color: var(--ate-muted);
  letter-spacing: 0.04em;
}

.pz-footer a:hover {
  color: var(--ate-gold);
}

.pz-footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ============================================================
   LOGIN PAGE OVERRIDE
   ============================================================ */
body.login {
  background: var(--ate-bg) !important;
}

body.login #login {
  background: var(--ate-bg-2);
  border: 1px solid var(--ate-border);
  border-radius: var(--ate-radius);
  padding: 32px;
}

body.login h1 a {
  background-image: none !important;
  font-family: var(--ate-font-head);
  font-size: 18px;
  color: var(--ate-gold) !important;
  text-indent: 0 !important;
  width: auto !important;
  height: auto !important;
}

body.login .input,
body.login input[type="text"],
body.login input[type="password"] {
  background: var(--ate-bg-3) !important;
  border: 1px solid var(--ate-border) !important;
  color: var(--ate-white) !important;
  border-radius: var(--ate-radius) !important;
}

body.login .button-primary {
  background: var(--ate-gold) !important;
  border-color: var(--ate-gold) !important;
  color: #0f0f0e !important;
  font-family: var(--ate-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: var(--ate-radius) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .pz-header { padding: 0 24px; }
  .pz-header__nav { display: none; }
  .pz-hero { padding: 60px 24px 40px; }
  .pz-section-label { padding: 20px 24px 0; }
  .pz-grid-section { padding: 20px 8px 60px; }
  .pz-footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px 24px; }
  .pz-watermark { display: none; }
}

@media (max-width: 480px) {
  .pz-hero__title { font-size: 2rem; }
  .pz-header__logo-sub,
  .pz-header__logo-divider { display: none; }
}
