/**
 * Pinterest CTA Image Buttons Styles
 */

.pin-cta-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.pin-cta-image-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    text-decoration: none;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 600;
    z-index: 99;
}

a.pin-cta-image-button {
    color: #e60023; /* Pinterest red color */
    text-decoration: none;
}

.pin-cta-image-wrapper:hover .pin-cta-image-button {
    opacity: 1;
}

.pin-cta-image-button:focus {
    outline: 2px solid #e60023;
    opacity: 1;
}

.pin-cta-image-button svg {
    display: inline-block;
    vertical-align: middle;
}

/* Ensure proper display on various themes */
.pin-cta-image-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .pin-cta-image-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .pin-cta-image-button svg {
        width: 14px;
        height: 14px;
    }
}

/* Ensure the button doesn't interfere with other elements */
.pin-cta-image-wrapper .wp-caption-text,
.pin-cta-image-wrapper figcaption {
    display: block;
    width: 100%;
    position: relative;
}

/* Ensure the button is visible on dark images */
.pin-cta-image-button {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Ensure the button text is visible */
.pin-cta-image-button-text {
    margin-right: 6px;
    color: #e60023; /* Pinterest red color */
    text-decoration: none;
}

/* Make sure the button doesn't interfere with captions */
.wp-caption .pin-cta-image-wrapper {
    display: block;
} 