/* ====================================================
   style.css — Global shared styles for PodCut
   Loaded on every page via header.html
   ==================================================== */

/* ── CSS Variables ── */
:root {
  --bg-color: #0d0d0d;
  --container-bg: #1a1a1a;
  --gold-primary: #FFD700;
  --gold-gradient: linear-gradient(135deg, #F9D423 0%, #FF4E50 100%);
  --gold-gradient-text: linear-gradient(135deg, #FDEB71 0%, #F8D800 100%);
  --emerald: #50C878;
  --ruby: #E0115F;
  --sapphire: #0F52BA;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --border-color: #333;
}

/* ── Base Body ── */
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  min-height: 100vh;
}

ul,
ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* ── Global Button Base ── */
button {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--gold-gradient-text);
  color: #111;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Global Input Base ── */
input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: #0A0A0A;
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
  transition: all 0.3s ease;
  outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

input::placeholder {
  color: #666;
}

/* ================= TOP NAVBAR ================= */
.top-navbar {
  width: 100%;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.top-navbar-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-navbar .logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* display: flex; */
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.top-navbar .logo span {
  -webkit-text-fill-color: initial;
}

.top-navbar .nav-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 15px;
  align-items: center;
}

.top-navbar .nav-btn {
  width: auto !important;
  padding: 10px 20px !important;
  font-size: 0.95rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.top-navbar .sponsor-btn {
  background: transparent !important;
  border: 1.5px solid var(--gold-primary) !important;
  color: var(--gold-primary) !important;
}

.top-navbar .sponsor-btn:hover {
  background: var(--gold-gradient) !important;
  color: #111 !important;
  border-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2) !important;
}

.top-navbar .pricing-btn {
  background: transparent !important;
  border: 1.5px solid transparent !important;
  color: var(--text-main) !important;
}

.top-navbar .pricing-btn:hover {
  color: var(--gold-primary) !important;
  transform: translateY(-2px);
}

.top-navbar .login-btn {
  background: var(--gold-gradient-text) !important;
  color: #111 !important;
  border: 1.5px solid transparent !important;
}

.top-navbar .login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
}

.top-navbar .login-btn.logged-in {
  background: #222 !important;
  color: var(--text-main) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

.top-navbar .login-btn.logged-in:hover {
  background: var(--ruby) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(224, 17, 95, 0.3) !important;
}

@media (max-width: 600px) {
  .top-navbar { padding: 10px 0; }
  .top-navbar-container { width: 95%; }
  .top-navbar .logo { font-size: 1.2rem; }
  .top-navbar .nav-buttons { gap: 8px; }
  .top-navbar .nav-btn { padding: 6px 12px !important; font-size: 0.8rem !important; }
}

/* ================= CURRENCY / SHARED MODALS ================= */
.currency-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.currency-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.currency-modal-card {
  background: #111;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.05);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 580px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.currency-modal-overlay.active .currency-modal-card {
  transform: scale(1);
}

.currency-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
  width: 50px;
  background: var(--gold-gradient-text) !important;
  color: #111 !important;
  border: 1.5px solid transparent !important;
}

.currency-modal-close:hover { color: #fff; }

.currency-modal-title {
  padding-right: 36px;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.currency-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/* ── Sponsor / Pricing grid ── */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
  text-align: left;
}

@media (max-width: 600px) {
  .sponsor-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Currency payment tiles ── */
.currency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 25px;
}

@media (max-width: 500px) {
  .currency-grid { grid-template-columns: 1fr; }
}

.currency-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.currency-tile:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.currency-tile.selected {
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.currency-flag { font-size: 2.2rem; }
.currency-name { font-weight: 700; color: var(--text-main); font-size: 1.1rem; }
.currency-price { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.currency-price-value { color: var(--gold-primary); font-weight: 700; font-size: 1.1rem; }

.currency-pay-cta {
  width: 100%;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.currency-pay-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.currency-pay-cta:disabled {
  background: #333; color: #777; cursor: not-allowed; box-shadow: none;
}

.solana-wallet-status {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 20px;
}

/* ================= FOOTER (shared) ================= */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links a,
.footer-link-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  padding: 0;
  width: auto;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

.footer-links a:hover,
.footer-link-btn:hover:not(:disabled) {
  color: var(--gold-primary);
  transform: none;
  box-shadow: none;
}

.footer-copy { 
  font-size: 0.78rem; 
  color: #444; }

/* @media (max-width: 860px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
} */
/* ================= USER AVATAR + DROPDOWN ================= */
.user-avatar-wrapper {
  position: relative;
}

.user-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  transition: all 0.2s ease;
  display: block;
}

.user-avatar-img:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: #111;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 8px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1001;
}

.user-dropdown-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown-header {
  padding: 10px 14px 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-item {
  width: 100%;
  background: none;
  border: none;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-dropdown-item:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: none;
  box-shadow: none;
}

.user-dropdown-logout:hover {
  background: rgba(224, 17, 95, 0.12);
  color: var(--ruby);
}

@media (max-width: 600px) {
  .user-avatar-img { width: 36px; height: 36px; }
  .user-dropdown-menu { min-width: 180px; }
}