/* ===== IMPORTS & ROOT VARIABLES ===== */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

:root {
  --bg: #fff;
  --card: #f7fafc;
  --accent: #0353c4;
  --muted: #6b6f76;
  --glass: rgba(255, 255, 255, 0.6);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
}

/* ===== GLOBAL STYLES ===== */
h1,
h2,
h3 {
  font-family: "Segoe UI", sans-serif;
}

ul {
  margin: 8px 0 10px 20px;
  padding: 0;
}

a.link {
  color: var(--accent);
  text-decoration: none;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.abc-nav {
  margin-bottom: 20px;
}

.abc-nav a {
  margin: 0 5px;
  text-decoration: none;
  font-weight: bold;
}

.abc-nav .selected {
  color: #fff;
  background: #333;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  max-width: 800px;
  margin: 16px auto;
  padding: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 22px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO & CTA ===== */
.hero {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 0;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 30px rgba(12, 38, 80, 0.06);
}

.hero .intro2 {
  flex: 1;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cta {
  margin-top: 14px;
  text-align: center;
}

.hero2 {
  background: #f0f6ff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  background: #0948c0;
}

.btn-large {
  font-size: 18px;
  padding: 14px 28px;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(12, 38, 80, 0.04);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card h3 {
  margin-top: 0;
  color: #222;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ===== LISTS & CATEGORIES ===== */
.list {
  margin-top: 20px;
}

.genre-tree {
  margin-top: 20px;
}

.genre-item {
  margin-bottom: 15px;
}

.genre-item strong {
  font-size: 1.2em;
}

.genre-item ul {
  list-style-type: disc;
  margin-left: 20px;
}

/* ===== UTILITY CLASSES ===== */
.icon {
  font-size: 20px;
  margin-right: 10px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.genre-form-container {
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 12px;
}

.form-select {
  width: 100%;
  padding: 6px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-select:hover {
  border-color: #999;
}

.form-select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.form-actions {
  text-align: right;
  margin-top: 25px;
}

.btn-primary {
  background-color: #4caf50;
  color: white;
  padding: 6px 15px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  background-color: #45a049;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  margin-top: 28px;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .lira-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .lira-icon {
    margin-bottom: 10px;
  }
}
