/* === TRIGGER BUTTON === */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #e8632a;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

.share-btn:hover {
    background: #cf541f;
    transform: translateY(-1px);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* === OVERLAY === */
#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* === MODAL === */
#share-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    z-index: 99999;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    width: 360px;
    max-width: 95vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
}

#share-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* close button */
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f1f3f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.15s, color 0.15s;
    margin: 0;
    padding: 0;
    min-width: 38px;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #222;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

/* === SOCIAL ICONS === */
.social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.social-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s;
}

.social-item:hover .social-circle {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.social-circle svg {
    width: 26px;
    height: 26px;
}

.social-circle.mail {
    background: #3fbcd4;
}

.social-circle.facebook {
    background: #1877f2;
}

.social-circle.pinterest {
    background: #e60023;
}

.social-circle.twitter {
    background: #1d9bf0;
}

.social-label {
    font-size: 12px;
    font-weight: 500;
    color: #444;
}

/* === DIVIDER === */
.divider {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}

/* === COPY ROW === */
.copy-row {
    display: flex;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.copy-row:focus-within {
    border-color: #e8632a;
}

#share-link {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
    margin: 0;
}

#copy-btn {
    padding: 10px 20px;
    background: #e8632a;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
    margin: 0;
}

#copy-btn:hover {
    background: #cf541f;
}

#copy-btn.copied {
    background: #27ae60;
}

/* === TOAST === */
#toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1a1a1a;
    color: #fff;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 9999;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}