/* GuitarChordster Global Styles */
:root {
  --primary: #4caf50;
  --primary-dark: #388e3c;
  --accent: #8e24aa;
  --bg: #f7f7f7;
  --card-bg: #fff;
  --text: #222;
  --border: #e0e0e0;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --logo-green: #4caf50;
  --dark-bg: #23272f;
  --dark-text: #e0e0e0;
  --dark-card-bg: #2c313a;
  --dark-border: #444;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}
.container {
  max-width: 900px;
  margin: 40px auto;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 48px;
  position: relative;
  transition: background 0.3s, color 0.3s;
  min-width: 0;
}
h1, h2, h3, h4 {
  font-weight: bold;
  margin-top: 0;
  color: var(--primary-dark);
  text-align: center;
}
a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}
nav.main-menu {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}
nav.main-menu ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  background: none;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
nav.main-menu ul li { margin: 0; }
nav.main-menu ul li a {
  padding: 7px 7px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  display: inline-block;
}
nav.main-menu ul li a:hover, nav.main-menu ul li a:focus {
  background: var(--primary);
  color: #fff;
}
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin-right: 8px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 5px 0;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}
@media (max-width: 900px) {
  nav.main-menu ul {
    font-size: 0.95rem;
  }
  nav.main-menu ul li a {
    padding: 7px 6px;
  }
}
@media (max-width: 600px) {
  .container { padding: 16px !important; }
  h1 { font-size: 1.5rem !important; }
  .logo-main { font-size: 1.1rem !important; }
  nav.main-menu ul {
    display: none;
    flex-direction: column !important;
    gap: 0 !important;
    font-size: 1rem !important;
    padding: 12px 0;
    background: var(--card-bg);
  }
  nav.main-menu ul.open {
    display: flex !important;
  }
  nav.main-menu ul li {
    padding: 12px 0;
    text-align: center;
  }
  .hamburger { display: block; position: absolute; left: 18px; top: 18px; z-index: 20; }
}
.logo-main {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--text);
  transition: color 0.2s;
}
.logo-pick {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}
.logo-green { color: var(--logo-green); transition: color 0.2s; }
.button, button, input[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(76,175,80,0.07);
  outline: none;
}
.button:hover, button:hover {
  background: var(--primary-dark);
  color: #fff;
}
.button:focus, button:focus {
  box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
}
.card, .info-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 24px;
  transition: background 0.3s, color 0.3s;
}
input, select, textarea {
  font-size: 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 6px 12px;
  margin-bottom: 12px;
  background: #fff;
  color: var(--text);
  transition: border 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }
footer {
  text-align: center;
  color: #888;
  font-size: 0.98rem;
  margin-top: 48px;
  margin-bottom: 12px;
}
/* Utility classes */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-bold { font-weight: bold; }
.text-muted { color: #888; }
@media (max-width: 600px) {
  .mt-4 { margin-top: 20px; }
  .mb-4 { margin-bottom: 20px; }
}
/* Animations */
nav.main-menu ul, .card, .container, .logo-main, .button {
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
nav.main-menu ul.open {
  animation: menuSlideDown 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 601px) {
  nav.main-menu ul {
    gap: 24px;
  }
}

/* Slider styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  margin-top: -8px;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

/* About page specific styles */
.about-text {
  text-align: center;
  font-size: 1.15rem;
  margin-top: 32px;
  color: var(--text);
}

@media (max-width: 600px) {
  .about-text {
    font-size: 1rem !important;
    padding: 0 4px;
  }
}

/* Contact page specific styles */
.contact-text {
  text-align: center;
  font-size: 1.15rem;
  margin: 32px 0 48px 0;
  color: var(--text);
}

.contact-text a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

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

@media (max-width: 600px) {
  .contact-text {
    font-size: 1rem !important;
    padding: 0 4px;
  }
}

/* Scale Builder specific styles */
.scale-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.scale-card {
  flex: 1 1 320px;
  background: #f3f7fa;
  border-radius: 10px;
  padding: 24px 18px;
  box-shadow: 0 2px 8px rgba(76,175,80,0.07);
  min-width: 260px;
}

.scale-card.minor {
  background: #f8f3fa;
  box-shadow: 0 2px 8px rgba(156,39,176,0.07);
}

.scale-card h2 {
  margin-top: 0;
}

.scale-card.major h2 {
  color: var(--primary-dark);
}

.scale-card.minor h2 {
  color: var(--accent);
}

.scale-pattern {
  font-family: monospace;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.scale-description {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.scale-example {
  margin-bottom: 10px;
}

.scale-note {
  color: var(--primary-dark);
  font-size: 0.98rem;
}

.scale-card.minor .scale-note {
  color: var(--accent);
}

.scale-divider {
  width: 2px;
  background: linear-gradient(to bottom, #e0e0e0 60%, #bdbdbd 100%);
  margin: 0 0px;
  min-height: 180px;
  align-self: center;
}

/* Metronome specific styles */
.metronome-controls {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.05);
  margin: 20px 0;
}

.metronome-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 24px auto;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.5;
}

.bpm-display {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
}

.bpm-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2rem;
}

.bpm-buttons button {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  border-radius: 50%;
}

#start-stop {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  margin: 0 auto;
}

#start-stop.playing {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* Tuner specific styles */
.tuner-controls {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.05);
  margin: 10px 0;
}

.tuner-display {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 10px 0;
  background: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

.led-meter {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  margin: 5px 0;
  background: #000;
  border-radius: 4px;
  padding: 0 10px;
}

.led-segment {
  width: 8px;
  height: 40px;
  margin: 0 2px;
  background: #333;
  border-radius: 2px;
  transition: background-color 0.1s;
}

.led-segment.active {
  background: var(--primary);
}

.led-segment.center {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.note-display {
  position: relative;
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 10px 0;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.string-reference {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 0 0;
  padding: 10px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
}

.string-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.string-item.active {
  background: var(--primary);
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
  transform: scale(1.05);
}

.string-item.active .string-number,
.string-item.active .string-note,
.string-item.active .string-octave {
  color: white;
}

.string-number {
  font-weight: bold;
  color: var(--primary);
  font-size: 1.2rem;
}

.string-note {
  font-weight: bold;
  font-size: 1.2rem;
}

.string-octave {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

.tuner-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 24px auto;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.5;
}

.frequency-display {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}

.tuning-status {
  font-size: 1.2rem;
  color: #fff;
  text-align: center;
  margin-top: 5px;
}

.tuning-status.in-tune {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.tuning-status.out-of-tune {
  color: #f44336;
}

#visualizer {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 0 0 20px 0;
}

.mic-button {
  padding: 15px 30px;
  font-size: 1.2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0;
}

.mic-button:hover {
  background: var(--primary-dark);
}

.mic-button.active {
  background: #f44336;
}

.mic-button.active:hover {
  background: #d32f2f;
}

/* Dark mode styles */
.container.dark-mode {
  background: var(--dark-bg);
  color: var(--dark-text);
  box-shadow: 0 2px 16px rgba(0,0,0,0.32);
}

.container.dark-mode .metronome-description,
.container.dark-mode .tuner-description,
.container.dark-mode .string-octave {
  color: #bbb;
}

.container.dark-mode .metronome-controls,
.container.dark-mode .tuner-controls {
  border-color: #81ffb0;
  background: rgba(129, 255, 176, 0.05);
}

.container.dark-mode .bpm-display {
  color: var(--dark-text);
}

.container.dark-mode input[type="range"] {
  background: var(--dark-card-bg);
  color: var(--dark-text);
  border: 1px solid var(--dark-border);
}

.container.dark-mode .tuner-display {
  background: #1a1a1a;
}

.container.dark-mode .note-display {
  color: #fff;
}

.container.dark-mode .string-item {
  background: var(--dark-card-bg);
  color: var(--dark-text);
}

.container.dark-mode .string-item.active {
  background: var(--primary);
}

.container.dark-mode .scale-mark {
  background: #666;
}

.container.dark-mode .scale-mark.center {
  background: #81ffb0;
}

.container.dark-mode .tuner-needle {
  background: #ff6b6b;
}

.container.dark-mode nav.main-menu ul {
  background: var(--dark-bg);
}

.container.dark-mode .logo-main {
  color: var(--dark-text);
}

.container.dark-mode .logo-green {
  color: #81ffb0;
}

.container.dark-mode .main-menu a {
  color: var(--dark-text);
}

.container.dark-mode .main-menu a:hover {
  color: #81ffb0;
}

/* Responsive styles */
@media (max-width: 600px) {
  .metronome-description,
  .tuner-description {
    font-size: 1rem !important;
    padding: 0 4px;
  }
  
  .scale-info {
    gap: 16px;
  }
  
  .scale-card {
    min-width: 100%;
  }
  
  .scale-divider {
    display: none;
  }
  
  .string-reference {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .string-item {
    padding: 6px 12px;
  }
}

.logo-row {
  margin-bottom: 24px;
} 