/* =========================================================================
   login-popup.css — login screen popup-notice carousel modal
   Loaded only by Login.aspx. Uses self-contained styles (no design-token
   dependency) because the login page does not pull paathshala-global.css.
   ========================================================================= */

.lp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: lp-fade-in 0.2s ease;
}
.lp-overlay.lp-show { display: flex; }

@keyframes lp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lp-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    /* Whole card scrolls on short viewports so the image is never clipped. */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    animation: lp-slide-up 0.25s ease;
}

@keyframes lp-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.lp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: #1e293b;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s ease;
}
.lp-close:hover { background: rgba(15, 23, 42, 0.14); }

.lp-image-wrap {
    width: 100%;
    background: #f8fafc;
    display: block;
    /* Don't shrink — the card scrolls instead, so the full image is always visible. */
    flex-shrink: 0;
}
.lp-image-wrap img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.lp-body {
    padding: 24px 32px 18px;
    flex: 0 0 auto;
}

.lp-kind {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.lp-kind-1 { background: #fef3c7; color: #92400e; }  /* Festival */
.lp-kind-2 { background: #dbeafe; color: #1e40af; }  /* Office Notice */
.lp-kind-3 { background: #dcfce7; color: #166534; }  /* Offer */
.lp-kind-4 { background: #ede9fe; color: #5b21b6; }  /* Feature */
.lp-kind-5 { background: #e2e8f0; color: #334155; }  /* Generic */

.lp-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.3;
}

.lp-desc {
    font-size: 1rem;
    color: #334155;
    line-height: 1.6;
    word-wrap: break-word;
}
.lp-desc p:first-child { margin-top: 0; }
.lp-desc p:last-child  { margin-bottom: 0; }
.lp-desc a { color: #2563eb; text-decoration: underline; }

.lp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 32px 20px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    margin-top: auto;
}

.lp-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.lp-dot:hover { background: #94a3b8; }
.lp-dot.lp-active {
    background: #2563eb;
    transform: scale(1.25);
}

.lp-nav {
    display: flex;
    gap: 6px;
}
.lp-nav-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.lp-nav-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.lp-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lp-counter {
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 768px) {
    .lp-card { max-width: 100%; }
    .lp-image-wrap { max-height: 60vh; }
    .lp-body   { padding: 20px 22px 14px; }
    .lp-footer { padding: 12px 22px 18px; }
}

@media (max-width: 480px) {
    .lp-overlay { padding: 8px; }
    .lp-card { border-radius: 12px; max-height: calc(100vh - 16px); }
    .lp-image-wrap { max-height: 50vh; }
    .lp-body   { padding: 18px 18px 12px; }
    .lp-footer { padding: 10px 18px 16px; gap: 8px; flex-wrap: wrap; }
    .lp-title  { font-size: 1.15rem; }
    .lp-desc   { font-size: 0.92rem; }
    .lp-nav-btn { padding: 6px 10px; font-size: 12px; }
}
