* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
}

header {
    background: #000000;
    padding: 20px 24px;
    border-bottom: 2px solid #ffcc00;
}

header h1 {
    font-size: 24px;
    color: #ffcc00;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 0;
    line-height: 1.5;
}

.message.user .message-content {
    background: #ffcc00;
    color: #000000;
    font-weight: 500;
}

.message.bot .message-content {
    background: #2a2a2a;
    color: #ffffff;
    border-left: 2px solid #ffcc00;
}

.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.hint {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.listing-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    margin-top: 8px;
}

.listing-card:first-child {
    margin-top: 12px;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.listing-title {
    font-weight: 600;
    color: #ffcc00;
    font-size: 14px;
}

.similarity-score {
    background: #333;
    color: #ffcc00;
    padding: 2px 8px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
}

.listing-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 8px 0;
    font-size: 12px;
}

.info-item {
    color: #999;
}

.info-item strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-desc {
    font-size: 13px;
    color: #ccc;
    margin-top: 8px;
    line-height: 1.4;
}

.listing-link {
    display: inline-block;
    margin-top: 8px;
    color: #ffcc00;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #ffcc00;
    padding: 4px 12px;
    transition: all 0.2s;
}

.listing-link:hover {
    background: #ffcc00;
    color: #000;
}

.input-form {
    display: flex;
    gap: 0;
    padding: 20px 24px;
    background: #0a0a0a;
    border-top: 1px solid #333;
}

#search-input {
    flex: 1;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

#search-input:focus {
    border-color: #ffcc00;
}

#send-btn {
    padding: 12px 24px;
    background: #ffcc00;
    color: #000;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#send-btn:hover:not(:disabled) {
    background: #000;
    color: #ffcc00;
    border: 1px solid #ffcc00;
}

#send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stats {
    padding: 12px 24px;
    background: #0a0a0a;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #666;
}

.stats.hidden {
    display: none;
}

.loading {
    display: inline-block;
    color: #ffcc00;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Scrollbar */
.messages::-webkit-scrollbar {
    width: 8px;
}

.messages::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.messages::-webkit-scrollbar-thumb {
    background: #333;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: #ffcc00;
}
/* Message içindeki linkler - sarı tema */
.message-content a {
    color: #ffcc00;
    text-decoration: none;
    border-bottom: 1px solid #ffcc00;
    transition: all 0.2s;
    font-weight: 500;
}

.message-content a:hover {
    background: #ffcc00;
    color: #000;
    padding: 0 2px;
}
