.discussions-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.discussions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.discussions-header h1 {
    font-size: 2rem;
    color: var(--text-color);
}

.discussion-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.discussion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 107, 0.3);
}

/* Quill Editor Dark Theme Overrides */
.ql-toolbar {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px 8px 0 0;
}

.ql-container {
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 0 8px 8px;
    font-size: 1rem !important;
    color: var(--text-color) !important;
}

.ql-picker {
    color: #ccc !important;
}

.ql-stroke {
    stroke: #ccc !important;
}

.ql-fill {
    fill: #ccc !important;
}

.ql-editor.ql-blank::before {
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: normal !important;
}

/* Editor & Content Media Styling */
.ql-editor img,
.discussion-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.ql-editor video,
.discussion-body video,
.ql-editor iframe,
.discussion-body iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 1rem 0;
}

.discussion-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.discussion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.discussion-card {
    animation: fadeIn 0.4s ease-out forwards;
    will-change: transform, opacity;
    /* Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Staggered animation delays for up to 20 items */
.discussion-card:nth-child(1) {
    animation-delay: 0.05s;
}

.discussion-card:nth-child(2) {
    animation-delay: 0.1s;
}

.discussion-card:nth-child(3) {
    animation-delay: 0.15s;
}

.discussion-card:nth-child(4) {
    animation-delay: 0.2s;
}

.discussion-card:nth-child(5) {
    animation-delay: 0.25s;
}

.discussion-card:nth-child(6) {
    animation-delay: 0.3s;
}

.discussion-card:nth-child(7) {
    animation-delay: 0.35s;
}

.discussion-card:nth-child(8) {
    animation-delay: 0.4s;
}

/* Modal Stacking Context Fix */
.modal {
    z-index: 1000;
}

#viewDiscussionModal {
    z-index: 1050;
}

#editDiscussionModal,
#createDiscussionModal {
    z-index: 1060;
}

/* Confirm modals should be highest */
#deleteConfirmModal,
#lockConfirmModal {
    z-index: 2000 !important;
}

.discussion-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.discussion-meta {
    flex: 1;
}

.discussion-author {
    font-weight: 600;
    color: var(--text-color);
}

.discussion-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.discussion-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.discussion-content {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discussion-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discussion-badge {
    background: rgba(255, 107, 107, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.create-discussion-modal .modal-content {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.modal-content {
    background: #1a1a1a;
    padding: 0;
    /* Remove default padding to let header flush */
    border-radius: 24px;
    /* More rounded */
    width: calc(100% - 40px);
    /* Leave space on sides */
    max-width: 650px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    /* Floating effect */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: auto;
    /* Center vertically and horizontally */
    overflow: hidden;
    /* Clip corners */
}

.modal-header {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    /* Header stays fixed */
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

/* Scrollable content area */
.modal-body,
#viewDiscussionContent,
form {
    overflow-y: auto;
    flex: 1;
    padding: 2rem;
    /* Hide Scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* Hide Scrollbar for Chrome/Safari/Opera */
.modal-body::-webkit-scrollbar,
#viewDiscussionContent::-webkit-scrollbar,
form::-webkit-scrollbar {
    display: none;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Custom Scrollbar for Modal Content */
.modal-content ::-webkit-scrollbar {
    width: 8px;
}

.modal-content ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-content ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.content-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-top: 5px;
}

.search-result-item {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.discussions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.discussion-footer {
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .discussions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Linked Content Card Styling */
.linked-content-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linked-content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.linked-content-poster {
    width: 90px;
    height: 135px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.linked-content-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.linked-content-type {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.linked-content-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.btn-inspect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    align-self: flex-start;
}

.btn-inspect:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
    color: white;
}

/* Modern Comment Section Styling */
.comment-form {
    margin-top: 2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-form textarea {
    width: 100%;
    min-height: 60px;
    /* Smaller initial height */
    height: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    resize: vertical;
    /* Allow resizing */
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.comment-form textarea:focus {
    min-height: 100px;
    /* Expand on focus */
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

.comment-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
    /* Position to right */
}

.comment-form button[type="submit"]:hover {
    background: #f40612;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

/* Clearfix for float */
.comment-form::after {
    content: "";
    display: table;
    clear: both;
}

/* Comment Item Card Styling */
.comment-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: background 0.3s;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Reply Button Styling */
.btn-reply {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-reply:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Spacing and Layout */
.discussion-title-modal {
    margin-bottom: 2rem;
    display: block;
}

.discussion-content-text {
    margin-bottom: 3rem;
    /* Increased spacing */
}

.reply-form-container {
    margin-top: 2rem !important;
    position: relative;
    z-index: 10;
}

.nested-replies {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reply-form-inner {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.reply-textarea {
    min-height: 80px;
    /* Slightly taller */
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
    /* Darker background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    padding: 0.75rem;
    color: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    /* Critical for correct width */
    font-family: inherit;
}

.reply-textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
}


.comments-header {
    margin-top: 3rem;
    /* Distinct separation */
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Floating Send Button */
.btn-send {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
    z-index: 5;
}

.btn-send:hover {
    transform: scale(1.1);
    background: #f40612;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Main Comment Input Area (Card Design) */
.main-comment-input-area {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.input-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
}

.main-comment-input-area textarea {
    width: 100%;
    min-height: 50px;
    background: transparent;
    border: none;
    color: white;
    padding: 1rem;
    padding-right: 50px;
    /* Space for button */
    resize: none;
    outline: none;
    font-size: 0.95rem;
    display: block;
}

/* Mobile Adjustments for New Input */
@media (max-width: 576px) {
    .linked-content-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .linked-content-poster {
        width: 120px;
        height: 180px;
        margin: 0 auto;
    }

    .linked-content-info {
        align-items: center;
    }

    .linked-content-title {
        font-size: 1.25rem;
    }

    .btn-inspect {
        width: 100%;
        max-width: 200px;
        /* Reduce width slightly */
    }

    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
    }

    /* Exception for small confirmation modals on mobile */
    #deleteConfirmModal .modal-content,
    #lockConfirmModal .modal-content {
        height: auto !important;
        width: 92% !important;
        margin: 0 !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        position: absolute !important;
        top: auto !important;
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 24px !important;
        /* Increased padding all around */
        box-sizing: border-box !important;
        background: #141414 !important;
        /* Ensure bg is solid */
        z-index: 2005 !important;
    }

    /* Smaller buttons for mobile confirmation */
    #deleteConfirmModal .btn,
    #lockConfirmModal .btn {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        /* Slightly more rounded */
    }

    .modal-close {
        padding: 1rem;
    }

    /* Fix form display on mobile */
    .mobile-fix-form {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Override incorrectly indented mobile styles from before */
    .main-comment-input-area {
        margin: 0;
        margin-top: 1rem;
        padding: 1rem;
        background: #111;
        /* Slightly darker on mobile */
        width: 100%;
        box-sizing: border-box;
    }


    /* Override old sticky header z-index to ensure it stays on top */
    .modal-header {
        z-index: 200 !important;
    }

    /* Better Mobile Modal Header */
    .modal-header {
        padding: 1rem 1.25rem !important;
        background: #151515 !important;
        position: sticky !important;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .modal-header h2 {
        font-size: 1.1rem !important;
        margin: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        padding-right: 1rem;
    }

    .modal-close {
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 50% !important;
        margin: 0 !important;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .discussions-container {
        padding: 1rem;
    }

    .discussions-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .discussions-header h1 {
        font-size: 1.5rem;
    }

    .discussions-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Search Results Styling */
.content-search {
    position: relative;
}

.content-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.content-search-results::-webkit-scrollbar {
    width: 8px;
}

.content-search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.content-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.spoiler-blur {
    filter: blur(8px);
    cursor: pointer;
    user-select: none;
    transition: filter 0.3s;
    position: relative;
}

.spoiler-blur::after {
    content: 'Görmek için dokun';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
}

.spoiler-blur {
    position: relative;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    border-radius: 4px;
    /* Ensure overlay matches rounded corners if any */
}

.spoiler-blur::after {
    content: 'Görmek için dokun';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
    z-index: 10;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.spoiler-blur:hover::after {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Fix for select options readability */
select option {
    background-color: #1a1a1a;
    color: #fff;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .discussions-container {
        padding: 6rem 1rem 2rem !important;
        max-width: 100%;
    }

    .discussions-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }

    .discussions-header h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .discussions-header button {
        width: 100%;
    }

    .discussions-actions {
        flex-direction: column !important;
        width: 100%;
    }

    .discussions-actions select {
        width: 100%;
    }

    .discussion-card {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }

    .discussion-title {
        font-size: 1.1rem;
    }

    .discussion-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
    }

    .modal-header {
        padding: 1rem !important;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body,
    form {
        padding: 1rem !important;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    #editor-container,
    #edit-editor-container {
        height: 150px !important;
    }

    .content-search-results {
        max-height: 200px;
    }

    /* Discussion View Modal - Additional Mobile Responsive */
    #viewDiscussionModal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    #viewDiscussionContent {
        padding: 1rem !important;
    }

    .discussion-title-modal {
        font-size: 1.3rem !important;
    }

    .linked-content-card {
        flex-direction: column !important;
        text-align: center;
    }

    .linked-content-poster {
        width: 100px !important;
        height: 150px !important;
        margin: 0 auto 1rem !important;
    }

    .comment-item {
        padding: 0.75rem !important;
    }
}