/**
 * PVH Reactions Addon Styles
 *
 * @package PVH_Reactions
 * @version 1.1.0
 */

/* Reactions Wrapper */
.pvh-reactions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 16px;
    flex-wrap: wrap;
}

/* Left Side - Like/Dislike */
.pvh-reactions-left {
    display: flex;
    align-items: center;
}

.pvh-reaction-buttons {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    border-radius: 20px;
    overflow: hidden;
}

.pvh-reaction-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #030303 !important;
    transition: background 0.2s !important;
}

.pvh-reaction-btn:hover {
    background: #e5e5e5;
}

.pvh-reaction-btn:disabled,
.pvh-reaction-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
}

.pvh-reaction-btn:disabled:hover,
.pvh-reaction-btn.is-disabled:hover {
    background: transparent !important;
}

.pvh-reaction-btn.active {
    color: #065fd4;
}

.pvh-reaction-btn.active .pvh-icon {
    fill: #065fd4;
    stroke: #065fd4;
}

.pvh-reaction-btn .pvh-icon {
    width: 20px;
    height: 20px;
}

.pvh-reaction-divider {
    width: 1px;
    height: 24px;
    background: #ccc;
}

.pvh-like-btn {
    border-radius: 20px 0 0 20px;
}

.pvh-dislike-btn {
    border-radius: 0 20px 20px 0 !important;
}

.pvh-dislike-btn .pvh-icon {
    transform: scaleY(-1);
}

/* Right Side - Share */
.pvh-reactions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pvh-share-wrapper {
    position: relative;
}

.pvh-share-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: #f2f2f2 !important;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #030303 !important;
    transition: background 0.2s
}

.pvh-share-btn:hover {
    background: #e5e5e5;
}

.pvh-share-btn .pvh-icon {
    width: 20px;
    height: 20px;
}

/* Share Dropdown */
.pvh-share-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.pvh-share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pvh-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
    font-size: 16px;
}

.pvh-share-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #606060;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
}

.pvh-share-close:hover {
    color: #030303;
}

.pvh-share-options {
    padding: 8px 0;
}

.pvh-share-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: #030303;
    font-size: 14px;
    transition: background 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.pvh-share-option:hover {
    background: #f2f2f2;
}

.pvh-share-option svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Platform Colors */
.pvh-share-option[data-platform="facebook"] svg {
    color: #1877f2;
}

.pvh-share-option[data-platform="twitter"] svg {
    color: #000;
}

.pvh-share-option[data-platform="whatsapp"] svg {
    color: #25d366;
}

.pvh-share-option[data-platform="telegram"] svg {
    color: #0088cc;
}

.pvh-share-option[data-platform="linkedin"] svg {
    color: #0a66c2;
}

.pvh-share-option[data-platform="reddit"] svg {
    color: #ff4500;
}

.pvh-share-option[data-platform="pinterest"] svg {
    color: #e60023;
}

.pvh-share-option[data-platform="email"] svg {
    color: #ea4335;
}

.pvh-copy-link svg {
    color: #606060;
}

/* Copy Success State */
.pvh-copy-link.copied {
    background: #e8f5e9;
}

.pvh-copy-link.copied span {
    color: #2e7d32;
}

/* Responsive */
@media screen and (max-width: 576px) {
    .pvh-reactions-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pvh-reactions-right {
        width: auto;
    }

    .pvh-share-btn {
        flex: none;
        justify-content: center;
    }

    .pvh-share-dropdown {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .pvh-share-dropdown.active {
        transform: translateY(0);
    }
}

/* Share dropdown overlay for mobile */
.pvh-share-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

@media screen and (max-width: 576px) {
    .pvh-share-overlay.active {
        display: block;
    }
}
