/* Leiðbeiningar — step-by-step guide with annotated screenshots.
   Builds on um.css (page frame, sections, tips). */

.guide-container { max-width: 980px; }

/* Two doors at the top: teachers / students */
.guide-doors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
    text-align: left;
}

.guide-door {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.guide-door:hover {
    background: var(--bg-elevated);
    border-color: rgba(45, 212, 191, 0.45);
    transform: translateY(-2px);
}

.guide-door-icon { font-size: 1.6rem; }
.guide-door strong { color: var(--text-primary); font-size: 1.15rem; font-weight: 600; }
.guide-door span { font-size: 0.9rem; line-height: 1.5; }
.guide-door-go { margin-top: auto; padding-top: var(--space-sm); color: var(--aurora-teal); font-weight: 500; }

/* One part (teachers or students) */
.guide-part-lead { font-size: 1.02rem; margin-bottom: var(--space-xl); }

.guide-part-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.guide-part-head a { font-size: 0.85rem; }

/* A numbered step: heading, text, annotated screenshot */
.guide-step {
    margin: 0 0 var(--space-2xl);
    scroll-margin-top: var(--space-xl);
}

.guide-step h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 0 var(--space-sm);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.guide-step-no {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.12);
    color: var(--aurora-teal);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

/* Screenshot with highlights. --x/--y/--w/--h are percent of the image. */
.shot { margin: var(--space-md) 0 0; }

.shot-frame {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    line-height: 0;
    cursor: zoom-in;
}

.shot-frame img { width: 100%; height: auto; display: block; }

.shot-narrow .shot-frame { max-width: 680px; margin: 0 auto; }
.shot-narrow .shot-notes { max-width: 680px; margin-left: auto !important; margin-right: auto !important; }

.mark {
    --pad: 0.6;
    position: absolute;
    left: calc((var(--x) - var(--pad)) * 1%);
    top: calc((var(--y) - var(--pad) * 2) * 1%);
    width: calc((var(--w) + var(--pad) * 2) * 1%);
    height: calc((var(--h) + var(--pad) * 4) * 1%);
    border: 2.5px solid var(--ember);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 18px rgba(251, 191, 36, 0.35);
    pointer-events: none;
}

/* The number sits on the box's top-left corner */
.mark::after {
    content: attr(data-n);
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-45%, -55%);
    width: 1.7rem;
    height: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ember);
    color: #1a1204;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* A point, not a box (small targets like a ×) */
.mark.dot { border-radius: 50%; }

.shot-notes {
    list-style: none;
    counter-reset: note;
    margin: var(--space-md) 0 0 !important;
    padding: 0 !important;
    display: grid;
    gap: var(--space-sm);
}

.shot-notes li {
    counter-increment: note;
    position: relative;
    padding-left: 2.3rem;
    margin: 0 !important;
    line-height: 1.55;
}

.shot-notes li::before {
    content: counter(note);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ember);
    color: #1a1204;
    font-size: 0.85rem;
    font-weight: 700;
}

.guide-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.guide-point {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.guide-point b {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--aurora-green);
    font-weight: 600;
}

.guide-divider {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: var(--space-2xl) 0;
}

@media (max-width: 600px) {
    .mark::after { width: 1.3rem; height: 1.3rem; font-size: 0.72rem; }
    .mark { border-width: 2px; }
    .guide-step h4 { font-size: 1.05rem; }
}

@media print {
    .aurora-bg, .grain-overlay, .um-nav, .footer { display: none; }
    .guide-step { break-inside: avoid; }
}
