/* ========================================
   Share Dropdown Component Styles
   Reusable across all profile pages
   ======================================== */

.share-dropdown {
    position: relative;
    display: inline-flex;
}

.share-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-secondary, #94A3B8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-dropdown__trigger:hover {
    border-color: var(--primary, #0EA5E9);
    color: var(--primary, #0EA5E9);
    background: rgba(14, 165, 233, 0.1);
}

.share-dropdown__trigger i {
    font-size: 1.125rem;
}

.share-dropdown--open .share-dropdown__trigger {
    border-color: var(--primary, #0EA5E9);
    color: var(--primary, #0EA5E9);
    background: rgba(14, 165, 233, 0.15);
}

/* Dropdown Menu */
.share-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--gradient-surface, linear-gradient(135deg, rgba(19, 25, 32, 0.98) 0%, rgba(15, 20, 25, 0.98) 100%));
    border: 1px solid var(--border-primary, rgba(51, 65, 85, 0.5));
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

[dir="rtl"] .share-dropdown__menu {
    right: auto;
    left: 0;
}

.share-dropdown--open .share-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Header */
.share-dropdown__header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary, rgba(51, 65, 85, 0.5));
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary, #94A3B8);
}

/* Dropdown Items */
.share-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary, #F8FAFC);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

[dir="rtl"] .share-dropdown__item {
    text-align: right;
}

.share-dropdown__item:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary, #0EA5E9);
}

.share-dropdown__item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Social Media Icon Colors on Hover */
.share-dropdown__item[data-share="facebook"]:hover i {
    color: #1877F2;
}

.share-dropdown__item[data-share="twitter"]:hover i {
    color: #000000;
}

.share-dropdown__item[data-share="copy"]:hover i {
    color: var(--secondary, #7CB342);
}

.share-dropdown__item[data-share="email"]:hover i {
    color: #EA4335;
}

/* Share Notification */
.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--gradient-surface, linear-gradient(135deg, rgba(19, 25, 32, 0.98) 0%, rgba(15, 20, 25, 0.98) 100%));
    border: 1px solid var(--border-primary, rgba(51, 65, 85, 0.5));
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    color: var(--text-primary, #F8FAFC);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .share-notification {
    right: auto;
    left: 20px;
    transform: translateX(-100%);
}

.share-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.share-notification--success {
    border-color: var(--secondary, #7CB342);
}

.share-notification--success i {
    color: var(--secondary, #7CB342);
    font-size: 18px;
}

.share-notification--error {
    border-color: #ef4444;
}

.share-notification--error i {
    color: #ef4444;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .share-dropdown__menu {
        min-width: 180px;
    }
    
    .share-dropdown__item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .share-notification {
        top: 10px;
        right: 10px;
        left: auto;
        max-width: calc(100% - 20px);
    }
    
    [dir="rtl"] .share-notification {
        right: auto;
        left: 10px;
    }
}
