/* ==============================================
   課程許願池 — 全版滿版設計
   ============================================== */

/* ---- 全版容器 ---- */
.wish-fullscreen {
    position: relative;
    width: 100%;
    min-height: 650px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 背景圖遮罩 — 讓文字更清楚 */
.wish-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
    pointer-events: none;
    transition: background 0.4s ease;
}

/* 無背景圖時不需要太深的遮罩 */
.wish-fullscreen:not(.has-bg) .wish-bg-overlay {
    background: transparent;
}

/* ---- 頂部列：標題 + 切換 ---- */
.wish-topbar {
    position: relative;
    z-index: 2;
    padding: 28px 0 12px;
}

.wish-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.wish-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* ---- 切換按鈕 ---- */
.wish-season-toggle {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wish-season-btn {
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.wish-season-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.wish-season-btn.active {
    background: rgba(255, 255, 255, 0.92);
    color: #312e81;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ---- 文字雲區域 ---- */
.wish-cloud {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 0 16px;
}

.wish-cloud svg {
    width: 100%;
    height: 100%;
}

/* ---- 文字雲字體 ---- */
.wish-cloud text {
    font-family: 'Noto Sans TC', 'Inter', sans-serif;
    font-weight: 600;
    cursor: default;
    transition: opacity 0.2s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.wish-cloud text:hover {
    opacity: 0.75;
}

/* ---- 底部統計 ---- */
.wish-bottombar {
    position: relative;
    z-index: 2;
    padding: 12px 0 20px;
}

.wish-bottombar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.wish-stat strong {
    color: #fff;
    font-weight: 700;
}

.wish-stat-sep {
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
}

/* ---- Loading ---- */
.wish-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.wish-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wish-spin 0.7s linear infinite;
}

@keyframes wish-spin {
    to {
        transform: rotate(360deg);
    }
}

.wish-loading-text {
    font-size: 14px;
    font-weight: 500;
}

/* ---- Empty ---- */
.wish-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 40px;
}

.wish-empty-icon {
    font-size: 44px;
    opacity: 0.6;
}

.wish-empty-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.wish-empty-sub {
    font-size: 13px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .wish-fullscreen {
        min-height: 480px;
    }

    .wish-topbar {
        padding: 20px 0 8px;
    }

    .wish-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .wish-title {
        font-size: 22px;
    }

    .wish-season-toggle {
        width: 100%;
    }

    .wish-season-btn {
        flex: 1;
        text-align: center;
        padding: 7px 14px;
        font-size: 13px;
    }

    .wish-cloud {
        min-height: 360px;
    }

    .wish-bottombar-inner {
        font-size: 13px;
        gap: 10px;
    }
}