/* AI Pictures Forum - Share System Styles */
/* Location: /public_html/includes/share/share_styles.css */

/* Share Button Styles */
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.share-button:hover {
    background: #059669;
    transform: translateY(-1px);
}

.share-button-secondary {
    background: #6b7280;
}

.share-button-secondary:hover {
    background: #4b5563;
}

/* Small share button for images */
.share-button-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* Download button */
.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.download-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.download-button-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* Image action buttons container */
.image-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* Thread share button in header */
.thread-share-button {
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.thread-share-button:hover {
    background: #059669;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-in-out;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.share-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #374151;
    margin: 0;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
}

.share-modal-close:hover {
    color: #374151;
}

/* Share Options Grid */
.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    text-decoration: none;
}

.share-option:hover {
    border-color: #9333ea;
    background: #f9fafb;
    transform: translateY(-2px);
}

.share-option-icon {
    font-size: 2rem;
}

.share-option-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

/* Platform specific colors */
.share-option.pinterest:hover {
    border-color: #e60023;
    background: #fff5f7;
}

.share-option.twitter:hover {
    border-color: #1da1f2;
    background: #f0f9ff;
}

.share-option.reddit:hover {
    border-color: #ff4500;
    background: #fff5f0;
}

.share-option.facebook:hover {
    border-color: #1877f2;
    background: #f0f7ff;
}

.share-option.email:hover {
    border-color: #6b7280;
    background: #f9fafb;
}

.share-option.whatsapp:hover {
    border-color: #25d366;
    background: #f0fdf4;
}

/* Copy Link Section */
.copy-link-section {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.copy-link-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: block;
}

.copy-link-container {
    display: flex;
    gap: 0.5rem;
}

.copy-link-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    color: #374151;
}

.copy-link-button {
    padding: 0.75rem 1.5rem;
    background: #9333ea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-link-button:hover {
    background: #7c3aed;
}

.copy-link-button.copied {
    background: #10b981;
}

/* Image Preview in Modal */
.share-preview {
    margin-bottom: 1.5rem;
    text-align: center;
}

.share-preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

.share-preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.share-preview-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .share-option {
        padding: 1rem 0.75rem;
    }
    
    .share-option-icon {
        font-size: 1.75rem;
    }
    
    .share-option-label {
        font-size: 0.8rem;
    }
    
    .copy-link-container {
        flex-direction: column;
    }
    
    .copy-link-button {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}