/*
 * mdc-weather-base.css
 * Structural and functional styles for mdc_weather.
 * Uses CSS variables with fallbacks for theming.
 */

:root {
    --mdc-weather-primary: #3b82f6;
    --mdc-weather-secondary: #4b5563;
    --mdc-weather-accent: #f59e0b;
    --mdc-weather-bg: #ffffff;
    --mdc-weather-bg-light: #f9fafb;
    --mdc-weather-border: #e5e7eb;
    --mdc-weather-text: #111827;
    --mdc-weather-text-muted: #6b7280;
    --mdc-weather-font-heading: sans-serif;
    --mdc-weather-font-body: sans-serif;
}

/* Base structural styles for the weather components */

.mdc-weather-full {
    width: 100%;
    font-family: var(--mdc-weather-font-body);
    color: var(--mdc-weather-text);
    margin-bottom: 40px;
}

.mdc-weather-full__header {
    text-align: center;
    margin-bottom: 30px;
}

.mdc-weather-full__header-temp {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mdc-weather-primary);
    font-family: var(--mdc-weather-font-heading);
}

.mdc-weather-full__main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 100px;
    margin-bottom: 40px;
}

.mdc-weather-full__metrics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mdc-weather-full__metric-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
}

.mdc-weather-full__metric-val {
    font-weight: 700;
}

.mdc-weather-full__icon-large {
    flex: 0 0 auto;
    text-align: center;
}

.mdc-weather-full__icon-large .wi {
    font-size: 80px;
    line-height: 1;
    color: var(--mdc-weather-primary);
}

.mdc-weather-full__section {
    width: 100%;
    border-top: 1px solid var(--mdc-weather-border);
    padding-top: 30px;
    margin-top: 40px;
}

.mdc-weather-full__section h2,
.mdc-weather-full__section h3 {
    font-family: var(--mdc-weather-font-heading);
    color: var(--mdc-weather-primary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.mdc-weather-full__section-meta {
    color: var(--mdc-weather-text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
    text-align: center;
}

.mdc-weather-full__hourly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    overflow-x: auto;
}

.mdc-weather-full__hour-item {
    text-align: center;
    padding: 10px;
}

.mdc-weather-full__hour-icon {
    font-size: 30px;
    color: var(--mdc-weather-primary);
}

.mdc-weather-full__daily-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.mdc-weather-full__day-details {
    flex: 1 1 110px;
    max-width: 140px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mdc-weather-full__day-details:hover {
    border-color: var(--mdc-weather-accent);
}

/* Teaser / Summary Layout */

.mdc-weather-summary {
    background: var(--mdc-weather-bg);
    border-radius: 12px;
    border: 1px solid var(--mdc-weather-border);
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto;
    font-family: var(--mdc-weather-font-body);
}

.mdc-weather-summary__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    align-items: stretch;
}

.mdc-weather-summary__section {
    padding: 15px;
    border-radius: 8px;
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    border: 1px solid var(--mdc-weather-border);
}

.mdc-weather-summary__header {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--mdc-weather-font-heading);
    color: var(--mdc-weather-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--mdc-weather-border);
    padding-bottom: 6px;
    text-transform: uppercase;
}

.mdc-weather-summary__temp {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mdc-weather-text);
    line-height: 1;
}

.mdc-weather-summary__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 1.25rem;
    color: var(--mdc-weather-text-muted);
}

.mdc-weather-summary .details-btn {
    color: var(--mdc-weather-primary);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--mdc-weather-font-heading);
    font-size: 1.25rem;
    background: #fff;
    padding: 8px 24px;
    border-radius: 6px;
    border: 2px solid var(--mdc-weather-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.mdc-weather-summary .details-btn:hover {
    background: var(--mdc-weather-primary);
    color: #fff;
    transform: translateY(-2px);
}