/* =========================================
 * Guest Discussion Modal
 * ========================================= */
.discussion-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 100;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.discussion-modal.hidden {
    display: none !important;
}

.discussion-modal-content {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 94vw;
    height: 92vh;
    max-width: 1600px;
    padding: 28px 32px 24px;
    background: var(--card-bg, #fff);
    color: var(--text-color, #222);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.discussion-modal-content h2 {
    flex-shrink: 0;
    margin: 0 0 10px;
    padding-right: 40px;
}

.discussion-close {
    position: absolute;
    right: 24px;
    top: 16px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

/* =========================================
 * Sticky Note Container
 * ========================================= */
.discussion-question-list {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-content: start;
    gap: 26px;
    padding: 20px 12px 30px 8px;
    overflow-y: auto;
    overflow-x: hidden;
}
.discussion-sticky-note {
    position: relative;
    padding: 24px 22px 22px;
    min-height: 180px;
    background: #fff9a8;
    border-radius: 3px;
    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transform: rotate(-1deg);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    font-family: "Comic Sans MS", "Segoe Print", cursive;
}

.discussion-sticky-note:nth-child(even) {
    background: #fff2a6;
    transform: rotate(1.2deg);
}

.discussion-sticky-note:nth-child(3n) {
    background: #fff7c2;
    transform: rotate(-0.5deg);
}

.discussion-sticky-note:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.18),
        0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Small piece of "tape" at the top */
.discussion-sticky-note::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 58px;
    height: 18px;
    background: rgba(255, 255, 255, 0.55);
    transform: translateX(-50%) rotate(-2deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.discussion-sticky-number {
    display: block;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #927c00;
}

.discussion-sticky-question {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.55;
    font-weight: 600;
    color: #3f3a20;
}

.discussion-sticky-answer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(80, 70, 20, 0.35);
    font-family: "Comic Sans MS", "Segoe Print", cursive;
    font-size: 1rem;
    line-height: 1.5;
    color: #403b25;
}

.discussion-sticky-question,
.discussion-sticky-answer {
    overflow-wrap: anywhere;
}

.discussion-sticky-answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.discussion-sticky-answer-label {
    display: block;
    margin-bottom: 0;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #927c00;
}

.discussion-copy-answer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #927c00;
    font-size: 0.9rem;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.discussion-copy-answer:hover {
    background-color: rgba(146, 124, 0, 0.12);
    color: #6f5e00;
    transform: scale(1.08);
}

.discussion-copy-answer:active {
    transform: scale(0.95);
}

.discussion-sticky-empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-style: italic;
    color: #666;
}

/* Mobile */
@media (max-width: 600px) {
    .discussion-modal-content {
        width: 96vw;
        height: 94vh;
        padding: 24px 18px 18px;
        border-radius: 12px;
    }
    .discussion-question-list {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 18px 8px 24px;
    }
    .discussion-sticky-note {
        min-height: 150px;
    }
}
