﻿/* ============================================================
   Reminder Schedules — v1.1 (Hero + Simulation redesigned)
   - Namespaced rs-* to avoid conflicts with master css
   - Dark theme, max width, elegant animations
   ============================================================ */

/* Theme */
:root {
    --rs-bg: #0b1022;
    --rs-text: #e7eaf3;
    --rs-muted: #93a4b5;
    --rs-primary: #A78BFA;
    --rs-accent: #22D3EE;
    --rs-border: rgba(148,163,184,.24);
    --rs-card: rgba(17,26,47,.80);
    --rs-shadow: 0 24px 62px rgba(0,0,0,.45);
}

.rs-main {
    background: radial-gradient(1200px 900px at 90% -20%, rgba(34,211,238,.10), transparent 60%), radial-gradient(1000px 700px at 15% -20%, rgba(167,139,250,.10), transparent 60%), var(--rs-bg);
    color: var(--rs-text);
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.rs-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Buttons */
.rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--rs-border);
    text-decoration: none;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

    .rs-btn.primary {
        background: linear-gradient(135deg, var(--rs-primary), var(--rs-accent));
        color: #0b1022;
        border: 0;
        box-shadow: 0 16px 34px rgba(99,102,241,.35);
    }

    .rs-btn.ghost {
        background: rgba(255,255,255,.06);
        color: #eaf1ff;
        border-color: rgba(148,163,184,.35);
    }

    .rs-btn:hover {
        transform: translateY(-1px);
    }

/* ----------------------------------------------------------- */
/* HERO 2: Aurora + Parallax bells                            */
/* ----------------------------------------------------------- */
.rs-hero2 {
    position: relative;
    border: 1px solid var(--rs-border);
    border-radius: 24px;
    background: radial-gradient(120% 120% at 10% 10%, rgba(167,139,250,.18), transparent 60%), radial-gradient(120% 120% at 90% 10%, rgba(34,211,238,.16), transparent 60%), var(--rs-card);
    box-shadow: var(--rs-shadow);
    overflow: hidden;
    padding: 32px 18px 20px;
}

/* Aurora blobs and dots */
.rs-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rs-aurora-l {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .26;
    background: radial-gradient(circle, rgba(167,139,250,.65), rgba(167,139,250,.15) 60%, transparent 70%);
    animation: rsBlob 12s ease-in-out infinite;
}

.rs-aurora .blob1 {
    left: -80px;
    top: -60px;
}

.rs-aurora .blob2 {
    right: -90px;
    top: -70px;
    animation-delay: -3.2s;
    background: radial-gradient(circle, rgba(34,211,238,.65), rgba(34,211,238,.15) 60%, transparent 70%);
}

.rs-aurora .blob3 {
    left: 40%;
    top: -80px;
    animation-delay: -1.6s;
}

@keyframes rsBlob {
    0%,100% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(20px,14px) scale(1.08);
    }
}

.rs-aurora-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rs-primary), var(--rs-accent));
    box-shadow: 0 0 22px rgba(34,211,238,.6);
    animation: rsDotFloat 6s ease-in-out infinite;
}

.rs-aurora .d1 {
    left: 12%;
    top: 22%;
}

.rs-aurora .d2 {
    left: 78%;
    top: 16%;
    animation-delay: -2s;
}

.rs-aurora .d3 {
    left: 46%;
    top: 10%;
    animation-delay: -3.4s;
}

@keyframes rsDotFloat {
    0%,100% {
        transform: translateY(0);
        opacity: .9;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Title + parallax bells */
.rs-hero2-head {
    position: relative;
    z-index: 1;
    text-align: center;
}

.rs-parallax {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rs-bell {
    position: absolute;
    font-size: 22px;
    color: var(--rs-accent);
    text-shadow: 0 0 14px rgba(34,211,238,.6), 0 0 24px rgba(167,139,250,.45);
    animation: rsBellFloat 4.2s ease-in-out infinite;
}

    .rs-bell.b1 {
        left: 12%;
        top: 30%;
    }

    .rs-bell.b2 {
        left: 50%;
        top: 36%;
        animation-delay: -.8s;
    }

    .rs-bell.b3 {
        left: 84%;
        top: 28%;
        animation-delay: -1.6s;
    }

@keyframes rsBellFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.rs-title2 {
    margin: 0;
}

.rs-title-grad {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(2rem,5vw,3rem);
    font-weight: 900;
    background: linear-gradient(90deg,#fff,#e7f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rs-sub2 {
    color: var(--rs-muted);
    max-width: 940px;
    margin: 12px auto 8px;
}

.rs-hero2-strip {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin-top: 12px;
}

.rs-offset-chips {
    display: inline-flex;
    gap: 8px;
}

.rs-chip-s {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(148,163,184,.28);
    font-weight: 800;
    font-size: .8rem;
    color: #cfe3ff;
}

/* ----------------------------------------------------------- */
/* Shared sections (unchanged grid/tips)                       */
/* ----------------------------------------------------------- */
.rs-section {
    max-width: 1200px;
    padding: 0 16px;
    margin: 30px auto 46px;
}

.rs-sec-head {
    text-align: center;
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-bottom: 16px;
}

    .rs-sec-head h2 {
        margin: 0;
        font-weight: 900;
        letter-spacing: .2px;
        font-size: clamp(1.6rem,3.4vw,2.2rem);
    }

    .rs-sec-head p {
        margin: 0;
        color: var(--rs-muted);
        max-width: 860px;
    }

.rs-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}

.rs-card {
    border: 1px solid var(--rs-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), transparent), var(--rs-card);
    padding: 16px;
    box-shadow: var(--rs-shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

    .rs-card:hover {
        transform: translateY(-2px);
        border-color: rgba(167,139,250,.42);
        box-shadow: 0 24px 70px rgba(0,0,0,.4);
    }

.rs-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rs-primary), var(--rs-accent));
    color: #0b1022;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(99,102,241,.35);
}

.rs-card h3 {
    margin: 10px 0 6px;
    font-weight: 900;
}

.rs-card p {
    margin: 0;
    color: var(--rs-muted);
}

.fly-up {
    opacity: 0;
    transform: translateY(6px);
    animation: rsFlyUp .28s ease forwards;
}

@keyframes rsFlyUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ----------------------------------------------------------- */
/* SIM 2: Curved timeline with stations & orbits              */
/* ----------------------------------------------------------- */
.rs-sim2 .rs-builder {
    border: 1px solid var(--rs-border);
    border-radius: 18px;
    background: linear-gradient(180deg,rgba(255,255,255,.06),transparent), var(--rs-card);
    box-shadow: var(--rs-shadow);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.rs-builder-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rs-inline {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.rs-input {
    height: 44px;
    border: 1px solid var(--rs-border);
    border-radius: 12px;
    padding: 0 12px;
    background: linear-gradient(180deg,rgba(20,28,54,.92),rgba(12,18,36,.92));
    color: var(--rs-text);
}

    .rs-input.short {
        width: 120px;
    }

    .rs-input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(34,211,238,.22);
    }

.rs-hint {
    color: var(--rs-muted);
    font-size: .9rem;
}

.rs-list {
    display: grid;
    gap: 8px;
}

.rs-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--rs-border);
    background: rgba(255,255,255,.06);
    color: var(--rs-text);
    font-weight: 800;
}

    .rs-chip .rs-del {
        margin-left: 8px;
        cursor: pointer;
        color: #ffdddd;
    }

.rs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* Curved timeline */
.rs-curve {
    position: relative;
    margin-top: 14px;
    border: 1px solid var(--rs-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--rs-card);
    box-shadow: var(--rs-shadow);
    padding: 6px 6px 16px;
}

.rs-curve-svg {
    width: 100%;
    height: 260px;
    display: block;
}

.rs-stations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rs-station {
    position: absolute;
    transform: translate(-50%,-50%);
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(148,163,184,.22);
    font-weight: 800;
    font-size: .78rem;
    color: #cfe3ff;
}

/* Orbits */
.rs-orbits {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rs-orbit-bell {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--rs-accent);
    text-shadow: 0 0 16px rgba(34,211,238,.6), 0 0 24px rgba(167,139,250,.45);
    animation: rsOrbitBlink 2.2s ease-in-out infinite;
}

@keyframes rsOrbitBlink {
    0%,100% {
        transform: scale(1);
        opacity: .85;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.rs-note {
    margin-top: 8px;
    color: var(--rs-muted);
    font-size: .92rem;
}

/* Tips glow */
.rs-card.glow {
    border-color: rgba(167,139,250,.42);
    box-shadow: 0 24px 70px rgba(124,58,237,.35);
}

/* Footnote */
.rs-footnote {
    display: grid;
    place-items: center;
    margin-top: 16px;
}

.rs-muted {
    color: var(--rs-muted);
}

/* Responsive */
@media (max-width:980px) {
    .rs-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:640px) {
    .rs-shell {
        padding: 12px;
    }

    .rs-title-grad {
        font-size: clamp(1.8rem,6vw,2.2rem);
    }

    .rs-input.short {
        width: 112px;
    }
}
