/* Weather Widget for Boat Rental - Matching Archa Theme */

.weather-widget-container {
    background: #F5ECD9;
    border-radius: 8px;
    border: 2px solid #AF8D57;
    box-shadow: 0 4px 15px rgba(0, 78, 117, 0.2);
    padding: 24px;
    max-width: 900px;
    margin: 20px auto;
    font-family: Arial, Helvetica, sans-serif;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #AF8D57;
    padding-bottom: 15px;
}

.weather-header h2 {
    color: #0F4158;
    margin: 0;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.weather-select {
    padding: 8px 14px;
    border: 2px solid #AF8D57;
    border-radius: 6px;
    background: #FFF;
    color: #38281B;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.weather-select:hover {
    border-color: #DF7300;
    background: #FFFBF5;
}

.weather-select:focus {
    outline: none;
    border-color: #DF7300;
    box-shadow: 0 0 0 3px rgba(223, 115, 0, 0.15);
}

/* Main forecast cards (today & tomorrow) */
.weather-main-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.weather-card {
    background: linear-gradient(135deg, #0a5a7c 0%, #004a6e 100%);
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    border: 1px solid #184765;
    box-shadow: 0 3px 10px rgba(0, 78, 117, 0.3);
}

.weather-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.weather-card-date {
    font-size: 0.9em;
    opacity: 0.9;
}

.weather-card-day {
    font-size: 1.2em;
    font-weight: 600;
}

.weather-condition-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-condition-badge.good {
    background: rgba(34, 160, 80, 0.95);
    color: #fff;
}

.weather-condition-badge.caution {
    background: rgba(223, 115, 0, 0.95);
    color: #fff;
}

.weather-condition-badge.warning {
    background: rgba(173, 23, 32, 0.95);
    color: #fff;
}

.weather-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.weather-icon-large {
    font-size: 3.5em;
    line-height: 1;
}

.weather-temp-main {
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
}

.weather-temp-range {
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 4px;
}

.weather-description {
    font-size: 1.1em;
    margin-bottom: 16px;
    opacity: 0.95;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.weather-detail-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 10px 12px;
}

.weather-detail-label {
    font-size: 0.75em;
    opacity: 0.8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-detail-value {
    font-size: 1em;
    font-weight: 600;
}

/* Condition message */
.weather-condition-message {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85em;
    line-height: 1.4;
}

/* 5-day forecast section */
.weather-forecast-section {
    margin-top: 8px;
}

.weather-forecast-title {
    color: #0F4158;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 16px;
}

.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.weather-forecast-card {
    background: #FFF;
    border: 1px solid #AF8D57;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-forecast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(175, 141, 87, 0.25);
    border-color: #DF7300;
}

.weather-forecast-day {
    font-size: 0.85em;
    font-weight: 600;
    color: #0F4158;
    margin-bottom: 4px;
}

.weather-forecast-date {
    font-size: 0.75em;
    color: #666;
    margin-bottom: 10px;
}

.weather-forecast-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.weather-forecast-temp {
    font-size: 1.2em;
    font-weight: 700;
    color: #0F4158;
    margin-bottom: 4px;
}

.weather-forecast-tempmin {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 8px;
}

.weather-forecast-wind {
    font-size: 0.75em;
    color: #38281B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.weather-forecast-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 8px auto 0;
}

.weather-forecast-badge.good {
    background: #22a050;
}

.weather-forecast-badge.caution {
    background: #DF7300;
}

.weather-forecast-badge.warning {
    background: #AD1720;
}

/* Loading state */
.weather-loading {
    text-align: center;
    padding: 60px 20px;
    color: #0F4158;
}

.weather-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5DBC8;
    border-top-color: #0F4158;
    border-radius: 50%;
    animation: weather-spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes weather-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error state */
.weather-error {
    text-align: center;
    padding: 40px 20px;
    color: #AD1720;
}

.weather-error-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

/* Footer */
.weather-footer {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #AF8D57;
    text-align: right;
    font-size: 0.8em;
    color: #666;
}

.weather-footer a {
    color: #DF7300;
    text-decoration: none;
    font-weight: 600;
}

.weather-footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .weather-widget-container {
        padding: 16px;
        margin: 15px 10px;
    }

    .weather-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .weather-controls {
        width: 100%;
    }

    .weather-select {
        flex: 1;
        min-width: 130px;
    }

    .weather-main-cards {
        grid-template-columns: 1fr;
    }

    .weather-forecast-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .weather-forecast-card {
        padding: 10px 6px;
    }

    .weather-forecast-day {
        font-size: 0.7em;
    }

    .weather-forecast-icon {
        font-size: 1.5em;
    }

    .weather-forecast-temp {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .weather-forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .weather-card-main {
        flex-direction: column;
        text-align: center;
    }

    .weather-details-grid {
        grid-template-columns: 1fr;
    }
}
