/* KodeEarner Documentation Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --black: #000000;
    --gold: #FFD700;
}

body {
    background-color: var(--black);
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

code, pre, .monospace {
    font-family: 'JetBrains Mono', monospace;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* General Styles */
.docs-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.docs-hero {
    background: var(--black);
    color: var(--gold);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.docs-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.docs-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Search Bar */
.docs-search {
    background: var(--black);
    border-radius: 50px;
    padding: 0.5rem;
}

.docs-search .form-control {
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    background: var(--black);
    color: var(--gold);
}

.docs-search .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    background: var(--gold);
    color: var(--black);
}

/* Cards */
.docs-card {
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: var(--black);
    transition: all 0.3s ease;
    height: 100%;
}

.docs-card:hover {
    transform: translateY(-5px);
}

.docs-card .card-body {
    padding: 2rem;
}

.docs-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gold);
}

.docs-card .card-text {
    color: var(--gold);
    line-height: 1.6;
}

/* Category Grid */
.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    background: var(--gold);
    color: var(--black);
}

.category-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

/* Article Styles */
.article-header {
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.article-meta {
    color: var(--gold);
    font-size: 0.9rem;
}

.article-meta .badge {
    margin-right: 0.5rem;
    background: var(--gold);
    color: var(--black);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--gold);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.article-content h1 { font-size: 2.25rem; border-bottom: 2px solid var(--gold); padding-bottom: 0.5rem; }
.article-content h2 { font-size: 1.875rem; border-bottom: 1px solid var(--gold); padding-bottom: 0.25rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }
.article-content h5 { font-size: 1.125rem; }
.article-content h6 { font-size: 1rem; }

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gold);
}

.article-content code {
    background: var(--black);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: var(--gold);
}

.article-content pre {
    background: var(--black);
    color: var(--gold);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-content ul,
.article-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-content th,
.article-content td {
    border: 1px solid var(--gold);
    padding: 0.75rem;
    text-align: left;
}

.article-content th {
    background: var(--black);
    font-weight: 600;
    color: var(--gold);
}

/* Table of Contents */
.toc {
    background: var(--black);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gold);
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.25rem;
}

.toc a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
}

.toc a:hover {
    color: var(--gold);
    opacity: 0.8;
}

/* Q&A Styles */
.qa-question {
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.qa-answer {
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.qa-accepted {
    border-left-color: var(--gold);
    background: var(--black);
}

.vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.vote-btn {
    background: var(--black);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.vote-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.vote-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.vote-count {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--gold);
    min-height: 1.2rem;
}

/* Admin Styles */
.admin-card {
    border: 1px solid var(--gold);
    border-radius: 0.5rem;
    background: var(--black);
}

.admin-card .card-header {
    background: var(--black);
    border-bottom: 1px solid var(--gold);
    font-weight: 600;
    color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .docs-hero h1 {
        font-size: 2rem;
    }

    .docs-hero p {
        font-size: 1rem;
    }

    .docs-search .form-control,
    .docs-search .btn {
        font-size: 1rem;
    }

    .article-content h1 { font-size: 1.75rem; }
    .article-content h2 { font-size: 1.5rem; }
    .article-content h3 { font-size: 1.25rem; }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--black);
    border-top: 2px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Bootstrap Overrides for Black and Gold Theme */ 
.text-primary { color: var(--gold) !important; }
.text-muted { color: var(--gold) !important; opacity: 0.7; }
.text-success { color: var(--gold) !important; }
.text-warning { color: var(--gold) !important; }
.text-danger { color: var(--gold) !important; }
.text-info { color: var(--gold) !important; }

.bg-light { background-color: var(--black) !important; }
.bg-primary { background-color: var(--gold) !important; color: var(--black) !important; }
.bg-success { background-color: var(--gold) !important; color: var(--black) !important; }
.bg-warning { background-color: var(--gold) !important; color: var(--black) !important; }
.bg-danger { background-color: var(--gold) !important; color: var(--black) !important; }

.btn-primary {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--black) !important;
}
.btn-primary:hover {
    background-color: #E5C100 !important;
    border-color: #E5C100 !important;
    color: var(--black) !important;
}
.btn-outline-primary {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}
.btn-outline-primary:hover {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--black) !important;
}
.btn-secondary {
    background-color: var(--black) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}
.btn-secondary:hover {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--black) !important;
}

.card {
    background-color: var(--black) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}
.card-header {
    background-color: var(--black) !important;
    border-bottom: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}
.card-body {
    color: var(--gold) !important;
}

.form-control {
    background-color: var(--black) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}
.form-control:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25) !important;
}

.badge {
    background-color: var(--gold) !important;
    color: var(--black) !important;
}

.table {
    color: var(--gold) !important;
}
.table th,
.table td {
    border-color: var(--gold) !important;
}

.alert {
    background-color: var(--black) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}

.nav-tabs .nav-link {
    color: var(--gold) !important;
    border-color: var(--gold) !important;
}
.nav-tabs .nav-link.active {
    background-color: var(--gold) !important;
    color: var(--black) !important;
}

.dropdown-menu {
    background-color: var(--black) !important;
    border: 1px solid var(--gold) !important;
}
.dropdown-item {
    color: var(--gold) !important;
}
.dropdown-item:hover {
    background-color: var(--gold) !important;
    color: var(--black) !important;
}

.modal-content {
    background-color: var(--black) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}

.progress-bar {
    background-color: var(--gold) !important;
}

.list-group-item {
    background-color: var(--black) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

.breadcrumb {
    background-color: var(--black) !important;
}
.breadcrumb-item a {
    color: var(--gold) !important;
}
.breadcrumb-item.active {
    color: var(--gold) !important;
}