/* AcadStore public UX — toast, modal, header scroll, comments */

.acad-header.is-scrolled {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.97);
}

.acad-main {
    animation: AcadStoreFadeIn .35s ease;
}

@keyframes AcadStoreFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.acad-toast-root {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: min(22rem, calc(100vw - 2rem));
}

.acad-toast {
    border-radius: .85rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
    border: 1px solid transparent;
    background: #fff;
    color: #0f172a;
    animation: acadToastIn .25s ease;
}

.acad-toast.success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.acad-toast.error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.acad-toast.info { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; }

@keyframes acadToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.acad-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.acad-modal.hidden { display: none; }
.acad-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
}
.acad-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .2);
    animation: AcadStoreFadeIn .3s ease;
}
.acad-modal-close {
    position: absolute;
    top: .75rem;
    right: .9rem;
    font-size: 1.4rem;
    line-height: 1;
    color: #64748b;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.comment-card {
    transition: box-shadow .2s ease, border-color .2s ease;
}
.comment-card:hover {
    border-color: #99f6e4;
    box-shadow: 0 6px 18px rgba(13, 148, 136, .08);
}
.comment-avatar {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
    background: #f0fdfa;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    border: 1px solid #ccfbf1;
}
.comment-replies {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
}
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: skeleton 1.2s ease infinite;
    border-radius: .5rem;
}
@keyframes skeleton {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.auth-gate-card {
    max-width: 32rem;
    margin: 4rem auto;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 2.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.acad-card-hover {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.acad-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(13, 148, 136, .12);
    border-color: #99f6e4;
}

.btn-acad {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-acad:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(13, 148, 136, .25);
}
.btn-acad:active {
    transform: none;
}
