/* Documentation Styles - Clean Minimal Black & White Design */

.docs-container {
    min-height: 100vh;
    background: #ffffff;
    padding-top: 80px;
}

/* Header Section */
.docs-header {
    background: #ffffff;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.docs-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.docs-subtitle {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 2rem;
}

/* Search Bar */
.docs-search-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.docs-search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.docs-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: all 0.2s;
}

.docs-search:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Search Results */
.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

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

.search-result-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.search-result-category {
    background: #f0f0f0;
    color: #666666;
    padding: 0.125rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

.search-result-title {
    font-weight: 600;
    color: #000000;
    font-size: 0.9rem;
}

.search-result-snippet {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.5;
}

.search-result-snippet mark {
    background: #f0f0f0;
    color: #000000;
    padding: 0 2px;
}

/* Main Content */
.docs-main {
    padding: 3rem 0 4rem;
    background: #ffffff;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    border-color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.category-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.category-icon-wrapper {
    width: 42px;
    height: 42px;
    background: #000000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.category-icon-wrapper i {
    font-size: 1.25rem;
    color: white;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 0.25rem 0;
}

.category-count {
    font-size: 0.85rem;
    color: #666666;
}

.category-description {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-articles {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.category-article-link {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    color: #666666;
    text-decoration: none;
    transition: color 0.15s;
    font-size: 0.9rem;
}

.category-article-link:hover {
    color: #000000;
}

.category-article-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.5;
}

.category-view-all {
    display: inline-flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: all 0.15s;
}

.category-view-all:hover {
    opacity: 0.7;
}

.category-view-all i {
    margin-left: 0.25rem;
    font-size: 0.9rem;
    transition: transform 0.15s;
}

.category-view-all:hover i {
    transform: translateX(2px);
}

/* Category View */
.category-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #666666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #000000;
}

.breadcrumb-item.active {
    color: #333333;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.article-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-card-description {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    padding-top: 0.875rem;
    border-top: 1px solid #f0f0f0;
}

.article-date {
    font-size: 0.85rem;
    color: #999999;
    display: flex;
    align-items: center;
}

.article-date i {
    margin-right: 0.35rem;
    font-size: 0.9rem;
}

/* Popular Articles Section */
.popular-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e5e5;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.popular-card {
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.popular-card:hover {
    border-color: #000000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.popular-card-icon {
    width: 36px;
    height: 36px;
    background: #f8f8f8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.875rem;
    flex-shrink: 0;
}

.popular-card-icon i {
    font-size: 1.1rem;
    color: #666666;
}

.popular-card-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.2rem;
}

.popular-card-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #666666;
}

/* Article Page Styles */
.article-container {
    background: #ffffff;
    min-height: 100vh;
    padding-top: 80px;
}

.article-header {
    background: white;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.article-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.article-breadcrumb a {
    color: #666666;
    text-decoration: none;
    transition: color 0.15s;
}

.article-breadcrumb a:hover {
    color: #000000;
}

.article-breadcrumb .separator {
    margin: 0 0.5rem;
    color: #d0d0d0;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #666666;
    font-size: 0.9rem;
    text-align: center;
}

.article-meta i {
    margin-right: 0.35rem;
    color: #999999;
}

.article-category-badge {
    background: #f0f0f0;
    color: #666666;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.article-main {
    padding: 3rem 0;
}

.article-content {
    background: white;
    padding: 2rem 0;
}

.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: 600;
}

.article-content h1 {
    font-size: 1.875rem;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content p {
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: #333333;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content code {
    background: #f5f5f5;
    padding: 0.125rem 0.35rem;
    border-radius: 3px;
    color: #d63384;
    font-size: 0.875em;
}

.article-content pre {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

.article-content pre code {
    background: transparent;
    color: #333333;
    padding: 0;
}

.article-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.article-content th {
    background: #f5f5f5;
    color: #000000;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid #d0d0d0;
}

.article-content td {
    padding: 0.75rem;
    border: 1px solid #d0d0d0;
}

.article-content blockquote {
    border-left: 3px solid #000000;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f8f8;
    border-radius: 0 6px 6px 0;
}

.article-content blockquote p {
    margin-bottom: 0;
    color: #666666;
    font-style: italic;
}

.article-content a {
    color: #000000;
    text-decoration: underline;
    text-decoration-color: #d0d0d0;
    transition: all 0.15s;
}

.article-content a:hover {
    text-decoration-color: #000000;
}

/* Related Articles */
.related-articles {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.related-articles h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.875rem;
}

.related-articles h5 i {
    margin-right: 0.5rem;
    color: #666666;
}

.related-article-item {
    display: block;
    padding: 0.625rem 0.75rem;
    background: #f8f8f8;
    border-radius: 4px;
    margin-bottom: 0.625rem;
    text-decoration: none;
    color: #666666;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.related-article-item:hover {
    background: #f0f0f0;
    color: #000000;
}

.support-card {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
}

.support-card h5 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.support-card p {
    color: #666666;
    margin-bottom: 0.875rem;
    font-size: 0.85rem;
}

.btn-support {
    display: inline-flex;
    align-items: center;
    background: #000000;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.btn-support:hover {
    background: #333333;
    color: white;
    text-decoration: none;
}

.btn-support i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Copy Button */
.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: white;
    border: 1px solid #d0d0d0;
    color: #666666;
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}

.copy-button:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

/* Helpful Section */
.helpful-section {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.helpful-section h4 {
    margin-bottom: 0.875rem;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
}

.helpful-buttons {
    display: flex;
    justify-content: center;
    gap: 0.875rem;
}

.helpful-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid #d0d0d0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
    color: #666666;
    font-size: 0.875rem;
}

.helpful-btn:hover {
    border-color: #000000;
    color: #000000;
}

.helpful-btn.active-yes {
    background: #000000;
    color: white;
    border-color: #000000;
}

.helpful-btn.active-no {
    background: #666666;
    color: white;
    border-color: #666666;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-title {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

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