/* Event Detail Page Styles */

/* Smooth Transitions */
.comment-item {
    transition: all 0.2s ease;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Vote Buttons */
.vote-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.vote-btn:hover {
    transform: scale(1.05);
}

.vote-btn:active {
    transform: scale(0.95);
}

.vote-btn.vote-up.active {
    background-color: #10b981;
    color: white;
}

.vote-btn.vote-down.active {
    background-color: #ef4444;
    color: white;
}

/* Form Styles */
#commentForm input:focus,
#commentForm textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.comment-item.new-comment {
    animation: fadeIn 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .comment-item {
        padding: 1rem;
    }
    
    .vote-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Turnstile Container */
.cf-turnstile {
    margin-bottom: 1rem;
}

/* Scrollbar für Kommentare */
#commentsList {
    max-height: none;
}

/* Reply Styles */
.reply-item {
    transition: all 0.2s ease;
}

.reply-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reply-item.new-comment {
    animation: fadeIn 0.3s ease;
}

.replies-container {
    margin-top: 1rem;
}

/* Reply Button */
.reply-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.reply-btn:hover {
    transform: scale(1.05);
}

/* Delete Button (Admin) */
.delete-comment-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.delete-comment-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.delete-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Toggle Animation */
#commentForm {
    transition: all 0.3s ease;
    overflow: hidden;
}

#commentForm.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    opacity: 0;
}

/* Responsive Text */
@media (max-width: 640px) {
    h1 {
        font-size: 1.25rem;
    }
    
    .reply-item {
        padding: 0.75rem;
    }
    
    .replies-container {
        margin-left: 0.5rem;
        padding-left: 0.75rem;
    }
    
    /* Kompaktere Container auf Mobile */
    section {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .rounded-\[4rem\] {
        border-radius: 1.5rem !important;
    }
    
    /* Kompaktere Abstände */
    .mb-8 {
        margin-bottom: 1rem !important;
    }
    
    .mb-6 {
        margin-bottom: 0.75rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.5rem !important;
    }
    
    /* Kompaktere Grids */
    .grid {
        gap: 0.5rem !important;
    }
}
