/* --- OKURU KNOWLEDGE BASE: GIFTUP MATCH + PURPLE BRANDING --- */

/* 1. Global Reset & Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background-color: #f9fafb !important;
    color: #1f2937 !important;
    -webkit-font-smoothing: antialiased;
}

/* 2. Custom Header (#a87bfd) */
/* Targets the default HelpScout header */
header#docs-header, #header, .hs-header {
    background-color: #a87bfd !important;
    border-bottom: none !important;
}

/* Ensures header text/links are white for contrast */
header#docs-header a, #header a, .hs-header a, 
header#docs-header span, #header span, .hs-header span {
    color: #ffffff !important;
}

/* 3. Search Bar */
#search-form {
    max-width: 640px;
    margin: 60px auto 70px auto;
}

#search-form input[type="text"] {
    width: 100% !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

#search-form input[type="text"]:focus {
    border-color: #a87bfd !important; 
    box-shadow: 0 0 0 3px rgba(168, 123, 253, 0.2) !important;
    outline: none !important;
}

/* 4. Category Grid */
#category-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 24px !important;
    max-width: 1050px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 5. Category Cards */
#category-list .category {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0 !important; 
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

#category-list .category:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-color: #a87bfd !important;
}

#category-list .category > a {
    display: flex !important;
    align-items: flex-start !important;
    padding: 24px !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
    box-sizing: border-box;
}

/* 6. Left-Aligned Icons (GiftUp Style) */
#category-list .category > a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 22px; 
    color: #a87bfd; /* Match icon color to header/footer */
    margin-right: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

/* CRITICAL: YOU MUST REPLACE THESE IDs 
   Right-click your live page -> Inspect -> Find the <li id="category-XXXXX"> 
   Replace 0001, 0002, etc., with your actual numbers! 
*/

/* Buying & Gifting (Gift icon) */
#category-0001 > a::before { content: "\f06b"; } 

/* Affiliate & Rewards (Handshake icon - matches GiftUp Partners) */
#category-0002 > a::before { content: "\f2b5"; } 

/* General Queries (Info circle icon) */
#category-0003 > a::before { content: "\f05a"; } 

/* Contact Details (Envelope icon - matches GiftUp Contact) */
#category-0004 > a::before { content: "\f0e0"; } 

/* Legal Documents (Shield icon - matches GiftUp Policies) */
#category-0005 > a::before { content: "\f3ed"; } 

/* Receiving & Redeeming (Barcode icon - matches GiftUp Redeeming) */
#category-0006 > a::before { content: "\f02a"; } 

/* 7. Typography Inside Cards */
#category-list .category > a > div, 
#category-list .category h3 {
    flex-grow: 1;
}

.category h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}

.category p {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* 8. Custom Footer Overrides (#a87bfd background) */
.okuru-custom-footer {
    background-color: #a87bfd !important;
    border-top: none;
    padding: 40px 20px;
    margin-top: 80px;
    text-align: center;
    color: #ffffff; /* White text on purple */
}

.footer-content { 
    max-width: 1050px; 
    margin: 0 auto; 
}

.footer-links { 
    margin-top: 16px; 
    display: flex; 
    justify-content: center; 
    gap: 24px; 
    flex-wrap: wrap; 
    align-items: center; 
}

/* Make links white and semi-transparent, full white on hover */
.footer-links a { 
    color: rgba(255, 255, 255, 0.85); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 14px; 
    transition: color 0.2s; 
}

.footer-links a:hover { 
    color: #ffffff; 
}

/* Invert contact button so it stands out against purple */
.contact-btn { 
    background-color: #ffffff; 
    color: #a87bfd !important; 
    padding: 8px 16px; 
    border-radius: 6px; 
    font-weight: 600; 
    margin-left: 8px; 
    transition: background-color 0.2s;
}

.contact-btn:hover { 
    background-color: #f3f4f6; 
}

#footer { 
    display: none !important; 
}