/* S.L.A.A. Journal Table — Frontend Styles */

#slaa-journal-wrap {
    font-family: inherit;
    max-width: 100%;
}

/* ── Filters ── */
.slaa-journal-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

#slaa-search {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 280px;
    max-width: 100%;
}

#slaa-search:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,.15);
}

.slaa-audio-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #444;
}

/* ── Table ── */
.slaa-journal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.slaa-journal-table thead tr {
    background: #1a3a5c;
    color: #fff;
}

.slaa-journal-table thead th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    white-space: nowrap;
    user-select: none;
}

.slaa-journal-table thead th[data-col] {
    cursor: pointer;
}

.slaa-journal-table thead th[data-col]:hover {
    background: #254d7a;
}

.slaa-journal-table thead th.sort-asc::after  { content: ' ▲'; font-size: 10px; }
.slaa-journal-table thead th.sort-desc::after { content: ' ▼'; font-size: 10px; }

.slaa-journal-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}

.slaa-journal-table tbody tr:last-child { border-bottom: none; }

.slaa-journal-table tbody tr:hover { background: #f5f9ff; }

.slaa-journal-table tbody tr.coming-soon {
    background: #fffbf0;
    color: #888;
    font-style: italic;
}

.slaa-journal-table tbody tr.coming-soon:hover { background: #fff8e1; }

.slaa-journal-table td {
    padding: 10px 14px;
    vertical-align: middle;
}

/* Column widths */
.col-num   { width: 70px;  font-weight: 600; color: #1a3a5c; }
.col-title { min-width: 160px; max-width: 400px; }
.col-date  { width: 130px; color: #666; font-size: 13px; white-space: nowrap; }
.col-pdf   { width: 130px; text-align: center; white-space: nowrap; }
.col-audio { width: 110px; text-align: center; white-space: nowrap; }

/* ── Links ── */
.slaa-pdf-link,
.slaa-audio-link {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.slaa-pdf-link:hover {
    background: #254d7a;
    color: #fff !important;
}

.slaa-audio-link {
    background: #f0f4f8;
    color: #1a3a5c !important;
    border: 1px solid #c5d5e8;
}

.slaa-audio-link:hover {
    background: #dce9f5;
}

.slaa-no-pdf,
.slaa-no-audio,
.slaa-soon-text {
    color: #ccc;
}

/* ── Badges ── */
.slaa-badge-soon {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    vertical-align: middle;
}

.slaa-badge-audio {
    font-size: 16px;
    opacity: .5;
}

/* ── Footer ── */
.slaa-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.slaa-no-results {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .col-date  { display: none; }
    .col-num   { width: 50px; }
    .slaa-pdf-link,
    .slaa-audio-link { padding: 3px 6px; font-size: 12px; }
    #slaa-search { width: 100%; }
}
