/* Ledger Mate Help System CSS */
/* ============================= */

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f5f7f6;
  color: #333;
  line-height: 1.6;
}

/* ---------- Floating Language Bar ---------- */
.lang-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #004d40;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.lang-bar a {
  color: #e0f2f1;
  margin: 4px 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  padding-bottom: 2px;
}

.lang-bar a.active,
.lang-bar a:hover {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Prevent content hiding under fixed navbar */
body {
  padding-top: 52px;
}

/* ---------- Header ---------- */
header {
  background: #00695c;
  color: #fff;
  padding: 32px 16px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 30px;
}

header p {
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.95;
}

/* ---------- Content ---------- */
section {
  max-width: 900px;
  margin: auto;
  padding: 24px 14px;
}

h2 {
  color: #00695c;
  margin-bottom: 8px;
  font-size: 20px;
}

h3 {
  margin-top: 16px;
  color: #444;
  font-size: 16px;
}

.box {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 26px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ---------- Online Tutorial Cards ---------- */
.youtube-tutorials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-bottom: 26px;
}

.youtube-tutorials[hidden] {
  display: none;
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tutorial-thumbnail {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2f1;
  aspect-ratio: 16 / 9;
}

.tutorial-thumbnail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.tutorial-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.tutorial-card h2 {
  margin-top: 16px;
}

.tutorial-language {
  margin: 0 0 8px;
  color: #52605d;
  font-size: 14px;
  font-weight: 600;
}

.tutorial-description {
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}

.watch-youtube {
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 14px;
  border-radius: 7px;
  background: #00695c;
  color: #fff;
}

.watch-youtube:hover,
.watch-youtube:focus-visible {
  background: #004d40;
  color: #fff;
}

ul {
  padding-left: 18px;
  margin: 10px 0;
}

li {
  margin-bottom: 6px;
}

.note {
  background: #e0f2f1;
  padding: 14px;
  border-left: 4px solid #00695c;
  margin-top: 14px;
  border-radius: 6px;
  font-size: 14px;
}

/* ---------- Media Placeholder (Portrait) ---------- */
.media-placeholder,
.video-container {
  margin: 18px auto 0;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #eef2f1;
  border: 1px solid #d0d7d5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.media-placeholder img,
.video-container video,
.video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Footer ---------- */
footer {
  background: #004d40;
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 13px;
}

a {
  color: #00695c;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  header h1 { font-size: 24px; }
  header p { font-size: 14px; }
  .box { padding: 16px; }
  .youtube-tutorials { grid-template-columns: minmax(0, 1fr); }
}
