/* Custom HelpScout Dark Theme StyleSheet */
/* Color Palette: Black #000000 | White #FFFFFF | Purple #9183CA */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

/* Global Styles */
body {
    background: #000000;
    color: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main content containers */
.container-fluid,
.container,
#main-content,
#content,
.content-wrapper {
    background: #000000 !important;
}

/* Category list container */
.category-list {
    background: #000000 !important;
}

/* Collection sections */
.collection,
.collection-category {
    background: #000000 !important;
}

/* Header / Navigation Bar */
.navbar .navbar-inner {
    background: #000000;
    border-bottom: 1px solid #222222;
    height: 60px;
}

.navbar .navbar-inner .container-fluid {
    padding: 0;
    height: 60px;
}

.navbar .brand {
    float: left;
    display: block;
    padding: 10px;
    margin-left: -20px;
}

a.brand > img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
    height: 40px;
    margin-left: 15px;
    width: auto;
}

/* Navigation Menu Items */
.navbar .nav li {
    display: inline-block;
    float: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.navbar .nav li a, .navbar .icon-private-w {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar .nav li a:hover {
    color: #9183CA;
    text-decoration: none;
}

/* Home Page Title */
#docsSearch h1 {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    margin-top: 0.5em;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    padding: 10px;
}

/* Home Page Search Section */
#docsSearch {
    background: #000000;
    border-top: 1px solid #222222;
    margin-bottom: 3em;
    padding: 6em 0 6em 0;
}

/* Welcome Text Above Search */
.custom-welcome-text {
    color: #FFFFFF !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
    letter-spacing: 0.5px !important;
}

/* Search Input Box */
input.search-query {
    background: #222222;
    border: 1px solid #333333;
    color: #FFFFFF;
    padding: 12px 20px;
    margin-bottom: 0;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: border-color 0.3s ease;
}

input.search-query:focus {
    border-color: #9183CA;
    outline: none;
}

input.search-query::placeholder {
    color: #666666;
}

/* Search Button */
#searchBar button {
    color: #FFFFFF;
    background: #9183CA;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    padding: 0 1.5em;
    height: 50px;
    position: absolute;
    transition: background 0.3s ease;
    box-shadow: none !important;
}

#searchBar button:hover {
    background: #6B5A9E;
    box-shadow: none !important;
}

/* Category Sections */
.collection-category h2 {
    font-weight: 400;
    margin: 0 0 30px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    font-size: 24px;
    letter-spacing: 0.5px;
}

.collection-category h2 a {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.collection-category h2 a:hover {
    color: #9183CA;
    text-decoration: none;
}

/* Category Cards */
.category-list h3 {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3em;
    font-family: 'Inter', sans-serif;
}

.category-list .category {
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 150px;
    padding: 30px 25px;
    position: relative;
    width: 31.5%;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.category-list .category:hover {
    text-decoration: none;
    border-color: #9183CA;
    transform: translateY(-2px);
    background-color: #1a1a1a;
}

.category-list .category p {
    color: #CCCCCC;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.25px;
    margin-top: 10px;
}

/* Show Article List in Categories */
.category-list .category ul {
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
}

.category-list .category ul li {
    margin: 8px 0;
    padding-left: 15px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.category-list .category ul li:before {
    content: "▪";
    color: #9183CA;
    position: absolute;
    left: 0;
}

.category-list .category ul li a {
    color: #CCCCCC;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.category-list .category ul li a:hover {
    color: #9183CA;
    text-decoration: underline;
}

/* Force left alignment for custom article lists */
.custom-article-list {
    text-align: left !important;
}

.custom-article-list li {
    text-align: left !important;
}

/* Ensure hover underline for custom article lists */
.custom-article-list li a:hover {
    text-decoration: underline !important;
}

/* Links (non-article pages) */
body:not(.article):not(.article-page) a {
    color: #9183CA;
    text-decoration: none;
    transition: color 0.3s ease;
}

body:not(.article):not(.article-page) a:hover {
    color: #6B5A9E;
    text-decoration: none;
}

.category-list .category .article-count {
    color: #9183CA;
    font-weight: 500;
    font-size: 14px;
    margin-top: 15px;
}

/* Sidebar Styles */
#sidebar {
    background: #000000;
}

#sidebar h3 {
    text-transform: uppercase;
    font-size: 18px !important;  /* Increased from 14px */
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

/* Sidebar for Article Pages */
body.article #sidebar,
body.article-page #sidebar,
.article #sidebar {
    background: #FFFFFF !important;
}

body.article #sidebar h3,
body.article-page #sidebar h3,
.article #sidebar h3 {
    font-size: 18px !important;  /* Increased from 14px */
    color: #333333 !important;
}

body.article #sidebar .nav-list a,
body.article-page #sidebar .nav-list a,
.article #sidebar .nav-list a {
    font-size: 16px !important;  /* Increased from default */
    color: #666666 !important;
}

body.article #sidebar .nav-list a:hover,
body.article-page #sidebar .nav-list a:hover,
.article #sidebar .nav-list a:hover {
    color: #9183CA !important;
}

body.article #sidebar .nav-list .active a,
body.article-page #sidebar .nav-list .active a,
.article #sidebar .nav-list .active a {
    font-size: 16px !important;  /* Increased from default */
    color: #9183CA !important;
}

/* Sidebar for non-article pages */
body:not(.article):not(.article-page) #sidebar .nav-list a {
    display: inline-block;
    color: #CCCCCC;
    font-size: 16px !important;  /* Increased from 14px */
    padding: 8px 15px 8px 0;
    line-height: 22px !important;  /* Increased line height for larger text */
    margin-left: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
    text-shadow: none !important;  /* Remove text shadow */
}

body:not(.article):not(.article-page) #sidebar .nav-list a:hover {
    color: #9183CA;
    text-shadow: none !important;  /* Remove text shadow on hover */
}

body:not(.article):not(.article-page) #sidebar .nav-list .active a {
    font-size: 16px !important;  /* Increased from 14px */
    font-weight: 500;
    color: #9183CA;
    background: none;
    text-shadow: none !important;  /* Remove text shadow on active */
}

/* Remove any box shadows from sidebar */
#sidebar {
    box-shadow: none !important;
}

#sidebar .nav-list {
    box-shadow: none !important;
}

#sidebar .nav-list li {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Article Main Content Area */
#main-content {
    float: right;
    margin-bottom: 2em;
    padding: 32px 0 0 28px;
}

/* Article Container - Keep White Background */
.contentWrapper {
    background: #FFFFFF !important;
}

#contentArea {
    background: #FFFFFF !important;
}

/* But make the home page content area black */
body:not(.article):not(.article-page) #contentArea {
    background: #000000 !important;
}

#fullArticle {
    background: #FFFFFF;
    padding: 20px;
}

/* Article Title - Deep Grey */
#fullArticle .title, .contentWrapper h1 {
    margin: 0 30px 0.5em 0;
    font-family: 'Inter', sans-serif;
    color: #333333 !important;
    font-weight: 700;
    font-size: 32px;
}

/* Article Body Text - Deep Grey */
#fullArticle, #fullArticle p, #fullArticle ul, #fullArticle ol, #fullArticle li, #fullArticle div {
    color: #444444 !important;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

#fullArticle h2 {
    font-size: 26px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #333333 !important;
    margin-top: 2em;
    margin-bottom: 1em;
}

#fullArticle h3 {
    font-size: 22px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #333333 !important;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

#fullArticle h4 {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #444444 !important;
}

#fullArticle strong {
    color: #333333 !important;
    font-weight: 500;
}

/* Code Blocks */
#fullArticle pre, #fullArticle code {
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px;
    color: #333333 !important;
    padding: 12px;
    font-family: 'Courier New', monospace;
}

#fullArticle code {
    padding: 2px 6px;
    font-size: 14px;
}

/* Images */
#fullArticle img {
    display: block;
    margin: 1.5em 0;
    padding: 0;
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    color: #FFFFFF;
    background: #9183CA;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease;
    cursor: pointer;
}

.btn:hover, .btn:focus, .btn:active {
    color: #FFFFFF;
    background: #6B5A9E;
    text-decoration: none;
}

/* Contact Modal */
#contactModal {
    background: #0a0a0a;
}

#contactModal h2 {
    background: #0a0a0a;
    color: #FFFFFF;
    margin: 0;
    padding: 20px;
    font-size: 24px;
    border-bottom: 1px solid #222222;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

#contactModal .control-label {
    color: #CCCCCC;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

#contactModal input, #contactModal textarea {
    background: #222222;
    border: 1px solid #333333;
    color: #FFFFFF;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

#contactModal input:focus, #contactModal textarea:focus {
    border-color: #9183CA;
    outline: none;
}

/* Footer */
footer {
    background: #000000;
    border-top: 1px solid #222222;
    padding: 20px 0;
}

footer p, footer p a {
    color: #666666;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

footer p a:hover {
    color: #9183CA;
}

/* Article Footer */
.articleFoot {
    border-top: 1px solid #e0e0e0 !important;
    margin-top: 3em;
    padding-top: 2em;
}

.articleFoot p, .articleFoot time {
    color: #666666 !important;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

/* Responsive Design */
@media screen and (max-width: 1105px) {
    section.category-list .category {
        width: 48.2%;
    }
}

@media screen and (max-width: 760px) {
    section.category-list .category {
        box-sizing: border-box;
        margin: 0 0 20px;
        padding: 25px 20px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar .btn-navbar {
        margin-top: 16px;
        right: -10px;
    }
    
    #fullArticle .title, .contentWrapper h1 {
        font-size: 28px !important;
    }
    
    #fullArticle h2 {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    #docsSearch h1 {
        font-size: 28px;
    }
    
    #fullArticle .title, .contentWrapper h1 {
        font-size: 24px !important;
    }
    
    #fullArticle h2 {
        font-size: 20px !important;
    }
    
    #fullArticle, #fullArticle p {
        font-size: 14px !important;
    }
}

/* Additional Utility Classes */
.text-muted {
    color: #666666;
}

.text-purple {
    color: #9183CA;
}

/* Form Elements */
select {
    background: #222222;
    border: 1px solid #333333;
    color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

select:focus {
    border-color: #9183CA;
    outline: none;
}

/* Category Page Sort Dropdown - Fix cut-off issue */
#categoryHead .sort {
    display: block !important;
    visibility: visible !important;
}

#categoryHead .sort select,
#categoryHead select,
.sort select,
select#sortBy,
select[name="sort"] {
    width: 170px !important;
    height: 36px !important;
    margin: 0;
    line-height: 36px !important;
    font-size: 14px !important;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    display: inline-block !important;
    visibility: visible !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    background-color: #9183CA !important;
    background: #9183CA !important;
    border: 1px solid #6B5A9E !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-align: center !important;
    text-align-last: center !important;
    vertical-align: middle !important;
}

#categoryHead .sort select:hover,
#categoryHead select:hover,
.sort select:hover {
    background-color: #6B5A9E !important;
    background: #6B5A9E !important;
}

#categoryHead .sort select:focus,
#categoryHead select:focus,
.sort select:focus {
    outline: none !important;
    border-color: #6B5A9E !important;
    background-color: #9183CA !important;
    background: #9183CA !important;
}

/* Hide the View in HelpScout button */
.view-in-helpscout,
a[href*="secure.helpscout.net"],
.helpscout-link {
    display: none !important;
}

/* Alert/Info Boxes in Articles */
body.article .alert, 
body.article .note, 
body.article .info,
body.article-page .alert,
body.article-page .note,
body.article-page .info,
.article .alert,
.article .note,
.article .info,
#fullArticle .alert,
#fullArticle .note,
#fullArticle .info {
    background: #f9f9f9 !important;
    border-left: 4px solid #9183CA !important;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #444444 !important;
}

/* Article lists on category pages - Complete reset */
.articleList {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 40px !important;  /* Increased from 25px to 40px for more noticeable indent */
}

.articleList li {
    position: relative !important;
    padding-left: 0 !important;
    margin-bottom: 10px !important;
    list-style: none !important;
}

/* Hide the default document icons */
.articleList li .icon-article-doc {
    display: none !important;
}

/* Style the entire link with padding */
.articleList li a {
    color: #9183CA !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
    padding-left: 20px !important;
    position: relative !important;
}

/* Add square bullets to the link - aligned with title */
.articleList li a:before {
    content: "▪" !important;
    color: #9183CA !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}

.articleList li a:hover {
    color: #6B5A9E !important;
    text-decoration: underline !important;
}

/* Ensure the span inside doesn't mess up spacing */
.articleList li a span {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Popular Articles - Hide Section */
.most-pop-articles {
    display: none !important;
}

/* Print Styles for Articles */
@media print {
    #fullArticle * {
        color: #000000 !important;
        background: #FFFFFF !important;
    }
}