/* Mobile Social Media Share Button - Optimized for Touch */

.social-share-container {
    position: fixed;
    bottom: 90px; /* Above mobile player */
    right: 15px;
    z-index: 999;
}

.share-buttons {
    position: relative;
    display: grid;
    place-items: center;
    height: fit-content;
    width: fit-content;
    transition: 0.3s;
    border-radius: 50%;
}

.share-buttons:hover,
.share-buttons.active {
    padding: 45px;
}

.share-buttons:hover .share-button,
.share-buttons.active .share-button {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.main-share-button {
    position: relative;
    display: grid;
    place-items: center;
    padding: 14px;
    border: none;
    background: var(--accent-color-main, #FA9F42);
    box-shadow: 0 4px 15px rgba(250, 159, 66, 0.4);
    border-radius: 50%;
    transition: 0.2s;
    z-index: 100;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.main-share-button:active {
    transform: scale(0.95);
}

.main-share-button.active {
    background: var(--text-light, #E0E0E2);
    transform: scale(1.05);
}

.main-share-button svg {
    color: #1E2D44;
    width: 24px;
    height: 24px;
}

.share-button {
    position: absolute;
    display: grid;
    place-items: center;
    padding: 11px;
    border: none;
    background: rgba(30, 45, 68, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(250, 159, 66, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.share-button svg {
    color: #E0E0E2;
    width: 22px;
    height: 22px;
}

.share-button:active {
    transform: scale(0.9);
}

/* Twitter/X Button */
.twitter-button:active {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-buttons:hover .twitter-button,
.share-buttons.active .twitter-button {
    translate: 60px 0px;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.5);
}

/* Facebook Button */
.facebook-button:active {
    background: #1877F2;
    border-color: #1877F2;
}

.share-buttons:hover .facebook-button,
.share-buttons.active .facebook-button {
    translate: 42px -42px;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.5);
}

/* WhatsApp Button */
.whatsapp-button:active {
    background: #25D366;
    border-color: #25D366;
}

.share-buttons:hover .whatsapp-button,
.share-buttons.active .whatsapp-button {
    translate: 0px -60px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

/* Telegram Button */
.telegram-button:active {
    background: #0088cc;
    border-color: #0088cc;
}

.share-buttons:hover .telegram-button,
.share-buttons.active .telegram-button {
    translate: -42px -42px;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.5);
}

/* Reddit Button */
.reddit-button:active {
    background: #FF4500;
    border-color: #FF4500;
}

.share-buttons:hover .reddit-button,
.share-buttons.active .reddit-button {
    translate: -60px 0px;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.5);
}

/* LinkedIn Button */
.linkedin-button:active {
    background: #0077B5;
    border-color: #0077B5;
}

.share-buttons:hover .linkedin-button,
.share-buttons.active .linkedin-button {
    translate: -42px 42px;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.5);
}

/* Copy Link Button */
.copy-button:active {
    background: var(--accent-color-main, #FA9F42);
    border-color: var(--accent-color-main, #FA9F42);
}

.share-buttons:hover .copy-button,
.share-buttons.active .copy-button {
    translate: 0px 60px;
    box-shadow: 0 4px 12px rgba(250, 159, 66, 0.5);
}

/* Active state for all buttons */
.share-button:active svg {
    color: #fff;
}

/* Share Notification */
.share-notification {
    position: fixed;
    bottom: 100px;
    right: 15px;
    background: var(--accent-color-main, #FA9F42);
    color: #1E2D44;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.share-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Smaller screens */
@media (max-width: 360px) {
    .social-share-container {
        right: 10px;
        bottom: 85px;
    }
    
    .main-share-button {
        padding: 12px;
    }
    
    .main-share-button svg {
        width: 20px;
        height: 20px;
    }
    
    .share-button {
        padding: 9px;
    }
    
    .share-button svg {
        width: 18px;
        height: 18px;
    }
    
    .share-buttons:hover,
    .share-buttons.active {
        padding: 38px;
    }
    
    .share-buttons:hover .twitter-button,
    .share-buttons.active .twitter-button {
        translate: 50px 0px;
    }
    
    .share-buttons:hover .facebook-button,
    .share-buttons.active .facebook-button {
        translate: 35px -35px;
    }
    
    .share-buttons:hover .whatsapp-button,
    .share-buttons.active .whatsapp-button {
        translate: 0px -50px;
    }
    
    .share-buttons:hover .telegram-button,
    .share-buttons.active .telegram-button {
        translate: -35px -35px;
    }
    
    .share-buttons:hover .reddit-button,
    .share-buttons.active .reddit-button {
        translate: -50px 0px;
    }
    
    .share-buttons:hover .linkedin-button,
    .share-buttons.active .linkedin-button {
        translate: -35px 35px;
    }
    
    .share-buttons:hover .copy-button,
    .share-buttons.active .copy-button {
        translate: 0px 50px;
    }
}
