/**
 * 📱 Sosyal Özellikler CSS
 * Takip sistemi, yorumlar, koleksiyonlar ve sosyal etkileşimler
 */

/* Follow Button */
.follow-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.follow-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.follow-btn.following {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.follow-btn.following:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* Social Action Buttons */
.social-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.social-action-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.social-action-btn.liked {
    background: #e91e63;
    color: white;
}

.social-action-btn.bookmarked {
    background: #ff9800;
    color: white;
}

.social-action-btn.shared {
    background: #4CAF50;
    color: white;
}

/* Social Modals */
.social-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.social-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 2rem;
}

/* Comments Modal */
.comments-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 500;
    color: #333;
}

.comment-date {
    font-size: 0.8rem;
    color: #999;
}

.comment-text {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-action-btn:hover {
    color: #667eea;
}

.comment-action-btn.liked {
    color: #e91e63;
}

.comment-form {
    border-top: 2px solid #f0f0f0;
    padding-top: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.comment-form button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

/* Share Modal */
.share-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-platform-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.share-platform-btn i {
    font-size: 2rem;
    color: #667eea;
}

.share-platform-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.share-custom-message {
    border-top: 2px solid #f0f0f0;
    padding-top: 2rem;
}

.share-custom-message label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.share-custom-message textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.share-custom-message textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Collection Modal */
.collections-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.collection-item:hover {
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.collection-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.collection-info {
    flex: 1;
}

.collection-info h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1rem;
}

.collection-info p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.collection-stats {
    font-size: 0.8rem;
    color: #999;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.collection-item .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.create-collection-form {
    border-top: 2px solid #f0f0f0;
    padding-top: 2rem;
}

.create-collection-form h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.create-collection-form input,
.create-collection-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.create-collection-form input:focus,
.create-collection-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.collection-privacy {
    margin-bottom: 1rem;
}

.collection-privacy label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    cursor: pointer;
}

.collection-privacy input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notifications-panel.show {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.1);
}

.notification-item.read {
    background: #f8f9fa;
    opacity: 0.7;
}

.notification-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-5px);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h5 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1rem;
}

.notification-content p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-date {
    font-size: 0.8rem;
    color: #999;
}

/* Empty States */
.no-comments,
.no-collections,
.no-notifications {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.no-comments i,
.no-collections i,
.no-notifications i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-comments h4,
.no-collections h4,
.no-notifications h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.no-comments p,
.no-collections p,
.no-notifications p {
    margin: 0;
    font-size: 1rem;
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #666;
}

.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .share-platforms {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collection-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .collection-info {
        text-align: center;
    }
    
    .notifications-panel {
        width: 100%;
        right: -100%;
    }
    
    .comment-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .share-platforms {
        grid-template-columns: 1fr;
    }
    
    .share-platform-btn {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .social-actions {
        justify-content: center;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .panel-header h3 {
        font-size: 1.1rem;
    }
}

/* Animation Classes */
.comment-item.animate-in {
    animation: slideInUp 0.3s ease;
}

.collection-item.animate-in {
    animation: slideInLeft 0.3s ease;
}

.notification-item.animate-in {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .follow-btn,
    .social-action-btn,
    .modal-content,
    .collection-item,
    .notification-item {
        border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .follow-btn,
    .social-action-btn,
    .modal-content,
    .collection-item,
    .notification-item,
    .comment-item {
        transition: none;
    }
    
    .comment-item.animate-in,
    .collection-item.animate-in,
    .notification-item.animate-in {
        animation: none;
    }
    
    .notifications-panel {
        transition: none;
    }
}
