/**
 * Weather-Circle-Widget.css
 * Enkel och ren styling f�r weather circle button
 */

/* D�lj den befintliga bilden */
.weather-circle-button img,
.weather-circle-button .weather-circle-icon {
    display: none !important;
}

/* Ny styling f�r weather-circle-button */
.weather-circle-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(13, 71, 161, 0.3);
    padding: 0;
    flex-shrink: 0;
    position: relative;
}

    /* L�gg till tre prickar med CSS */
    .weather-circle-button::before {
        content: '';
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='12' r='2.5'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='2.5'%3E%3C/circle%3E%3Ccircle cx='19' cy='12' r='2.5'%3E%3C/circle%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: block;
    }

    .weather-circle-button:hover {
        background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(13, 71, 161, 0.4);
        border-color: white;
    }

/* Mobilanpassning */
@media (max-width: 767.98px) {
    .weather-circle-button {
        width: 22px !important;
        height: 22px !important;
    }

        .weather-circle-button::before {
            width: 12px !important;
            height: 12px !important;
        }
}

@media (max-width: 576px) {
    .weather-circle-button {
        width: 20px !important;
        height: 20px !important;
    }

        .weather-circle-button::before {
            width: 10px !important;
            height: 10px !important;
        }
}

/* Tooltip och popup styling */
.weather-circle-tooltip {
    position: fixed;
    z-index: 9999;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    pointer-events: auto;
    padding: 8px;
    overflow: hidden;
}

.weather-circle-popup {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: none;
    width: auto;
}

.circle-header {
    display: none;
}

.circle-metrics {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 4px;
}

.circle-metric {
    flex: 1;
    padding: 12px 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

    .circle-metric.humidity {
        background: linear-gradient(135deg, #bbdefb 0%, #2196f3 100%);
    }

    .circle-metric.pressure {
        background: linear-gradient(135deg, #d1c4e9 0%, #673ab7 100%);
    }

    .circle-metric.precipitation {
        background: linear-gradient(135deg, #b2dfdb 0%, #009688 100%);
    }

.circle-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 4px;
    padding: 4px;
}

    .circle-icon img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

.circle-value {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0;
    text-align: center;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.circle-label {
    font-size: 11px;
    text-align: center;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.tooltip-error {
    padding: 10px;
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 576px) {
    .weather-circle-popup {
        padding: 0.75rem;
        max-width: 280px;
    }

    .circle-metrics {
        min-width: 260px;
    }
}
