/**
 * Property Sharing Styles
 * Styles for the property sharing functionality
 */

/* Share Button Styles */
.share-property-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.share-property-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.share-property-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.share-property-btn i {
    font-size: 16px;
}

/* Share Dropdown Styles */
.share-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.share-dropdown .btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.share-dropdown .btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.share-dropdown .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.share-dropdown .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    margin-top: 8px;
    min-width: 200px;
    animation: dropdownFadeIn 0.2s ease-out;
}

.share-dropdown .dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: none;
    line-height: 1.2;
}

.share-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #007bff;
    transform: translateX(4px);
}

.share-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* Platform-specific colors */
.share-dropdown .dropdown-item[data-share="whatsapp"]:hover {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.share-dropdown .dropdown-item[data-share="telegram"]:hover {
    background: linear-gradient(135deg, #0088cc, #005580);
    color: white;
}

.share-dropdown .dropdown-item[data-share="facebook"]:hover {
    background: linear-gradient(135deg, #1877f2, #0d47a1);
    color: white;
}

.share-dropdown .dropdown-item[data-share="instagram"]:hover {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4, #F77737, #FCAF45);
    color: white;
}

.share-dropdown .dropdown-item[data-share="copy"]:hover {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

/* Divider styling */
.share-dropdown .dropdown-divider {
    margin: 6px 0;
    border-color: #e9ecef;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .share-property-btn,
    .share-dropdown .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .share-dropdown .dropdown-menu {
        min-width: 180px;
    }
    
    .share-dropdown .dropdown-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Animation for dropdown */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast notification styles */
.toast-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Loading state for share button */
.share-property-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.share-property-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.share-property-btn:focus,
.share-dropdown .btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.share-dropdown .dropdown-item:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .share-property-btn,
    .share-dropdown .btn {
        border: 2px solid #000;
    }
    
    .share-dropdown .dropdown-menu {
        border: 1px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .share-property-btn,
    .share-dropdown .btn,
    .share-dropdown .dropdown-item {
        transition: none;
    }
    
    .share-dropdown .dropdown-menu {
        animation: none;
    }
}
