/* Additional styles for location selector disabled state and info tooltip */

.location-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.info-tooltip {
    font-size: 1.2rem;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s;
    color: var(--color-text-secondary);
}

.info-tooltip:hover {
    opacity: 1;
}

.header-content strong {
    color: var(--color-accent-primary);
    font-weight: 600;
}

/* ══════════════════════════════════════════
   Strike Rate Deep Dive Modal
══════════════════════════════════════════ */

.dd-open-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.12);
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: all 0.2s;
    white-space: nowrap;
}
.dd-open-btn:hover {
    background: rgba(102, 126, 234, 0.28);
    border-color: rgba(102, 126, 234, 0.9);
    color: #fff;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.35);
}

.dd-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: ddFadeIn 0.2s ease-out;
}
.dd-overlay.active { display: flex; }

@keyframes ddFadeIn { from { opacity: 0; } to { opacity: 1; } }

.dd-modal {
    background: linear-gradient(160deg, #1a1f3a 0%, #0f1729 100%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    animation: ddSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ddSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.dd-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dd-title { font-size: 20px; font-weight: 700; color: #fff; margin: 0; }
.dd-subtitle { font-size: 13px; color: #64748b; margin: 4px 0 0; }
.dd-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 10px;
    transition: all 0.15s;
}
.dd-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.dd-controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.dd-control-group { display: flex; flex-direction: column; gap: 8px; }
.dd-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dd-label input[type=checkbox] { cursor: pointer; accent-color: #667eea; width: 14px; height: 14px; }

.dd-date-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dd-date-sep { color: #475569; font-size: 14px; }
.dd-date-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    padding: 7px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    color-scheme: dark;
}
.dd-date-input:focus { border-color: rgba(102,126,234,0.6); }
.dd-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    padding: 7px 12px;
    outline: none;
    cursor: pointer;
    color-scheme: dark;
}

.dd-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dd-preset-btn {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.dd-preset-btn:hover, .dd-preset-btn.active {
    background: rgba(102,126,234,0.2);
    border-color: rgba(102,126,234,0.6);
    color: #a5b4fc;
}

.dd-location-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-loc-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.dd-loc-chip.selected {
    background: rgba(102,126,234,0.18);
    border-color: rgba(102,126,234,0.7);
    color: #a5b4fc;
}

.dd-fetch-btn {
    align-self: flex-start;
    padding: 10px 28px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}
.dd-fetch-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(102,126,234,0.45); }
.dd-fetch-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.dd-chart-wrap {
    position: relative;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    min-height: 260px;
    margin-bottom: 20px;
}
.dd-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    border-radius: 12px;
    background: rgba(15,23,41,0.6);
}

.dd-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); }
.dd-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #cbd5e1; }
.dd-table th {
    background: rgba(102,126,234,0.12);
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    text-align: right;
}
.dd-table th:first-child { text-align: left; }
.dd-table td { padding: 9px 14px; border-top: 1px solid rgba(255,255,255,0.04); text-align: right; }
.dd-table td:first-child { text-align: left; font-weight: 500; }
.dd-table tr:hover td { background: rgba(102,126,234,0.06); }
.dd-table .strike-highlight { color: #a5b4fc; font-weight: 700; }
.dd-table .fallback-denom { color: #94a3b8; font-size: 11px; }