/* Styles for the WTD Band Management Suite admin pages and shortcodes */

/* Admin navigation tabs */
.wtd-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}
.wtd-tabs a {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #222;
    color: #ddd;
    text-decoration: none;
}
.wtd-tabs a.active {
    background: #7a0e12;
    color: #fff;
}

/* Admin panel wrapper */
.wtd-panel {
    background: #111;
    color: #ddd;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}
.wtd-panel label {
    display: block;
    margin: 0.5rem 0 0.25rem;
}
.wtd-panel input[type="text"],
.wtd-panel input[type="url"] {
    width: 100%;
    max-width: 640px;
}

/* Search form */
.wtd-filter {
    margin-bottom: 1rem;
}
.wtd-filter input[type="text"] {
    padding: 0.5rem;
    width: 50%;
}
.wtd-filter button {
    padding: 0.5rem 1rem;
}

/* Card grid */
.wtd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.wtd-card {
    background: #0e0e0e;
    border-radius: 0.75rem;
    padding: 1rem;
    color: #ddd;
}
.wtd-card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.wtd-card h3 {
    /* Maintain top margin for all h3 elements inside cards, but don't force font size here. */
    margin: 0.5rem 0 0;
}
.wtd-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.wtd-tag {
    background: #5c0c10;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Page generator results styling */
.wtd-pg-results.is-loading { opacity: .6; pointer-events: none; }
.wtd-pg-col { flex: 1; min-width: 260px; }
.wtd-pg-col h4 { margin: 0.25rem 0 0.5rem; }
.wtd-pg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.wtd-pg-choice { background: #0e0e0e; border-radius: 0.5rem; padding: 0.5rem; }
.wtd-sub { color: #aaa; font-size: 0.9em; }
.wtd-pg-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.75rem 0 0; }

/* ----- Suite overrides for directory cards ----- */
/* Make the card a flex container so content stacks vertically */
.wtd-card {
    display: flex;
    flex-direction: column;
}

/* Clamp long band names to two lines without breaking words. Adjust font size responsively. */
.wtd-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    line-height: 1.15;
    margin: 0.5rem 0 0;
    font-size: clamp(18px, 1.8vw, 24px);
}

/* Ensure tag chips wrap nicely (already defined but repeated here for clarity) */
.wtd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

/* Spotify and Wikipedia embed styling on band pages */
.wtd-embed {
    margin: 0 0 1.25rem;
}
.wtd-wiki {
    font-size: 1.05rem;
    line-height: 1.6;
}
.wtd-wiki p {
    margin: 0 0 0.9rem;
}

/* v10.4.1 directory tidy-up */
.wtd-az-jumpbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1rem 0 1.25rem;
}
.wtd-az-jumpbar a {
    color: #d92332;
    text-decoration: none;
    font-weight: 700;
}
.wtd-searchbar-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0 1rem;
}
.wtd-searchbar-container .wtd-filter-input,
.wtd-searchbar-container .wtd-filter-select {
    min-width: 180px;
    max-width: 260px;
    width: auto;
    box-sizing: border-box;
}
.wtd-searchbar-container .wtd-clear-button {
    white-space: nowrap;
}
.wtd-band-grid .wtd-letter-anchor {
    display: none !important;
}
.wtd-wiki-article {
    line-height: 1.6;
    margin-top: 1rem;
}
.wtd-wiki-article h2,
.wtd-wiki-article h3 {
    margin-top: 1.4rem;
}
.wtd-tour-dates {
    margin-top: 2rem;
}


/* v10.4.7 admin readability fix */
.wtd-panel,
.wtd-panel p,
.wtd-panel li,
.wtd-panel td,
.wtd-panel th,
.wtd-panel label,
.wtd-panel small,
.wtd-panel span {
    color: #f1f1f1;
}

.wtd-panel h1,
.wtd-panel h2,
.wtd-panel h3,
.wtd-panel h4,
.wtd-panel h5,
.wtd-panel h6,
.wtd-panel .description,
.wtd-panel .wtd-sub,
.wtd-panel .wtd-muted {
    color: #ffffff;
}

.wtd-panel a {
    color: #7aa7ff;
}

.wtd-panel input,
.wtd-panel select,
.wtd-panel textarea {
    color: #111111;
    background: #ffffff;
}

.wtd-panel button,
.wtd-panel .button,
.wtd-panel .button-primary {
    color: #ffffff;
}

.wtd-panel .button:not(.button-primary) {
    background: #1f2937;
    border-color: #3b4a5f;
}

.wtd-panel .button:not(.button-primary):hover,
.wtd-panel .button:not(.button-primary):focus {
    background: #2b384a;
    border-color: #5c6d85;
    color: #ffffff;
}

/* v10.8.1 admin progress bar */
.wtd-progress-wrap {
    display: none;
    max-width: 900px;
    margin: 10px 0 14px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0b0b0b;
    color: #f5f5f5;
}
.wtd-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 700;
}
.wtd-progress-track {
    height: 14px;
    border-radius: 999px;
    background: #222;
    overflow: hidden;
    border: 1px solid #444;
}
.wtd-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3154ff, #d92332);
    transition: width .25s ease;
}
.wtd-progress-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}
.wtd-progress-step {
    border: 1px solid #444;
    border-radius: 999px;
    padding: 3px 8px;
    background: #161616;
    color: #ddd;
    font-size: 12px;
}
.wtd-progress-step.is-working { border-color: #3154ff; color: #ffffff; }
.wtd-progress-step.is-done { border-color: #1f8f4d; color: #bfffd0; }
.wtd-progress-step.is-fail { border-color: #a97900; color: #ffd98a; }

.wtd-check-ok{color:#7dff9b;font-weight:700}.wtd-check-no{color:#ff8a8a;font-weight:700}.wtd-check-table td,.wtd-check-table th{vertical-align:top}.wtd-pg-precheck .widefat{background:#111;color:#eee}.wtd-pg-precheck .widefat th{color:#fff}.wtd-pg-precheck .widefat td{color:#eee}

/* v10.9.2 tour directory cards */
.wtd-tour-directory .wtd-tour-summary {
    margin-top: .6rem;
    font-size: .95rem;
    line-height: 1.35;
    color: #f1f1f1;
}
.wtd-tour-card .wtd-tags {
    margin-top: .75rem;
}

/* Release Watch admin readability */
.wtd-panel .wtd-release-watch-table,
.wtd-panel .wtd-release-watch-table th,
.wtd-panel .wtd-release-watch-table td,
.wtd-panel .wtd-release-watch-table a {
  color: #111 !important;
}
.wtd-panel .wtd-release-watch-table th {
  font-weight: 700;
}
.wtd-panel .wtd-release-watch-table .button {
  color: #fff !important;
}
.wtd-panel .wtd-release-table-wrap {
  overflow-x: auto;
  background: #fff;
}
