/* Share Tools Block - Frontend Styles */

.cownected-share-tools {
    margin: 2rem 0;
}

.cownected-share-tools__container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cownected-share-tools--vertical .cownected-share-tools__container {
    flex-direction: column;
    align-items: flex-start;
}

.cownected-share-tools--horizontal .cownected-share-tools__container {
    flex-direction: row;
    align-items: center;
}

/* Alignment Options */
.cownected-share-tools--align-left .cownected-share-tools__container {
    justify-content: flex-start;
}

.cownected-share-tools--align-center .cownected-share-tools__container {
    justify-content: center;
}

.cownected-share-tools--align-right .cownected-share-tools__container {
    justify-content: flex-end;
}

/* Vertical layout alignment */
.cownected-share-tools--vertical.cownected-share-tools--align-left .cownected-share-tools__container {
    align-items: flex-start;
}

.cownected-share-tools--vertical.cownected-share-tools--align-center .cownected-share-tools__container {
    align-items: center;
}

.cownected-share-tools--vertical.cownected-share-tools--align-right .cownected-share-tools__container {
    align-items: flex-end;
}

.cownected-share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

/* Ensure <a> tags look the same as <button> */
a.cownected-share-button {
    display: inline-flex !important;
    text-decoration: none !important;
    line-height: 1.5;
    vertical-align: middle;
}

a.cownected-share-button:visited,
a.cownected-share-button:link,
a.cownected-share-button:active {
    color: #333;
    text-decoration: none !important;
}

a.cownected-share-button:hover {
    color: #333;
    text-decoration: none !important;
}

.cownected-share-button:hover {
    background: #f5f5f5;
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cownected-share-button:active {
    transform: translateY(0);
}

.cownected-share-button .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.cownected-share-button .icon svg {
    width: 100%;
    height: 100%;
}

/* Apply custom icon color */
.cownected-share-tools {
    color: var(--icon-color, inherit);
}

.cownected-share-button .icon {
    color: var(--icon-color, currentColor);
}

/* For fill-based icons (LinkedIn, Facebook, Twitter) */
.cownected-share-button--linkedin .icon svg path,
.cownected-share-button--facebook .icon svg path,
.cownected-share-button--twitter .icon svg path {
    fill: currentColor;
}

/* For stroke-based icons (Copy, Print, PDF, Email) */
.cownected-share-button--copy .icon svg,
.cownected-share-button--print .icon svg,
.cownected-share-button--pdf .icon svg,
.cownected-share-button--email .icon svg {
    stroke: currentColor;
}

.cownected-share-button--copy .icon svg *,
.cownected-share-button--print .icon svg *,
.cownected-share-button--pdf .icon svg *,
.cownected-share-button--email .icon svg * {
    stroke: currentColor;
    fill: none;
}

/* Icon only style */
.cownected-share-tools--icon-only .cownected-share-button {
    padding: 0.75rem;
    width: 44px;
    height: 44px;
    justify-content: center;
}

/* Specific button colors */
.cownected-share-button--linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

.cownected-share-button--facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.cownected-share-button--twitter:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

.cownected-share-button--copy:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.cownected-share-button--print:hover {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.cownected-share-button--pdf:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.cownected-share-button--email:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Copy success feedback */
.cownected-share-button--copied {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cownected-share-tools--horizontal .cownected-share-tools__container {
        align-items: stretch;
    }

    .cownected-share-button {
        justify-content: center;
    }
}

