/* GetSkiBots — front-end widget styles, mobile-first */

.gsb-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* ── Alert banner ───────────────────────────────── */
.gsb-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 8px;
}

.gsb-alert--info    { background: #dbeafe; color: #1e40af; border-left: 4px solid #2563eb; }
.gsb-alert--warning { background: #fef9c3; color: #854d0e; border-left: 4px solid #eab308; }
.gsb-alert--danger  { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }

/* ── Snow report grid ───────────────────────────── */
.gsb-snow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gsb-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: #f0f8ff;
    border-radius: 10px;
    text-align: center;
}

.gsb-stat--wide {
    grid-column: 1 / -1;
}

.gsb-stat__val {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a6b;
    line-height: 1;
}

.gsb-stat__val--sm {
    font-size: 1.1rem;
}

.gsb-stat__lbl {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 4px;
}

/* ── Lists ──────────────────────────────────────── */
.gsb-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gsb-list__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.gsb-list__item:last-child { border-bottom: none; }

/* ── Status dots ────────────────────────────────── */
.gsb-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gsb-dot--green { background: #22c55e; }
.gsb-dot--red   { background: #ef4444; }
.gsb-dot--amber { background: #f59e0b; }
.gsb-dot--blue  { background: #3b82f6; }
.gsb-dot--gray  { background: #9ca3af; }

/* ── Badges ─────────────────────────────────────── */
.gsb-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-left: auto;
}

.gsb-badge--open,
.gsb-badge--available { background: #dcfce7; color: #166534; }
.gsb-badge--closed    { background: #fee2e2; color: #991b1b; }
.gsb-badge--hold      { background: #fef9c3; color: #854d0e; }
.gsb-badge--full      { background: #fee2e2; color: #991b1b; }
.gsb-badge--limited   { background: #fef9c3; color: #854d0e; }
.gsb-badge--grooming  { background: #dbeafe; color: #1e40af; }

/* ── Difficulty indicators ──────────────────────── */
.gsb-difficulty {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gsb-difficulty--green  { background: #22c55e; }
.gsb-difficulty--blue   { background: #3b82f6; border-radius: 0; }
.gsb-difficulty--black  { background: #111; border-radius: 0; transform: rotate(45deg); }
.gsb-difficulty--double-black { background: #111; }

/* ── Weather ────────────────────────────────────── */
.gsb-weather-current {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.gsb-temp {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a3a6b;
    line-height: 1;
}

.gsb-weather-cond,
.gsb-weather-wind {
    font-size: 0.9rem;
    color: #6b7280;
}

.gsb-forecast {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.gsb-forecast::-webkit-scrollbar { display: none; }

.gsb-forecast__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    gap: 2px;
}

.gsb-forecast__label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
}

.gsb-forecast__hi {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
}

.gsb-forecast__lo {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ── Hours ──────────────────────────────────────── */
.gsb-hours__today { font-size: 1rem; margin: 0 0 4px; }
.gsb-hours__season { font-size: 0.85rem; color: #6b7280; margin: 0; }

/* ── Events ─────────────────────────────────────── */
.gsb-event-date {
    font-size: 0.8rem;
    color: #2563eb;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Source tag ─────────────────────────────────── */
.gsb-source {
    display: block;
    font-size: 0.7rem;
    color: #d1d5db;
    text-align: right;
    margin-top: 4px;
}

/* ── Error state ────────────────────────────────── */
.gsb-error {
    color: #9ca3af;
    font-size: 0.85rem;
    font-style: italic;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
    .gsb-snow-grid { grid-template-columns: 1fr 1fr; }
    .gsb-temp { font-size: 2rem; }
    .gsb-stat__val { font-size: 1.5rem; }
}

/* ── NWS weather additions ──────────────────── */
.gsb-weather-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gsb-weather-loc {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
}

.gsb-forecast__precip {
    font-size: 0.65rem;
    color: #3b82f6;
    font-weight: 600;
}
