/* === Scheduled Posts Calendar === */

.spc-wrap {
    max-width: 700px;
    margin: 0 auto;
    font-family: inherit;
}

.spc-heading {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 1.2em;
    color: inherit;
}

/* --- Calendar container --- */
.spc-calendar {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* --- Header row --- */
.spc-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a73e8;
    padding: 14px 20px;
}

.spc-month-label {
    font-size: 1.05em;
    font-weight: 600;
    color: #fff;
    letter-spacing: .03em;
    text-transform: capitalize;
}

.spc-nav {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1em;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.spc-nav:hover { background: rgba(255,255,255,.35); }

/* --- Weekday labels --- */
.spc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f0f4ff;
    border-bottom: 1px solid #e0e0e0;
}
.spc-weekdays span {
    text-align: center;
    font-size: .75em;
    font-weight: 600;
    color: #555;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* --- Grid --- */
.spc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e8e8e8;
}

.spc-cell {
    background: #fff;
    min-height: 64px;
    padding: 6px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: default;
}

.spc-cell.other-month {
    background: #fafafa;
    opacity: .5;
}

.spc-cell.today .spc-day-num {
    background: #1a73e8;
    color: #fff;
}

.spc-cell.has-posts {
    cursor: pointer;
}
.spc-cell.has-posts:hover {
    background: #eef3ff;
}
.spc-cell.selected {
    background: #e3ecfd;
}

.spc-day-num {
    font-size: .85em;
    font-weight: 500;
    color: #333;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.spc-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.spc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a73e8;
    flex-shrink: 0;
}

.spc-post-count {
    font-size: .65em;
    color: #1a73e8;
    font-weight: 700;
    margin-top: 2px;
}

/* --- Detail panel --- */
.spc-detail {
    margin-top: 16px;
    background: #f0f4ff;
    border: 1px solid #c5d3f5;
    border-radius: 8px;
    padding: 14px 18px;
}

.spc-detail-title {
    font-size: 1em;
    font-weight: 600;
    color: #1a43a8;
    margin: 0 0 10px;
}

.spc-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spc-post-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #d5dff7;
}
.spc-post-list li:last-child { border-bottom: none; }

.spc-post-time {
    font-size: .8em;
    color: #777;
    white-space: nowrap;
    padding-top: 2px;
    min-width: 38px;
}

.spc-post-list a {
    font-size: .95em;
    font-weight: 500;
    color: #1a43a8;
    text-decoration: none;
    line-height: 1.4;
}
.spc-post-list a:hover { text-decoration: underline; }

.spc-post-excerpt {
    font-size: .82em;
    color: #666;
    margin-top: 2px;
    line-height: 1.4;
}

/* --- Upcoming list --- */
.spc-upcoming {
    margin-top: 24px;
}

.spc-upcoming-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 6px;
    display: inline-block;
}

.spc-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spc-upcoming-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #eee;
}
.spc-upcoming-list li:last-child { border-bottom: none; }

.spc-upcoming-date {
    font-size: .78em;
    font-weight: 600;
    color: #1a73e8;
    white-space: nowrap;
    min-width: 80px;
    background: #e8f0fe;
    border-radius: 4px;
    padding: 2px 7px;
    text-align: center;
}

.spc-upcoming-list a {
    font-size: .9em;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
.spc-upcoming-list a:hover { color: #1a73e8; }

.spc-empty {
    font-size: .9em;
    color: #888;
    font-style: italic;
    padding: 12px 0;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .spc-cell { min-height: 48px; }
    .spc-day-num { font-size: .78em; width: 22px; height: 22px; }
    .spc-dot { width: 5px; height: 5px; }
}
