/* ==========================================================================
   CLIFTONE'S HQ | UNIVERSAL ADAPTIVE BRAND DESIGN SYSTEM
   Standard design tokens across Computers, Photography, and Integrated HQ
   ========================================================================== */

:root {
  /* Common Palette */
  --hq-cream: #F7EED3;
  --hq-cream-muted: #E6E1D3;
  --hq-gold: #D4AF37;
  --hq-gold-bright: #F5DC83;
  --hq-gold-glow: rgba(212, 175, 55, 0.25);
  --hq-danger: #E07A5F;
  --hq-success: #4CAF50;

  /* Typography */
  --font-tech: 'Orbitron', 'Montserrat', sans-serif;
  --font-photo: 'Sora', 'Georgia', serif;
  --font-body: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Default / Integrated HQ (Cliftone's Corner Dual-Brand) */
  --theme-bg: #0A1218;
  --theme-bg-gradient: radial-gradient(circle at 15% 20%, rgba(57, 189, 255, 0.08) 0%, transparent 45%),
                       radial-gradient(circle at 85% 75%, rgba(98, 115, 69, 0.12) 0%, transparent 50%),
                       linear-gradient(135deg, #071018 0%, #0d1a1f 50%, #111a12 100%);
  --theme-surface: rgba(15, 23, 28, 0.78);
  --theme-surface-border: rgba(255, 255, 255, 0.12);
  --theme-accent: var(--hq-gold);
  --theme-accent-secondary: #39BDFF;
  --theme-accent-tertiary: #627345;
  --theme-text-primary: var(--hq-cream);
  --theme-text-muted: #B7C4BB;
  --theme-card-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --theme-glow: 0 0 24px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   THEME 1: CLIFTONE'S COMPUTERS (Technology Identity)
   Deep navy/charcoal, electric-blue accents, metallic-gold details
   ========================================================================== */
[data-theme="computers"],
.theme-computers {
  --theme-bg: #07121D;
  --theme-bg-gradient: radial-gradient(circle at 20% 30%, rgba(57, 189, 255, 0.12) 0%, transparent 55%),
                       linear-gradient(145deg, #061019 0%, #0B1C2A 50%, #08131C 100%);
  --theme-surface: rgba(11, 28, 42, 0.82);
  --theme-surface-border: rgba(57, 189, 255, 0.24);
  --theme-accent: #39BDFF;
  --theme-accent-secondary: var(--hq-gold);
  --theme-text-primary: #F0F7FF;
  --theme-text-muted: #9EB9CC;
  --theme-card-shadow: 0 24px 60px rgba(3, 10, 18, 0.7), inset 0 1px 0 rgba(57, 189, 255, 0.15);
  --theme-glow: 0 0 26px rgba(57, 189, 255, 0.35);
}

[data-theme="computers"] .cc-button,
.theme-computers .cc-button {
  background: linear-gradient(135deg, #39BDFF 0%, #1A8BC2 100%);
  color: #06131D;
  border-color: #39BDFF;
  box-shadow: 0 4px 18px rgba(57, 189, 255, 0.3);
}

[data-theme="computers"] .cc-button:hover,
.theme-computers .cc-button:hover {
  box-shadow: 0 6px 24px rgba(57, 189, 255, 0.5);
  transform: translateY(-2px);
}

[data-theme="computers"] .cc-button.secondary,
.theme-computers .cc-button.secondary {
  background: linear-gradient(135deg, rgba(57, 189, 255, 0.12) 0%, rgba(57, 189, 255, 0.03) 100%);
  color: #F0F7FF;
  border-color: rgba(57, 189, 255, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

[data-theme="computers"] .cc-button.secondary:hover,
.theme-computers .cc-button.secondary:hover {
  background: linear-gradient(135deg, rgba(57, 189, 255, 0.22) 0%, rgba(57, 189, 255, 0.08) 100%);
  color: #FFFFFF;
  border-color: #39BDFF;
  box-shadow: 0 0 20px rgba(57, 189, 255, 0.45), 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

[data-theme="computers"] .cc-button:focus-visible,
.theme-computers .cc-button:focus-visible {
  outline: 3px solid #39BDFF;
  outline-offset: 4px;
}

/* ==========================================================================
   THEME 2: CAPTURED BY CLIFTONE (Photography Identity)
   Deep olive/charcoal, cream typography, metallic-gold accents, cinematic glow
   ========================================================================== */
[data-theme="photography"],
.theme-photography {
  --theme-bg: #0E1610;
  --theme-bg-gradient: radial-gradient(circle at 80% 25%, rgba(98, 115, 69, 0.16) 0%, transparent 55%),
                       linear-gradient(145deg, #0A120D 0%, #162417 50%, #0F1710 100%);
  --theme-surface: rgba(22, 36, 23, 0.82);
  --theme-surface-border: rgba(212, 175, 55, 0.25);
  --theme-accent: var(--hq-gold);
  --theme-accent-secondary: #7F935B;
  --theme-text-primary: var(--hq-cream);
  --theme-text-muted: #C5CDC6;
  --theme-card-shadow: 0 24px 60px rgba(6, 12, 7, 0.7), inset 0 1px 0 rgba(212, 175, 55, 0.12);
  --theme-glow: 0 0 26px rgba(212, 175, 55, 0.3);
}

[data-theme="photography"] .cc-button,
.theme-photography .cc-button {
  background: linear-gradient(135deg, #D4AF37 0%, #A88720 100%);
  color: #0E1610;
  border-color: #D4AF37;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
}

[data-theme="photography"] .cc-button:hover,
.theme-photography .cc-button:hover {
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

[data-theme="photography"] .cc-button.secondary,
.theme-photography .cc-button.secondary {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.03) 100%);
  color: var(--hq-cream, #F7EED3);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

[data-theme="photography"] .cc-button.secondary:hover,
.theme-photography .cc-button.secondary:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
  color: #FFFFFF;
  border-color: #D4AF37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.45), 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

[data-theme="photography"] .cc-button:focus-visible,
.theme-photography .cc-button:focus-visible {
  outline: 3px solid #D4AF37;
  outline-offset: 4px;
}

/* ==========================================================================
   THEME 3: CLIFTONE'S CORNER (Integrated Dual-Brand Identity)
   Balanced navy, electric-blue, olive, cream, and metallic gold
   ========================================================================== */
[data-theme="corner"],
.theme-corner {
  --theme-bg: #0A1218;
  --theme-bg-gradient: radial-gradient(circle at 15% 20%, rgba(57, 189, 255, 0.08) 0%, transparent 45%),
                       radial-gradient(circle at 85% 75%, rgba(98, 115, 69, 0.12) 0%, transparent 50%),
                       linear-gradient(135deg, #071018 0%, #0d1a1f 50%, #111a12 100%);
  --theme-surface: rgba(15, 23, 28, 0.78);
  --theme-surface-border: rgba(255, 255, 255, 0.12);
  --theme-accent: var(--hq-gold);
  --theme-accent-secondary: #39BDFF;
  --theme-accent-tertiary: #627345;
  --theme-text-primary: var(--hq-cream);
  --theme-text-muted: #B7C4BB;
  --theme-card-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --theme-glow: 0 0 24px rgba(212, 175, 55, 0.25);
}

/* Universal Glass Panels */
.hq-adaptive-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-surface-border);
  border-radius: 20px;
  box-shadow: var(--theme-card-shadow), inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px) saturate(145%) contrast(104%);
  -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(104%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.hq-adaptive-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-accent);
  box-shadow: 0 28px 65px -8px rgba(0, 0, 0, 0.7), var(--theme-glow), inset 0 1px 2px 0 rgba(255, 255, 255, 0.45);
}

/* Print Stylesheet for Brand-Aware Documents */
@media print {
  body {
    background: #FFFFFF !important;
    color: #111111 !important;
  }
  .hq-adaptive-card,
  .account-card,
  .portal-panel,
  .admin-panel {
    background: #FFFFFF !important;
    border: 1px solid #DDDDDD !important;
    box-shadow: none !important;
    color: #111111 !important;
    backdrop-filter: none !important;
  }
  .cc-header,
  .cc-footer,
  .admin-sidebar,
  .nav,
  button:not(.print-keep) {
    display: none !important;
  }
}
