/* =========================================================
   Baseball Hot - Scout Center
   css/scout.css
   整理版：移除重複 override / !important
========================================================= */

/* =========================================================
   1. Page Layout
========================================================= */

.scout-page-wrapper {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.scout-title-line {
    border: 0;
    height: 5px;
    background: rgb(5, 71, 0);
    margin: -10px 10px 14px 0;
    opacity: 1;
}

/* =========================================================
   2. Status Message
========================================================= */

.scout-status {
    display: none;
    margin: 0 10px 14px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #dbe4db;
    color: #334155;
    font-weight: 800;
    line-height: 1.6;
}

.scout-status.active {
    display: block;
}

.scout-status.error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.scout-status.success {
    background: #f0fff4;
    border-color: #bbf7d0;
    color: rgb(5, 71, 0);
}

/* =========================================================
   3. Summary Cards
========================================================= */

.scout-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 10px 16px 0;
}

.scout-summary-card {
    background: linear-gradient(180deg, #f0fff0 0%, #ffffff 100%);
    border: 1px solid #d8ead8;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.scout-summary-card .summary-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 6px;
}

.scout-summary-card .summary-value {
    color: rgb(5, 71, 0);
    font-size: 22px;
    font-weight: 900;
}

/* =========================================================
   4. Tabs
========================================================= */

.scout-tabs {
    margin: 0 10px 14px 0;
}

.scout-tab-pane {
    display: none;
    margin-right: 10px;
}

.scout-tab-pane.active {
    display: block;
}

.scout-page-wrapper.is-loading .scout-tab-pane {
    display: none !important;
}

/* =========================================================
   5. Main Card
========================================================= */

.scout-card {
    background: #ffffff;
    border: 1px solid #dbe4db;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.scout-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.scout-card-head h2 {
    margin: 0 0 6px;
    color: rgb(5, 71, 0);
    font-size: 22px;
    font-weight: 900;
}

.scout-subtitle {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

/* =========================================================
   6. Form
========================================================= */

.scout-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.scout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scout-field span {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.scout-field select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cfdccf;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    outline: none;
}

.scout-field select:focus {
    border-color: rgb(5, 71, 0);
    box-shadow: 0 0 0 2px rgba(5, 71, 0, 0.12);
}

.scout-vip-field select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.scout-vip-only.is-hidden {
    display: none !important;
}

.scout-vip-only[hidden] {
    display: none !important;
}

/* =========================================================
   7. Probability Box
========================================================= */

.scout-probability-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.prob-title {
    color: #334155;
    font-weight: 900;
    margin-bottom: 6px;
}

.prob-list {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 800;
}

/* =========================================================
   8. Buttons
========================================================= */

.scout-action-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.scout-primary-btn,
.scout-sign-btn,
.scout-player-link {
    border: 0;
    border-radius: 10px;
    background: rgb(5, 71, 0);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.scout-primary-btn {
    border-radius: 999px;
    padding: 10px 18px;
}

.scout-sign-btn {
    padding: 10px 18px;
}

.scout-player-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 16px;
}

.scout-primary-btn:hover,
.scout-sign-btn:hover,
.scout-player-link:hover {
    filter: brightness(1.08);
}

.scout-primary-btn:disabled,
.scout-sign-btn:disabled {
    background: #9ca3af;
    opacity: 0.65;
    cursor: not-allowed;
}

/* =========================================================
   9. Empty / Placeholder Result
========================================================= */

.scout-result-box,
.scout-placeholder {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 16px;
    color: #64748b;
    font-weight: 800;
    line-height: 1.7;
}

/* =========================================================
   10. Inspect Player Tables
========================================================= */

.scout-inspect-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.scout-inspect-status-box {
    background: #f8fafc;
    border: 1px solid #dbe4db;
    border-radius: 14px;
    padding: 14px 16px;
}

.scout-inspect-status-title {
    color: rgb(5, 71, 0);
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 6px;
}

.scout-inspect-status-text {
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.scout-inspect-section {
    background: #ffffff;
    border: 1px solid #dbe4db;
    border-radius: 14px;
    overflow: hidden;
}

.scout-inspect-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(90deg, rgb(5, 71, 0), #0b7a22);
    color: #ffffff;
}

.scout-inspect-section-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.scout-inspect-count {
    font-size: 13px;
    font-weight: 900;
    opacity: 0.95;
}

.scout-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.scout-inspect-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: auto;
    color: #0f172a;
    font-size: 14px;
}

.scout-inspect-table th,
.scout-inspect-table td {
    padding: 6px 3px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    white-space: nowrap;
}

/* 偵查表格：欄位分隔線 */
.scout-inspect-table th:nth-child(1),
.scout-inspect-table td:nth-child(1),
.scout-inspect-table th:nth-child(2),
.scout-inspect-table td:nth-child(2),
.scout-inspect-table th:nth-child(3),
.scout-inspect-table td:nth-child(3),
.scout-inspect-table th:nth-child(4),
.scout-inspect-table td:nth-child(4),
.scout-inspect-table th:nth-child(8),
.scout-inspect-table td:nth-child(8),
.scout-inspect-table th:nth-child(14),
.scout-inspect-table td:nth-child(14),
.scout-inspect-table th:nth-child(15),
.scout-inspect-table td:nth-child(15) {
    border-right: 1px solid #cbd5e1;
}

.scout-inspect-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 900;
}

.scout-inspect-table td {
    font-weight: 800;
}

.scout-inspect-table tbody tr:hover {
    background: #f0fff4;
}

.scout-table-empty {
    padding: 18px !important;
    color: #64748b;
    font-weight: 900;
    text-align: center !important;
}

.scout-inspect-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgb(5, 71, 0);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.scout-inspect-link:hover {
    filter: brightness(1.08);
}

.scout-inspect-team-link {
    color: #334155;
    font-weight: 900;
    text-decoration: none;
}

.scout-inspect-team-link:hover {
    color: rgb(5, 71, 0);
    text-decoration: underline;
}

.scout-inspect-name-link {
    color: rgb(5, 71, 0);
    font-weight: 900;
    text-decoration: none;
}

.scout-inspect-name-link:hover {
    text-decoration: underline;
}

/* =========================================================
   10. Candidate Card
========================================================= */

.scout-prospect-card {
    color: #111827;
}

.scout-result-title {
    color: rgb(5, 71, 0);
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 10px;
}

.scout-prospect-main {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
}

.scout-prospect-avatar-real {
    width: 210px;
    height: 323px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ee 100%);
    border: 1px solid #d7e7d7;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.scout-prospect-avatar-real canvas {
    width: 210px;
    height: 323px;
    display: block;
    object-fit: contain;
    transform: none;
}

.scout-prospect-info {
    min-width: 0;
    padding-top: 12px;
    color: #0f172a;
}

.scout-prospect-name {
    font-size: 30px;
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 14px;
}

.scout-prospect-meta {
    color: #475569;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}

.scout-prospect-detail-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 17px;
    font-weight: 800;
    color: #334155;
    line-height: 1.45;
}

.scout-prospect-info-divider {
    width: 450px;
    max-width: 100%;
    border-top: 1px dashed #cbd5e1;
    margin: 16px 0 14px;
}

.scout-prospect-report-line {
    font-size: 16px;
    font-weight: 800;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 4px;
}

.scout-prospect-report-line strong {
    color: rgb(5, 71, 0);
    font-weight: 900;
}

/* 舊版報告區塊目前不使用，避免和新版球探評語重複 */
.scout-report-block {
    display: none;
}

/* =========================================================
   11. Contract Box
========================================================= */

.scout-result-actions {
    margin-top: 8px;
}

.scout-contract-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
}

.scout-contract-box-signed {
    background: #ffffff;
}

.scout-contract-title {
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 4px;
}

.scout-contract-note {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

.scout-contract-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 14px;
}

.scout-contract-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.scout-contract-option input {
    width: 16px;
    height: 16px;
    accent-color: rgb(5, 71, 0);
}

.scout-signed-contract-info {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff8f0;
    border: 1px solid #ffd883;
    color: rgb(5, 71, 0);
    font-size: 15px;
    font-weight: 900;
}

/* =========================================================
   12. Responsive
========================================================= */

@media (max-width: 900px) {
    .scout-summary-grid,
    .scout-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scout-prospect-main {
        gap: 18px;
    }

    .scout-prospect-avatar-real,
    .scout-prospect-avatar-real canvas {
        width: 180px;
        height: 277px;
    }

    .scout-prospect-name {
        font-size: 26px;
    }

    .scout-prospect-detail-list {
        font-size: 16px;
    }
}

@media (max-width: 680px) {
    .scout-prospect-main {
        flex-direction: column;
        align-items: center;
    }

    .scout-prospect-info {
        width: 100%;
        padding-top: 0;
    }

    .scout-prospect-name {
        text-align: center;
    }

    .scout-prospect-detail-list {
        align-items: center;
    }

    .scout-prospect-info-divider {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .scout-summary-grid,
    .scout-form-grid {
        grid-template-columns: 1fr;
    }

    .scout-card {
        padding: 14px;
    }

    .scout-action-row {
        justify-content: stretch;
    }

    .scout-primary-btn,
    .scout-sign-btn,
    .scout-player-link {
        width: 100%;
    }

    .scout-prospect-avatar-real,
    .scout-prospect-avatar-real canvas {
        width: 210px;
        height: 323px;
    }
}