.ai-share-container {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Position variants */
.ai-share-bottom-right {
    bottom: 20px;
    right: 20px;
}

.ai-share-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Expanded layout */
.ai-share-expanded {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    max-width: 300px;
    border: 1px solid #e5e7eb;
}

/* Compact layout */
.ai-share-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ai-share-toggle {
    background: #10a37f;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.ai-share-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 163, 127, 0.4);
}

.ai-share-toggle.active {
    background: #0d8a6f;
}

.ai-share-toggle-icon {
    font-size: 16px;
}

.ai-share-dropdown {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    max-width: 300px;
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9998;
}

/* Position dropdown - will be set by JavaScript */
.ai-share-dropdown {
    bottom: 80px;
}

.ai-share-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-share-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    text-align: center;
}

.ai-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-share-button {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ai-share-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

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

.ai-share-icon {
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-share-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ai-share-text {
    flex: 1;
}

/* Platform-specific hover effects */
.ai-share-google-ai:hover {
    background-color: #2563eb !important;
}

.ai-share-grok:hover {
    background-color: #374151 !important;
}

.ai-share-chatgpt:hover {
    background-color: #0d8a6f !important;
}

.ai-share-claude:hover {
    background-color: #b45309 !important;
}

.ai-share-perplexity:hover {
    background-color: #4f46e5 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-share-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .ai-share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ai-share-button {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* Animation for button appearance */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-share-container {
    animation: slideIn 0.3s ease-out;
}

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

.ai-share-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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