/* Comment System and Social Sharing Styles */

/* Social Sharing Section */
.social-sharing {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.social-sharing h4 {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    min-width: 120px;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
    border-color: rgba(255,255,255,0.4);
}

.share-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.share-btn.facebook:hover { background-color: #3b5998; }
.share-btn.twitter:hover { background-color: #1da1f2; }
.share-btn.linkedin:hover { background-color: #0077b5; }
.share-btn.pinterest:hover { background-color: #bd081c; }
.share-btn.whatsapp:hover { background-color: #25d366; }
.share-btn.copy-link:hover { background-color: #6c757d; }

/* Comment Section */
.comments-section {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.comments-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.comments-header h3 {
    margin: 0;
    font-weight: 600;
    color: #343a40;
}

.comments-count {
    margin-left: 10px;
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Comment Form */
.comment-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-control.textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Reply Info */
.reply-info {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
    display: none;
}

.reply-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reply-info span {
    color: #1976d2;
    font-weight: 500;
}

.cancel-reply {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.cancel-reply:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 140px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

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

/* Comment Display */
.comments-list {
    margin-top: 30px;
}

.comment {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #007bff;
}

.comment.reply {
    margin-left: 40px;
    border-left-color: #28a745;
    background: #f8fff9;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 600;
    color: #343a40;
    font-size: 1.1rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-content {
    line-height: 1.6;
    color: #495057;
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.reply-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.reply-btn:hover {
    background-color: rgba(0,123,255,0.1);
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background-color: #d1e7dd;
    color: #0f5132;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Empty State */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-section {
        padding: 20px 15px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    
    .comment-form {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .share-buttons {
        justify-content: center;
        gap: 10px;
    }
    
    .share-btn {
        padding: 10px 15px;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .comment.reply {
        margin-left: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .comment-meta {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
    }
    
    .comment {
        padding: 15px;
    }
    
    .comment.reply {
        margin-left: 10px;
    }
}
