/* AI Share Buttons - CiteMet Method Styles */

/* Main container */
.ai-share-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    text-align: center;
}

/* Heading */
.ai-share-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Description */
.ai-share-description {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Buttons container */
.ai-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Individual button */
.ai-share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ai-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #007bff;
    background: #f8f9fa;
}

/* Platform-specific colors on hover */
.ai-share-button[data-platform="chatgpt"]:hover {
    border-color: #10a37f;
    background: #f0fdf9;
}

.ai-share-button[data-platform="perplexity"]:hover {
    border-color: #20808d;
    background: #f0fdfa;
}

.ai-share-button[data-platform="claude"]:hover {
    border-color: #d97706;
    background: #fffbeb;
}

.ai-share-button[data-platform="google gemini"]:hover {
    border-color: #4285f4;
    background: #f0f7ff;
}

/* Icon styling */
.ai-icon {
    font-size: 1.25rem;
}

/* Name styling */
.ai-name {
    font-size: 0.95rem;
}

/* AI Learning Note */
.ai-learning-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: left;
    font-size: 0.9rem;
}

.ai-note-heading {
    font-weight: 600;
    color: #856404;
    margin-bottom: 0.5rem;
}

.ai-note-content {
    color: #856404;
    line-height: 1.6;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-share-section {
        padding: 1.5rem;
        margin: 2rem -1rem;
    }
    
    .ai-share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ai-share-button {
        justify-content: center;
        width: 100%;
    }
    
    .ai-share-heading {
        font-size: 1.25rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ai-share-section {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-color: #495057;
    }
    
    .ai-share-heading {
        color: #f8f9fa;
    }
    
    .ai-share-description {
        color: #adb5bd;
    }
    
    .ai-share-button {
        background: #495057;
        border-color: #6c757d;
        color: #f8f9fa;
    }
    
    .ai-share-button:hover {
        background: #5a6268;
        border-color: #007bff;
    }
    
    .ai-learning-note {
        background: #3a3f44;
        border-color: #495057;
    }
    
    .ai-note-heading,
    .ai-note-content {
        color: #ffc107;
    }
}

/* Integration with existing styles */
article .ai-share-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* For course pages */
.course-content .ai-share-section {
    margin: 3rem auto;
    max-width: 800px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-share-section {
    animation: fadeIn 0.5s ease-out;
}