/*
Theme Name: Hazoo Currency Theme
Theme URI: https://hazoo.co.uk
Author: HAZOO
Author URI: https://hazoo.co.uk
Description: Official companion theme for HAZOO Currency Pro plugin. Clean, fast, fully integrated header, footer and legal pages.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hazoo-theme
Tags: currency, finance, custom-header, custom-footer, full-width-template
*/

/* ═══════════════════════════════════════════════════════════════
   HAZOO THEME — Global Reset & Variables
═══════════════════════════════════════════════════════════════ */
:root {
  --hz-blue:      #0052cc;
  --hz-blue-dark: #003d99;
  --hz-teal:      #00c7be;
  --hz-dark:      #0a1628;
  --hz-dark2:     #0f2040;
  --hz-text:      #1a2744;
  --hz-text-2:    #344563;
  --hz-text-3:    #5e6c84;
  --hz-border:    #e2e8f0;
  --hz-bg:        #f7f9fc;
  --hz-white:     #ffffff;
  --hz-radius:    12px;
  --hz-shadow:    0 4px 24px rgba(0,82,204,.10);
  --hz-font:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hz-mono:      'JetBrains Mono', 'Fira Code', monospace;
  --hz-nav-h:     60px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--hz-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--hz-text);
  background: var(--hz-white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

body.admin-bar { padding-top: 0 !important; }

a { color: var(--hz-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════════════
   HAZOO HEADER
═══════════════════════════════════════════════════════════════ */
.hz-header {
  background: var(--hz-dark);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 20px rgba(0,0,0,.40);
  border-bottom: 1px solid rgba(255,255,255,.06);
  height: var(--hz-nav-h);
}

.admin-bar .hz-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hz-header { top: 46px; } }

.hz-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--hz-nav-h);
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.hz-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-right: 16px;
}

.hz-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--hz-blue), var(--hz-teal));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hz-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hz-logo-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
}

.hz-logo-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--hz-teal);
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* Nav links */
.hz-nav {
  display: flex;
  align-items: center;
  height: var(--hz-nav-h);
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.hz-nav::-webkit-scrollbar { display: none; }

.hz-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  height: var(--hz-nav-h);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
}

.hz-nav-link:hover,
.hz-nav-link.active {
  color: #fff;
  border-bottom-color: var(--hz-teal);
  background: rgba(255,255,255,.05);
}

/* Tools dropdown */
.hz-nav-dropdown {
  position: relative;
}

.hz-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  height: var(--hz-nav-h);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  flex-shrink: 0;
}

.hz-nav-dropdown-toggle:hover {
  color: #fff;
  border-bottom-color: var(--hz-teal);
  background: rgba(255,255,255,.05);
}

.hz-nav-dropdown-menu {
  position: absolute;
  top: calc(var(--hz-nav-h) + 2px);
  left: 0;
  background: var(--hz-dark2);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--hz-radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  min-width: 220px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
}

.hz-nav-dropdown:hover .hz-nav-dropdown-menu,
.hz-nav-dropdown:focus-within .hz-nav-dropdown-menu {
  display: flex;
}

.hz-nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: rgba(255,255,255,.80);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .12s, color .12s;
}

.hz-nav-dropdown-menu a:last-child { border-bottom: none; }
.hz-nav-dropdown-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Header right: live badge */
.hz-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hz-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hz-teal);
  background: rgba(0,199,190,.12);
  border: 1px solid rgba(0,199,190,.25);
  border-radius: 20px;
  padding: 4px 10px;
}

.hz-live-dot {
  width: 6px;
  height: 6px;
  background: var(--hz-teal);
  border-radius: 50%;
  animation: hz-pulse 1.8s ease-in-out infinite;
}

@keyframes hz-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

/* Hamburger */
.hz-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  cursor: pointer;
  margin-left: 12px;
  flex-shrink: 0;
  transition: background .15s;
}

.hz-hamburger:hover { background: rgba(255,255,255,.14); }

.hz-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile menu */
.hz-mobile-menu {
  display: none;
  position: fixed;
  top: var(--hz-nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hz-dark2);
  overflow-y: auto;
  z-index: 9998;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-direction: column;
  padding: 8px 0 24px;
}

.hz-mobile-menu.open { display: flex; }

.hz-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .12s, color .12s;
}

.hz-mobile-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.hz-mobile-menu .hz-mobile-section-title {
  padding: 16px 24px 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.35);
  pointer-events: none;
  border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   HAZOO FOOTER
═══════════════════════════════════════════════════════════════ */
.hz-footer {
  background: var(--hz-dark);
  color: rgba(255,255,255,.70);
  font-size: 14px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.hz-footer-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.hz-footer-brand .hz-logo {
  margin-bottom: 16px;
}

.hz-footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hz-footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hz-trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.60);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  padding: 4px 8px;
}

.hz-footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}

.hz-footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  text-decoration: none !important;
  font-size: 13px;
  margin-bottom: 9px;
  transition: color .15s;
  line-height: 1.4;
}

.hz-footer-col a:hover { color: #fff; }

.hz-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 24px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hz-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.40);
}

.hz-footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hz-footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  text-decoration: none !important;
  transition: color .15s;
}

.hz-footer-legal a:hover { color: rgba(255,255,255,.80); }

.hz-disclaimer {
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 16px 24px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.28);
  line-height: 1.6;
  max-width: 1240px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE FOOTER
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hz-footer-main {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .hz-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hz-footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 40px 20px 28px;
    gap: 28px;
  }
  .hz-footer-brand { grid-column: 1 / -1; }
  .hz-footer-bottom { flex-direction: column; text-align: center; }
  .hz-hamburger { display: flex; }
  .hz-nav, .hz-live-badge { display: none; }
}

@media (min-width: 641px) {
  .hz-hamburger { display: none; }
  .hz-mobile-menu { display: none !important; }
}

@media (max-width: 900px) {
  .hz-hamburger { display: flex; }
  .hz-nav { display: none; }
  .hz-nav-dropdown-menu { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
═══════════════════════════════════════════════════════════════ */
.hz-main {
  min-height: calc(100vh - var(--hz-nav-h) - 400px);
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════════════════════════════════ */
.hz-legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hz-legal-page h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--hz-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hz-legal-page .hz-legal-meta {
  font-size: 13px;
  color: var(--hz-text-3);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hz-border);
}

.hz-legal-page h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--hz-dark);
  margin: 36px 0 12px;
}

.hz-legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--hz-text-2);
  margin: 24px 0 8px;
}

.hz-legal-page p, .hz-legal-page li {
  color: var(--hz-text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.hz-legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.hz-legal-page a { color: var(--hz-blue); }

.hz-legal-page .hz-contact-box {
  background: var(--hz-bg);
  border: 1px solid var(--hz-border);
  border-radius: var(--hz-radius);
  padding: 20px 24px;
  margin: 24px 0;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════════ */
.hz-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hz-section { padding: 48px 0; }
.hz-text-center { text-align: center; }
.hz-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* WordPress core fixes */
.screen-reader-text { display: none; }
#wpadminbar { position: fixed !important; }
