/* =========================================
   LOCAL RESOURCE PAGE STYLES: Diatonic Chord Charts
   Builds on top of ../../shared/global.css
   ========================================= */

/* ─── Page title ─── */
.resourceMainTitle {
  text-align: center;
  font-size: calc(22px * var(--font-scale));
  font-weight: 900;
  color: var(--text-main);
  margin: 0;
  padding: 0 12px;
}

/* ─── Navigation panel ───
   Same shape & padding as the game pages' controlsPanel / actionsGrid
   (see games/higherOrLower/higherlowerstyle.css). */
.controlsPanel {
  background: var(--bg-surface);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 10px;
  padding-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

body.light-theme .controlsPanel {
  border-color: rgba(0, 0, 0, 0.06);
}

.actionsGrid {
  display: flex;
  gap: 6px;
  width: 100%;
}

/* This panel only has one row of buttons, so no margin-bottom is needed
   below it (unlike game pages, which have a second row underneath). */
.resourceNavGrid {
  margin-bottom: 0;
}

.actionsGrid .flex-text-btn {
  flex: 1;
  padding: 0 4px;
  font-size: calc(14px * var(--font-scale));
  white-space: nowrap;
}

.secondary-btn {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 4px 0 var(--bg-elevated);
  font-size: calc(15px * var(--font-scale));
}
.secondary-btn:active:not(:disabled) {
  box-shadow: 0 0px 0 var(--bg-elevated);
  transform: translateY(4px);
}

/* ─── Intro text ─── */
.resourceIntro p {
  text-align: center;
  font-size: calc(15px * var(--font-scale));
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 4px;
}

/* ─── Chord chart images ─── */
.resourceImages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resourceImageBtn {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--bg-surface);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

body.light-theme .resourceImageBtn {
  border-color: rgba(0, 0, 0, 0.06);
}

.resourceImageBtn:hover {
  border-color: var(--accent);
}

.resourceImageBtn:active {
  transform: translateY(3px);
}

.resourceImg {
  display: block;
  width: 100%;
  height: auto;
}
