/* ===========================
   Tuganedotas - style.css v11
   Cabeçalho responsivo + layout
   =========================== */

/* Reset / base */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Comic Sans MS", "Comic Neue", "Segoe UI", Tahoma, sans-serif;
  background-color: #fffaf0;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- HEADER ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo left, text centered via flex:1 */
  gap: 20px;
  padding: 10px 22px;
  width: 100%;
  height: 200px; /* desktop baseline */
  background:
    linear-gradient(180deg, rgba(255,102,0,0.72), rgba(255,136,0,0.66)),
    url("images/bg-laughs.png") center / cover no-repeat;
  background-blend-mode: overlay;
  color: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding-right: 30px;
  padding-left: 18px;
  flex-wrap: nowrap;
}

/* ensure header fills full width and doesn't get limited by any container */
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

/* Logo */
.site-header .logo {
  height: 200px;            /* requested size */
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
}

/* Header text block sits to the right of logo and is centered in remaining space */
.header-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

/* H1 / H2 styling with shadow (subtle grey shadow, small white stroke) */
.header-text h1 {
  margin: 0;
  font-size: 2.2rem; /* desktop */
  line-height: 1.05;
  color: #000;
  text-shadow: 3px 3px 8px rgba(80,80,80,0.75);
  -webkit-text-stroke: 0.2px #f5f5f5;
  font-weight: 700;
}

.header-text h2 {
  margin: 6px 0 0 0;
  font-size: 1.2rem;
  color: #111;
  font-weight: 400;
  text-shadow: 2px 2px 6px rgba(80,80,80,0.6);
  -webkit-text-stroke: 0.15px #fafafa;
}

/* ---------- SUB-BAR / NAV ---------- */
.sub-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-around;
  padding: 10px 12px;
  background-color: rgba(255, 210, 100, 0.85);
  font-weight: 700;
  flex-wrap: wrap;
}

/* controls inside sub-bar */
.sub-bar .nav-controls { display: flex; gap: 8px; align-items: center; }

/* Share / guide buttons */
button#share-btn, button#guide-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
}
button#share-btn:hover, button#guide-btn:hover { background: rgba(0,0,0,0.06); }

/* ---------- BUTTON GRID ---------- */
#buttons-container {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  justify-items: center;
  align-items: center;
  margin: 18px;
  padding-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Individual buttons */
#buttons-container button {
  width: 80px;
  height: 40px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  background-color: #ffd966;
  cursor: pointer;
  transition: background 0.16s, transform 0.12s, box-shadow 0.12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
}

/* Hover / active */
#buttons-container button:hover { background-color: #ffcc33; transform: translateY(-1px); }
#buttons-container button:active { transform: translateY(0); }

/* Active playing state */
#buttons-container button.active {
  background-color: #ffb84d !important;
  box-shadow: 0 6px 18px rgba(255,136,0,0.28);
  color: #000;
}

/* Smaller font for mobile devices inside button if necessary */
#buttons-container button span.num { font-size: 1.15rem; font-weight: 700; }

/* ---------- FOOTER ---------- */
footer {
  margin: 24px 0 60px;
  font-size: 0.95rem;
  color: #666;
  text-align: center;
}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */
@media (max-width: 1024px) {
  .site-header { height: 180px; padding-left: 14px; padding-right: 14px; }
  .site-header .logo { height: 160px; }
  .header-text h1 { font-size: 1.9rem; }
  .header-text h2 { font-size: 1.05rem; }
}

@media (max-width: 768px) {
  /* Header stacks logo above text and stretches full width */
  .site-header {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 12px 12px;
    text-align: center;
  }
  .site-header .logo {
    height: 140px;
    margin-bottom: 8px;
  }
  .header-text { padding: 6px 10px; }
  .header-text h1 { font-size: clamp(18px, 6vw, 26px); }
  .header-text h2 { font-size: clamp(14px, 3.8vw, 18px); }

  /* Make grid more flexible on very small screens */
  #buttons-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 12px;
  }

  #buttons-container button { width: 70px; height: 38px; font-size: 1.05rem; }
}

/* Very small phone */
@media (max-width: 420px) {
  #buttons-container { grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px; }
  #buttons-container button { width: 64px; height: 36px; font-size: 0.98rem; }
  .site-header .logo { height: 120px; }
}

/* ---------- Accessibility & helpers ---------- */
.visually-hidden { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* Ensure audio-volume slider minor styling */
input[type="range"] { vertical-align: middle; }

/* small utility to ensure header text centered between logo and viewport edge:
   if you want the header-text block centered between the logo and right edge, keep flex:1 on header-text */
