/**
 * Like and Share Bar Styles - Soft UI Edition
 * خليج أونلاين 2026
 * Matches theme's cream/warm aesthetic
 */

.nexus-like-share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin: 40px 0 30px;
    background: #f9f6f3;
    /* Soft cream background */
    border-radius: 16px;
    border: 1px solid #e8e4df;
    gap: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Like Section - Left Side */
.like-section {
    display: flex;
    align-items: center;
}

.like-btn {
    background: #fff;
    border: 1.5px solid #d1ccc5;
    border-radius: 50px;
    /* Perfect pill shape */
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.like-btn:hover:not(:disabled) {
    border-color: var(--like-color, #e74c3c);
    color: var(--like-color, #e74c3c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.like-btn.liked {
    background: var(--like-color, #e74c3c);
    color: #fff;
    border-color: var(--like-color, #e74c3c);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.like-btn.liked:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}

.like-btn .heart-icon {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.like-btn.liked .heart-icon {
    fill: currentColor;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.15);
    }
}

.like-count {
    font-size: 15px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    letter-spacing: -0.3px;
}

/* Share Section - Right Side */
.share-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: #5a5550;
    letter-spacing: -0.2px;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8e4df;
    color: var(--share-color, #4a4540);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.share-icon:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-icon.twitter:hover {
    color: #1da1f2;
    border-color: #1da1f2;
}

.share-icon.facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
}

.share-icon.linkedin:hover {
    color: #0a66c2;
    border-color: #0a66c2;
}

.share-icon.copy-link:hover {
    color: #10b981;
    border-color: #10b981;
}

.share-icon svg {
    width: 18px;
    height: 18px;
}

/* Copy Success Feedback */
.copy-success {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
    z-index: 999999;
    animation: slideUpFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Dark Mode Support */
/* Dark Mode Support - Reference Image Match */
html.dark-mode .nexus-like-share-bar,
html.dark-scheme .nexus-like-share-bar,
html[data-theme="dark"] .nexus-like-share-bar {
    background: #111827 !important;
    /* Darker Navy/Slate */
    border: 1px solid #374151 !important;
    /* Subtle Grey Border */
    box-shadow: none !important;
}

html.dark-mode .like-btn,
html.dark-scheme .like-btn,
html[data-theme="dark"] .like-btn {
    background: #1f2937 !important;
    /* Slightly lighter than container */
    border-color: #374151 !important;
    color: #f3f4f6 !important;
}

html.dark-mode .like-btn:hover:not(:disabled):not(.liked),
html.dark-scheme .like-btn:hover:not(:disabled):not(.liked),
html[data-theme="dark"] .like-btn:hover:not(:disabled):not(.liked) {
    background: #374151 !important;
    border-color: #ef4444 !important;
    /* Red border on hover */
    color: #f3f4f6 !important;
}

/* Liked state in dark mode */
html.dark-mode .like-btn.liked,
html.dark-scheme .like-btn.liked,
html[data-theme="dark"] .like-btn.liked {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

html.dark-mode .like-btn.liked:hover,
html.dark-scheme .like-btn.liked:hover,
html[data-theme="dark"] .like-btn.liked:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}


html.dark-mode .share-label,
html.dark-scheme .share-label,
html[data-theme="dark"] .share-label {
    color: #d1d5db !important;
    /* Light Grey Text */
}

html.dark-mode .share-icon,
html.dark-scheme .share-icon,
html[data-theme="dark"] .share-icon {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #9ca3af !important;
}

html.dark-mode .share-icon:hover,
html.dark-scheme .share-icon:hover,
html[data-theme="dark"] .share-icon:hover {
    background: #374151 !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
}

/* RTL Support - Flexbox handles RTL naturally, no overrides needed */

/* Responsive Design */
@media (max-width: 768px) {
    .nexus-like-share-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }

    .like-section {
        justify-content: center;
    }

    .share-section {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .share-icons {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .nexus-like-share-bar {
        padding: 16px;
        margin: 30px 0 20px;
    }

    .like-btn {
        padding: 9px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .share-label {
        font-size: 13px;
    }

    .share-icon {
        width: 36px;
        height: 36px;
    }

    .share-icon svg {
        width: 16px;
        height: 16px;
    }
}