:root {
    --ssfw-color: #007bff;
}

#ssfw-widget {
    position: fixed;
    z-index: 9999;
    bottom: 20px;
}

.ssfw-bottom-right {
    right: 20px;
}

.ssfw-bottom-left {
    left: 20px;
}

.ssfw-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--ssfw-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ssfw-btn:hover {
    transform: scale(1.1);
    background-color: #0056b3;
}

/* Modal Styles */
.ssfw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.ssfw-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    width: 95%;
    max-width: 420px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: ssfwSlideUp 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes ssfwSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ssfw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.ssfw-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
}

#ssfw-close {
    background: #f0f0f0;
    border: none;
    font-size: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#ssfw-close:hover {
    background: #e0e0e0;
    color: #333;
}

.ssfw-platforms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.ssfw-platforms-list::-webkit-scrollbar {
    width: 6px;
}
.ssfw-platforms-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.ssfw-platforms-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.ssfw-platforms-list::-webkit-scrollbar-thumb:hover {
    background: var(--ssfw-color);
}

.ssfw-share-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    background: #f8f9fa;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ssfw-share-item i {
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

.ssfw-share-item:hover {
    background: #e9ecef;
    color: var(--ssfw-color);
    transform: translateX(5px);
}

.ssfw-more-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.ssfw-btn-more {
    background: none;
    border: 2px dashed #ccc;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    color: #666;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 5px;
    margin-bottom: 5px;
}

.ssfw-btn-more:hover {
    border-color: var(--ssfw-color);
    color: var(--ssfw-color);
}

/* Platform Colors (Optional Icons) */
.fa-facebook-f { color: #1877f2; }
.fa-whatsapp { color: #25d366; }
.fa-telegram-plane { color: #0088cc; }
.fa-linkedin-in { color: #0a66c2; }
.fa-link { color: #6c757d; }
.fa-envelope { color: #ea4335; }
.fa-x-twitter { color: #000; }
.fa-pinterest { color: #bd081c; }
.fa-reddit-alien { color: #ff4500; }

/* Responsive Adjustments */
@media (max-width: 480px) {
    .ssfw-modal-content {
        padding: 20px;
        width: 90%;
        max-height: 80vh;
        border-radius: 15px;
    }
    
    .ssfw-modal-header h3 {
        font-size: 1.2em;
    }

    .ssfw-share-item {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .ssfw-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-height: 600px) {
    .ssfw-modal-content {
        max-height: 90vh;
    }
}

