/*
Theme Name: Sonus Medicatrix
Description: Peaceful custom theme for Sonus Medicatrix, a sanctuary for relaxation and healing.
Version: 1.0
Author: dauphine963
*/

/* Sanctuary Theme Variables */
:root {
  --bg: #e8f5e8;
  --text: #2e4a2e;
  --muted: #6b8e6b;
  --accent: #4caf50;
  --warn: #b00020;
  --border: #c8e6c9;
  --sky: #87ceeb;
  --grass: #228b22;
  --foliage: #32cd32;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  position: relative;
  overflow-x: hidden;
}

.navbar {
  border-radius: 15px;
  padding: 15px 25px;
  margin: 20px auto 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  max-width: 960px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0;
}

.navbar a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: font-size 0.3s ease;
}

.navbar a:hover {
  font-size: 1.1em;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 8px;
  color: white;
  font-weight: 600;
  align-items: center;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.menu-label {
  display: none;
  color: white;
  font-weight: 600;
}

/* Mobile Styles */
@media (max-width: 480px) {
  .hamburger {
    display: flex;
  }

  .menu-label {
    display: block;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--foliage) 0%, var(--grass) 100%);
    border-radius: 0 0 15px 15px;
    padding: 10px;
    gap: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .navbar ul.show {
    display: flex;
    z-index: 1000;
  }

  .navbar li {
    text-align: center;
  }

  .navbar a {
    padding: 8px;
    display: block;
  }
}

/* Container responsiveness */
@media (max-width: 480px) {
  .container {
    max-width: 100% !important;
    padding: 15px !important;
  }
}

.container {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

h1 {
  text-align: center;
  color: var(--text);
  font-size: 2.16em;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

p {
  text-align: left;
  margin: 4px 0;
  font-size: 1em;
}

p strong {
  color: #d32f2f;
}

ul,
ol {
  font-size: 1em;
  margin: 4px 0;
  padding-left: 20px;
}

.solfeggio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.solfeggio-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.solfeggio-list label:hover {
  background-color: #f0f0f0;
}

.solfeggio-list li {
  list-style: none;
}

.solfeggio-button {
  display: block;
  padding: 15px;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-align: left;
  white-space: nowrap;
}

.solfeggio-button:hover {
  transform: scale(1.05);
}

.solfeggio-button input[type="radio"] {
  display: none;
}

.chakra-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.chakra-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chakra-list label:hover {
  background-color: #f0f0f0;
}

.chakra-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.chakra-table th,
.chakra-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.chakra-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}

.chakra-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.chakra-table .playing {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  font-weight: bold;
}

.body-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.body-table th,
.body-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.body-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 11px;
}

.body-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.body-table .selected {
  background-color: #d1ecf1;
  border-left: 4px solid #17a2b8;
  font-weight: bold;
}

.body-table .playing {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  font-weight: bold;
}

.solfeggio-buttons button:nth-child(1) {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%); /* Soft red */
}

.solfeggio-buttons button:nth-child(2) {
  background: linear-gradient(
    135deg,
    #ffb74d 0%,
    #ff9800 100%
  ); /* Soft orange */
}

.solfeggio-buttons button:nth-child(3) {
  background: linear-gradient(
    135deg,
    #fff176 0%,
    #ffeb3b 100%
  ); /* Soft yellow */
}

.solfeggio-buttons button:nth-child(4) {
  background: linear-gradient(
    135deg,
    #81c784 0%,
    #4caf50 100%
  ); /* Soft green */
}

.solfeggio-buttons button:nth-child(5) {
  background: linear-gradient(135deg, #64b5f6 0%, #2196f3 100%); /* Soft blue */
}

.solfeggio-buttons button:nth-child(6) {
  background: linear-gradient(
    135deg,
    #ba68c8 0%,
    #9c27b0 100%
  ); /* Soft indigo */
}

.solfeggio-buttons button:nth-child(7) {
  background: linear-gradient(
    135deg,
    #e57373 0%,
    #f44336 100%
  ); /* Soft violet */
}

.solfeggio-buttons button:nth-child(8) {
  background: linear-gradient(
    135deg,
    #ffb74d 0%,
    #ff9800 100%
  ); /* Repeat soft orange */
}

.solfeggio-buttons button:nth-child(9) {
  background: linear-gradient(
    135deg,
    #81c784 0%,
    #4caf50 100%
  ); /* Repeat soft green */
}

.chakra-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.chakra-buttons button {
  padding: 15px;
  border: none;
  border-radius: 10px;
  color: black;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-align: left;
  white-space: pre-line;
}

.chakra-buttons button:hover {
  transform: scale(1.05);
}

.chakra-buttons button:nth-child(1) {
  background: linear-gradient(
    135deg,
    #ff6b6b 0%,
    #ee5a52 100%
  ); /* Red for Root */
}

.chakra-buttons button:nth-child(2) {
  background: linear-gradient(
    135deg,
    #ffb74d 0%,
    #ff9800 100%
  ); /* Orange for Sacral */
}

.chakra-buttons button:nth-child(3) {
  background: linear-gradient(
    135deg,
    #fff176 0%,
    #ffeb3b 100%
  ); /* Yellow for Solar Plexus */
}

.chakra-buttons button:nth-child(4) {
  background: linear-gradient(
    135deg,
    #81c784 0%,
    #4caf50 100%
  ); /* Green for Heart */
}

.chakra-buttons button:nth-child(5) {
  background: linear-gradient(
    135deg,
    #64b5f6 0%,
    #2196f3 100%
  ); /* Blue for Throat */
}

.chakra-buttons button:nth-child(6) {
  background: linear-gradient(
    135deg,
    #ba68c8 0%,
    #9c27b0 100%
  ); /* Indigo for Third Eye */
}

.chakra-buttons button:nth-child(7) {
  background: linear-gradient(
    135deg,
    #e57373 0%,
    #f44336 100%
  ); /* Violet for Crown */
}

ol,
ul {
  margin: 5px 0 5px 20px;
}

li {
  margin-bottom: 2px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

label {
  font-weight: 600;
  color: #555;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  border-color: #667eea;
  outline: none;
}

.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 5px;
  background: #ddd;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
}

input[type="number"] {
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  width: 100px;
}

input[type="text"] {
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  width: 80px;
}

.buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

#stopBtn {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

#stopBtn:hover {
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

#clearBtn {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

#clearBtn:hover {
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

#resetBtn {
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

#resetBtn:hover {
  box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

#playAllBtn {
  background: linear-gradient(135deg, #0b6efd, #0056b3);
}

#playAllBtn:hover {
  box-shadow: 0 6px 20px rgba(11, 110, 253, 0.4);
}

#shareUrl {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

#shareUrl textarea {
  width: 100%;
  margin-top: 10px;
}

footer {
  max-width: 960px;
  margin: 40px auto 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.75em;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-section {
  flex: 1;
}

.footer-section.left {
  display: flex;
  justify-content: flex-start;
}

.footer-section.center {
  display: flex;
  justify-content: center;
}

.footer-section.right {
  display: flex;
  justify-content: flex-end;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 900;
}

footer a:hover {
  text-decoration: underline;
}

.center-text {
  text-align: center;
}

.volume-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.volume-controls button {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: normal;
  transition: none;
  box-shadow: none;
}

.volume-controls button:hover {
  background: rgba(255, 255, 255, 1);
}

.top-row,
.bottom-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.top-row .section,
.bottom-row .section {
  flex: 1;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .top-row,
  .bottom-row {
    flex-direction: column;
    gap: 10px;
  }

  body {
    padding: 10px;
    font-size: 14px;
  }

  .container {
    padding: 20px;
  }

  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }

  .navbar li {
    text-align: center;
  }

  h1 {
    font-size: 2em;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }

  .buttons {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
    gap: 15px;
  }

  .footer-section {
    justify-content: center;
  }

  body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
      sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
  }
  .container {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  h1,
  h2,
  h3 {
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  p {
    margin: 0 0 1rem 0;
  }
  ul,
  ol {
    margin: 0 0 1rem 1.25rem;
  }
  li {
    margin: 0.25rem 0;
  }
  .lead {
    color: var(--muted);
    font-style: italic;
  }
  .note {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
  }
  .warning {
    border-left: 4px solid var(--warn);
    background: #fff5f5;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    color: #7a1420;
  }
  kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
      "Liberation Mono", "Courier New", monospace;
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-size: 0.95em;
  }
  .list-tight li {
    margin: 0.15rem 0;
  }
  .sub-list {
    margin-top: 0.5rem;
  }
  small {
    font-size: 0.95em;
    color: var(--muted);
  }
  hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
  }

  .footer-section {
    margin-bottom: 10px;
  }
}

/* Mobile responsiveness for chakra table */
@media (max-width: 600px) {
  .chakra-table {
    font-size: 0.7em;
  }
  .chakra-table th,
  .chakra-table td {
    padding: 6px 8px;
  }
}

/* Mobile responsiveness for body table */
@media (max-width: 600px) {
  .body-table {
    font-size: 0.65em;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
  .body-table th,
  .body-table td {
    padding: 4px 6px;
  }
}

/* Mobile responsiveness for solfeggio buttons */
@media (max-width: 600px) {
  .solfeggio-button {
    font-size: 0.75em;
    padding: 12px;
  }
  .solfeggio-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.duration-details {
  font-weight: normal;
  color: #777;
  font-size: 0.9em;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.controls-row .section:nth-child(1) {
  width: 120px;
}

.controls-row .section:nth-child(2) {
  width: 100px;
}

.controls-row .section:nth-child(3) {
  width: 150px;
}

.controls-row .section:nth-child(4) {
  width: 300px;
}

.controls-row #freqInput {
  width: 80px;
}

/* Moon Info Styles */
.moon-info {
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.moon-phase {
  text-align: center;
}

.moon-phase img {
  width: 64px;
  height: 64px;
  display: none; /* Hidden by default, shown by JS */
}

.moon-phase p {
  font-size: 10px;
  color: white;
  margin: 5px 0 0 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Sidebar Layout */
.blog-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.page-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content {
  grid-column: 1;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header {
  margin-bottom: 20px;
}

.sidebar {
  grid-column: 2;
  background: var(--bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar a {
  color: var(--text);
}

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

.widget {
  margin-bottom: 20px;
}

.widget-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.2em;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .sidebar {
    grid-column: 1;
    grid-row: 2;
  }
}
