/**
 * OLX.ba Sync Public Styles
 *
 * @package OLX_BA_SYNC
 */

/* Product OLX.ba Sync Badge */
.olx-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #48bb78;
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin: 5px 0;
}

.olx-sync-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* OLX.ba Link Button */
.olx-ba-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #4299e1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin: 10px 0;
}

.olx-ba-link-button:hover {
    background: #3182ce;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.olx-ba-link-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Product Single Sync Status */
.product-sync-status {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.product-sync-status h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 14px;
}

.product-sync-status .sync-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4a5568;
}

.product-sync-status .sync-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.product-sync-status .sync-status-badge.synced {
    background: #c6f6d5;
    color: #276749;
}

.product-sync-status .sync-status-badge.not-synced {
    background: #e2e8f0;
    color: #4a5568;
}

/* Admin Bar Menu */
#wpadminbar .quick-sync-menu .ab-icon:before {
    content: "\f463";
    top: 2px;
}

/* My Account Page */
.woocommerce-account .olx-sync-info {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.woocommerce-account .olx-sync-info h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.woocommerce-account .olx-sync-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.woocommerce-account .olx-sync-stat {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.woocommerce-account .olx-sync-stat h4 {
    margin: 0;
    font-size: 24px;
    color: #4299e1;
}

.woocommerce-account .olx-sync-stat p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .olx-ba-link-button {
        width: 100%;
        justify-content: center;
    }
    
    .product-sync-status .sync-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .woocommerce-account .olx-sync-stats {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .olx-ba-link-button {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .olx-sync-badge {
        border: 2px solid currentColor;
    }
    
    .olx-ba-link-button {
        border: 2px solid transparent;
    }
    
    .olx-ba-link-button:hover {
        border-color: #2b6cb0;
    }
}