/**
 * FeatherShare - Public Styles
 * 
 * Lightweight, PageSpeed-optimized social sharing styles.
 */

.feathershare-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

/* Base Button Styles */
.feathershare-social-buttons a,
.feathershare-social-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    background-color: #f1f1f1;
    color: #333;
    position: relative;
    box-sizing: border-box;
}

/* SVG Icon Scaling */
.feathershare-social-buttons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
    transition: transform 0.3s ease;
}

/* Sizes */
.feathershare-size-small a,
.feathershare-size-small button {
    width: 32px;
    height: 32px;
}

.feathershare-size-small svg {
    width: 16px;
    height: 16px;
}

.feathershare-size-medium a,
.feathershare-size-medium button {
    width: 42px;
    height: 42px;
}

.feathershare-size-medium svg {
    width: 20px;
    height: 20px;
}

.feathershare-size-large a,
.feathershare-size-large button {
    width: 52px;
    height: 52px;
}

.feathershare-size-large svg {
    width: 24px;
    height: 24px;
}

/* Shapes */
.feathershare-style-square a,
.feathershare-style-square button {
    border-radius: 0;
}

.feathershare-style-rounded a,
.feathershare-style-rounded button {
    border-radius: 8px;
}

.feathershare-style-circle a,
.feathershare-style-circle button {
    border-radius: 50%;
}

/* Hover Effects */
.feathershare-social-buttons a:hover,
.feathershare-social-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feathershare-social-buttons a:hover svg,
.feathershare-social-buttons button:hover svg {
    transform: scale(1.1);
}

/* Social Branding Colors */
.feathershare-facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.feathershare-twitter:hover {
    background-color: #000000;
    color: #fff;
}

.feathershare-linkedin:hover {
    background-color: #0a66c2;
    color: #fff;
}

.feathershare-threads:hover {
    background-color: #000000;
    color: #fff;
}

.feathershare-whatsapp:hover {
    background-color: #25d366;
    color: #fff;
}

.feathershare-telegram:hover {
    background-color: #0088cc;
    color: #fff;
}

.feathershare-messenger:hover {
    background-color: #0084ff;
    color: #fff;
}

.feathershare-email:hover {
    background-color: #ea4335;
    color: #fff;
}

.feathershare-reddit:hover {
    background-color: #ff4500;
    color: #fff;
}

.feathershare-pinterest:hover {
    background-color: #bd081c;
    color: #fff;
}

.feathershare-vk:hover {
    background-color: #4c75a3;
    color: #fff;
}

.feathershare-xing:hover {
    background-color: #006567;
    color: #fff;
}

/* Copy Link & Check Icon Pulse */
.feathershare-copy-link {
    background-color: #e2e8f0;
    color: #4a5568;
}

.feathershare-copy-link:hover {
    background-color: #cbd5e0;
}

.feathershare-check-icon {
    display: none;
    color: #48bb78;
}

.feathershare-copy-link.copied .feathershare-copy-icon {
    display: none;
}

.feathershare-copy-link.copied .feathershare-check-icon {
    display: block;
    animation: feathershare-pop 0.3s ease-out;
}

@keyframes feathershare-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Labels */
.feathershare-with-labels a,
.feathershare-with-labels button {
    width: auto;
    padding: 0 15px;
    height: 42px;
}

.feathershare-with-labels.feathershare-size-small a,
.feathershare-with-labels.feathershare-size-small button {
    height: 32px;
    padding: 0 10px;
}

.feathershare-with-labels.feathershare-size-large a,
.feathershare-with-labels.feathershare-size-large button {
    height: 52px;
    padding: 0 20px;
}

.feathershare-label {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.feathershare-size-small .feathershare-label {
    font-size: 11px;
}

.feathershare-size-large .feathershare-label {
    font-size: 15px;
}

/* Subscription Form Styling */
.feathershare-subscription-form {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.feathershare-subscription-form h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #1e293b;
}

.feathershare-subscription-form p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #64748b;
}

.feathershare-subscription-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .feathershare-subscription-form form {
        flex-direction: row;
        align-items: center;
    }

    .feathershare-subscription-form form p {
        margin-bottom: 0;
        flex: 1;
    }

    .feathershare-subscription-form form p:last-child {
        flex: 0;
    }
}

.feathershare-subscription-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.feathershare-subscription-form input[type="submit"] {
    padding: 12px 24px;
    background-color: #3182ce;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    white-space: nowrap;
}

.feathershare-subscription-form input[type="submit"]:hover {
    background-color: #2b6cb0;
}

.feathershare-subscription-form input[type="submit"]:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

.feathershare-success {
    margin-bottom: 20px;
    padding: 12px;
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #2f855a;
    border-radius: 8px;
    font-size: 14px;
}

.feathershare-error {
    margin-bottom: 20px;
    padding: 12px;
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    border-radius: 8px;
    font-size: 14px;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}