/*
Theme Name: Golden Whispers
Theme URI: https://goldenwhispers.com
Author: Golden Whispers Team
Author URI: https://goldenwhispers.com
Description: A modern, elegant, dark/light responsive WordPress theme designed for guided breathing techniques, intention manifestation, and daily positive affirmations. Includes an interactive breathing studio modal, countdown timers, dynamic scaling visualizers, and customized page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golden-whispers
Tags: mindfulness, wellness, breathing, manifestation, dark-mode, responsive-layout, custom-menu, block-styles, full-width-template
*/

/* --------------------------------------------------------------------------
   Golden Whispers Theme Core Stylesheet
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #f0f9ff;
  --bg-secondary: #e0f2fe;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(6, 182, 212, 0.18);
  --border-hover: rgba(6, 182, 212, 0.4);

  --text-primary: #06263a;
  --text-secondary: #334e68;
  --text-muted: #627d98;
  --text-inverse: #ffffff;

  --accent-cyan: #00b8d9;
  --accent-cyan-hover: #009cb8;
  --accent-teal: #0891b2;
  --accent-cyan-light: #e0f2fe;
  --accent-glow: rgba(0, 184, 217, 0.35);

  --shadow-sm: 0 4px 6px -1px rgba(6, 38, 58, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(6, 38, 58, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(0, 184, 217, 0.15);
  --shadow-glow: 0 0 30px rgba(0, 184, 217, 0.3);

  --modal-overlay: rgba(6, 38, 58, 0.8);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-primary: #04131f;
  --bg-secondary: #082133;
  --bg-surface: #0a293e;
  --bg-surface-elevated: #0e3550;
  --bg-glass: rgba(10, 41, 62, 0.85);
  --border-color: rgba(0, 184, 217, 0.2);
  --border-hover: rgba(0, 184, 217, 0.5);

  --text-primary: #f0f9ff;
  --text-secondary: #bae6fd;
  --text-muted: #7dd3fc;
  --text-inverse: #06263a;

  --accent-cyan-light: rgba(0, 184, 217, 0.15);
  --accent-glow: rgba(0, 184, 217, 0.45);
  --modal-overlay: rgba(2, 9, 15, 0.88);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-teal);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.logo-icon svg { width: 22px; height: 22px; fill: currentColor; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link a, .nav-links li a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
}

.nav-link a:hover, .nav-links li.current-menu-item a {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: #ffffff !important;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-light);
  color: var(--accent-cyan) !important;
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan) !important;
  border: 2px solid var(--accent-cyan);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--accent-cyan-light);
  color: var(--accent-teal);
  border: 1px solid var(--border-color);
}

/* Card */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 1.25rem 0;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan) 80%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust Stats Bar in Hero */
.hero-stats-bar {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.85rem 2rem;
  margin-top: 2.75rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

.hero-stat-item .stat-icon {
  font-size: 1.25rem;
}

.hero-stat-item strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-stat-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

/* Pulsing Breath Graphic in Hero */
.hero-breath-graphic {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-pulse-outer-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed var(--accent-cyan);
  opacity: 0.35;
  animation: rotate-slow 40s linear infinite;
}

.hero-pulse-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-cyan-light) 0%, rgba(0,184,217,0.05) 70%);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  animation: hero-breath 8s infinite ease-in-out;
  position: relative;
  z-index: 2;
}

.hero-pulse-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
}

@keyframes hero-breath {
  0%, 100% { transform: scale(0.85); box-shadow: 0 0 15px rgba(0, 184, 217, 0.2); }
  50% { transform: scale(1.25); box-shadow: 0 0 45px var(--accent-glow); }
}

/* Studio Filter Bar */
.studio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* Tools Section */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-title { font-size: 2.25rem; margin-top: 0.75rem; margin-bottom: 1rem; }
.section-description { font-size: 1.1rem; color: var(--text-muted); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.25rem;
}

.tool-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.tool-tile:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-lg);
}

.tool-header { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.25rem; }
.tool-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-cyan-light); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--accent-cyan); flex-shrink: 0; }
.tool-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }
.tool-name { font-size: 1.3rem; margin-bottom: 0.25rem; }
.tool-timing-badge { font-size: 0.75rem; font-weight: 700; color: var(--accent-teal); background: var(--accent-cyan-light); padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); display: inline-block; }
.tool-benefit { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }

.tool-controls { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-color); }
.rounds-select-group { display: flex; flex-direction: column; gap: 0.6rem; }
.rounds-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; color: var(--text-muted); }
.voice-toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-surface-elevated); padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.voice-switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.voice-switch input { opacity: 0; width: 0; height: 0; }
.voice-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-primary); border: 1px solid var(--border-color); transition: .3s ease; border-radius: 22px; }
.voice-slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: var(--text-muted); transition: .3s ease; border-radius: 50%; }
.voice-switch input:checked + .voice-slider { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal)); border-color: transparent; }
.voice-switch input:checked + .voice-slider:before { transform: translateX(18px); background-color: #ffffff; }
.rounds-pills { display: flex; gap: 0.4rem; }
.pill-opt { padding: 0.25rem 0.65rem; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; }
.pill-opt.active, .pill-opt:hover { background: var(--accent-cyan); color: #ffffff; border-color: var(--accent-cyan); }
.voice-modal-badge { font-size: 0.95rem; font-weight: 700; color: var(--accent-cyan); background: var(--bg-surface-elevated); padding: 0.35rem 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: all var(--transition-fast); }
.voice-modal-badge:hover { border-color: var(--accent-cyan); }
.btn-start-tool { width: 100%; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.feature-card { display: flex; flex-direction: column; }
.feature-icon-wrapper { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--accent-cyan-light); color: var(--accent-teal); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; border: 1px solid var(--border-color); }
.feature-icon-wrapper svg { width: 28px; height: 28px; fill: currentColor; }

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 100%; max-width: 580px; max-height: calc(100vh - 3rem); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2.5rem 2rem; box-shadow: var(--shadow-lg); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin: auto; }
.modal-close-btn { position: absolute; top: 1.25rem; right: 1.25rem; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-primary); border: 1px solid var(--border-color); color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.modal-close-btn:hover { background: #ef4444; color: #fff; }

.breathing-visualizer { position: relative; width: 240px; height: 240px; margin: 1rem 0 2rem; display: flex; align-items: center; justify-content: center; }
.breath-circle-pulse-ring { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); animation: breath-pulse 4s ease-in-out infinite; z-index: 1; pointer-events: none; }
@keyframes breath-pulse { 0%, 100% { transform: scale(0.92); opacity: 0.3; } 50% { transform: scale(1.18); opacity: 0.75; } }
.breath-circle-outer { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px dashed var(--border-color); animation: rotate-slow 60s linear infinite; z-index: 1; }
@keyframes rotate-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.tool-tile { position: relative; overflow: hidden; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tool-tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-teal), transparent); opacity: 0; transition: opacity var(--transition-normal); }
.tool-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--border-hover); }
.tool-tile:hover::before { opacity: 1; }

.breath-circle-main { width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, var(--accent-cyan) 0%, var(--accent-teal) 100%); box-shadow: 0 0 40px var(--accent-glow); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2; }
.breath-phase-text { font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); text-transform: uppercase; margin-bottom: 0.2rem; }
.breath-timer-count { font-size: 2.2rem; font-weight: 800; font-family: var(--font-heading); }
.nostril-cue { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.88rem; font-weight: 700; color: var(--accent-cyan); background: var(--bg-surface-elevated); padding: 0.25rem 0.85rem; border-radius: var(--radius-full); border: 1px solid var(--border-color); }

.session-trackers-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.round-tracker, .session-timer-badge { font-size: 0.95rem; font-weight: 600; padding: 0.35rem 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--border-color); }
.round-tracker { background: var(--accent-cyan-light); color: var(--text-secondary); }
.session-timer-badge { background: var(--bg-surface-elevated); color: var(--accent-teal); }

.affirmation-box { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; margin: 1.5rem 0 2rem; font-style: italic; color: var(--text-primary); font-size: 1.1rem; }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 5rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 4rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; margin-top: 1rem; max-width: 320px; }
.footer-col-title { font-size: 1.1rem; margin-bottom: 1.25rem; color: var(--text-primary); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent-cyan); }
.social-links { display: flex; gap: 0.85rem; }
.social-icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.social-icon-btn svg { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; color: var(--text-muted); flex-wrap: wrap; gap: 1rem; }

@media (max-width: 992px) {
  .hero-title { font-size: 2.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-links { position: fixed; top: 80px; left: 0; width: 100%; background: var(--bg-surface); border-bottom: 1px solid var(--border-color); flex-direction: column; padding: 2rem; gap: 1.5rem; transform: translateY(-150%); transition: transform var(--transition-normal); z-index: 99; }
  .nav-links.active { transform: translateY(0); }
  .hero-title { font-size: 2.25rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 0.5rem; align-items: flex-start; }
  .modal-card { padding: 1.75rem 1.25rem 1.5rem; max-height: none; margin: 0.5rem auto; }
  .breathing-visualizer { width: 180px; height: 180px; margin: 0.5rem 0 1rem; }
  .breath-circle-main { width: 130px; height: 130px; }
}

@media (max-height: 720px) {
  .modal-overlay { align-items: flex-start; padding: 0.5rem; }
  .modal-card { max-height: none; margin: 0.5rem auto; }
  .breathing-visualizer { width: 160px; height: 160px; margin: 0.4rem 0 1rem; }
  .breath-circle-main { width: 120px; height: 120px; }
}
