/* Custom Table Block — seo-table dark theme styles */

.seo-table-block {
    margin-bottom: 40px;
}

.seo-table-block h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main, #fff);
    margin-bottom: 12px;
}

.seo-table-block p {
    font-size: 15px;
    color: var(--text-muted, #8A93A6);
    line-height: 1.6;
    margin-bottom: 20px;
}

.seo-table-block .table-note-text {
    font-size: 14px;
    color: var(--text-muted, #8A93A6);
    margin-top: 12px;
}

/* Scrollable wrapper */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    background-color: var(--bg-surface, #151A23);
    border: 1px solid var(--border-color, #2A3140);
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color, #2A3140) transparent;
}

.table-responsive-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--border-color, #2A3140);
    border-radius: 10px;
}

/* The table */
.seo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: max-content;
    text-align: left;
}

/* Header */
.seo-table th {
    background-color: rgba(21, 26, 35, 0.95);
    color: var(--text-muted, #8A93A6);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color, #2A3140);
    white-space: nowrap;
}

/* Cells */
.seo-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-main, #fff);
    border-bottom: 1px solid rgba(38, 45, 61, 0.4);
    white-space: nowrap;
}

/* Last row without bottom border */
.seo-table tbody tr:last-child td {
    border-bottom: none;
}

/* Zebra rows */
.seo-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.15);
}

/* Row hover */
.seo-table tbody tr:hover td {
    background-color: rgba(0, 229, 116, 0.05);
}

/* Brand cell */
.table-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo badge */
.t-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.t-logo.bg-purple { background-color: #7B61FF; }
.t-logo.bg-dark    { background-color: #2A3140; }
.t-logo.bg-red     { background-color: #E84040; }
.t-logo.bg-green   { background-color: #00E574; color: #0D1117; }
.t-logo.bg-orange  { background-color: #FF9900; color: #0D1117; }
.t-logo.bg-blue    { background-color: #1565C0; }

/* Sticky first column */
.seo-table th:first-child,
.seo-table td.sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: var(--bg-surface, #151A23);
}

/* Shadow on sticky column */
.seo-table td.sticky-col::after,
.seo-table th:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

/* Sticky column backgrounds for zebra/hover */
.seo-table tbody tr:nth-child(even) td.sticky-col {
    background-color: #12161e;
}

.seo-table tbody tr:hover td.sticky-col {
    background-color: #171d26;
}
