/* Routines feature page styles */

/* ─── Routine catalog cards ─────────────────────── */
.routine-card {
    position: relative;
    overflow: hidden;
    transition: box-shadow .25s, border-color .25s, transform .2s;
}
.routine-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.routine-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.routine-card[data-cat="daily"]::before { background-color: var(--alps-blue); }
.routine-card[data-cat="weekly"]::before { background-color: var(--alps-purple); }
.routine-card[data-cat="checkpoint"]::before { background-color: var(--alps-orange); }
.routine-card[data-cat="targeted"]::before { background-color: #e11d48; }

/* ─── Mockup chrome bar ─────────────────────────── */
.mockup-bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid #f0f2f5;
    background: #f9fafb;
}
.mockup-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mockup-dot--red { background: #fc5753; }
.mockup-dot--yellow { background: #fdbc40; }
.mockup-dot--green { background: #33c748; }
.mockup-bar-title {
    margin-left: .6rem;
    font-size: .72rem;
    font-weight: 500;
    color: #6b7685;
}

/* ─── Workflow step pills ───────────────────────── */
.wf-step {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .65rem;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    background: #f0f2f5;
    color: #6b7685;
    white-space: nowrap;
}
.wf-step--active {
    background: #2563eb;
    color: white;
}
.wf-step--done {
    background: #dcfce7;
    color: #16a34a;
}
.wf-arrow {
    color: #c4cad2;
    font-size: .7rem;
    flex-shrink: 0;
    padding: 0 .15rem;
}

/* ─── Student clustering mockup ─────────────────── */
.cluster-group {
    background: #f9fafb;
    border-radius: 8px;
    padding: .75rem;
    margin-bottom: .6rem;
}
.cluster-group-label {
    font-size: .7rem;
    font-weight: 700;
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.cluster-group-label .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.student-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .6rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 500;
    margin: .15rem;
    border: 1px solid #e2e6ea;
    background: white;
}
.student-chip .avatar {
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .55rem;
    font-weight: 700;
    color: white;
}

/* ─── Recommendation tabs & items ───────────────── */
.rec-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 1rem;
}
.rec-tab {
    padding: .5rem 1rem;
    font-size: .75rem;
    font-weight: 600;
    color: #6b7685;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.rec-tab--active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.rec-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: 8px;
    margin-bottom: .5rem;
    background: white;
    border: 1px solid #f0f2f5;
}
.rec-item-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

/* ─── Generate clusters button ──────────────────── */
.gen-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    border-radius: 6px;
    padding: .4rem .85rem;
    font-size: .72rem;
    font-weight: 600;
    width: fit-content;
    margin-top: .6rem;
}

/* ─── Demo fullscreen overlay ───────────────────── */
.demo-wrapper { position: relative; }
.demo-maximize-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, color .2s;
    backdrop-filter: blur(4px);
}
.demo-maximize-btn:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.demo-fullscreen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #07070c;
    flex-direction: column;
}
.demo-fullscreen-overlay.active { display: flex; }

.demo-fullscreen-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #111118;
    border-bottom: 1px solid #262640;
    flex-shrink: 0;
}
.demo-fullscreen-title {
    font-size: 14px;
    font-weight: 600;
    color: #a0aec0;
}
.demo-minimize-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    color: #cbd5e0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.demo-minimize-btn:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* ─── Responsive demo switching ─────────────────── */
.demo-frame-mobile  { display: none; }
.demo-frame-desktop { display: block; }

@media (max-width: 767px) {
    .demo-frame-desktop { display: none; }
    .demo-frame-mobile  { display: block; }
}
