/**
 * Social Share Buttons Styles
 *
 * @package IntelliRealty
 */

/* Container */
.ir-share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Base button styles */
.ir-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
}

.ir-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ir-share-btn:active {
    transform: translateY(0);
}

.ir-share-btn svg {
    flex-shrink: 0;
}

/* Size variations */
.ir-share-size-small .ir-share-btn {
    width: 32px;
    height: 32px;
}

.ir-share-size-small .ir-share-btn svg {
    width: 16px;
    height: 16px;
}

.ir-share-size-medium .ir-share-btn {
    width: 40px;
    height: 40px;
}

.ir-share-size-medium .ir-share-btn svg {
    width: 20px;
    height: 20px;
}

.ir-share-size-large .ir-share-btn {
    width: 48px;
    height: 48px;
}

.ir-share-size-large .ir-share-btn svg {
    width: 24px;
    height: 24px;
}

/* Style: Icons (default) - dark icons, colored on hover */
.ir-share-style-icons .ir-share-btn {
    background: transparent;
    color: #18191c;
}

.ir-share-style-icons .ir-share-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.ir-share-style-icons .ir-share-twitter:hover {
    background: #000;
    color: #fff;
}

.ir-share-style-icons .ir-share-linkedin:hover {
    background: #0a66c2;
    color: #fff;
}

.ir-share-style-icons .ir-share-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.ir-share-style-icons .ir-share-email:hover {
    background: #ea4335;
    color: #fff;
}

.ir-share-style-icons .ir-share-pinterest:hover {
    background: #e60023;
    color: #fff;
}

.ir-share-style-icons .ir-share-telegram:hover {
    background: #0088cc;
    color: #fff;
}

.ir-share-style-icons .ir-share-copy:hover {
    background: #6c757d;
    color: #fff;
}

/* Style: Buttons - with labels */
.ir-share-style-buttons .ir-share-btn {
    border-radius: 6px;
    padding: 8px 16px;
    width: auto;
    height: auto;
    gap: 8px;
}

.ir-share-style-buttons .ir-share-label {
    font-size: 14px;
    font-weight: 500;
}

/* Style: Minimal - outline style */
.ir-share-style-minimal .ir-share-btn {
    background: transparent;
    border: 1px solid #ddd;
}

.ir-share-style-minimal .ir-share-facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.ir-share-style-minimal .ir-share-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.ir-share-style-minimal .ir-share-twitter {
    color: #000;
    border-color: #000;
}

.ir-share-style-minimal .ir-share-twitter:hover {
    background: #000;
    color: #fff;
}

.ir-share-style-minimal .ir-share-linkedin {
    color: #0a66c2;
    border-color: #0a66c2;
}

.ir-share-style-minimal .ir-share-linkedin:hover {
    background: #0a66c2;
    color: #fff;
}

.ir-share-style-minimal .ir-share-whatsapp {
    color: #25d366;
    border-color: #25d366;
}

.ir-share-style-minimal .ir-share-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.ir-share-style-minimal .ir-share-email {
    color: #ea4335;
    border-color: #ea4335;
}

.ir-share-style-minimal .ir-share-email:hover {
    background: #ea4335;
    color: #fff;
}

.ir-share-style-minimal .ir-share-pinterest {
    color: #e60023;
    border-color: #e60023;
}

.ir-share-style-minimal .ir-share-pinterest:hover {
    background: #e60023;
    color: #fff;
}

.ir-share-style-minimal .ir-share-telegram {
    color: #0088cc;
    border-color: #0088cc;
}

.ir-share-style-minimal .ir-share-telegram:hover {
    background: #0088cc;
    color: #fff;
}

.ir-share-style-minimal .ir-share-copy {
    color: #6c757d;
    border-color: #6c757d;
}

.ir-share-style-minimal .ir-share-copy:hover {
    background: #6c757d;
    color: #fff;
}

/* Copy success state */
.ir-share-copy.ir-copied {
    background: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
}

.ir-share-copy.ir-copied svg {
    display: none;
}

.ir-share-copy.ir-copied::after {
    content: '✓';
    font-size: 16px;
}

/* Tooltip */
.ir-share-btn[data-tooltip] {
    position: relative;
}

.ir-share-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: #333;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 8px;
}

.ir-share-btn[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 480px) {
    .ir-share-buttons {
        gap: 6px;
    }

    .ir-share-size-medium .ir-share-btn {
        width: 36px;
        height: 36px;
    }

    .ir-share-size-medium .ir-share-btn svg {
        width: 18px;
        height: 18px;
    }

    .ir-share-style-buttons .ir-share-btn {
        padding: 6px 12px;
    }

    .ir-share-style-buttons .ir-share-label {
        font-size: 12px;
    }
}
