/* ==========================================================================
   Syllabus Sync Calendar — vanilla replacement for the React SyllabusSyncCalendar
   Scoped under .ss- to avoid collisions with existing site styles
   ========================================================================== */

:root {
    --ss-blue-500: #3b82f6;
    --ss-blue-100: #dbeafe;
    --ss-blue-400: #60a5fa;
    --ss-rose-500: #f43f5e;
    --ss-rose-100: #ffe4e6;
    --ss-rose-400: #fb7185;
    --ss-amber-500: #f59e0b;
    --ss-amber-100: #fef3c7;
    --ss-amber-400: #fbbf24;
    --ss-violet-500: #8b5cf6;
    --ss-violet-100: #ede9fe;
    --ss-cyan-300: #67e8f9;
    --ss-emerald-300: #6ee7b7;
}

.ss-card {
    width: 248px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .05);
    padding: 16px;
    backdrop-filter: blur(4px);
    margin: 0 auto;
}

@media (min-width: 640px) {
    .ss-card {
        width: 288px;
    }
}

.ss-file-pill {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .07);
    padding: 10px 14px;
}

.ss-file-icon {
    flex-shrink: 0;
    height: 16px;
    width: 16px;
    color: var(--ss-cyan-300);
}

.ss-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
}

.ss-file-status {
    font-size: 11px;
    white-space: nowrap;
}

.ss-file-status.ss-status-idle {
    color: rgba(255, 255, 255, .35);
}

.ss-file-status.ss-status-syncing {
    color: rgba(252, 211, 77, .9);
}

.ss-file-status.ss-status-synced {
    color: var(--ss-emerald-300);
}

.ss-month-row {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.ss-month-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
}

.ss-month-range {
    font-size: 12px;
    color: rgba(255, 255, 255, .25);
}

.ss-day-headers {
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.ss-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, .30);
}

.ss-grid-row {
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.ss-cell {
    display: flex;
    height: 36px;
    min-height: 36px;
    align-items: flex-start;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .04);
    padding: 4px;
}

.ss-pill {
    display: none;
    width: 100%;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
}

.ss-pill.is-visible {
    display: block;
    animation: ss-fade-slide .35s cubic-bezier(.2, .8, .2, 1) forwards;
}

.ss-pill-blue {
    background: rgba(59, 130, 246, .40);
    color: var(--ss-blue-100);
}

.ss-pill-rose {
    background: rgba(244, 63, 94, .40);
    color: var(--ss-rose-100);
}

.ss-pill-amber {
    background: rgba(245, 158, 11, .35);
    color: var(--ss-amber-100);
}

.ss-pill-violet {
    background: rgba(139, 92, 246, .40);
    color: var(--ss-violet-100);
}

.ss-legend {
    margin-top: 12px;
    display: flex;
    gap: 16px;
}

.ss-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ss-legend-dot {
    height: 8px;
    width: 8px;
    border-radius: 999px;
}

.ss-legend-dot-rose {
    background: var(--ss-rose-400);
}

.ss-legend-dot-blue {
    background: var(--ss-blue-400);
}

.ss-legend-dot-amber {
    background: var(--ss-amber-400);
}

.ss-legend-label {
    font-size: 11px;
    color: rgba(255, 255, 255, .40);
}

@keyframes ss-fade-slide {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}