* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Insights Modal Styles */
.insights-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: overlay-appear 0.3s ease-out;
}

.insights-modal {
    background: #2a2a2a;
    border: 2px solid #555;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: modal-slide-up 0.3s ease-out;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #444;
}

.insights-header h2 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.insights-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.insights-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.insights-content {
    padding: 20px 24px;
}

.position-info {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: #333;
    border-radius: 8px;
}

.current-position,
.range-type {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.position-label,
.range-label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 500;
}

.insights-modal .position-name,
.insights-modal .range-name {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

.insights-range-display {
    margin-bottom: 24px;
}

.insights-range-display .range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

.insights-range-display .range-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.insights-range-display .range-stats {
    font-size: 14px;
    color: #aaa;
}

.insights-range-display .range-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: #444;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 2px;
    margin-bottom: 16px;
}

.insights-range-display .hand-row {
    display: flex;
    gap: 1px;
}

.insights-range-display .hand-cell {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.insights-range-display .hand-cell.frequency-fill {
    position: relative;
    overflow: hidden;
    color: #fff !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    box-sizing: border-box;
}

.insights-range-display .hand-cell.frequency-fill:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.insights-range-display .range-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.insights-range-display .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #aaa;
}

.insights-range-display .legend-color {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.strategy-tips-section {
    background: #333;
    border-radius: 8px;
    padding: 16px;
}

.strategy-tips-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tip-item {
    font-size: 14px;
    color: #aaa;
    padding: 8px 12px;
    background: #2a2a2a;
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
}

.no-range-message {
    text-align: center;
    padding: 40px 20px;
    background: #333;
    border-radius: 8px;
    margin-bottom: 24px;
}

.no-range-message h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #fff;
}

.no-range-message p {
    margin: 8px 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
}

/* Mobile (Short) - max-width: 700px and max-height: 800px */
@media (max-width: 700px) {
    .insights-modal {
        width: 95%;
        margin: 20px auto;
        max-height: 90vh;
    }

    .insights-header {
        padding: 16px 20px;
    }

    .insights-header h2 {
        font-size: 20px;
    }

    .insights-content {
        padding: 16px 20px;
    }

    .position-info {
        flex-direction: column;
        gap: 12px;
    }

    .insights-range-display .hand-cell {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }

    .insights-range-display .range-legend {
        gap: 12px;
    }

    .insights-range-display .legend-item {
        font-size: 12px;
    }

    .insights-range-display .legend-color {
        width: 12px;
        height: 12px;
    }
}