/* AI Share URL Creator Plugin - Frontend Styles */

.ai-share-plugin-buttons {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Specific theme placement - Simple layout */
.ai-share-plugin-wrapper {
    margin: 47px 0 0 0 !important;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.ai-share-plugin-wrapper .ai-share-plugin-buttons {
    margin: 0;
}

.ai-share-plugin-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-share-plugin-header {
    flex-shrink: 0;
}

.ai-share-plugin-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Responsive adjustments for theme */
@media (max-width: 768px) {
    .ai-share-plugin-wrapper {
        margin: 12px 0 !important;
        padding: 0;
    }
    
    .ai-share-plugin-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ai-share-plugin-container {
        width: 100%;
    }
}

.ai-share-plugin-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ai-share-plugin-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 32px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 40px;
    color: white;
}

.ai-share-plugin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

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

.ai-share-plugin-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.ai-share-plugin-icon svg {
    width: 16px;
    height: 16px;
}

.ai-share-plugin-label {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

/* Platform-specific colors - Updated to match Figma design */
.ai-share-plugin-chatgpt {
    background: #4D7F72 !important;
    color: white !important;
}

.ai-share-plugin-chatgpt:hover {
    background: #0d8a6f !important;
    transform: translateY(-1px);
}

.ai-share-plugin-perplexity {
    background: #21808D !important;
    color: white !important;
}

.ai-share-plugin-perplexity:hover {
    background: #1a6b77 !important;
    transform: translateY(-1px);
}

.ai-share-plugin-claude {
    background: #f59e0b !important;
    color: white !important;
}

.ai-share-plugin-claude:hover {
    background: #d97706 !important;
    transform: translateY(-1px);
}

.ai-share-plugin-google_ai {
    background: #3b82f6 !important;
    color: white !important;
}

.ai-share-plugin-google_ai:hover {
    background: #2563eb !important;
    transform: translateY(-1px);
}

.ai-share-plugin-grok {
    background: #000000 !important;
    color: white !important;
}

.ai-share-plugin-grok:hover {
    background: #1f2937 !important;
    transform: translateY(-1px);
}

/* Loading state */
.ai-share-plugin-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.ai-share-plugin-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: ai-share-plugin-spin 1s linear infinite;
}

@keyframes ai-share-plugin-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.ai-share-plugin-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-share-plugin-container {
        gap: 8px;
    }
    
    .ai-share-plugin-button {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 40px;
    }
    
    .ai-share-plugin-icon {
        font-size: 16px;
    }
    
    .ai-share-plugin-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .ai-share-plugin-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ai-share-plugin-button {
        justify-content: center;
        text-align: center;
        min-height: 36px;
    }
}

/* Print styles */
@media print {
    .ai-share-buttons {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .ai-share-button {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ai-share-button {
        transition: none;
    }
    
    .ai-share-button:hover {
        transform: none;
    }
    
    @keyframes ai-share-spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
}

