/**
 * Group View Styles
 * 
 * This file contains all the CSS styles specific to the group view page.
 */

/* General Layout */
body {
    background-color: #f0f2f5;
}

/* Group Header */
.group-header-card {
    border: none;
    border-radius: .5rem;
    overflow: hidden;
}

.group-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 5px 5px 0 0;
}

.group-avatar {
    width: 128px;
    height: 128px;
    margin-top: -64px;
}

/* Navigation */
.nav-pills .nav-link {
    color: #65676b;
    font-weight: 600;
}

.nav-pills .nav-link.active {
    color: #0d6efd;
    background-color: transparent;
    border-bottom: 3px solid #0d6efd;
    border-radius: 0;
}

.post-prompt-link {
    transition: background-color 0.2s ease-in-out;
}

.post-prompt-link:hover {
    background-color: #e4e6e9;
}

/* Markdown Content Styles */
.markdown-content {
    line-height: 1.6;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.markdown-content code {
    padding: 0.2em 0.4em;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    font-family: monospace;
}

.markdown-content pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-content blockquote {
    padding-left: 1rem;
    border-left: 4px solid #ced4da;
    color: #6c757d;
    margin-left: 0;
    margin-right: 0;
}

/* Folder Tree */
.folder-tree .folder-item {
    margin-bottom: 2px;
}

.folder-tree .folder-header {
    transition: background-color 0.15s ease-in-out;
}

.folder-tree .folder-header:hover {
    background-color: #e9ecef;
}

.folder-tree .folder-toggle {
    cursor: pointer;
}

.folder-tree .transition-transform {
    transition: transform 0.2s ease-in-out;
}

/* Rotate chevron when expanded */
.folder-tree .folder-toggle[aria-expanded="true"] > .transition-transform {
    transform: rotate(90deg);
}

/* Admin actions appear on hover */
.folder-tree .folder-actions {
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.folder-tree .folder-header:hover .folder-actions {
    opacity: 1;
}

/* Folder content */
.folder-tree .folder-content {
    border-left: 1px solid #dee2e6;
    margin-left: 12px;
    padding-left: 12px;
}

/* Links to posts inside folder */
.folder-tree .post-link-item {
    font-size: 0.95rem;
    transition: background-color 0.15s ease-in-out;
}

.folder-tree .post-link-item:hover {
    background-color: #f8f9fa;
}

/* AI Agents */
.agent-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.agent-action-btn {
    transition: all 0.2s;
}

/* Chat styles */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.2) rgba(0,0,0,.05);
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0,0,0,.05);
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.2);
    border-radius: 4px;
}
