/* ─────────────────────────────────────────────────
   Reork Smart Links — Premium "Your Next Steps" v2.1
   Gradient hero + elevated path cards:
   Level Up · Bonus Skill · AI Shortcut
   ───────────────────────────────────────────────── */

/* Design tokens */
:root {
    /* Level Up — indigo/violet */
    --rs-lu:        #6366f1;
    --rs-lu-2:      #8b5cf6;
    --rs-lu-light:  #eef2ff;
    --rs-lu-border: #c7d2fe;

    /* Bonus Skill — emerald/teal */
    --rs-bs:        #10b981;
    --rs-bs-2:      #14b8a6;
    --rs-bs-light:  #ecfdf5;
    --rs-bs-border: #a7f3d0;

    /* AI Shortcut — amber/orange */
    --rs-ai:        #f59e0b;
    --rs-ai-2:      #f97316;
    --rs-ai-light:  #fffbeb;
    --rs-ai-border: #fde68a;

    --rs-text:       #0f172a;
    --rs-text-light: #64748b;
    --rs-border:     #e2e8f0;
    --rs-radius:     22px;
}

/* ─────────────────────────────────────────────────
   Main Wrapper
   ───────────────────────────────────────────────── */
.rs-wrap {
    max-width: 1120px;
    margin: 56px auto;
    padding: 0 16px;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--rs-text);
}

/* ─────────────────────────────────────────────────
   Hero Header — deep gradient with soft glows
   ───────────────────────────────────────────────── */
.rs-top {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 48px 24px 92px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
    border-radius: var(--rs-radius);
}

.rs-top-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
}

.rs-top-glow--1 {
    width: 380px;
    height: 380px;
    top: -180px;
    left: -100px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
}

.rs-top-glow--2 {
    width: 320px;
    height: 320px;
    bottom: -160px;
    right: -80px;
    background: radial-gradient(circle, #22d3ee, transparent 70%);
}

.rs-top-content {
    position: relative;
    z-index: 1;
}

.rs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #c7d2fe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.rs-eyebrow i {
    color: #fbbf24;
    font-size: 0.8rem;
}

.rs-heading {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.rs-heading i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #a5b4fc, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rs-subheading {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto 22px;
    max-width: 560px;
    font-weight: 400;
    line-height: 1.6;
}

.rs-current-topic {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.rs-current-topic i {
    color: #a5b4fc;
}

.rs-current-topic strong {
    color: #ffffff;
    font-weight: 600;
}

/* Pulsing "live" dot inside the topic pill */
.rs-topic-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: rs-pulse 2s infinite;
}

@keyframes rs-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ─────────────────────────────────────────────────
   Cards Grid — elevated, overlapping the hero
   ───────────────────────────────────────────────── */
.rs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -52px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .rs-cards {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }
}

/* ─────────────────────────────────────────────────
   Individual Card
   ───────────────────────────────────────────────── */
.rs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
    background: #ffffff;
    border: 1px solid var(--rs-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    text-decoration: none !important;
    color: var(--rs-text) !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

/* Gradient accent bar on top of each card */
.rs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.rs-card--level-up::before    { background: linear-gradient(90deg, var(--rs-lu), var(--rs-lu-2)); }
.rs-card--bonus-skill::before { background: linear-gradient(90deg, var(--rs-bs), var(--rs-bs-2)); }
.rs-card--ai-shortcut::before { background: linear-gradient(90deg, var(--rs-ai), var(--rs-ai-2)); }

.rs-card:hover::before {
    transform: scaleX(1);
}

.rs-card:hover {
    transform: translateY(-6px);
}

.rs-card--level-up:hover {
    border-color: var(--rs-lu-border);
    box-shadow: 0 22px 44px rgba(99, 102, 241, 0.20);
}

.rs-card--bonus-skill:hover {
    border-color: var(--rs-bs-border);
    box-shadow: 0 22px 44px rgba(16, 185, 129, 0.20);
}

.rs-card--ai-shortcut:hover {
    border-color: var(--rs-ai-border);
    box-shadow: 0 22px 44px rgba(245, 158, 11, 0.20);
}

/* ─────────────────────────────────────────────────
   Ghost Step Number (01 / 02 / 03)
   ───────────────────────────────────────────────── */
.rs-card-step {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: #f1f5f9;
    letter-spacing: -0.03em;
    user-select: none;
    transition: color 0.3s ease;
}

.rs-card--level-up:hover .rs-card-step    { color: var(--rs-lu-light); }
.rs-card--bonus-skill:hover .rs-card-step { color: var(--rs-bs-light); }
.rs-card--ai-shortcut:hover .rs-card-step { color: var(--rs-ai-light); }

/* ─────────────────────────────────────────────────
   Icon Medallion + Label Row
   ───────────────────────────────────────────────── */
.rs-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.rs-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.rs-card--level-up .rs-card-icon {
    background: linear-gradient(135deg, var(--rs-lu), var(--rs-lu-2));
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.35);
}

.rs-card--bonus-skill .rs-card-icon {
    background: linear-gradient(135deg, var(--rs-bs), var(--rs-bs-2));
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
}

.rs-card--ai-shortcut .rs-card-icon {
    background: linear-gradient(135deg, var(--rs-ai), var(--rs-ai-2));
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

.rs-card:hover .rs-card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.rs-card-label {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.rs-card--level-up .rs-card-label {
    background: var(--rs-lu-light);
    color: var(--rs-lu);
    border: 1px solid var(--rs-lu-border);
}

.rs-card--bonus-skill .rs-card-label {
    background: var(--rs-bs-light);
    color: var(--rs-bs);
    border: 1px solid var(--rs-bs-border);
}

.rs-card--ai-shortcut .rs-card-label {
    background: var(--rs-ai-light);
    color: var(--rs-ai);
    border: 1px solid var(--rs-ai-border);
}

/* ─────────────────────────────────────────────────
   Card Title
   ───────────────────────────────────────────────── */
.rs-card-title {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 10px;
    color: var(--rs-text);
}

/* ─────────────────────────────────────────────────
   Card Description
   ───────────────────────────────────────────────── */
.rs-card-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--rs-text-light);
    margin: 0 0 18px;
    flex: 1;
}

/* ─────────────────────────────────────────────────
   Meta Chips (time + free tag)
   ───────────────────────────────────────────────── */
.rs-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.rs-card-time,
.rs-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--rs-text-light);
}

.rs-card-time i,
.rs-card-tag i {
    font-size: 0.7rem;
}

.rs-card-tag i {
    color: #10b981;
}

/* ─────────────────────────────────────────────────
   Link Text (the SEO anchor)
   ───────────────────────────────────────────────── */
.rs-card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.rs-card--level-up .rs-card-link    { color: var(--rs-lu); }
.rs-card--bonus-skill .rs-card-link { color: var(--rs-bs); }
.rs-card--ai-shortcut .rs-card-link { color: var(--rs-ai-2); }

.rs-card-link i {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
}

.rs-card:hover .rs-card-link i {
    transform: translateX(5px);
}

/* ─────────────────────────────────────────────────
   Call-to-Action Button
   ───────────────────────────────────────────────── */
.rs-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin-top: auto;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rs-card-btn i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.rs-card:hover .rs-card-btn i {
    transform: translateX(4px);
}

.rs-card--level-up .rs-card-btn {
    background: var(--rs-lu-light);
    color: var(--rs-lu);
    border: 1px solid var(--rs-lu-border);
}

.rs-card--bonus-skill .rs-card-btn {
    background: var(--rs-bs-light);
    color: var(--rs-bs);
    border: 1px solid var(--rs-bs-border);
}

.rs-card--ai-shortcut .rs-card-btn {
    background: var(--rs-ai-light);
    color: var(--rs-ai-2);
    border: 1px solid var(--rs-ai-border);
}

.rs-card--level-up:hover .rs-card-btn {
    background: linear-gradient(135deg, var(--rs-lu), var(--rs-lu-2));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.rs-card--bonus-skill:hover .rs-card-btn {
    background: linear-gradient(135deg, var(--rs-bs), var(--rs-bs-2));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.rs-card--ai-shortcut:hover .rs-card-btn {
    background: linear-gradient(135deg, var(--rs-ai), var(--rs-ai-2));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

/* ─────────────────────────────────────────────────
   Mobile Swipe Hint — hidden on desktop
   ───────────────────────────────────────────────── */
.rs-swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rs-text-light);
}

.rs-swipe-hint i {
    color: #8b5cf6;
    animation: rs-swipe-nudge 1.6s ease-in-out infinite;
}

@keyframes rs-swipe-nudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

/* ─────────────────────────────────────────────────
   Guidance Footer Note
   ───────────────────────────────────────────────── */
.rs-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    font-size: 0.87rem;
    color: var(--rs-text-light);
}

.rs-note i {
    color: #6366f1;
}

.rs-note strong {
    color: var(--rs-text);
    font-weight: 700;
}

/* ─────────────────────────────────────────────────
   Responsive adjustments
   ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .rs-wrap {
        margin: 36px auto;
    }
    .rs-top {
        padding: 38px 20px 84px;
    }
    .rs-heading {
        font-size: 1.6rem;
    }
    .rs-card {
        padding: 26px 22px 22px;
    }
}

/* ─────────────────────────────────────────────────
   Mobile — swipeable snap carousel instead of a tall stack
   ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .rs-wrap {
        padding: 0 10px;
    }

    .rs-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        margin-top: -46px;
        padding: 8px 14px 14px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .rs-cards::-webkit-scrollbar {
        display: none;
    }

    .rs-card {
        flex: 0 0 84%;
        max-width: 84%;
        scroll-snap-align: center;
        padding: 24px 20px 20px;
    }

    /* Bigger tap targets on touch screens */
    .rs-card-btn {
        padding: 15px 16px;
        font-size: 0.9rem;
    }

    .rs-swipe-hint {
        display: flex;
    }

    .rs-note {
        margin-top: 12px;
        padding: 0 16px;
        text-align: center;
        flex-wrap: wrap;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .rs-top {
        padding: 30px 16px 74px;
    }
    .rs-eyebrow {
        font-size: 0.66rem;
        letter-spacing: 0.8px;
        padding: 5px 12px;
    }
    .rs-heading {
        font-size: 1.3rem;
        gap: 10px;
    }
    .rs-heading i {
        font-size: 1.05rem;
    }
    .rs-subheading {
        font-size: 0.86rem;
        line-height: 1.55;
    }
    .rs-current-topic {
        font-size: 0.78rem;
        padding: 9px 14px;
        max-width: 100%;
    }
    .rs-current-topic strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 180px;
    }
    .rs-card-title {
        font-size: 1.08rem;
    }
    .rs-card-step {
        font-size: 2.1rem;
    }
    .rs-card-icon {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
}

/* ─────────────────────────────────────────────────
   Accessibility — respect reduced motion
   ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .rs-card,
    .rs-card::before,
    .rs-card-icon,
    .rs-card-link i,
    .rs-card-btn i {
        transition: none !important;
    }
    .rs-card:hover {
        transform: none;
    }
    .rs-card:hover .rs-card-icon {
        transform: none;
    }
    .rs-topic-pulse {
        animation: none;
    }
    .rs-swipe-hint i {
        animation: none;
    }
}

/* ─────────────────────────────────────────────────
   Print — clean output
   ───────────────────────────────────────────────── */
@media print {
    .rs-top {
        background: #f1f5f9 !important;
    }
    .rs-heading,
    .rs-subheading,
    .rs-current-topic,
    .rs-current-topic strong,
    .rs-eyebrow {
        color: #1e293b !important;
    }
    .rs-card {
        border: 1px solid #ccc !important;
        background: white !important;
        box-shadow: none !important;
    }
    .rs-card-btn {
        border: 1px solid #999 !important;
    }
}
