/* =========================================================
   GCal Holiday Widget — widget.css
   Clean, sidebar-ready calendar holiday list.
   ========================================================= */

.gcalhw-widget {
    box-sizing: border-box;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Title Bar ──────────────────────────────────────────── */
.gcalhw-title-bar {
    background: #1a56db;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    text-align: center;
}

/* ── Month Navigation ───────────────────────────────────── */
.gcalhw-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.gcalhw-nav button {
    background: none;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    color: #475569;
    font-size: 1.25rem;
    line-height: 1;
    padding: 2px 10px 4px;
    transition: background 0.15s, color 0.15s;
}

.gcalhw-nav button:hover {
    background: #1a56db;
    color: #ffffff;
    border-color: #1a56db;
}

.gcalhw-nav button:focus-visible {
    outline: 2px solid #1a56db;
    outline-offset: 2px;
}

.gcalhw-month-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e293b;
    letter-spacing: 0.02em;
}

/* Static month label (no nav) */
.gcalhw-month-label-static {
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

/* ── Event List ─────────────────────────────────────────── */
.gcalhw-events-wrap {
    padding: 6px 0;
    min-height: 48px;
    position: relative;
}

.gcalhw-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gcalhw-event-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
}

.gcalhw-event-item:last-child {
    border-bottom: none;
}

.gcalhw-event-item:hover {
    background: #f8fafc;
}

.gcalhw-event-date {
    flex-shrink: 0;
    min-width: 48px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a56db;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.gcalhw-event-title {
    color: #1e293b;
    font-size: 0.84rem;
    text-decoration: none;
    word-break: break-word;
}

a.gcalhw-event-title:hover {
    color: #1a56db;
    text-decoration: underline;
}

/* ── States ─────────────────────────────────────────────── */
.gcalhw-empty,
.gcalhw-error {
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
    margin: 0;
}

.gcalhw-error {
    color: #dc2626;
}

/* ── Loading spinner ────────────────────────────────────── */
.gcalhw-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0;
}

.gcalhw-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #1a56db;
    border-radius: 50%;
    animation: gcalhw-spin 0.7s linear infinite;
}

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