/* public/help/help.css */

/* --- General Article Layout --- */
.article-main {
    background-color: var(--surface-color);
    padding: 3rem 0;
}

.article-container {
    max-width: 800px;
    background-color: var(--background-color);
    padding: 2rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-container h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content p,
.article-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-content a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}
.article-content a:hover {
    text-decoration: underline;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    padding-left: 25px;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* --- Help Index Page Specifics --- */
.help-topics-section {
    padding: 6rem 0;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.help-card {
    display: block;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.help-card .help-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.help-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.help-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- NEW STYLES FOR HEADER --- */
.logo-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-separator {
    height: 24px;
    width: 1px;
    background-color: var(--border-color);
}

.logo-page-title {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* Slightly smaller than main logo */
    font-weight: 500; /* Lighter font weight */
    color: var(--text-secondary); /* Lighter color */
}

/* --- Terminal Theme --- */
.chat-interface-section {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.chat-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-family: 'Ubuntu Mono', monospace;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #444;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.chat-header {
    background-color: #333;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.header-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.header-button.red { background-color: #ff5f56; }
.header-button.yellow { background-color: #ffbd2e; }
.header-button.green { background-color: #27c93f; }

.header-title {
    color: #ccc;
    font-weight: 700;
}

.chat-body {
    height: 450px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 0;
    max-width: 100%;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.user-message {
    color: #87d37c; /* A pleasant green for user input */
}

.user-message::before {
    content: '$ ';
    color: #6a9ec5; /* A blueish prompt symbol */
}

.bot-message {
    color: #e0e0e0;
}

.bot-message ul,
.bot-message ol {
    padding-left: 20px;
    margin: 0.5em 0;
}

.bot-message li {
    margin-bottom: 0.25em;
}

.chat-input-area {
    display: flex;
    padding: 0 1rem 1rem 1rem;
    align-items: center;
}

.prompt-symbol {
    color: #6a9ec5;
    font-weight: 700;
}

.chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 1rem;
    padding: 0.5rem;
}

.chat-input:focus {
    outline: none;
}

.send-btn {
    display: none;
}

/* --- Loading Animation --- */
@keyframes wave {
    0%, 60%, 100% { transform: initial; }
    30% { transform: translateY(-4px); }
}

.bot-message.loading .wave-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bot-message.loading .wave-bar {
    width: 3px;
    height: 10px;
    background-color: #888;
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.bot-message.loading .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.bot-message.loading .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.bot-message.loading .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.bot-message.loading .wave-bar:nth-child(5) { animation-delay: 0.4s; }