/* ==========================================================================
   GOLDEN BOSSES CLUB — HAUTE HORLOGERIE & ANTIQUES COLLECTOR FRAME
   Theme: Antique Walnut, Cast Bronze, Chiseled Gold & Roman Registry
   ========================================================================== */

:root {
  --wood-deep: #090706;
  --wood-walnut: #17110c;
  --wood-warm: #2c2016;

  --brass-bright: #fae3a6;
  --brass-gold: #d4af37;
  --brass-dark: #8c6d23;
  --brass-border: rgba(212, 175, 55, 0.32);
  --brass-border-subtle: rgba(212, 175, 55, 0.16);

  --text-primary: #f5f2eb;
  --text-secondary: #c5bcae;
  --text-muted: #82786a;

  --font-serif: 'Cinzel', Georgia, serif;
  --font-classic: 'Marcellus', 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;

  --gold-metallic: linear-gradient(180deg, #fae5ae 0%, #d4af37 45%, #9e7922 80%, #523e10 100%);
  --brass-plate: linear-gradient(180deg, rgba(38, 29, 21, 0.85) 0%, rgba(18, 14, 10, 0.95) 100%);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--wood-deep);
  color: var(--text-primary);
  font-family: var(--font-classic);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 50% 28%, rgba(48, 36, 25, 0.92) 0%, rgba(18, 13, 9, 0.98) 60%, #060504 100%),
    repeating-linear-gradient(90deg, rgba(255, 230, 180, 0.007) 0px, rgba(255, 230, 180, 0.007) 1px, transparent 1px, transparent 6px);
}

/* Warm Atelier Spotlight */
.atelier-spotlight {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 680px);
  height: min(92vw, 680px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(180, 130, 40, 0.04) 50%, transparent 72%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   COLLECTOR FRAME (Antique Beveled Plate)
   ========================================================================== */
.collector-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  background: var(--brass-plate);
  border: 1px solid var(--brass-border);
  box-shadow: 
    inset 0 0 0 4px rgba(212, 175, 55, 0.08),
    inset 0 0 0 5px rgba(0, 0, 0, 0.7),
    0 30px 80px rgba(0, 0, 0, 0.92),
    0 0 35px rgba(212, 175, 55, 0.08);
  padding: 2.2rem 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Corner Studs (Antique Brass Screws with Slotted Heads) */
.corner-stud {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fae5ae 0%, #b89327 60%, #523e10 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.corner-stud::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 1px;
  background: #3a2c0c;
  transform: translateY(-50%) rotate(35deg);
}

.corner-stud.tl { top: 12px; left: 12px; }
.corner-stud.tr { top: 12px; right: 12px; }
.corner-stud.bl { bottom: 12px; left: 12px; }
.corner-stud.br { bottom: 12px; right: 12px; }

/* ==========================================================================
   FRAME HEADER
   ========================================================================== */
.frame-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--brass-border-subtle);
  font-family: var(--font-serif);
}

.est-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--brass-bright);
}

.est-star {
  color: var(--brass-gold);
  font-size: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  transition: color 0.2s, background-color 0.2s;
}

.lang-btn.active {
  color: var(--brass-bright);
  font-weight: 700;
  border-bottom: 1px solid var(--brass-gold);
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

.lang-switch .sep {
  color: var(--brass-dark);
}

/* ==========================================================================
   FRAME BODY: 3D MEDALLION & CHISELED PLAQUE
   ========================================================================== */
.frame-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0 1.2rem;
}

/* 3D Medallion Stage */
.medallion-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  touch-action: none;
}

#webgl-canvas-container {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#webgl-canvas-container:active {
  cursor: grabbing;
}

#webgl-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

/* Plaque Content */
.plaque-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.28));
  margin-bottom: 0.8rem;
}

/* Chiseled Divider */
.chiseled-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 240px;
  margin-bottom: 1.1rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-gold), transparent);
}

.divider-gem {
  color: var(--brass-gold);
  font-size: 0.75rem;
}

/* Status Banner */
.status-banner {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  font-weight: 700;
  color: var(--brass-bright);
  text-transform: uppercase;
  padding: 0.4rem 1.6rem;
  background: rgba(212, 175, 55, 0.06);
  border-top: 1px solid var(--brass-border-subtle);
  border-bottom: 1px solid var(--brass-border-subtle);
  margin-bottom: 2rem;
}

/* Curated Registry Grid */
.registry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem;
  width: 100%;
  max-width: 660px;
  margin-bottom: 2.4rem;
  text-align: left;
}

.registry-item {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: border-color 0.2s, background-color 0.2s;
}

.registry-item:hover {
  border-bottom-color: var(--brass-gold);
  background: rgba(212, 175, 55, 0.04);
}

.registry-item.full {
  grid-column: span 2;
  justify-content: center;
  border-bottom: none;
  padding-top: 0.6rem;
}

.roman {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brass-gold);
  min-width: 1.5rem;
}

.reg-text {
  font-family: var(--font-classic);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* Discreet VIP Registry Slot */
.registry-slot {
  width: 100%;
  max-width: 440px;
}

.slot-border {
  display: flex;
  background: #090807;
  border: 1px solid var(--brass-border);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(212, 175, 55, 0.2);
  transition: border-color 0.25s;
}

.slot-border:focus-within {
  border-color: var(--brass-gold);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(212, 175, 55, 0.25);
}

.slot-border input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  padding: 0.85rem 1.1rem;
}

.slot-border input::placeholder {
  color: var(--text-muted);
}

.slot-btn {
  background: linear-gradient(180deg, #d4af37 0%, #aa8524 100%);
  color: #0d0a06;
  border: none;
  border-left: 1px solid var(--brass-dark);
  padding: 0.85rem 1.4rem;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s;
  white-space: nowrap;
}

.slot-btn:hover {
  filter: brightness(1.12);
}

.slot-msg {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  margin-top: 0.75rem;
  min-height: 1.1rem;
  letter-spacing: 0.04em;
}

.slot-msg.success {
  color: #a7f3d0;
}

.slot-msg.error {
  color: #fca5a5;
}

/* ==========================================================================
   FRAME FOOTER
   ========================================================================== */
.frame-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--brass-border-subtle);
  font-family: var(--font-serif);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.frame-footer a {
  color: var(--brass-bright);
  text-decoration: none;
  transition: color 0.2s;
}

.frame-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.75rem;
  }

  .collector-frame {
    padding: 1.8rem 1.25rem;
  }

  .corner-stud {
    width: 11px;
    height: 11px;
  }

  .corner-stud.tl { top: 8px; left: 8px; }
  .corner-stud.tr { top: 8px; right: 8px; }
  .corner-stud.bl { bottom: 8px; left: 8px; }
  .corner-stud.br { bottom: 8px; right: 8px; }

  .medallion-stage {
    max-width: 290px;
    height: 260px;
  }

  .brand-title {
    font-size: 1.85rem;
  }

  .registry-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
  }

  .registry-item.full {
    grid-column: span 1;
    justify-content: flex-start;
  }

  .reg-text {
    font-size: 0.82rem;
  }

  .frame-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
