/* ============================================================
   Group Export Modal — Full-viewport overlay
   Select content to include in group archive export
   ============================================================ */

/* ---- Overlay ---- */
.ge-overlay {
    position: fixed;
    inset: 0;
    z-index: 10004;
    background: var(--bg-color, #000);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.ge-overlay.open {
    transform: translateX(0);
    pointer-events: auto;
}

/* ---- Header ---- */
.ge-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    flex-shrink: 0;
}

.ge-header-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ge-header-info {
    flex: 1;
    min-width: 0;
}

.ge-header-info h2 {
    font-family: var(--font-display, 'DM Sans', sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary, #e4e4e7);
    margin: 0;
    line-height: 1.3;
}

.ge-header-info p {
    font-size: 0.82rem;
    color: var(--text-muted, #71717a);
    margin: 4px 0 0;
    letter-spacing: 0.01em;
}

.ge-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-hover, #1a1a1d);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    color: var(--text-secondary, #a1a1aa);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.ge-close-btn:hover {
    background: var(--surface-active, #27272a);
    color: var(--text-primary, #e4e4e7);
}

/* ---- Content Area ---- */
.ge-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 28px;
    max-width: 560px;
}

/* ---- Section Label ---- */
.ge-section-label {
    font-family: var(--font-display, 'DM Sans', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted, #71717a);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 24px 0 12px;
}

/* ---- Checkbox Rows ---- */
.ge-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-md, 8px);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.ge-option:hover {
    background: var(--surface-hover, rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.1);
}

.ge-option.checked {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.3);
}

.ge-option-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-hover, rgba(255, 255, 255, 0.04));
    border-radius: var(--radius-sm, 6px);
    color: var(--text-muted, #71717a);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ge-option.checked .ge-option-icon {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

.ge-option-label {
    flex: 1;
    font-family: var(--font-display, 'DM Sans', sans-serif);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary, #e4e4e7);
    letter-spacing: -0.01em;
}

.ge-option-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #7c3aed;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---- Format Label ---- */
.ge-format-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface-hover, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary, #e4e4e7);
    font-family: var(--font-display, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ge-format-pill i {
    color: var(--text-muted, #71717a);
    font-size: 0.9rem;
}

/* ---- Download CTA ---- */
.ge-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    flex-shrink: 0;
    max-width: 560px;
}

.ge-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-md, 8px);
    color: #fff;
    font-family: var(--font-display, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ge-download-btn:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    border-color: rgba(124, 58, 237, 0.5);
}

.ge-download-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.ge-download-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .ge-header {
        padding: 18px 16px 14px;
    }

    .ge-content {
        padding: 0 16px;
    }

    .ge-footer {
        padding: 16px;
    }
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
html.light-theme .ge-overlay {
    background: var(--bg-color, #f8f2ed);
}

html.light-theme .ge-close-btn {
    background: var(--surface-hover, #efe7df);
    border-color: var(--border, rgba(0, 0, 0, 0.08));
}

html.light-theme .ge-option {
    border-color: var(--border, rgba(0, 0, 0, 0.08));
}

html.light-theme .ge-option:hover {
    background: var(--surface-hover, #efe7df);
    border-color: rgba(0, 0, 0, 0.12);
}

html.light-theme .ge-option.checked {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.25);
}

html.light-theme .ge-option-icon {
    background: var(--surface-hover, #efe7df);
}

html.light-theme .ge-format-pill {
    background: var(--surface-hover, #efe7df);
    border-color: var(--border, rgba(0, 0, 0, 0.08));
}
