/* Share Button */

/* Main share button */
.share-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.share-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-trigger-btn:hover {
    background: #f2f2f2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-trigger-btn i {
    font-size: 18px;
}

/* Share modal overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    animation: fadeIn 0.2s ease;
}

.share-modal-overlay.active {
    display: flex;
}

/* Share modal content */
.share-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

/* Modal header */
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.share-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f0f0f;
    margin: 0;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #606060;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.share-modal-close:hover {
    background: #f2f2f2;
}

/* Modal body */
.share-modal-body {
    padding: 20px;
}

/* URL copy section */
.share-url-section {
    margin-bottom: 20px;
}

.share-url-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.share-url-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #0f0f0f;
    outline: none;
}

.share-copy-btn {
    background: #065fd4;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: #0e4fa0;
}

.share-copy-btn.copied {
    background: #2ba640;
}

/* Share platforms grid */
.share-platforms-label {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 12px;
    display: block;
}

.share-platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.share-platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-platform-item:hover {
    background: #f2f2f2;
}

.share-platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: transform 0.2s ease;
}

.share-platform-item:hover .share-platform-icon {
    transform: scale(1.1);
}

/* Platform specific colors */
.share-platform-icon.whatsapp {
    background: #25D366;
}

.share-platform-icon.facebook {
    background: #1877F2;
}

.share-platform-icon.messenger {
    background: #006AFF;
}

.share-platform-icon.telegram {
    background: #00B2FF;
}

.share-platform-name {
    font-size: 12px;
    font-weight: 500;
    color: #0f0f0f;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .share-modal {
        width: 95%;
        max-width: none;
    }

    .share-platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-url-container {
        flex-direction: column;
        align-items: stretch;
    }

    .share-copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .share-modal-body {
        padding: 16px;
    }

    .share-platform-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Copy feedback tooltip */
.copy-tooltip {
    position: absolute;
    background: #0f0f0f;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}
