/* ─── Share Modal ─────────────────────────────────────────────────────────── */

.share-modal {
    min-width: 630px;
    max-width: 600px;
}

.share-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 30px;
}

/* ─── Section ────────────────────────────────────────────────────────────── */

.share-section {
    padding: 13px 0;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.06); */
}

.share-section:last-of-type {
    border-bottom: none;
}

.share-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.share-section-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.share-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.share-section-subtitle {
    font-size: 11px;
    opacity: 0.5;
}

/* ─── Input row ──────────────────────────────────────────────────────────── */

.share-input-row {
    display: flex;
    gap: 15px;
    align-items: baseline;
}

.share-input {
    flex: 1;
    font-size: 11px !important;
    padding: 14px 16px !important;
    cursor: text;
    user-select: all;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: hsl(from var(--text-color) h s calc(l - 10));
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.share-input-copyable {
    cursor: pointer;
}

.share-input-copyable:hover {
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.share-copy-btn {
    opacity: 0.85;
    min-height: 42px;
    flex-shrink: 0;
    padding: 0px 34px;

    background-color: hsl(from var(--modal-background-color) h s calc(l + 5));
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    /* padding: 8px 16px;
    margin-top: 10px; */
    /* border-radius: 25px; */
    cursor: pointer;
    transition: all 0.3s;

}

.share-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.share-copied {
    background: rgba(100, 220, 140, 0.15) !important;
    border-color: rgba(100, 220, 140, 0.3) !important;
}

/* ─── Embed thumbnail preview ────────────────────────────────────────────── */

.share-thumb-row {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-left: 0;
    margin-top: 19px;
    margin-bottom: 15px;
}

.share-embed-thumb {
    position: relative;
    flex-shrink: 0;
    width: 320px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.04);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--modal-primary-color);
    cursor: pointer;
}

.share-embed-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 150ms ease;
    pointer-events: none;
}

.share-embed-thumb:hover .share-embed-thumb-overlay {
    opacity: 1;
}

.share-thumb-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0) 20%);
}

.share-thumb-watermark {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    transform-origin: bottom left;
    transform: scale(0.65);
    opacity: 0.9;
    pointer-events: none;
}

/* ─── Toggles column ─────────────────────────────────────────────────────── */

.share-toggles-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
}

.share-toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.share-toggle-label span {
    font-size: 12px;
    color: var(--text-color);
}

.share-toggle-label small {
    font-size: 10px;
    opacity: 0.45;
}

/* ─── Message area (unsaved / empty) ─────────────────────────────────────── */

.share-message-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 16px;
    text-align: center;
}

.share-message-text {
    font-size: 13px;
    opacity: 0.6;
    margin: 0;
}

.share-save-btn {
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: var(--accent-color);
    color: #fff;
    cursor: pointer;
    transition: opacity 150ms ease;
}

.share-save-btn:hover {
    opacity: 0.85;
}

.share-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Unsaved notice (inline bar) ────────────────────────────────────────── */

.share-unsaved-notice {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 7px 11px 17px;
    border-radius: 6px;
    background: rgb(255 133 0 / 9%);
    border: 1px solid rgb(255 163 0 / 25%);
    font-size: 12px;
    color: #d1ae6d;
    height: 31px;
}

.share-notice-save-btn {
border-radius: 5px !important;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 27px 7px 31px;
    border-radius: 10px !important;
    background: rgb(255 133 0 / 25%);
    border: 1px solid rgb(255 163 0 / 25%);
    font-size: 12px;
    color: #d1ae6d;
}

.share-notice-save-btn:hover {
    background: rgba(255, 180, 50, 0.22);
}

.share-notice-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
