/**
 * Kleingarten Wetter - Frontend Styles
 */

.kgw-weather-map-container {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#windy {
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kgw-weather-info {
    margin-top: 15px;
}

.kgw-weather-hint {
    padding: 12px 15px;
    background-color: #f5f5f5;
    border-left: 4px solid #00a0d2;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.kgw-weather-warnings {
    margin-bottom: 15px;
}

.kgw-warning {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.kgw-warning.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kgw-frost-warning {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.kgw-rain-warning {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

.kgw-warning-icon {
    font-size: 24px;
    margin-right: 12px;
}

.kgw-warning-text {
    flex: 1;
}

.kgw-weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 6px;
}

.kgw-weather-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kgw-weather-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.kgw-weather-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.kgw-error {
    padding: 20px;
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
    border-radius: 4px;
    text-align: center;
}

/* Garden Plot Markers */
.kgw-garden-marker {
    background: transparent;
    border: none;
}

.kgw-garden-icon {
    font-size: 24px;
    text-align: center;
    line-height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.kgw-garden-icon:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    #windy {
        height: 400px !important;
    }
    
    .kgw-weather-hint {
        font-size: 13px;
    }
}
