/*
Theme Name:   EMTG FAQ Child
Description:  Child Theme for KOBUKURO TICKET FAQ.
Template:     emtgfaq 
Version:      1.0.2
Text Domain:  emtg-faq-child
*/

#wrap {
    max-width: 1240px;
    margin: 0 auto;
}

#container {
    width: 100%;
    padding: 60px 0 0;
    margin: 0 auto;
}

.ai-stream-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#ai-main-content-wrapper {
    flex: 7;
}

.no-answer-head {
    font-size: 20px;
    color: #888;
    margin: 0 0 1.5em;
}

.no-answer-head .ai-count {
    font-size: 1.4em;
    color: #0064b2;
    padding: 0 0.2em;
}

.ai-response-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.mobile-only-ref {
    display: none !important; 
}

#ai-citations {
    flex: 3;
}

#ai-citations .mobile-tab-header {
    display: none;
}

.citation-list-blocks {
    background: #EBF3FB;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 15px;
}

.citation-list-blocks .citation-block {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.citation-list-blocks .citation-block:last-child {
    border: none;
    margin-bottom: 0;
}

.citation-block.is-highlighted {
    background-color: #fffbe6; 
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.5);
}

.citation-list-blocks .citation-content {
    flex: 7;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.citation-list-blocks .citation-content .citation-link {
    font-weight: bold;
    font-size: 1.07em;
    margin-bottom: 8px;
    line-height: 21px;
    text-decoration: underline;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 63px;
}

.citation-list-blocks .citation-content .description {
    color: #666;
    font-size: 0.97em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 77px;
}

.citation-list-blocks .citation-thumbnail {
    flex: 3;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
}

.citation-list-blocks .citation-thumbnail img {
    max-width: 90px;
    max-height: 70px;
    border-radius: 6px;
    height: -webkit-fill-available;
}

.citation-ref-icon {
    display: inline-block;
    margin-right: 5px;
    color: #007bff;
    cursor: pointer;
    margin-left: 5px;
}

@media screen and (max-width: 960px) {
    #container {
        padding: 30px 5% 0;
    }

    .ai-stream-container {
        flex-direction: column;
        padding: 0 15px;
    }

    #ai-citations {
        background: #fff;
        border-radius: 20px;
        overflow-y: auto;
    }

    #ai-citations .mobile-tab-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e9ecef;
    }

    #ai-citations .mobile-tab-header .mobile-tab-close{
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 5px;
        width: 10%;
    }

    #ai-citations.show {
        transform: translateY(0);
    }

    .citation-list-blocks {
        background-color: #fff;
        border: none;
    }

    .citation-block {
        flex-direction: row;
        margin-bottom: 15px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 12px;
        border: 1px solid #e9ecef;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .mobile-overlay.show {
        display: block;
    }

    .mobile-only-ref {
        display: inline-block !important;
    }
}