/* --- Share Modal --- */
.share-modal {
    display: none;
    position: fixed;
    z-index: 1060;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-animation: fadeIn 0.3s;
    animation: fadeIn 0.3s;
}

.share-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    -webkit-animation: slideIn 0.3s;
    animation: slideIn 0.3s;
}

.share-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.share-modal-close:hover,
.share-modal-close:focus {
    color: black;
    text-decoration: none;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.share-btn svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.share-btn-whatsapp { fill: #25D366; }
.share-btn-facebook { fill: #1877F2; }
.share-btn-messenger { fill: #00B2FF; }
.share-btn-email { fill: #777; }
.share-btn-copy { fill: var(--mz-one); }

.copy-link-container {
    grid-column: 1 / -1; /* Span across both columns */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.copy-link-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
}

#copy-link-success {
    color: var(--mz-two);
    font-weight: bold;
    display: none;
}

/* Animationen */
@-webkit-keyframes fadeIn { from {opacity: 0} to {opacity: 1} }
@keyframes fadeIn { from {opacity: 0} to {opacity: 1} }

@-webkit-keyframes slideIn { from {transform: translateY(-50px); opacity: 0} to {transform: translateY(0); opacity: 1} }
@keyframes slideIn { from {transform: translateY(-50px); opacity: 0} to {transform: translateY(0); opacity: 1} }
