/* ── Subscription trial banner ───────────────────────────────────────────── */

.pc-trial-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    font-size: 0.875rem;
    box-sizing: border-box;
    margin-top: var(--topbar-h);
}

/* When the banner is visible, #teacher-main no longer needs to clear the
   fixed topbar itself — the banner already provides that offset. Reduce
   padding-top to just the intended breathing room (32px). */
body:has(#pc-trial-banner:not([hidden])) #teacher-main {
    padding-top: 32px;
}

body:has(#pc-trial-banner:not([hidden])) #hub-main {
    padding-top: 32px;
}

.pc-trial-banner--expired {
    background: #EEC252;
    border-left: none;
    padding: 12px 20px;
}

.pc-trial-banner--expired #pc-trial-banner-msg {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.pc-trial-banner--expired #pc-trial-banner-cta {
    background: #1a1a1a;
    color: #EEC252;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pc-trial-banner--expired #pc-trial-banner-cta:hover {
    background: #333;
}

.pc-trial-banner--warning {
    border-left: 4px solid #EEC252;
    background: rgba(238, 194, 82, 0.08);
    animation: pc-banner-flash 1s infinite;
}

@keyframes pc-banner-flash {
    0%, 100% { opacity: 1;   }
    50%       { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    .pc-trial-banner--warning {
        animation: none;
    }
}

.pc-trial-banner__cta {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* CTA hover for expired state handled by .pc-trial-banner--expired #pc-trial-banner-cta:hover above.
   If a CTA is added to non-expired states in future, restore a base hover rule here. */

.pc-trial-banner--success {
    background: var(--primary);
    border-bottom-color: var(--primary-dark);
}

.pc-trial-banner--success #pc-trial-banner-msg {
    color: #fff;
    font-weight: 600;
}

.pc-trial-banner--amber {
    background: #EEC252;
    border-left: none;
    padding: 12px 20px;
}

.pc-trial-banner--amber #pc-trial-banner-msg {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.pc-trial-banner--amber #pc-trial-banner-cta {
    background: #1a1a1a;
    color: #EEC252;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pc-trial-banner--amber #pc-trial-banner-cta:hover {
    background: #333;
}

.pc-trial-banner--amber .status-label {
    background: #1a1a1a;
    color: #EEC252;
}

.pc-trial-banner--urgent {
    background: #EEC252;
    border-bottom: 2px solid #1a1a1a;
    animation: pc-urgent-flash 1.4s ease-in-out infinite;
}

.pc-trial-banner--urgent #pc-trial-banner-msg {
    color: #EEC252;
    font-weight: 600;
}

.pc-trial-banner--urgent #pc-trial-banner-cta {
    background: #1a1a1a;
    color: #EEC252;
    border: none;
}

.pc-trial-banner--urgent #pc-trial-banner-cta:hover {
    background: #333;
    color: #EEC252;
}

.pc-trial-banner--urgent .status-label {
    background: #1a1a1a;
    color: #EEC252;
}

@keyframes pc-urgent-flash {
    0%, 100% { background: #EEC252; }
    50%       { background: #1a1a1a; }
}
