/* ===============================================
   DOCUMENTATION STYLES
   Minimal additions to customer.css for docs
   =============================================== */

/* Simple docs layout - use flexbox */
.docs-container {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem; /* Reduced from 2rem */
}


.docs-sidebar-wrapper {
    flex: 0 0 280px;
}

.docs-content-wrapper {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.docs-sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

/* Override content-card centering for docs - use !important to override customer.css */
.docs-sidebar.content-card,
.docs-content-wrapper .content-card {
    text-align: left !important;
}

/* Better section styling */
.doc-section {
    margin-bottom: 3rem;
}

.doc-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--vanilla-sex);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--lust-transparent-15);
    font-size: 1.5rem;
}

.doc-subsection-title {
    color: var(--vanilla-sex);
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-left: 3px solid var(--lust-transparent-30);
    padding-left: 1rem;
}

.doc-section h2 i {
    color: var(--lust);
    font-size: 1.25rem;
}

.doc-section-description {
    color: var(--sensual-grey);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.doc-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.doc-card {
    background: rgba(245, 235, 221, 0.03);
    border: 1px solid var(--lust-transparent-10);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: block;
    border-left: 3px solid var(--lust-transparent-15);
}

.doc-card:hover {
    background: rgba(245, 235, 221, 0.08);
    border-color: var(--lust-transparent-20);
    border-left-color: var(--lust);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.doc-card h4 {
    color: var(--vanilla-sex);
    margin-bottom: 0.4rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.doc-card p {
    color: var(--sensual-grey);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Force left alignment for all docs content */
.docs-container,
.docs-container *,
.docs-container .content-card,
.docs-container .content-card * {
    text-align: left !important;
}

/* But keep centered elements that should be centered */
.docs-container .text-center,
.docs-container [style*="text-align: center"] {
    text-align: center !important;
}

/* Specifically target the article content */
.docs-article,
.docs-article * {
    text-align: left !important;
}

/* Navigation items should be left-aligned */
.docs-nav-section,
.docs-nav-section *,
.docs-nav-item {
    text-align: left !important;
}


.search-form {
    margin-bottom: 1.5rem;
}

/* Search results styling */
.search-results {
    margin-top: 1.5rem;
}

.search-result-item {
    display: block;
    background: rgba(245, 235, 221, 0.05) !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease;
    border: 1px solid var(--lust-transparent-30);
}

.search-result-item:hover {
    background: rgba(245, 235, 221, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-item h3 {
    margin-bottom: 0.5rem !important;
    font-size: 1.25rem;
}

.search-result-item h3 a {
    color: var(--vanilla-sex) !important;
    text-decoration: none !important;
}

.search-result-item h3 a:hover {
    color: var(--lust) !important;
}

/* Make meta links independent */
.meta-link {
    text-decoration: none !important;
    color: inherit !important;
}

.meta-link:hover span {
    background: var(--lust-transparent-30) !important;
    transform: translateY(-1px);
}

.search-result-meta {
    font-size: 0.875rem !important;
    margin-bottom: 0.75rem !important;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    background: var(--lust-transparent-15);
    border-radius: 20px;
    color: var(--vanilla-sex);
    border: 1px solid var(--lust-transparent-30);
    transition: all 0.3s ease;
}

.search-result-meta span:hover {
    background: var(--lust-transparent-30);
    transform: translateY(-1px);
}

.search-result-meta i {
    color: var(--lust);
    font-size: 0.75rem;
}

/* Relevance score with animated bar */
.relevance-score {
    position: relative;
    flex: 0 0 auto;
    min-width: 120px;
    padding: 0.25rem 0.75rem !important;
    background: transparent !important;
    border: 1px solid var(--lust-transparent-30) !important;
    overflow: hidden;
}

.relevance-score::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--lust), var(--bronze-harmony));
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    opacity: 0.3;
}

.relevance-score:hover::before {
    opacity: 0.5;
}

/* Animate the relevance bar on load */
@keyframes expandRelevance {
    from {
        width: 0;
    }
    to {
        width: var(--relevance-width, 50%);
    }
}

.search-result-item.show .relevance-score::before {
    animation: expandRelevance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.search-result-item p {
    color: var(--sensual-grey) !important;
    margin: 0 !important;
    line-height: 1.6;
}

.search-no-results {
    text-align: center;
    padding: 3rem 0;
}

.search-no-results i {
    color: var(--sensual-grey);
    margin-bottom: 1rem;
}

.search-no-results h3 {
    color: var(--vanilla-sex);
    margin-bottom: 1rem;
}

.docs-nav-section {
    margin-bottom: 1rem;
}

.docs-nav-section-title {
    font-weight: 600;
    padding: 0.5rem 0;
    cursor: pointer;
    color: var(--vanilla-sex);
}

.docs-nav-item {
    display: block;
    padding: 0.5rem 0;
    color: var(--sensual-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.docs-nav-item:hover,
.docs-nav-item.active {
    color: var(--lust);
}

/* Article content - markdown rendered to HTML */
.docs-article {
    line-height: 1.7;
    color: var(--vanilla-sex);
}

/* Headings */
.docs-article h1,
.docs-article h2,
.docs-article h3,
.docs-article h4,
.docs-article h5,
.docs-article h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--vanilla-sex);
    font-weight: 600;
}

.docs-article h1 { font-size: 2.5rem; margin-top: 0; }
.docs-article h2 { font-size: 2rem; }
.docs-article h3 { font-size: 1.5rem; }
.docs-article h4 { font-size: 1.25rem; }
.docs-article h5 { font-size: 1.125rem; }
.docs-article h6 { font-size: 1rem; }

/* Paragraphs and text */
.docs-article p {
    margin-bottom: 1rem;
    color: var(--vanilla-sex);
}

.docs-article strong {
    color: var(--vanilla-sex);
    font-weight: 600;
}

.docs-article em {
    font-style: italic;
}

/* Links */
.docs-article a {
    color: var(--lust);
    text-decoration: none;
    transition: color 0.3s ease;
}

.docs-article a:hover {
    color: var(--vanilla-sex);
    text-decoration: underline;
}

/* Lists */
.docs-article ul,
.docs-article ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-position: inside; /* Keep bullets inside the content area */
}

.docs-article li {
    margin-bottom: 0.5rem;
    text-align: left; /* Ensure list items are left-aligned */
}

.docs-article ul ul,
.docs-article ol ol,
.docs-article ul ol,
.docs-article ol ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

/* Code and preformatted text */
.docs-article code {
    background: var(--lust-transparent-15);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--vanilla-sex);
}

.docs-article pre {
    background: var(--lust-transparent-15);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    position: relative;
}

.docs-article pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Blockquotes */
.docs-article blockquote {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid var(--lust);
    background: var(--lust-transparent-15);
    color: var(--sensual-grey);
}

.docs-article blockquote p {
    margin: 0;
}

/* Tables */
.docs-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.docs-article th,
.docs-article td {
    padding: 0.75rem;
    border: 1px solid var(--lust-transparent-30);
    text-align: left;
}

.docs-article th {
    background: var(--lust-transparent-15);
    font-weight: 600;
    color: var(--vanilla-sex);
}

.docs-article td {
    color: var(--vanilla-sex);
}

/* Horizontal rules */
.docs-article hr {
    border: none;
    border-top: 1px solid var(--lust-transparent-30);
    margin: 2rem 0;
}

/* Images */
.docs-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Special callouts (if supported) */
.docs-article .callout {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.docs-article .callout-info {
    background: var(--lust-transparent-15);
    border-left-color: var(--lust);
}

.docs-article .callout-warning {
    background: rgba(255, 193, 7, 0.15);
    border-left-color: #ffc107;
}

.docs-article .callout-danger {
    background: rgba(220, 53, 69, 0.15);
    border-left-color: #dc3545;
}

.docs-article .callout-success {
    background: rgba(40, 167, 69, 0.15);
    border-left-color: #28a745;
}

/* Floating Feedback Bar */
.docs-feedback-bar {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    float: left;
    margin-left: -60px;
    background: var(--midnight-sin);
    border: 1px solid var(--lust-transparent-15);
    border-radius: 25px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.docs-feedback-label {
    font-size: 0.7rem;
    color: var(--sensual-grey);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 0.5rem;
}

.docs-feedback-btn {
    background: none;
    border: none;
    color: var(--sensual-grey);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s;
}

.docs-feedback-btn:hover {
    color: var(--lust);
}

/* Article Metadata Chips */
.docs-meta-chips {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.docs-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(245, 235, 221, 0.05);
    border: 1px solid var(--lust-transparent-15);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--sensual-grey);
}

.docs-meta-chip.chip-primary {
    background: var(--lust-transparent-15);
    border-color: var(--lust-transparent-30);
    color: var(--vanilla-sex);
}

.docs-meta-chip i {
    font-size: 0.75rem;
}

.docs-meta-chip.chip-primary i {
    color: var(--lust);
}

/* Documentation Header */
.docs-header {
    background: var(--lust-transparent-15);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.docs-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.docs-breadcrumb a {
    color: var(--sensual-grey);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: var(--lust);
}

.docs-breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--sensual-grey);
}

.docs-breadcrumb-current {
    color: var(--vanilla-sex);
}

/* Sidebar Feedback Section */
.docs-feedback-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--lust-transparent-15);
    text-align: center;
}

.docs-feedback-question {
    font-size: 0.875rem;
    color: var(--sensual-grey);
    margin-bottom: 0.5rem;
}

.docs-feedback-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.docs-feedback-btn {
    background: none;
    border: none;
    color: var(--sensual-grey);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.docs-feedback-btn:hover {
    color: var(--lust);
}

.docs-feedback-btn span {
    font-size: 0.75rem;
}

.docs-feedback-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--lust);
    font-size: 0.875rem;
    padding: 0.5rem;
    min-height: 2.5rem; /* Match button height */
}

.docs-feedback-success i {
    font-size: 1.25rem;
    vertical-align: middle;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .docs-sidebar-wrapper {
        flex: none;
    }
    
    .docs-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        background: var(--midnight-sin);
        padding: 1rem;
    }
    
    .docs-sidebar.active {
        left: 0;
    }
}


.docs-trending-section {
    padding: 0.5rem 0 1rem 0;
}

/* Trending section - MINIMAL badges only */
.trending-docs {
    text-align: center;
    margin-bottom: 1rem;
}

.trending-label {
    font-size: 0.75rem;
    color: var(--sensual-grey);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-right: 1rem;
}

.trending-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.trending-item {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: rgba(245, 235, 221, 0.05);
    border: 1px solid var(--lust-transparent-15);
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: var(--vanilla-sex);
}

.trending-item:hover {
    background: rgba(245, 235, 221, 0.1);
    border-color: var(--lust-transparent-30);
    transform: translateY(-1px);
    color: var(--lust);
}

.trending-stat {
    font-size: 0.7rem;
    color: var(--sensual-grey);
    margin-left: 0.5rem;
}

/* Product icon styling */
.product-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

/* Subsection titles */
.doc-subsection-title {
    color: var(--vanilla-sex);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Mobile menu button */
.docs-mobile-menu {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .docs-mobile-menu {
        display: block;
    }
}

.docs-mobile-menu-button {
    background: var(--lust);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}