/* Teilen-Dialog (Silberbrise.Shared) – Basis-Layout; Theme-CSS kann Farben überschreiben */

.dialog-overlay[hidden] {
    display: none !important;
    pointer-events: none;
    visibility: hidden;
}

.dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dialog-overlay.is-visible {
    opacity: 1;
}

.share-dialog-container.dialog-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.share-dialog-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.share-dialog-description {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.share-link-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.share-link-input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
}

.share-copy-button {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    background-color: #16a34a;
}

.share-copy-button:hover {
    filter: brightness(1.05);
}

.share-options-label {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.share-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .share-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.share-option:hover {
    background: #f3f4f6;
    text-decoration: none;
    color: #111827;
}

.share-option-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.share-dialog-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.share-dialog-close:hover {
    background: #f3f4f6;
    color: #111827;
}
