/* ================================================
   woofer-results.css
   Styles for woofer-results.php — inherits all
   variables from style.css (loaded first).
   ================================================ */

/* ── Full-page wrapper ── */
.wr-page {
    padding: 40px 36px 80px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: var(--white-section);
    min-height: 100vh;
}

/* Cover full main area behind the centered wrapper */
main {
    background-color: var(--white-section) !important;
}

/* ── Page header ── */
.wr-header {
    margin-bottom: 36px;
}

.wr-header-inner {
    max-width: 900px;
}

.wr-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    margin-bottom: 18px;
    transition: opacity .2s;
}

.wr-back:hover { opacity: .7; }

.wr-header .sec_title {
    margin-bottom: 12px;
}

.wr-subtitle {
    font-size: 14px;
    color: var(--form-label);
    line-height: 1.7;
    margin: 0;
}

/* ── Form ── */
.wr-form-wrap {
    background: #3d3d3d;
    border: 1px solid var(--form-border);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 40px;
}
body.light-theme .wr-form-wrap {
    background: #f2f2f2;
}

.wr-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 4px 24px;
    color: #ffffff;
}
body.light-theme .wr-form-grid {
    color: #1a1a1a;
}

.wr-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: .02em;
}
body.light-theme .wr-field label {
    color: var(--form-label);
}

.wr-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.wr-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--form-label);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--form-border);
    transition: border-color .2s, color .2s;
}

.wr-reset-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ── Status messages ── */
.wr-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.wr-msg--idle {
    background: rgba(255,123,0,.06);
    border: 1px solid rgba(255,123,0,.2);
    color: var(--form-label);
}

.wr-msg--info {
    background: rgba(66,153,225,.08);
    border: 1px solid rgba(66,153,225,.25);
    color: var(--form-label);
}

.wr-msg--warn {
    background: rgba(224,82,82,.08);
    border: 1px solid rgba(224,82,82,.25);
    color: #e05252;
}

/* ── Results header ── */
.wr-results-header {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.wr-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--form-label);
}

/* ── Group sections ── */
.wr-group {
    margin-bottom: 40px;
}

.wr-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--secondary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--form-border);
}

/* ── Table ── */
.wr-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--form-border);
}

.wr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wr-table thead th {
    background: var(--secondary);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wr-table thead th:first-child { border-radius: 11px 0 0 0; }
.wr-table thead th:last-child  { border-radius: 0 11px 0 0; }

.wr-table tbody tr {
    border-bottom: 1px solid var(--form-border);
    transition: background .15s;
}

.wr-table tbody tr:last-child { border-bottom: none; }

.wr-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.02);
}

.wr-table tbody tr:hover {
    background: rgba(255,123,0,.07);
}

.wr-table tbody td {
    padding: 9px 14px;
    white-space: nowrap;
    color: var(--form-color);
    font-size: 13px;
}

.wr-table tbody td.wr-idx {
    color: var(--form-label);
    font-size: 11px;
    text-align: center;
    font-weight: 600;
    min-width: 32px;
}

/* Bold brand in Identity table */
.wr-group:first-of-type .wr-table tbody td:nth-child(2) {
    font-weight: 700;
    color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .wr-page {
        padding: 24px 20px 60px;
    }

    .wr-form-wrap {
        padding: 20px 18px;
    }

    .wr-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px 16px;
    }
}

@media (max-width: 520px) {
    .wr-form-grid {
        grid-template-columns: 1fr;
    }

    .wr-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wr-reset-btn {
        text-align: center;
        justify-content: center;
    }
}
