/* AI Share Buttons CSS */
.ai-share-container {
    margin: 30px 0;
    padding: 25px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ai-share-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2c3e50;
    text-align: center;
}

.ai-button-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    min-width: 110px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-transform: none;
    letter-spacing: 0.5px;
}

.ai-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.ai-button:hover:before {
    left: 100%;
}

.ai-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none !important;
}

.ai-button:active {
    transform: translateY(-1px);
}

/* Platform-specific styles */
.ai-button.chatgpt {
    background: linear-gradient(135deg, #10a37f 0%, #0ea477 50%, #0d8f6b 100%);
}

.ai-button.chatgpt:hover {
    background: linear-gradient(135deg, #0ea477 0%, #0d8f6b 50%, #0b7a5e 100%);
}

.ai-button.perplexity {
    background: linear-gradient(135deg, #6e4aff 0%, #5b3dd9 50%, #4831bf 100%);
}

.ai-button.perplexity:hover {
    background: linear-gradient(135deg, #5b3dd9 0%, #4831bf 50%, #3d2a9f 100%);
}

.ai-button.claude {
    background: linear-gradient(135deg, #ff9900 0%, #e6850e 50%, #cc7700 100%);
}

.ai-button.claude:hover {
    background: linear-gradient(135deg, #e6850e 0%, #cc7700 50%, #b36600 100%);
}

.ai-button.grok {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 50%, #1a1a1a 100%);
}

.ai-button.grok:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.ai-button.google {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 50%, #2952cc 100%);
}

.ai-button.google:hover {
    background: linear-gradient(135deg, #3367d6 0%, #2952cc 50%, #1e40af 100%);
}

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

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

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

/* Error message */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    padding: 8px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-share-container {
        margin: 20px 0;
        padding: 20px 15px;
    }
    
    .ai-button-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .ai-button {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .ai-share-title {
        font-size: 15px;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .ai-share-container {
        padding: 15px 10px;
        margin: 15px 0;
    }
    
    .ai-button {
        max-width: 100%;
        padding: 12px 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ai-share-container {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .ai-share-title {
        color: #e2e8f0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ai-button {
        border: 2px solid rgba(255,255,255,0.3);
    }
    
    .ai-button:hover {
        border-color: rgba(255,255,255,0.6);
    }
}

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