/*
 * CCRC AI Search — Generic Placeholder Styles
 * Replace this file entirely with final design stylesheet.
 * HTML structure and JS logic do not need to change when this file is replaced.
 */

#ccrc-search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    font-size: 1rem;
}

/* Status line */
#ccrc-status {
    min-height: 1.4em;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Chat history container */
#ccrc-chat-history {
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    background: #fff;
}

/* Individual messages */
.ccrc-message {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.ccrc-message--user {
    font-weight: 600;
    color: #111;
}

.ccrc-message--assistant {
    color: #333;
}

/* Inline citation badges */
.ccrc-citation {
    display: inline-block;
    font-size: 0.75em;
    vertical-align: super;
    color: #0073aa;
    text-decoration: none;
    margin: 0 1px;
}

.ccrc-citation:hover {
    text-decoration: underline;
}

/* Source cards below the answer */
.ccrc-sources {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.ccrc-source-card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
    font-size: 0.9em;
    background: #fafafa;
}

.ccrc-source-card:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.ccrc-source-id {
    flex-shrink: 0;
    color: #0073aa;
    font-size: 0.85em;
    font-weight: 600;
}

.ccrc-source-title {
    color: #333;
}

/* Input row */
#ccrc-chat-input-row {
    display: flex;
    gap: 0.5rem;
}

#ccrc-query-input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
}

#ccrc-query-input:focus {
    outline: 2px solid #0073aa;
    outline-offset: 1px;
}

#ccrc-submit-btn {
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 2px;
}

#ccrc-submit-btn:hover {
    background: #005f8b;
}

#ccrc-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Fallback message */
.ccrc-fallback {
    padding: 1rem;
    background: #fff8e5;
    border: 1px solid #e5c000;
    font-size: 0.95em;
}
