/**
 * Majsterkowo Heatmap - Style frontendu
 * 
 * Nowoczesny, premium design mapy ciepła zamówień
 */

/* ==========================================================================
   Sekcja główna
   ========================================================================== */

#majsterkowo-heatmap {
    border: 1px solid #eeeeee;
}


.majsterkowo-heatmap-section {
    padding: 3rem 0;
    margin: 2rem 0;
}

/* ==========================================================================
   Nagłówek
   ========================================================================== */

.heatmap-header {
    text-align: center;
    margin-bottom: 2rem;
}

.heatmap-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.heatmap-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* ==========================================================================
   Kontener mapy
   ========================================================================== */

.heatmap-container {
    width: 100%;
    height: 600px;
    min-height: 400px;
    max-height: 600px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

/* Stylowanie SVG mapy */
.heatmap-container svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Legenda
   ========================================================================== */

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.legend-label {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

.legend-gradient {
    width: 200px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg,
            hsl(60, 70%, 65%) 0%,
            hsl(30, 85%, 50%) 50%,
            hsl(0, 90%, 40%) 100%);
}

/* ==========================================================================
   Tooltip
   ========================================================================== */

.jvm-tooltip {
    background: #1e293b !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    border: none !important;
    font-family: inherit !important;
    z-index: 1000 !important;
}

.heatmap-tooltip {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.heatmap-tooltip strong {
    font-weight: 600;
    font-size: 0.9375rem;
}

.tooltip-orders {
    color: #93c5fd;
    font-weight: 500;
}

.tooltip-no-orders {
    color: #94a3b8;
    font-style: italic;
}

/* ==========================================================================
   Przyciski zoom
   ========================================================================== */

#majsterkowo-heatmap .jvm-zoom-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 22px !important;
    text-align: center !important;
    border-radius: 0.375rem !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

#majsterkowo-heatmap .jvm-zoom-btn:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

#majsterkowo-heatmap .jvm-zoom-btn.jvm-zoomin {
    border-radius: 0.375rem 0.375rem 0 0 !important;
    border-bottom: none !important;
}

#majsterkowo-heatmap .jvm-zoom-btn.jvm-zoomout {
    border-radius: 0 0 0.375rem 0.375rem !important;
    top: 41px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .majsterkowo-heatmap-section {
        padding: 2rem 0;
        margin: 1rem 0;
        border-radius: 0;
    }

    .heatmap-title {
        font-size: 1.5rem;
    }

    .heatmap-subtitle {
        font-size: 1rem;
    }

    .heatmap-container {
        height: 350px;
        min-height: 300px;
        border-radius: 0;
    }

    .heatmap-legend {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .legend-gradient {
        width: 150px;
        order: 2;
        flex-basis: 100%;
    }

    .legend-low {
        order: 1;
    }

    .legend-high {
        order: 3;
    }
}

@media (max-width: 480px) {
    .heatmap-container {
        height: 280px;
        min-height: 250px;
    }

    .heatmap-title {
        font-size: 1.25rem;
    }
}