/**
 * SOCIAL SHARE STYLES
 * Premium social sharing UI
 */

/* Floating Share Bar */
.floating-share-bar {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-bar-toggle {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(118, 75, 162, 0.4);
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.share-bar-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(118, 75, 162, 0.6);
}

.share-bar-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.floating-share-bar.active .share-bar-content {
    max-height: 400px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.3);
}

.share-btn:hover {
    transform: translateX(-5px) scale(1.1);
}

.share-whatsapp {
    background: #25D366;
}

.share-facebook {
    background: #1877F2;
}

.share-twitter {
    background: #1DA1F2;
}

.share-linkedin {
    background: #0A66C2;
}

.share-telegram {
    background: #0088cc;
}

.share-copy {
    background: #6366f1;
}

/* Job Share Button */
.job-share-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.job-share-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Share Modal */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    pointer-events: all;
}

.share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.share-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

.share-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    transform: rotate(90deg);
}

.share-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.share-modal-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.share-modal-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.share-modal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.share-modal-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-modal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.5rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-modal-btn:hover {
    transform: translateY(-5px);
    border-color: currentColor;
}

.share-modal-btn i {
    font-size: 2rem;
}

.share-modal-btn span {
    font-size: 0.85rem;
    font-weight: 600;
}

.share-modal-btn.whatsapp {
    color: #25D366;
}

.share-modal-btn.facebook {
    color: #1877F2;
}

.share-modal-btn.twitter {
    color: #1DA1F2;
}

.share-modal-btn.linkedin {
    color: #0A66C2;
}

.share-modal-btn.telegram {
    color: #0088cc;
}

.share-modal-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: transparent;
}

.share-modal-link {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-modal-link input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
}

.share-modal-link button {
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-modal-link button:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Share Toast */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
}

.share-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.share-toast i {
    color: var(--success-color);
    font-size: 1.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-share-bar {
        right: 1rem;
        bottom: 5rem;
        top: auto;
        transform: none;
    }

    .share-bar-toggle {
        writing-mode: horizontal-tb;
        padding: 0.75rem 1.25rem;
    }

    .share-modal-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-modal-content {
        padding: 2rem 1.5rem;
    }

    .share-modal-header h3 {
        font-size: 1.5rem;
    }

    .share-modal-btn {
        padding: 1rem 0.5rem;
    }

    .share-modal-btn i {
        font-size: 1.5rem;
    }
}

/* Hide on mobile if needed */
@media (max-width: 991px) {
    .floating-share-bar {
        display: none;
        /* Can be shown on demand */
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .share-modal,
    .share-modal-content,
    .share-btn,
    .share-toast {
        transition: none;
    }
}