/*
 * Recipe Kit - Help Scout Docs Custom Theme
 * Primary Brand Color: #ff5653 (Coral Red)
 * 
 * Upload this file at: Manage > Docs > [Your Docs site] > Custom Code
 * Click "Choose File" and upload, or paste in the Insert <head> Code field
 */

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   COLOR VARIABLES (Reference - CSS custom properties not fully supported in Docs)
   --rk-primary: #ff5653        Recipe Kit coral red
   --rk-primary-dark: #e84845   Darker shade for hover
   --rk-primary-light: #ff7a78  Lighter shade
   --rk-primary-bg: #fff5f5     Very light tint
   --rk-text-dark: #1a202c      Dark text
   --rk-text-medium: #4a5568    Medium text
   --rk-text-light: #718096     Light/muted text
   ============================================ */

/* ============================================
   BASE STYLES
   ============================================ */
body {
    background: #fafafa;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #4a5568;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   NAVIGATION BAR / HEADER
   ============================================ */
.navbar .navbar-inner {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 70px;
    padding: 0 20px;
}

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

/* Logo */
a.brand,
.navbar .brand {
    float: left;
    display: block;
    padding: 16px 0;
    margin: 0;
    line-height: 1;
}

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

/* Nav links */
.navbar .nav {
    float: right;
    margin: 0;
}

.navbar .nav li {
    display: inline-block;
    float: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

.navbar .nav li a,
.navbar .icon-private-w {
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
    padding: 24px 16px;
    display: inline-block;
    transition: color 0.2s ease;
}

.navbar .nav li a:hover {
    color: #ff5653;
}

/* Mobile nav button */
.navbar .btn-navbar {
    margin-top: 18px;
    background: #ff5653;
    border: none;
}

/* ============================================
   SEARCH SECTION (Hero Area)
   ============================================ */
#docsSearch {
    background: linear-gradient(135deg, #ff5653 0%, #e84845 100%);
    border: none;
    margin-bottom: 3em;
    padding: 60px 0;
    position: relative;
}

/* Search title */
#docsSearch h1 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
    font-family: 'DM Sans', sans-serif;
    color: #ffffff;
    padding: 0 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Search input container */
#searchBar {
    max-width: 600px;
    margin: 0 auto;
}

/* Search input box */
input.search-query,
#searchBar .search-query {
    padding: 16px 20px;
    padding-right: 60px;
    margin-bottom: 0;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0;
    border: 2px solid transparent;
    background: #ffffff;
    color: #1a202c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    height: auto;
    width: 100%;
    box-sizing: border-box;
}

input.search-query:focus,
#searchBar .search-query:focus {
    border-color: #ffffff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    outline: none;
}

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

/* Search button */
#searchBar button {
    color: #ffffff;
    background: #1a202c;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    height: auto;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    text-shadow: none;
}

#searchBar button:hover {
    background: #2d3748;
}

#searchBar button .icon-search {
    color: #ffffff;
}

/* ============================================
   CATEGORY CARDS (Home Page)
   ============================================ */
.category-list {
    text-align: center;
    margin: 0 0 4em;
}

.category-list .category {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-sizing: border-box;
    min-height: auto;
    padding: 24px;
    position: relative;
    width: 31%;
    margin: 0 1% 24px;
    transition: all 0.25s ease;
    text-align: left;
}

.category-list .category:hover {
    text-decoration: none;
    background-color: #ffffff;
    box-shadow: 0 8px 30px rgba(255, 86, 83, 0.15);
    border-color: #ff5653;
    transform: translateY(-4px);
}

/* Category titles */
.category-list h3 {
    color: #1a202c;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 8px;
}

.category-list .category:hover h3 {
    color: #ff5653;
}

/* Category descriptions */
.category-list .category p {
    color: #718096;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0;
}

/* Article count link */
.category-list .category .article-count {
    font-weight: 500;
    color: #ff5653;
    font-size: 13px;
    text-transform: none;
    font-family: 'DM Sans', sans-serif;
    margin-top: 12px;
    display: inline-block;
}

.category-list .category:hover .article-count {
    color: #e84845;
}

/* ============================================
   COLLECTION HEADERS
   ============================================ */
.collection-category h2 {
    font-weight: 600;
    margin: 0 0 28px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    color: #1a202c;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.collection-category h2 a {
    color: #1a202c;
}

.collection-category h2 a:hover {
    color: #ff5653;
}

/* ============================================
   POPULAR ARTICLES / COLLECTIONS
   ============================================ */
.twoCol .collection,
.threeCol .collection {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.twoCol .collection:hover,
.threeCol .collection:hover {
    border-color: #ff5653;
    box-shadow: 0 4px 15px rgba(255, 86, 83, 0.1);
}

.most-pop-articles .popArticles a,
.most-pop-articles .popArticles a span {
    font-weight: 500;
    color: #ff5653;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    transition: color 0.2s ease;
}

.most-pop-articles .popArticles a:hover,
.most-pop-articles .popArticles a:hover span {
    color: #e84845;
}

/* ============================================
   SIDEBAR
   ============================================ */
#sidebar h3 {
    text-transform: uppercase;
    font-size: 11px;
    color: #718096;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 1px;
}

#sidebar .nav-list a {
    display: block;
    color: #4a5568;
    font-size: 14px;
    padding: 8px 0;
    line-height: 1.5;
    margin-left: 0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    border-left: 3px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
    transition: all 0.15s ease;
}

#sidebar .nav-list a:hover {
    color: #ff5653;
    background: #fff5f5;
    border-left-color: #ff5653;
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
    font-weight: 600;
    color: #ff5653;
    background: #fff5f5;
    border-left-color: #ff5653;
    text-shadow: none;
    text-decoration: none;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
#main-content {
    background: none;
    float: right;
    margin-bottom: 2em;
    padding: 32px 0 0 40px;
}

/* Article title */
#fullArticle .title,
.contentWrapper h1 {
    margin: 0 0 24px 0;
    font-family: 'DM Sans', sans-serif;
    color: #1a202c;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Article body text */
#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
    color: #4a5568;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
}

#fullArticle p {
    margin-bottom: 1.5em;
}

/* Article headings */
#fullArticle h2 {
    font-size: 24px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: #1a202c;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

#fullArticle h3 {
    font-size: 20px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: #1a202c;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

#fullArticle h4 {
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: #4a5568;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Bold text */
#fullArticle strong {
    color: #1a202c;
    font-weight: 600;
}

/* Links in articles */
#fullArticle a,
.contentWrapper a {
    color: #ff5653;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.15s ease;
}

#fullArticle a:hover,
.contentWrapper a:hover {
    color: #e84845;
    border-bottom-color: #e84845;
}

/* Images */
#fullArticle img {
    display: block;
    margin: 1.5em 0 2em;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    max-width: 100%;
}

/* Code blocks */
#fullArticle code,
#fullArticle pre {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 14px;
    background: #f7fafc;
    border-radius: 6px;
}

#fullArticle code {
    padding: 2px 6px;
    color: #e84845;
}

#fullArticle pre {
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

#fullArticle pre code {
    padding: 0;
    background: none;
    color: #4a5568;
}

/* Blockquotes */
#fullArticle blockquote {
    border-left: 4px solid #ff5653;
    margin: 1.5em 0;
    padding: 16px 24px;
    background: #fff5f5;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Lists */
#fullArticle ul,
#fullArticle ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

#fullArticle li {
    margin-bottom: 0.5em;
}

/* Tables */
#fullArticle table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

#fullArticle th,
#fullArticle td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

#fullArticle th {
    background: #f7fafc;
    font-weight: 600;
    color: #1a202c;
}

#fullArticle tr:last-child td {
    border-bottom: none;
}

/* ============================================
   ARTICLE FOOTER
   ============================================ */
.articleFoot {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #e2e8f0;
}

.articleFoot p,
.articleFoot time {
    color: #a0aec0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
}

/* Hide last updated if desired - uncomment below */
/*
.articleFoot time.lu {
    display: none;
}
*/

/* Print button */
#fullArticle .printArticle {
    position: absolute;
    right: 0;
    top: 0;
}

#fullArticle .printArticle a {
    color: #a0aec0;
    border: none;
}

#fullArticle .printArticle a:hover {
    color: #ff5653;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    color: #ffffff;
    background: #ff5653;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    padding: 10px 20px;
    text-shadow: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn.active {
    color: #ffffff;
    background: #e84845;
    border: none;
    text-shadow: none;
}

.btn.disabled,
.btn[disabled] {
    background: #cbd5e0;
    color: #ffffff;
}

/* Secondary/outline buttons */
.btn-default,
.btn-secondary {
    background: #ffffff;
    color: #ff5653;
    border: 2px solid #ff5653;
}

.btn-default:hover,
.btn-secondary:hover {
    background: #fff5f5;
    color: #e84845;
    border-color: #e84845;
}

/* ============================================
   CONTACT MODAL
   ============================================ */
#contactModal h2,
.abuse h2 {
    background: #ffffff;
    margin: 0;
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
    font-family: 'DM Sans', sans-serif;
    color: #1a202c;
}

#contactModal .control-label {
    width: 110px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

#contactModal input,
#contactModal textarea,
#contactModal select {
    font-family: 'DM Sans', sans-serif;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    transition: border-color 0.2s ease;
}

#contactModal input:focus,
#contactModal textarea:focus,
#contactModal select:focus {
    border-color: #ff5653;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 86, 83, 0.1);
}

/* Modal backdrop and container */
.modal {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
#serp-dd .result a,
#serp-dd .result > li.active {
    font-weight: 500;
    color: #ff5653;
    font-family: 'DM Sans', sans-serif;
}

#serp-dd .result a:hover {
    color: #e84845;
}

#serp-dd {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
#categoryHead h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: #1a202c;
    font-size: 28px;
}

#categoryHead .sort select {
    width: 150px;
    height: 36px;
    margin: 0;
    line-height: 36px;
    font-size: 14px;
    color: #4a5568;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
}

/* Article list in category */
.article-list .article {
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    transition: all 0.15s ease;
}

.article-list .article:hover {
    background: #fff5f5;
    margin: 0 -16px;
    padding: 16px;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.article-list .article a {
    color: #ff5653;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
}

.article-list .article a:hover {
    color: #e84845;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related {
    background: #f7fafc;
    border-radius: 12px;
    padding: 24px;
    margin-top: 2em;
}

.related h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 16px;
}

.related ul > li a {
    color: #ff5653;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
}

.related ul > li a:hover {
    color: #e84845;
}

/* ============================================
   PAGE FOOTER
   ============================================ */
footer {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    padding: 24px 0;
    margin-top: 4em;
}

footer p,
footer p a {
    color: #718096;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
}

footer p a:hover {
    color: #ff5653;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 2 columns */
@media screen and (max-width: 1105px) {
    section.category-list .category {
        width: 47%;
        margin: 0 1.5% 24px;
    }
}

/* Mobile - 1 column */
@media screen and (max-width: 760px) {
    section.category-list .category {
        box-sizing: border-box;
        margin: 0 0 20px;
        padding: 20px;
        width: 100%;
    }
    
    #docsSearch {
        padding: 40px 20px;
    }
    
    #docsSearch h1 {
        font-size: 24px;
    }
    
    #main-content {
        padding: 24px 0 0 0;
    }
    
    #fullArticle .title,
    .contentWrapper h1 {
        font-size: 24px;
    }
    
    #fullArticle h2 {
        font-size: 20px;
    }
    
    #fullArticle h3 {
        font-size: 18px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .navbar .btn-navbar {
        margin-top: 18px;
        right: -10px;
    }
    
    #searchBar button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .category-list .category {
        min-height: auto;
        padding: 16px;
    }
    
    .related {
        padding: 20px 16px;
    }
    
    .related h3 {
        padding-left: 0;
    }
    
    .related ul {
        margin-left: 0;
    }
    
    .related ul > li a {
        margin-left: 0;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    #sidebar,
    .related,
    footer,
    .articleFoot,
    #searchBar {
        display: none !important;
    }
    
    #main-content {
        width: 100%;
        float: none;
        padding: 0;
    }
    
    #fullArticle .title {
        font-size: 24px;
    }
    
    #fullArticle,
    #fullArticle p {
        font-size: 12px;
    }
}

/* ============================================
   HELPFUL FEEDBACK WIDGET
   ============================================ */
.helpful {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 2em;
    text-align: center;
}

.helpful p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 12px;
}

.helpful .btn {
    margin: 0 8px;
}

/* ============================================
   CUSTOM SCROLLBAR (WebKit browsers)
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5653;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus-visible {
    outline: 2px solid #ff5653;
    outline-offset: 2px;
}

/* Skip to content link (if present) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff5653;
    color: white;
    padding: 8px 16px;
    z-index: 100;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}
