/*
Theme Name: CloudBird Academy
Theme URI: https://cloudbird.com.mx/academy
Author: Cloudbird Developers
Author URI: https://cloudbird.com.mx
Description: Academy theme for the digital era. High-fidelity design with course management.
Version: 1.2.0
Text Domain: cloudbird-academy
*/

/* Global Styles Foundation */
:root {
    --primary: #3D7BD9;
    --background: #0a0a0b;
    --card: #161b22;
}

body {
    background-color: var(--background);
    margin: 0;
    padding: 0;
}

.glass-header {
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(120px);
    -webkit-backdrop-filter: blur(120px);
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill-1,
.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 10px;
}


.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3d7bd9;
}

/* Community Posts Fixes */
.ql-editor {
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

.ql-editor p {
    margin-bottom: 1.25rem !important;
}

.ql-editor p:last-child {
    margin-bottom: 0 !important;
}

.ql-editor br {
    display: block;
    margin-bottom: 0.75rem;
    content: " ";
}

/* Fix textarea covering buttons */
#create-post-wrapper {
    position: relative;
    z-index: 10;
}

#post-expanded {
    display: flex;
    flex-direction: column;
}

.ql-container {
    flex-grow: 1;
}

/* Read More Styles */
.post-content-wrapper .read-more-btn {
    transition: all 0.2s ease;
}

.post-content-wrapper .read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 123, 217, 0.3);
}

.post-content.expanded {
    max-height: none !important;
    overflow: visible !important;
}

.post-content-wrapper.is-expanded .read-more-overlay {
    display: none !important;
}

/* Comment spacing */
.comment-item .ql-editor {
    line-height: 1.4 !important;
    font-size: 0.85rem !important;
}