/* Base styles to match Scanlily website */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
}

/* Header styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Fix for list markers (bullets and numbers) */
.content-container ol,
.content-container ul {
    padding-left: 40px;
    margin: 1em 0;
}

.content-container li {
    display: list-item;
    margin-bottom: 0.5em;
}

.content-container ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.content-container ul {
    list-style-type: disc;
    list-style-position: outside;
}

.content-container ol ol {
    list-style-type: lower-alpha;
}

.content-container ul ul {
    list-style-type: circle;
}

/* Ensure nested lists have proper spacing */
.content-container li > p {
    margin: 0;
    display: inline-block;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 500;
    color: #000;
}

.logo-tagline {
    font-size: 14px;
    color: #5f6360;
    font-weight: 300;
}

/* Navigation styles */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #116dff;
}

.book-demo-btn {
    background-color: #8b5cf6;
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.book-demo-btn:hover {
    background-color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Main content */
main {
    min-height: calc(100vh - 70px - 200px);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Footer styles */
.site-footer {
    background-color: #2d2d2d;
    color: #fff;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #fff;
}

.footer-link {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* Search box styles */
.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #116dff;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #116dff;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

/* Search Results Styling */
.search-results-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.search-results-container.active {
    display: block;
}

.search-header {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.search-result {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.search-result h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.search-result h3 a {
    color: #5b21b6;
    text-decoration: none;
}

.search-result h3 a:hover {
    text-decoration: underline;
}

.search-snippet {
    color: #545454;
    line-height: 1.5;
    margin-bottom: 8px;
}

.search-snippet mark {
    background-color: #ffeb3b;
    padding: 2px;
    border-radius: 2px;
}

.section-links {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.section-links a {
    color: #5b21b6;
    text-decoration: none;
    margin-right: 15px;
}

.section-links a:hover {
    text-decoration: underline;
}

.search-path {
    font-size: 12px;
    color: #999;
}

.search-error, .search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

.search-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-controls input {
    flex: 1;
}

.search-clear {
    display: none;
}

.search-clear.active {
    display: inline-block;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .content-container {
        padding: 30px 15px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }
    
    main {
        min-height: auto;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
    }
    
    .main-nav.show {
        display: flex;
    }
    
    .main-nav .nav-link,
    .main-nav .book-demo-btn {
        padding: 10px 15px;
        width: 100%;
        text-align: left;
    }
}