/* ==========================================================================
   Share Modal — Cover Section
   ========================================================================== */
.share-modal__panel--wide {
    width: min(460px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.share-modal__covers-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--text-muted, #999);
    font-size: .78rem;
    font-weight: 600;
}
.share-modal__covers-divider::before,
.share-modal__covers-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border, #ede8e3);
}

.share-modal__covers-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--primary, #1B2A4A);
    margin: 0 0 14px;
    text-align: center;
}

.share-cover-preview-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #eef1f6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 16px;
}

.share-cover-preview-scaler {
    transform-origin: top center;
}

.share-cover-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-cover-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.share-cover-control-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted, #6b6b6b);
    flex-shrink: 0;
}

.share-cover-pills {
    display: flex;
    gap: 6px;
}

.share-cover-pill {
    padding: 6px 14px;
    border: 1.5px solid var(--border, #ede8e3);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-main);
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary, #1B2A4A);
    cursor: pointer;
    transition: all .15s;
}
.share-cover-pill.is-active,
.share-cover-pill:hover {
    border-color: var(--accent, #C9A84C);
    background: var(--surface-hover, #f6f1ec);
}

.share-cover-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.share-cover-swatch {
    width: 28px;
    height: 28px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.share-cover-swatch.is-active {
    border-color: var(--primary, #1B2A4A);
    transform: scale(1.12);
}

.share-cover-download {
    width: 100%;
    margin-top: 4px;
    justify-content: center;
}
.share-cover-download:disabled {
    opacity: .6;
    cursor: wait;
}

/* ==========================================================================
   Cover — Split layout (50% color / 50% image)
   ========================================================================== */
.share-cover {
    --cover-head-bg: #2563EB;
    --cover-head-text: #FFFFFF;

    position: relative;
    width: 1080px;
    height: 1920px;
    display: flex;
    flex-direction: column;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.share-cover--square {
    height: 1080px;
}

.share-cover__head {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 56px 64px 40px;
    background: var(--cover-head-bg);
    color: #FFFFFF;
    text-align: center;
    box-sizing: border-box;
}

.share-cover--square .share-cover__head {
    padding: 40px 48px 28px;
}

.share-cover__author-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.share-cover--square .share-cover__author-row {
    margin-bottom: 20px;
}

.share-cover__author {
    margin: 0;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.3;
    color: #FFFFFF;
}

.share-cover--square .share-cover__author {
    font-size: 30px;
}

.share-cover__title {
    margin: 0;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
    color: #FFFFFF;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-cover--square .share-cover__title {
    font-size: 44px;
}

.share-cover__site {
    margin: auto 0 0;
    padding-bottom: 8px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    color: #FFFFFF;
    opacity: .92;
}

.share-cover--square .share-cover__site {
    font-size: 24px;
    padding-bottom: 4px;
}

.share-cover__badge {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
}

.share-cover--square .share-cover__badge {
    width: 34px;
    height: 34px;
}

.share-cover__image-wrap {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.share-cover__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-cover__qr {
    position: absolute;
    left: 40px;
    bottom: 40px;
    width: 168px;
    height: 168px;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-cover--square .share-cover__qr {
    left: 32px;
    bottom: 32px;
    width: 140px;
    height: 140px;
}

.share-cover__qr canvas,
.share-cover__qr img {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
