/* FutureSense Market Calendar - Frontend Styles */

.fsc-calendar-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d2327;
    max-width: 100%;
    margin: 20px 0;
}

.fsc-calendar-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.fsc-control {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    color: #50575e;
}

.fsc-control select {
    margin-top: 4px;
    padding: 6px 10px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.fsc-loading,
.fsc-empty,
.fsc-error {
    padding: 24px;
    text-align: center;
    color: #646970;
    background: #f6f7f7;
    border-radius: 8px;
}

.fsc-error {
    color: #b32d2e;
    background: #fcf0f1;
}

/* Week view */
.fsc-calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.fsc-day-column {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    min-height: 80px;
}

.fsc-day-header {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    color: #1d2327;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 6px;
}

.fsc-event-card {
    background: #fff;
    border-left: 4px solid #0073aa;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.fsc-event-time {
    font-size: 11px;
    color: #646970;
}

.fsc-event-name {
    font-size: 13px;
    font-weight: 600;
    margin: 2px 0;
}

.fsc-event-meta {
    font-size: 11px;
    color: #787c82;
    margin-bottom: 4px;
}

/* Importance badges */
.fsc-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
    background: #8c8f94;
}

.fsc-badge-low { background: #46b450; }
.fsc-badge-medium { background: #ffb900; color: #1d2327; }
.fsc-badge-high { background: #d63638; }
.fsc-badge-very-high { background: #7a0303; }

.fsc-importance-very-high { border-left-color: #7a0303; }
.fsc-importance-high { border-left-color: #d63638; }
.fsc-importance-medium { border-left-color: #ffb900; }
.fsc-importance-low { border-left-color: #46b450; }

/* List view */
.fsc-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.fsc-list-table th,
.fsc-list-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
}

.fsc-list-table th {
    background: #f6f7f7;
    font-weight: 700;
    color: #1d2327;
}

/* Widget */
.fsc-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fsc-widget-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
}

.fsc-widget-date {
    font-weight: 700;
    color: #0073aa;
    min-width: 42px;
}

.fsc-widget-name {
    flex: 1;
}

.fsc-widget-empty {
    color: #646970;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 782px) {
    .fsc-calendar-week {
        grid-template-columns: 1fr;
    }

    .fsc-list-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .fsc-calendar-controls {
        flex-direction: column;
        gap: 8px;
    }
}
