/**
 * Oceaneye Live Weather Widget Styles
 * Dark-themed modern design - Compact layout
 */

.oceaneye-weather-widget {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 500px;
    margin: 20px auto;
}

/* Image Section with Overlay */
.oceaneye-weather-image-section {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0f0f0f;
}

.oceaneye-weather-location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.oceaneye-weather-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #888;
    font-size: 14px;
}

/* Wind Condition Overlay Badge */
.oceaneye-weather-wind-condition-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    background-color: darkgreen;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
    backdrop-filter: blur(4px);
}

/* Weather Data Section */
.oceaneye-weather-data-section {
    padding: 16px;
    background: #1a1a1a;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Metrics Container (Wind & Wave) */
.oceaneye-weather-metrics-container {
    background: #252525;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oceaneye-weather-metrics-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2d2d2d;
}

/* Metrics Row */
.oceaneye-weather-metrics-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

/* Individual Metric */
.oceaneye-weather-metric {
    display: flex;
    align-items: center;
    gap: 6px;
}

.oceaneye-weather-metric-icon {
    font-size: 16px;
    color: #4a9eff;
    transition: transform 0.75s ease, color 0.3s ease;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.oceaneye-weather-number {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    transition: color 0.3s ease;
}

.oceaneye-weather-unit {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

/* Hidden elements for JavaScript data */
.oceaneye-weather-hidden {
    display: none !important;
    visibility: hidden;
}

.oceaneye-weather-value {
    display: none;
}

/* Error Messages */
.oceaneye-weather-error {
    background: #2a1a1a;
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 16px;
    color: #ff6666;
    text-align: center;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .oceaneye-weather-widget {
        margin: 20px 10px;
        border-radius: 8px;
        max-width: 100%;
    }
    
    .oceaneye-weather-image-section {
        height: 180px;
    }
    
    .oceaneye-weather-wind-condition-overlay {
        top: 10px;
        right: 10px;
        padding: 5px 11px;
        font-size: 10px;
    }
    
    .oceaneye-weather-data-section {
        padding: 12px;
        gap: 10px;
    }
    
    .oceaneye-weather-metrics-container {
        padding: 12px;
    }
    
    .oceaneye-weather-number {
        font-size: 14px;
    }
    
    .oceaneye-weather-metric-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .oceaneye-weather-data-section {
        grid-template-columns: 1fr;
    }
}