/* U.Cash Documentation Styles */

:root {
    --primary-color: #C9A868;
    --primary-dark: #B89757;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --border-color: #e0e0e0;
    --sidebar-width: 280px;
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-color);
}

/* Header */
.docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.docs-nav .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.docs-nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.search-box input {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 300px;
    font-size: 14px;
}

/* Main Layout */
.docs-main {
    margin-top: var(--header-height);
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.docs-sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: white;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-nav {
    padding: 0 20px;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 6px 10px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* Content */
.docs-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    max-width: 900px;
    padding: 40px 60px;
    background: white;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.docs-content .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.docs-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.docs-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.docs-content p {
    margin-bottom: 15px;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.docs-content li {
    margin-bottom: 8px;
}

.docs-content code {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.docs-content pre {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.docs-content pre code {
    background: none;
    padding: 0;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.docs-content th,
.docs-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.docs-content th {
    background: var(--bg-color);
    font-weight: 600;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Topics */
.topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.topic {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.topic:hover {
    border-color: var(--primary-color);
}

.topic h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.topic p {
    color: var(--text-light);
    margin: 0;
}

/* Section Anchors */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* Footer */
footer {
    margin-left: var(--sidebar-width);
    padding: 30px 60px;
    background: white;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-sidebar {
        display: none;
    }

    .docs-content,
    footer {
        margin-left: 0;
        padding: 30px 20px;
    }

    .search-box input {
        width: 200px;
    }
}
