/**
 * Share Bridge - Android Native Share Button Styling
 * 
 * @package ShareBridge
 * @version 1.0.0
 */

/* ===================================
   Android Share Button Container
   =================================== */

.android-native-share {
    margin: 20px 0;
    clear: both;
}

/* ===================================
   Share Button Styling
   =================================== */

.android-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #25D366; /* WhatsApp green - feel free to customize */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 16px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    line-height: 1;
    font-family: inherit;
}

/* Hover State */
.android-share-button:hover {
    background: #1fb855;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Active/Pressed State */
.android-share-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Focus State (for accessibility) */
.android-share-button:focus {
    outline: 2px solid #1fb855;
    outline-offset: 2px;
}

/* ===================================
   Share Icon
   =================================== */

.android-share-button .share-icon {
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

.android-share-button .share-text {
    vertical-align: middle;
}

/* ===================================
   Alternative Color Schemes
   =================================== */

/* Uncomment one of these to use different colors */

/* Blue Theme
.android-share-button {
    background: #1877f2;
}
.android-share-button:hover {
    background: #145dbf;
}
*/

/* Orange Theme
.android-share-button {
    background: #ff6b35;
}
.android-share-button:hover {
    background: #ff5722;
}
*/

/* Purple Theme
.android-share-button {
    background: #9b59b6;
}
.android-share-button:hover {
    background: #8e44ad;
}
*/

/* Black Theme
.android-share-button {
    background: #333333;
}
.android-share-button:hover {
    background: #000000;
}
*/

/* ===================================
   Hide Social Buttons in Android App
   =================================== */

/* Generic social share buttons */
.android-native-share .social-share-buttons,
.android-native-share .product-share-buttons,
.android-native-share .share-buttons,
.android-native-share .woodmart-social-icons {
    display: none !important;
}

/* ===================================
   Responsive Design
   =================================== */

/* Mobile devices */
@media screen and (max-width: 768px) {
    .android-share-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .android-native-share {
        text-align: center;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .android-share-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .android-share-button .share-icon {
        width: 14px;
        height: 14px;
    }
}

/* ===================================
   Theme Compatibility
   =================================== */

/* Ensure button looks good with different WooCommerce themes */
.woocommerce div.product .android-share-button {
    margin-top: 1em;
}

/* Ensure proper spacing with product meta */
.product_meta + .android-native-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

/* ===================================
   Loading/Disabled State (optional)
   =================================== */

.android-share-button:disabled,
.android-share-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .android-share-button,
    .android-native-share {
        display: none !important;
    }
}

/* ===================================
   RTL Support
   =================================== */

[dir="rtl"] .android-share-button .share-icon {
    margin-right: 0;
    margin-left: 8px;
}

/* ===================================
   Dark Mode Support (optional)
   =================================== */

@media (prefers-color-scheme: dark) {
    .android-share-button {
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    }
    
    .android-share-button:hover {
        box-shadow: 0 4px 8px rgba(255, 255, 255, 0.15);
    }
}

/* ===================================
   High Contrast Mode (accessibility)
   =================================== */

@media (prefers-contrast: high) {
    .android-share-button {
        border: 2px solid currentColor;
    }
}

/* ===================================
   Reduced Motion (accessibility)
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .android-share-button {
        transition: none;
    }
    
    .android-share-button:hover {
        transform: none;
    }
}

