/* Share sheet — the preview + actions for a generated card.
   Loaded by any page that offers sharing; the card itself is drawn on a canvas
   in share-card.js, so nothing here styles the image. */

.sc-sheet {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sc-sheet[hidden] {
    display: none;
}
.sc-back {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 12, 0.78);
    backdrop-filter: blur(6px);
}
.sc-box {
    position: relative;
    width: min(430px, 100%);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #12142a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sc-head b {
    font-size: 16px;
    font-weight: 800;
    color: #e8eaf2;
}
.sc-x {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: #8a8fa3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.sc-x:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e8eaf2;
}
.sc-preview {
    border-radius: 14px;
    overflow: hidden;
    background: #0a0b14;
    min-height: 120px;
}
.sc-preview img {
    display: block;
    width: 100%;
    height: auto;
}
.sc-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.sc-btn {
    flex: 1 1 auto;
    padding: 11px 14px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e8eaf2;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.sc-btn[hidden] {
    display: none;
}
.sc-btn:hover {
    border-color: rgba(139, 92, 246, 0.5);
}
.sc-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
}
.sc-note {
    margin: 10px 2px 0;
    min-height: 16px;
    font-size: 12px;
    color: #8a8fa3;
}

/* The trigger button pages put next to a verdict or an idea. */
.sc-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #b6bacb;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.sc-trigger:hover {
    border-color: rgba(139, 92, 246, 0.5);
    color: #e8eaf2;
}
