/* Custom CSS for CzechAI Blog - BLACK THEME ELEMENTS */

/* === DARK THEME OVERRIDE === */
:root {
    --text: #e0e0e0;
    --title: #ffffff;
    --primary: #ffffff;
    --background: #0d1117;
    --card-bg: #161b22;
    --border-color: #30363d;
    --link-color: #58a6ff;
    --code-bg: #0d1117;
}

/* Body - Black background */
body {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    line-height: 1.6;
}

/* Container */
.container {
    background-color: #0d1117 !important;
}

/* Navbar - Black with white text */
.navbar {
    background-color: #010409 !important;
    border-bottom: 1px solid #30363d !important;
}

.navbar .site-name,
.navbar .nav-link,
.navbar a {
    color: #ffffff !important;
}

.navbar .nav-link:hover {
    color: #58a6ff !important;
}

/* Cards/Articles - Dark gray background */
article, .card, .post {
    background-color: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-weight: 600;
}

h1 {
    font-size: 1.8em !important;
    margin-top: 1em;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0.3em;
}

h2 {
    font-size: 1.4em !important;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

h3 {
    font-size: 1.2em !important;
    margin-top: 1em;
    margin-bottom: 0.3em;
}

h4 {
    font-size: 1.1em !important;
    margin-top: 0.8em;
    margin-bottom: 0.3em;
}

/* Text content */
p, li, td, th {
    color: #e6edf3 !important;
}

/* Links */
a {
    color: #58a6ff !important;
    text-decoration: none;
    border-bottom: none;
}

a:hover {
    color: #79c0ff !important;
    text-decoration: underline;
}

/* Lists */
ol, ul {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

/* Code blocks - Very dark background */
code {
    background: #161b22 !important;
    color: #79c0ff !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid #30363d;
}

pre {
    background: #0d1117 !important;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #30363d;
    overflow-x: auto;
}

pre code {
    background: transparent !important;
    border: none;
    padding: 0;
}

/* Tables */
table {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-collapse: collapse;
    width: 100%;
}

th {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    padding: 10px;
}

td {
    border: 1px solid #30363d !important;
    padding: 10px;
}

tr:hover {
    background: #1f242a !important;
}

/* HR separator */
hr {
    border: none;
    border-top: 1px solid #30363d;
    margin: 2em 0;
}

/* Blockquote */
blockquote {
    border-left: 4px solid #58a6ff;
    background: #161b22;
    padding: 12px 20px;
    margin: 1em 0;
    color: #8b949e !important;
}

/* Search */
.md-search-icon i {
    color: #ffffff !important;
}

/* Dropdown menu */
.dropdown-menu {
    background-color: #161b22 !important;
    border: 1px solid #30363d !important;
}

.dropdown-item {
    color: #e6edf3 !important;
}

.dropdown-item:hover {
    background-color: #21262d !important;
    color: #58a6ff !important;
}

/* Footer */
footer {
    background-color: #010409 !important;
    border-top: 1px solid #30363d !important;
    color: #8b949e !important;
}

/* Strong/Bold */
strong, b {
    color: #ffffff !important;
    font-weight: 600;
}

/* Meta info */
.meta, .date, time {
    color: #8b949e !important;
}

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

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Post list */
.post-list article,
.blog-list article {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.post-list article:hover,
.blog-list article:hover {
    border-color: #58a6ff !important;
}

/* Tags */
.tag, .badge {
    background: #21262d !important;
    color: #58a6ff !important;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 0.85em;
}

/* Buttons */
.btn, button {
    background: #21262d !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
    border-radius: 6px;
}

.btn:hover, button:hover {
    background: #30363d !important;
    border-color: #58a6ff !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    article {
        padding: 16px !important;
    }
}
