/* ============================================================================
   link-extractor.css - HTML Link Extractor only
   ============================================================================
   Loaded by:  web-scraping-tools/html-link-extractor.php
   Purpose:    The link-analysis output area (.link-output) and the generated
               results table (.link-table) with its type badges (.lt-badge-*).
               The output area mirrors the shared textarea metrics (same 400px
               height and 10px vertical margins) so the Input and Output boxes
               align top & bottom. The table is built with DOM APIs, so the
               styles are safe.
   Load order: AFTER tool-input.css.
   ============================================================================ */

.link-output {
    background: linear-gradient(180deg, #e9ecf1 0%, #e2e6ec 100%);
    border: 1px solid #c9ced8;
    border-radius: 8px;
    height: 400px;
    min-height: 400px;
    padding: 12px 14px;
    overflow: auto;
    margin: 10px 0 10px 0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.link-output-empty {
    color: #8a94a3;
    font-size: 15px;
    text-align: center;
    line-height: 1.7;
    padding: 140px 20px 0 20px;
}

.link-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    line-height: 1.45;
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(24, 40, 60, 0.16);
}

.link-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #1b8a40 0%, #11612b 100%);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
    padding: 10px 12px;
    border-bottom: 2px solid #0c4a20;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    box-shadow: 0 3px 6px -2px rgba(12, 46, 24, 0.3);
}

.link-table thead th:first-child {
    border-top-left-radius: 7px;
}

.link-table thead th:last-child {
    border-top-right-radius: 7px;
}

.link-table tbody td {
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    color: #2c3e50;
    border-bottom: 1px solid #eef1f6;
    transition: background-color 0.15s ease;
}

.link-table tbody tr:last-child td {
    border-bottom: none;
}

.link-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 7px;
}

.link-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}

.link-table tbody tr:nth-child(even) td {
    background-color: #f6f9f7;
}

.link-table tbody tr:hover td {
    background-color: #e9f5ee;
}

.link-table td.lt-url a {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 17px;
    font-weight: 500;
    color: #0e7c33;
    text-decoration: none;
    border-bottom: 1px dotted rgba(14, 124, 51, 0.45);
    transition: color 0.15s ease;
}

.link-table td.lt-url a:hover {
    color: #0a5a26;
    border-bottom-style: solid;
}

.link-table .lt-no-href {
    color: #9aa3b0;
    font-style: italic;
    font-size: 17px;
}

.link-table .lt-dim {
    color: #a7b0bb;
}

.link-table .lt-text {
    font-size: 16px;
}

.link-table .lt-type {
    text-align: center;
    white-space: nowrap;
}

.link-table .lt-type span {
    display: inline-block;
    min-width: 70px;
    text-align: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.link-table .lt-type span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    background: currentColor;
    opacity: 0.85;
}

.lt-badge-external   { background-color: #d7f0de; color: #0f7a2f; }
.lt-badge-internal   { background-color: #d9e8fc; color: #0b5ed7; }
.lt-badge-anchor     { background-color: #fcf0cf; color: #8f6110; }
.lt-badge-mailto     { background-color: #fce1de; color: #bd3226; }
.lt-badge-tel        { background-color: #eadcf7; color: #7a39ac; }
.lt-badge-javascript { background-color: #fce6cf; color: #c4620d; }
.lt-badge-empty      { background-color: #e6e9ee; color: #6f7885; }
