/**
 * PANPHO Countdown Timer — Styles v1.1.0
 * Font: Kanit (native — no Google Fonts API call)
 * 3 themes: light (default), dark, minimal
 * All rules scoped under .panpho-cd to prevent CSS bleed in Divi
 */

/* ---- Base Layout ---- */
.panpho-cd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    visibility: hidden; /* shown by JS after init */
    line-height: 1;
    box-sizing: border-box;
}

.panpho-cd *,
.panpho-cd *::before,
.panpho-cd *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.panpho-cd__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 16px 14px 12px;
    border-radius: 10px;
    transition: transform 0.15s ease;
}

.panpho-cd__num {
    font-family: 'Kanit', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.panpho-cd__label {
    font-family: 'Kanit', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 6px;
    letter-spacing: 0.03em;
    opacity: 0.7;
}

.panpho-cd__sep {
    font-family: 'Kanit', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
    opacity: 0.35;
    padding-bottom: 22px;
    user-select: none;
}

.panpho-cd__expired {
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 18px 28px;
    border-radius: 10px;
    text-align: center;
}

/* ---- Theme: Light ---- */
.panpho-cd--light .panpho-cd__box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.panpho-cd--light .panpho-cd__num {
    color: #1e293b;
}

.panpho-cd--light .panpho-cd__label {
    color: #64748b;
}

.panpho-cd--light .panpho-cd__sep {
    color: #94a3b8;
}

.panpho-cd--light .panpho-cd__expired {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ---- Theme: Dark ---- */
.panpho-cd--dark .panpho-cd__box {
    background: #1e293b;
    border: 1px solid #334155;
}

.panpho-cd--dark .panpho-cd__num {
    color: #f8fafc;
}

.panpho-cd--dark .panpho-cd__label {
    color: #94a3b8;
}

.panpho-cd--dark .panpho-cd__sep {
    color: #475569;
}

.panpho-cd--dark .panpho-cd__expired {
    background: #450a0a;
    color: #fca5a5;
    border: 1px solid #7f1d1d;
}

/* ---- Theme: Minimal ---- */
.panpho-cd--minimal .panpho-cd__box {
    background: transparent;
    border: none;
    padding: 10px 6px;
    min-width: 56px;
}

.panpho-cd--minimal .panpho-cd__num {
    color: inherit;
    font-size: 2.6rem;
}

.panpho-cd--minimal .panpho-cd__label {
    color: inherit;
    opacity: 0.5;
    font-size: 0.75rem;
}

.panpho-cd--minimal .panpho-cd__sep {
    color: inherit;
    opacity: 0.2;
    font-size: 1.8rem;
    padding-bottom: 18px;
}

.panpho-cd--minimal .panpho-cd__expired {
    background: transparent;
    color: inherit;
    border: none;
    opacity: 0.7;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .panpho-cd {
        gap: 5px;
    }
    .panpho-cd__box {
        min-width: 64px;
        padding: 12px 10px 10px;
    }
    .panpho-cd__num {
        font-size: 2.4rem;
    }
    .panpho-cd__label {
        font-size: 0.75rem;
    }
    .panpho-cd__sep {
        font-size: 1.8rem;
        padding-bottom: 18px;
    }
}

@media (max-width: 380px) {
    .panpho-cd {
        gap: 3px;
    }
    .panpho-cd__box {
        min-width: 52px;
        padding: 10px 6px 8px;
    }
    .panpho-cd__num {
        font-size: 1.8rem;
    }
    .panpho-cd__label {
        font-size: 0.65rem;
    }
    .panpho-cd__sep {
        font-size: 1.4rem;
        padding-bottom: 14px;
    }
}
