/**
 * Documentation System Themes - Docusaurus-inspired
 * Light and Dark Theme Support
 */

:root {
    /* Light Theme (Default) - Docusaurus-inspired */
    --docs-bg-primary: #ffffff;
    --docs-bg-secondary: #f6f8fa;
    --docs-bg-tertiary: #e1e4e8;
    --docs-text-primary: #24292e;
    --docs-text-secondary: #586069;
    --docs-text-muted: #959da5;
    --docs-border-color: #e1e4e8;
    --docs-border-light: #f1f3f5;
    --docs-link-color: #0366d6;
    --docs-link-hover: #005cc5;
    --docs-code-bg: #f6f8fa;
    --docs-code-border: #e1e4e8;
    --docs-code-text: #e83e8c;
    --docs-sidebar-bg: #ffffff;
    --docs-sidebar-border: #e1e4e8;
    --docs-sidebar-hover: #f6f8fa;
    --docs-header-bg: #ffffff;
    --docs-header-border: #e1e4e8;
    --docs-card-bg: #ffffff;
    --docs-card-border: #e1e4e8;
    --docs-shadow-sm: 0 1px 0 rgba(27, 31, 35, 0.04);
    --docs-shadow-md: 0 3px 6px rgba(0, 0, 0, 0.07);
    --docs-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --docs-accent-color: #25c2a0;
    --docs-accent-hover: #20af8e;
    --docs-accent-light: #d9f7f0;
    --docs-success: #28a745;
    --docs-warning: #ffc107;
    --docs-danger: #dc3545;
    --docs-info: #17a2b8;
}

[data-theme="dark"] {
    /* Dark Theme - Docusaurus Dark Mode */
    --docs-bg-primary: #181920;
    --docs-bg-secondary: #1e1e27;
    --docs-bg-tertiary: #2a2a35;
    --docs-text-primary: #e6e6e6;
    --docs-text-secondary: #b3b3b3;
    --docs-text-muted: #808080;
    --docs-border-color: #2a2a35;
    --docs-border-light: #1e1e27;
    --docs-link-color: #58a6ff;
    --docs-link-hover: #79b8ff;
    --docs-code-bg: #1e1e27;
    --docs-code-border: #2a2a35;
    --docs-code-text: #ff7b72;
    --docs-sidebar-bg: #181920;
    --docs-sidebar-border: #2a2a35;
    --docs-sidebar-hover: #1e1e27;
    --docs-header-bg: #181920;
    --docs-header-border: #2a2a35;
    --docs-card-bg: #1e1e27;
    --docs-card-border: #2a2a35;
    --docs-shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.3);
    --docs-shadow-md: 0 3px 6px rgba(0, 0, 0, 0.4);
    --docs-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --docs-accent-color: #25c2a0;
    --docs-accent-hover: #20af8e;
    --docs-accent-light: #1a3d35;
    --docs-success: #3fb950;
    --docs-warning: #d29922;
    --docs-danger: #f85149;
    --docs-info: #58a6ff;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: var(--docs-bg-primary);
    color: var(--docs-text-primary);
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--docs-text-primary);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
    margin-top: 0;
}

h1 { 
    font-size: 2.5rem; 
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: 2rem; 
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--docs-border-color);
}

h3 { 
    font-size: 1.5rem; 
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--docs-text-secondary);
    line-height: 1.7;
}

a {
    color: var(--docs-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--docs-link-hover);
    text-decoration: underline;
}

/* Code Blocks */
code {
    background-color: var(--docs-code-bg);
    border: 1px solid var(--docs-code-border);
    border-radius: 3px;
    padding: 2px 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9em;
    color: var(--docs-code-text);
}

pre {
    background-color: var(--docs-code-bg);
    border: 1px solid var(--docs-code-border);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.45;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--docs-text-primary);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--docs-accent-color);
    color: white;
    border-color: var(--docs-accent-color);
}

.btn-primary:hover {
    background-color: var(--docs-accent-hover);
    border-color: var(--docs-accent-hover);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--docs-bg-secondary);
    color: var(--docs-text-primary);
    border-color: var(--docs-border-color);
}

.btn-secondary:hover {
    background-color: var(--docs-bg-tertiary);
    border-color: var(--docs-border-color);
    text-decoration: none;
}

/* Cards */
.card {
    background-color: var(--docs-card-bg);
    border: 1px solid var(--docs-card-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--docs-shadow-md);
    border-color: var(--docs-accent-color);
}

/* Inputs */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
textarea,
select {
    background-color: var(--docs-bg-primary);
    border: 1px solid var(--docs-border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: var(--docs-text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--docs-accent-color);
    box-shadow: 0 0 0 3px var(--docs-accent-light);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--docs-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--docs-border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--docs-text-muted);
}

/* Selection */
::selection {
    background-color: var(--docs-accent-light);
    color: var(--docs-text-primary);
}
