/* ============================================
   HUBLIO SHARE BUTTONS STYLES - DARK THEME
   ============================================ */

/* Base styles for all share components */
.hublio-share-buttons,
.hublio-share-dropdown,
.hublio-share-minimal {
    font-family: inherit;
    line-height: 1;
}

/* ============================================
   BUTTONS STYLE - DARK THEME
   ============================================ */

.hublio-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hublio-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #181818;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hublio-share-btn:hover {
    background: #222222;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hublio-share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hublio-share-btn .share-icon {
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
}

.hublio-share-btn .share-icon svg {
    width: 100%;
    height: 100%;
}

/* Platform-specific colors - Dark Theme */
.hublio-share-facebook {
    background: linear-gradient(135deg, #1877f2, #0f5ad9);
    border-color: #1877f2;
    color: #ffffff;
}

.hublio-share-facebook:hover {
    background: linear-gradient(135deg, #0f5ad9, #0a4bc7);
    border-color: #0f5ad9;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.hublio-share-twitter {
    background: linear-gradient(135deg, #000000, #333333);
    border-color: #000000;
    color: #ffffff;
}

.hublio-share-twitter:hover {
    background: linear-gradient(135deg, #333333, #000000);
    border-color: #333333;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hublio-share-linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
    border-color: #0077b5;
    color: #ffffff;
}

.hublio-share-linkedin:hover {
    background: linear-gradient(135deg, #005885, #004a73);
    border-color: #005885;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

.hublio-share-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-color: #25d366;
    color: #ffffff;
}

.hublio-share-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #0f7a6c);
    border-color: #128c7e;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.hublio-share-telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
    border-color: #0088cc;
    color: #ffffff;
}

.hublio-share-telegram:hover {
    background: linear-gradient(135deg, #006699, #005580);
    border-color: #006699;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
}

.hublio-share-email {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border-color: #6c757d;
    color: #ffffff;
}

.hublio-share-email:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    border-color: #5a6268;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.hublio-share-copy {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border-color: #28a745;
    color: #ffffff;
}

.hublio-share-copy:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    border-color: #1e7e34;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.hublio-share-copy.copied {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border-color: #17a2b8;
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

/* ============================================
   DROPDOWN STYLE - DARK THEME
   ============================================ */

.hublio-share-dropdown {
    position: relative;
    display: inline-block;
}

.hublio-share-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #181818;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hublio-share-toggle:hover {
    background: #222;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hublio-share-toggle svg {
    width: 20px;
    height: 20px;
}

.hublio-share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    margin-top: 4px;
    padding: 8px 0;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Auto-position dropdown to avoid horizontal scroll */
.hublio-share-dropdown.position-right .hublio-share-menu {
    left: auto;
    right: 0;
}

.hublio-share-dropdown.active .hublio-share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hublio-share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hublio-share-item:hover {
    background-color: #333333;
    color: #ffffff;
}

.hublio-share-item .share-icon {
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
}

.hublio-share-item .share-icon svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   MINIMAL STYLE - DARK THEME
   ============================================ */

.hublio-share-minimal {
    display: flex;
    gap: 6px;
    align-items: center;
}

.hublio-share-btn-minimal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #404040;
    border-radius: 50%;
    background: #2a2a2a;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hublio-share-btn-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hublio-share-btn-minimal:hover::before {
    opacity: 1;
}

.hublio-share-btn-minimal:hover {
    background: #383838;
    border-color: #606060;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hublio-share-btn-minimal svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

/* Platform colors for minimal style - Dark Theme */
.hublio-share-minimal .hublio-share-facebook:hover {
    background: radial-gradient(circle, #1877f2, #0f5ad9);
    border-color: #1877f2;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
}

.hublio-share-minimal .hublio-share-twitter:hover {
    background: radial-gradient(circle, #000000, #333333);
    border-color: #000000;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hublio-share-minimal .hublio-share-linkedin:hover {
    background: radial-gradient(circle, #0077b5, #005885);
    border-color: #0077b5;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 119, 181, 0.4);
}

.hublio-share-minimal .hublio-share-whatsapp:hover {
    background: radial-gradient(circle, #25d366, #128c7e);
    border-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.hublio-share-minimal .hublio-share-telegram:hover {
    background: radial-gradient(circle, #0088cc, #006699);
    border-color: #0088cc;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}

.hublio-share-minimal .hublio-share-email:hover {
    background: radial-gradient(circle, #6c757d, #5a6268);
    border-color: #6c757d;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.4);
}

.hublio-share-minimal .hublio-share-copy:hover {
    background: radial-gradient(circle, #FF7D00, #ff9029);
    border-color: #FF7D00;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.hublio-share-minimal .hublio-share-copy.copied {
    background: radial-gradient(circle, #FF7D00, #ff9029);
    border-color: #FF7D00;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 125, 0, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hublio-share-buttons {
        gap: 6px;
    }
    
    .hublio-share-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .hublio-share-btn .share-label {
        display: none;
    }
    
    .hublio-share-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .hublio-share-menu {
        right: 0;
        left: auto;
        min-width: 180px;
    }
    
    /* On mobile, always position dropdown to the right to avoid edge issues */
    .hublio-share-dropdown .hublio-share-menu {
        left: auto;
        right: 0;
    }
}

@media (max-width: 480px) {
    .hublio-share-buttons {
        gap: 4px;
    }
    
    .hublio-share-btn {
        width: 32px;
        height: 32px;
    }
    
    .hublio-share-btn .share-icon {
        width: 16px;
        height: 16px;
    }
    
    .hublio-share-btn-minimal {
        width: 32px;
        height: 32px;
    }
    
    .hublio-share-btn-minimal svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   COPY FEEDBACK ANIMATION
   ============================================ */

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.hublio-share-copy.copied,
.hublio-share-btn-minimal.copied {
    animation: copySuccess 0.3s ease;
}

/* ============================================
   ACCESSIBILITY - DARK THEME
   ============================================ */

.hublio-share-btn:focus,
.hublio-share-toggle:focus,
.hublio-share-item:focus,
.hublio-share-btn-minimal:focus {
    background-color: #181818;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hublio-share-btn,
    .hublio-share-toggle,
    .hublio-share-item,
    .hublio-share-btn-minimal,
    .hublio-share-menu {
        transition: none;
    }
    
    .hublio-share-btn:hover,
    .hublio-share-btn-minimal:hover {
        transform: none;
    }
    
    .hublio-share-copy.copied,
    .hublio-share-btn-minimal.copied {
        animation: none;
    }
}