/* Alke Analytics Documentation - Custom Styles */

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Code blocks */
pre code.hljs {
    padding: 1rem;
    border-radius: 0.5rem;
}

/* SDK Tabs */
.sdk-tab.active {
    color: #047857;
    border-color: #047857;
}

.sdk-tab-content.hidden {
    display: none;
}

.sdk-tab-content.active {
    display: block;
}

/* Mobile sidebar */
@media (max-width: 1023px) {
    #sidebar.open {
        transform: translateX(0);
    }
}

/* Headings */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Lists */
.prose ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.6;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
}

/* Remove bullets from navigation card lists */
#next-steps + ul li::before,
#features + ul li::before,
#best-practices + ul li::before,
#cmp-compatibility + ul li::before {
    display: none;
}

.prose ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.prose ul ul li::before {
    background-color: transparent;
    border: 1.5px solid #10b981;
}

.prose ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
    counter-reset: list-counter;
    list-style: none;
}

.prose ol li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.6;
    counter-increment: list-counter;
}

.prose ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: -1.5rem;
    color: #10b981;
    font-weight: 600;
}

.prose li code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
}

/* Markdown tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 1.5rem 0;
}

.prose thead {
    border-bottom: 2px solid #e5e7eb;
}

.prose th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #374151;
}

.prose td {
    padding: 0.75rem 1rem;
    color: #4b5563;
}

.prose tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.prose tbody tr:hover {
    background-color: #f9fafb;
}

.prose td code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
}

/* Navigation card lists */
#next-steps + ul,
#features + ul,
#best-practices + ul,
#cmp-compatibility + ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

#next-steps + ul li,
#features + ul li,
#best-practices + ul li,
#cmp-compatibility + ul li {
    padding: 0;
    padding-left: 0;
    list-style: none;
}

/* Green navigation cards (Next Steps, Best Practices, etc.) */
#next-steps + ul li a,
#best-practices + ul li a,
#cmp-compatibility + ul li a {
    display: block;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #d1fae5;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: #6b7280;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

#next-steps + ul li a:hover,
#best-practices + ul li a:hover,
#cmp-compatibility + ul li a:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

#next-steps + ul li a strong,
#best-practices + ul li a strong,
#cmp-compatibility + ul li a strong {
    display: block;
    color: #047857;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Blue feature cards */
#features + ul li a {
    display: block;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: #6b7280;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

#features + ul li a:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

#features + ul li a strong {
    display: block;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
