/* InkPads Team Synergy Stylesheet */

/* Tab Button Styling */
.synergy-tabs .tab-btn {
    transition: all 0.2s ease-in-out;
    border-radius: 4px 4px 0 0;
}

.synergy-tabs .tab-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
}

.synergy-tabs .tab-btn.active {
    color: var(--main-color) !important;
}

/* Heatmap Table Styling */
.heatmap-table {
    border-collapse: separate;
    border-spacing: 2px;
}

.heatmap-table th, 
.heatmap-table td {
    position: relative;
    vertical-align: middle;
}

/* Column and Row headers */
.col-header-text {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 90px;
    font-size: 0.8rem;
}

.row-header-text {
    white-space: nowrap;
    font-size: 0.85rem;
}

/* Sticky First Column (Frozen Username Column) */
.heatmap-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 6;
    background-color: var(--bg-color) !important;
    border-right: 2px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.heatmap-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: var(--bg-color) !important;
    border-right: 2px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: bold;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

/* Heatmap Cell Styling */
.heatmap-cell {
    width: 65px;
    height: 48px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    border-radius: 3px;
}

.heatmap-cell:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 10;
}

.heatmap-cell.cell-diagonal {
    background: rgba(255,255,255,0.02) !important;
    color: rgba(255,255,255,0.25) !important;
}

.heatmap-cell.cell-insufficient {
    background: rgba(0, 0, 0, 0.15) !important;
    color: rgba(255, 255, 255, 0.15) !important;
    cursor: not-allowed;
}

/* Statistical Significance Border Indicators */
.heatmap-cell.sig-high {
    box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.25);
}

.heatmap-cell.sig-med {
    box-shadow: inset 0 0 0 1px rgba(241, 196, 15, 0.25);
}

.heatmap-cell.sig-low {
    box-shadow: none;
}

/* Lineup Builder Styles */
.builder-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
}

.synergy-player-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.synergy-player-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.synergy-player-label input:checked + span {
    color: var(--main-color);
    font-weight: bold;
}

/* Builder Report Details */
.lineup-player-badge {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.metric-card {
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

/* Nudge Banner states */
.synergy-nudge-banner {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.synergy-nudge-banner code {
    padding: 2px 6px;
    border-radius: 4px;
}

.synergy-nudge-banner.locked code {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.synergy-nudge-banner.unlocked code {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

/* Pinned player button active state */
.pin-btn.pinned {
    color: var(--main-color) !important;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.pin-btn {
    transition: color 0.2s ease, transform 0.2s ease;
}

.pin-btn:hover {
    transform: scale(1.2);
    color: var(--main-color) !important;
}

/* Lineup Recommendation card styling */
.lineup-card {
    transition: transform 0.22s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.22s ease;
}

.lineup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Autocomplete/styled inputs inside blueprint constraints table */
.blueprint-class-select,
.blueprint-pref-ship,
.blueprint-alt-ships {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.blueprint-class-select:focus,
.blueprint-pref-ship:focus,
.blueprint-alt-ships:focus {
    border-color: var(--main-color) !important;
    background-color: rgba(0,0,0,0.3) !important;
    outline: none;
}

#generateLineupBtn {
    background: var(--main-color);
    border: none;
    color: #0d0d0d !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.15);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    width: auto;
    min-width: 220px;
    padding: 10px 24px;
    margin: 0.75rem auto 0 auto;
    display: block;
}

#generateLineupBtn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(0, 255, 136, 0.3);
    filter: brightness(1.1);
}

#generateLineupBtn:active {
    transform: translateY(0.5px);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.15);
}
