/*
Theme Name: Pirates Gold Dynamic Route
Theme URI: https://pirates-gold.com
Author: OpenAI
Description: Dynamic pirate-map WooCommerce theme with scroll-driven ship route, islands, and treasure popups.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: pirates-gold
*/

:root {
  --pg-black: #050403;
  --pg-panel: #0d0907;
  --pg-panel-2: #130d09;
  --pg-gold: #c79a4f;
  --pg-gold-soft: #e5c98b;
  --pg-text: #ead9b5;
  --pg-muted: rgba(234, 217, 181, .72);
  --pg-border: rgba(199, 154, 79, .18);
  --pg-shadow: 0 18px 40px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--pg-text);
  font-family: Georgia, "Times New Roman", serif;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #000;
  min-height: 100%;
  overflow-y: auto;
}

body {
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site {
  
  margin: 0 auto;
  background: linear-gradient(180deg, #110b08, #080605 70%, #0b0706);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}

.site-header {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    z-index:200;

    backdrop-filter: blur(18px);
    background: rgba(20,15,10,.35);

    border-bottom:1px solid rgba(255,255,255,.05);
}

.site-header__inner,
.site-footer__inner {
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}
.site-header__inner { justify-content: space-between; }
.site-branding { display:flex; align-items:center; gap:12px; }
.site-branding img { width: 100px; height: auto; }
.site-branding a {
  color: #e8d6b0;
  font-size: 1.05rem;
  letter-spacing: .08em;
}
.site-nav ul, .footer-nav ul {
  list-style:none; margin:0; padding:0; display:flex; gap:24px;
}
.site-nav a, .footer-nav a {
  color:#c9a35c; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase;
}
.site-footer {
  padding: 20px 0 28px;
  color: rgba(234, 217, 181, .78);
}
.site-footer__inner { justify-content: space-between; flex-wrap: wrap; }

.pg-page-wrap {
  width: min(1220px, calc(100% - 24px));
  margin: 24px auto;
  min-height: 60vh;
  padding-bottom: 32px;
}
.pg-card {
  background: linear-gradient(180deg, rgba(11,8,6,.98), rgba(19,12,9,.98));
  border: 1px solid rgba(199,154,79,.24);
  color: var(--pg-text);
  box-shadow: var(--pg-shadow);
  padding: 22px 18px 18px;
}

@media (max-width: 860px) {
  .site { width: 100%; }
  .site-header__inner, .site-footer__inner, .pg-page-wrap { width: calc(100% - 16px); }
}

.site-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(200,150,80,.25);
  background: rgba(18,12,8,.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.site-menu-toggle span {
  width: 20px;
  height: 2px;
  background: #ead9b5;
  display: block;
  transition: .25s ease;
}

.site-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.site-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .site-menu-toggle {
    display: flex;
    z-index: 99999999;
	position: absolute;
	right: 90px;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: min(220px, 86vw);
    z-index: 1000;

    background: rgba(18,12,8,.42);
	backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);

    border: 1px solid rgba(200,150,80,.2);
    box-shadow: -10px 0 40px rgba(0,0,0,.4);

    padding: 32px 24px;

    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform .35s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-nav__menu a {
    display: block;
    color: #ead9b5;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 10px 0;
    border-bottom: 1px solid rgba(200,150,80,.16);
  }
}

.site-header{
    z-index:120;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 120;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  background: rgba(14, 9, 7, .48);
  border-bottom: 1px solid rgba(200,150,80,.2);
  box-shadow: 10px 0 40px rgba(0,0,0,.4);
}

.site-header__inner {
  height: 72px;
  width: min(1280px, calc(100% - 5px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ead9b5;
  text-decoration: none;
  font-weight: 700;
}

.site-branding img {
  height: 48px;
  width: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav__menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__menu a,
.site-mini-cart {
  color: #ead9b5;
  text-decoration: none;
}

.site-mini-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}