/* Week by Week — Numbered Circles Grid + Pagination */

.wbw-weeks {
    padding-top: 8px;
}

/* Trimester section dividers */
.trimester-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 28px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.trimester-label:first-child {
    margin-top: 12px;
}
.trimester-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(139,123,184,0.12);
}
.trimester-label.t1 { color: var(--primary, #8B7BB8); }
.trimester-label.t2 { color: var(--accent, #7BC8B8); }
.trimester-label.t3 { color: #E8A87C; }

/* Circle badges */
.circles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0 8px;
}
.circles-grid a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}
/* Hover tooltip */
.circles-grid a::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--text, #3D2F50);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
}
.circles-grid a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Trimester 1 — Lavender */
.circles-grid a.t1 {
    background: rgba(139,123,184,0.10);
    color: var(--primary, #8B7BB8);
}
.circles-grid a.t1:hover {
    background: var(--primary, #8B7BB8);
    color: white;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(139,123,184,0.3);
}
/* Trimester 2 — Teal */
.circles-grid a.t2 {
    background: rgba(123,200,184,0.10);
    color: #4a9e8f;
}
.circles-grid a.t2:hover {
    background: var(--accent, #7BC8B8);
    color: white;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(123,200,184,0.3);
}
/* Trimester 3 — Peach */
.circles-grid a.t3 {
    background: rgba(232,168,124,0.10);
    color: #c4875e;
}
.circles-grid a.t3:hover {
    background: #E8A87C;
    color: white;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(232,168,124,0.3);
}

/* Week-by-week prev/next pagination */
.wbw-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 24px;
    gap: 12px;
}
.wbw-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    background: var(--bg, #FAF8FF);
    border: 1.5px solid rgba(139,123,184,0.15);
    color: var(--primary, #8B7BB8);
}
.wbw-pagination a:hover {
    background: rgba(139,123,184,0.10);
    border-color: rgba(139,123,184,0.3);
    transform: translateY(-1px);
}
.wbw-prev::before { content: '\2190\00a0'; }
.wbw-next::after { content: '\00a0\2192'; }
.wbw-next { margin-left: auto; }

@media (max-width: 480px) {
    .circles-grid a {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
    .circles-grid {
        gap: 8px;
    }
    .trimester-label {
        font-size: 10px;
        margin: 20px 0 10px;
    }
    .wbw-pagination a {
        padding: 8px 14px;
        font-size: 12px;
    }
}
