/**
 * Weekly Notice Board – Frontend Stylesheet
 * All rules scoped under .wl-weekly — zero theme conflicts.
 *
 * @package WeeklyNoticeBoard
 * @version 1.0.0
 */

/* ── Reset (scoped) ───────────────────────────────────────────── */
.wl-weekly *,
.wl-weekly *::before,
.wl-weekly *::after {
    box-sizing: border-box;
}

/* ── Wrapper ──────────────────────────────────────────────────── */
.wl-weekly {
    font-family: 'Nunito', sans-serif;
    color: #2c2a20;
    line-height: 1.65;
    padding: 20px 0 60px;
}

/* ════════════════════════════════════════════════════════════════
   WEEK INTRO CARD
════════════════════════════════════════════════════════════════ */
.wl-week-intro {
    max-width: 860px;
    margin: 0 auto 36px;
    background: linear-gradient(135deg, #fff8f0, #fff3e0);
    border-left: 5px solid #f57c00;
    border-radius: 16px;
    padding: 26px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.wl-week-intro__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f57c00, #ff9800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.wl-week-intro__body {
    flex: 1;
    min-width: 0;
}
.wl-week-intro__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #bf360c;
    margin: 0 0 6px;
    font-weight: 700;
    line-height: 1.35;
}
.wl-week-intro__desc {
    font-size: .9rem;
    color: #6d5c4a;
    line-height: 1.7;
    margin: 0 0 14px;
}
.wl-week-intro__desc p {
    margin: 0 0 .5rem;
}
.wl-week-intro__desc p:last-child {
    margin-bottom: 0;
}
.wl-week-dates {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.wl-wdate {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #ffcc80;
    color: #e65100;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════
   DAY NAVIGATION TABS
════════════════════════════════════════════════════════════════ */
.wl-day-nav {
    max-width: 860px;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
    display: flex;
    overflow: hidden;
    border: 1px solid #f0e4d4;
}
.wl-day-btn {
    flex: 1;
    background: none;
    border: none;
    border-right: 1px solid #f0e4d4;
    padding: 16px 10px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: #b0a090;
    transition: background .2s ease, color .2s ease;
    text-align: center;
    position: relative;
}
.wl-day-btn:last-child { border-right: none; }
.wl-day-btn:hover { background: #fff8f2; color: #f57c00; }
.wl-day-btn.active {
    background: linear-gradient(135deg, #f57c00, #ff9800);
    color: #fff;
}
.wl-day-btn__name { display: block; }
.wl-day-btn__date {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    opacity: .75;
    margin-top: 3px;
}
.wl-day-btn__dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: #f57c00;
    border-radius: 50%;
}
.wl-day-btn.active .wl-day-btn__dot {
    background: rgba(255, 255, 255, .8);
}
.wl-day-btn.wl-no-content .wl-day-btn__dot {
    display: none;
}

/* ════════════════════════════════════════════════════════════════
   DAY CONTENT PANELS
════════════════════════════════════════════════════════════════ */
.wl-day-section { display: none; }
.wl-day-section.active {
    display: block;
    max-width: 860px;
    margin: 0 auto;
    animation: wlDayIn .3s ease both;
}
@keyframes wlDayIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wl-day-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0e4d4;
}
.wl-day-pill {
    background: linear-gradient(135deg, #e64a19, #f57c00);
    color: #fff;
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: 1px;
    padding: 6px 15px;
    border-radius: 50px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.wl-day-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c2a20;
}
.wl-day-date-label {
    font-size: .78rem;
    color: #b0a090;
    font-weight: 600;
    margin-left: auto;
}

/* ── Day notice item ──────────────────────────────────────────── */
.wl-day-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .07);
    border: 1px solid rgba(245, 124, 0, .1);
    padding: 24px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform .25s ease, box-shadow .25s ease;
}
.wl-day-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 32px rgba(245, 124, 0, .15);
}
.wl-day-item__icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.wl-day-item__body { flex: 1; min-width: 0; }
.wl-day-item__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c2a20;
    margin: 0 0 8px;
    line-height: 1.35;
}
.wl-day-item__desc {
    font-size: .91rem;
    color: #6b5e50;
    line-height: 1.75;
    margin: 0;
}

/* ── Empty day ────────────────────────────────────────────────── */
.wl-day-empty {
    padding: 20px 0;
    font-size: .88rem;
    color: #c4b8ac;
    display: flex;
    align-items: center;
    gap: 9px;
}
.wl-day-empty i { color: #a5d6a7; font-size: 1rem; }

/* ── No published week — empty state ─────────────────────────── */
.wl-week-empty {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .07);
    border: 1px solid rgba(245, 124, 0, .12);
    padding: 28px 30px;
    max-width: 860px;
    margin: 0 auto;
}
.wl-week-empty__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f57c00, #ff9800);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(245, 124, 0, .30);
}
.wl-week-empty__icon i { color: #fff; }
.wl-week-empty__text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #3e2000;
    margin: 0 0 4px;
    padding: 0;
}
.wl-week-empty__text p {
    font-size: .88rem;
    color: #8a7060;
    margin: 0;
    line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .wl-week-intro     { flex-direction: column; gap: 14px; }
    .wl-day-nav        { border-radius: 10px; }
    .wl-day-btn        { padding: 12px 6px; font-size: .78rem; }
    .wl-day-item       { flex-direction: column; gap: 14px; }
    .wl-day-header     { flex-wrap: wrap; }
    .wl-day-date-label { margin-left: 0; }
    .wl-week-empty     { flex-direction: column; text-align: center; }
}
