/**
 * BP for Share Creative - Styles Frontend
 * v1.0.0
 */

/* ==========================================================================
   HASHTAGS
   ========================================================================== */

.bpsc-hashtag {
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bpsc-hashtag:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Trending hashtags (shortcode) */
.bpsc-trending-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    padding: 15px 0;
}

.bpsc-trending-tag {
    color: #2271b1;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.bpsc-trending-tag:hover {
    color: #135e96;
    transform: scale(1.05);
}

.bpsc-no-hashtags {
    color: #757575;
    font-style: italic;
}

/* ==========================================================================
   LIKES
   ========================================================================== */

.bpsc-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #757575;
}

.bpsc-like-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.bpsc-like-btn.bpsc-liked {
    color: #e74c3c;
}

.bpsc-like-btn.bpsc-liked .bpsc-like-icon {
    animation: bpsc-pulse 0.3s ease;
}

@keyframes bpsc-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.bpsc-like-icon {
    font-size: 18px;
    line-height: 1;
}

.bpsc-like-count {
    font-size: 13px;
    font-weight: 600;
}

.bpsc-likers-link {
    font-size: 12px;
    color: #757575;
    text-decoration: none;
    margin-left: 4px;
}

.bpsc-likers-link:hover {
    color: #2271b1;
    text-decoration: underline;
}

/* Popup likers */
.bpsc-likers-popup {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 1000;
    max-width: 280px;
    max-height: 300px;
    overflow-y: auto;
}

.bpsc-likers-popup .bpsc-liker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bpsc-likers-popup .bpsc-liker-item:last-child {
    border-bottom: none;
}

.bpsc-likers-popup .bpsc-liker-item img {
    border-radius: 50%;
}

.bpsc-likers-popup .bpsc-liker-item a {
    color: #1d2327;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.bpsc-likers-popup .bpsc-liker-item a:hover {
    color: #2271b1;
}

/* ==========================================================================
   SHARE (Partage)
   ========================================================================== */

.bpsc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #757575;
}

.bpsc-share-btn:hover {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
}

.bpsc-share-btn.bpsc-already-shared {
    color: #27ae60;
    opacity: 0.7;
    cursor: default;
}

.bpsc-share-icon {
    font-size: 16px;
    font-weight: bold;
}

.bpsc-share-count {
    font-size: 12px;
    font-weight: 600;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Contenu partagé */
.bpsc-shared-activity {
    border-left: 3px solid #ddd;
    padding: 10px 15px;
    margin: 10px 0;
    background: #fafafa;
    border-radius: 0 6px 6px 0;
}

.bpsc-shared-header {
    font-size: 12px;
    color: #757575;
    margin-bottom: 8px;
    font-style: italic;
}

.bpsc-shared-header a {
    color: #2271b1;
    font-weight: 600;
}

.bpsc-shared-body {
    font-size: 14px;
}

.bpsc-is-shared-activity {
    position: relative;
}

/* ==========================================================================
   MUTUAL BUDDIES (Amis en commun)
   ========================================================================== */

.bpsc-mutual-buddies {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.bpsc-mutual-buddies h4 {
    font-size: 14px;
    color: #757575;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.bpsc-mutual-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.bpsc-mutual-avatar {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.bpsc-mutual-avatar:hover {
    transform: scale(1.1);
}

.bpsc-mutual-avatar img {
    border-radius: 50%;
    display: block;
}

.bpsc-mutual-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    font-size: 12px;
    font-weight: 600;
}

.bpsc-mutual-count {
    display: inline-block;
    font-size: 12px;
    color: #757575;
    margin-top: 4px;
}

.bpsc-no-mutual {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* Shortcode mutual */
.bpsc-mutual-buddies-shortcode .bpsc-mutual-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    text-decoration: none;
}

.bpsc-mutual-buddies-shortcode .bpsc-mutual-avatar span {
    color: #1d2327;
    font-size: 13px;
}

/* ==========================================================================
   NOTIFICATIONS / TOAST
   ========================================================================== */

.bpsc-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 380px;
}

.bpsc-toast {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    padding: 14px 40px 14px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bpsc-toast.bpsc-toast-show {
    transform: translateX(0);
}

.bpsc-toast.bpsc-toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

.bpsc-toast a {
    color: #1d2327;
    text-decoration: none;
}

.bpsc-toast a:hover {
    color: #2271b1;
}

.bpsc-toast strong {
    color: #2271b1;
}

.bpsc-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.bpsc-toast-close:hover {
    color: #333;
}

/* Badge messages */
.bpsc-msg-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    line-height: 1.4;
}

.bpsc-topbar-msg {
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* ==========================================================================
   PRIVACY
   ========================================================================== */

.bpsc-privacy-settings {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.bpsc-privacy-settings h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
}

.bpsc-privacy-settings label {
    display: block;
    padding: 6px 0;
    cursor: pointer;
}

.bpsc-privacy-settings label:hover {
    color: #2271b1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .bpsc-toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .bpsc-mutual-list {
        gap: 4px;
    }

    .bpsc-mutual-avatar img {
        width: 32px !important;
        height: 32px !important;
    }

    .bpsc-mutual-more {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}
