/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/


/* ===== General mobile-friendly layout ===== */

#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px;
}

#app h2,
#app h3 {
  line-height: 1.2;
  margin-top: 22px;
  margin-bottom: 12px;
}

#app input[type="text"],
#app select,
#app textarea,
#app button {
  font-size: 16px; /* prevents iPhone zoom */
}

/* ===== Sticky control bar ===== */

.ops-sticky-controls {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  padding: 10px 0 12px;
  border-bottom: 1px solid #e5e5e5;
}

/* ===== Artist search / filters ===== */

#search,
#gear-search,
#gear-item-name,
#gear-location,
#gear-artist,
#filter-band,
#filter-venue {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
}

.ops-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ===== Artist list ===== */

#artist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.artist-row {
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
}

.artist-name {
  font-size: 18px;
  line-height: 1.25;
}

.artist-status,
.artist-urgency,
.artist-next-set,
.artist-sets-wrap,
.artist-sets li {
  font-size: 15px;
}

.artist-actions {
  margin-top: 12px;
}

.artist-actions button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== Urgency states ===== */

.artist-row.urgency-urgent {
  border-color: #d63638;
  background: #fff5f5;
}

.artist-row.urgency-soon {
  border-color: #dba617;
  background: #fff9e8;
}

.artist-row.urgency-normal {
  border-color: #ddd;
  background: #fff;
}

.artist-row.urgency-none {
  border-color: #ddd;
  background: #f8f8f8;
}

.urgency-urgent .artist-urgency {
  color: #b42318;
  font-weight: 700;
}

.urgency-soon .artist-urgency {
  color: #9a6700;
  font-weight: 700;
}

.artist-next-set {
  margin-top: 6px;
  color: #555;
}

.artist-sets-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.artist-sets-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.artist-sets {
  margin: 0;
  padding-left: 18px;
}

/* ===== Venue / Band cards ===== */

#venue-view,
#band-view,
#gear-view {
  display: grid;
  gap: 14px;
}

.venue-block,
.band-block,
.gear-row {
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.venue-title,
.band-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.venue-section,
.band-set-item,
.venue-set-item {
  font-size: 15px;
}

.venue-section {
  margin-top: 10px;
}

.venue-section.now {
  font-weight: 700;
}

.venue-section.next {
  color: #9a6700;
}

.venue-section.later {
  color: #666;
  font-size: 14px;
}

/* ===== Gear form ===== */

.gear-form {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
}

.gear-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.gear-form button,
.gear-actions button,
.gear-location-preset,
.gear-item-preset {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
}

#gear-create-btn {
  width: 100%;
  border: 0;
  font-weight: 700;
}

.gear-location-buttons,
.gear-item-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gear-location-preset,
.gear-item-preset {
  border: 1px solid #ccc;
  background: #f7f7f7;
}

.gear-meta > div {
  margin-top: 4px;
  font-size: 15px;
}

.gear-actions {
  margin-top: 12px;
}

.gear-actions button {
  width: 100%;
  border: 0;
  font-weight: 700;
}

.gear-stored {
  background: #eef8ee;
  border-color: #7fb77e;
}

.gear-collected {
  background: #f3f3f3;
  border-color: #bbb;
}

/* ===== Checkbox row ===== */

.ops-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  font-size: 15px;
}

/* ===== Mobile tweaks ===== */

@media (max-width: 768px) {
  #app {
    padding: 10px;
  }

  .ops-filter-row {
    grid-template-columns: 1fr;
  }

  .gear-location-buttons,
  .gear-item-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .artist-row,
  .venue-block,
  .band-block,
  .gear-row,
  .gear-form {
    padding: 12px;
    border-radius: 12px;
  }

  .artist-name,
  .venue-title,
  .band-title {
    font-size: 17px;
  }
}

/* ===== Very small screens ===== */

@media (max-width: 480px) {
  .gear-location-buttons,
  .gear-item-buttons {
    grid-template-columns: 1fr;
  }

  .artist-actions button,
  .gear-actions button,
  #gear-create-btn {
    min-height: 50px;
  }
}

html {
  scroll-behavior: smooth;
}

.ops-tab-bar {
  position: sticky;
  top: 132px;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 0 12px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.ops-tab-link {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f7f7f7;
  color: inherit;
  font-weight: 600;
}

.ops-tab-link:hover,
.ops-tab-link:focus {
  background: #eee;
}

section[id] {
  scroll-margin-top: 190px;
}

@media (max-width: 768px) {
  .ops-tab-bar {
    top: 120px;
    gap: 6px;
  }

  .ops-tab-link {
    padding: 10px 8px;
    font-size: 14px;
  }

  section[id] {
    scroll-margin-top: 175px;
  }
}

@media (max-width: 480px) {
  .ops-tab-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}