/* Trav Help Centre Styles */

:root {
    --primary-color: #0081a7; /* A friendly, warm teal */
    --primary-hover-color: #006b8c;
    --secondary-color: #8D8781;
    --background-color: #F8F6EE;
    --surface-color: #faf9f6;
    --text-color: #4a4a4a;
    --border-color: #F8F6EE;
    --border-radius: 8px;
}

html.dark-mode {
    --secondary-color: #ced4da;
    --background-color: #212529;
    --surface-color: #2c3034;
    --text-color: #f8f9fa;
    --border-color: #495057;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover-color);
    text-decoration: underline;
}

/* Layout */
.help-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 80vh;
    background-color: var(--surface-color);
}

@media (min-width: 801px) {
    .help-container {
        margin: 40px auto;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        padding: 40px;
    }

    html.dark-mode .help-container {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Header */
.help-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.help-logo {
    height: 30px;
    width: auto;
    color: var(--primary-color);
}

html.dark-mode .help-logo {
    color: #FFFFFF;
}

.help-header-title {
    font-weight: bold;
    margin-left: 10px;
    font-size: 1.2em;
    color: var(--text-color);
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Content */
.help-content {
    line-height: 1.6;
}

.help-content h1 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 2em;
    color: var(--text-color);
}

.help-content h2 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.help-content h3 {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

.help-content p {
    margin-bottom: 1em;
}

/* Markdown Elements */
.help-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.help-content blockquote {
    background-color: var(--background-color);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
    color: var(--text-color);
}

html.dark-mode .help-content blockquote {
    background-color: rgba(255,255,255,0.05);
}

.help-content ul, .help-content ol {
    padding-left: 20px;
    margin-bottom: 1em;
}

.help-content li {
    margin-bottom: 0.5em;
}

.help-content code {
    background-color: rgba(0,0,0,0.05);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

html.dark-mode .help-content code {
    background-color: rgba(255,255,255,0.1);
}

/* Index Page Lists */
.category-section {
    margin-bottom: 30px;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    margin-bottom: 10px;
    padding-left: 0;
}

.guide-list li a {
    display: block;
    padding: 10px 15px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

.guide-list li a:hover {
    background-color: rgba(0,0,0,0.05);
    text-decoration: none;
}

html.dark-mode .guide-list li a {
    background-color: rgba(255,255,255,0.05);
}

html.dark-mode .guide-list li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Icons in Headers */
.category-icon {
    vertical-align: middle;
    margin-right: 10px;
    font-size: 1.2em; /* Slightly larger than text */
}

/* Related Guides */
.related-guides {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.related-guides h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-guides ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-guides li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.related-guides li:before {
    content: "arrow_forward";
    font-family: "Material Icons";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 16px;
    color: var(--primary-color);
}

/* Footer */
.help-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9em;
}
