/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
    line-height: 1.6;
    color: #E6E9EF;
    background-color: #0B0D10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Color variables */
:root {
    --bg-primary: #0B0D10;
    --bg-surface: #11151A;
    --text-primary: #E6E9EF;
    --text-muted: #A9B1BD;
    --accent: #4EA1F3;
    --accent-hover: #3B8CE8;
    --border: #2A2F3A;
    --border-light: #1E2329;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(11, 13, 16, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(78, 161, 243, 0.1) 0%, rgba(11, 13, 16, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header:hover .header-background {
    opacity: 1;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.logo-link:hover {
    background: rgba(78, 161, 243, 0.1);
    transform: translateY(-1px);
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, #3B82F6 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(78, 161, 243, 0.3);
    transition: all 0.3s ease;
}

.logo-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.logo-link:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(78, 161, 243, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent) 0%, #3B82F6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(78, 161, 243, 0.1);
    color: var(--accent);
    font-weight: 600;
}

.nav-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Burger menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.burger-menu:hover {
    background: rgba(78, 161, 243, 0.1);
}

.burger-line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main content */
main {
    flex: 1;
    margin-top: 80px; /* Account for fixed header */
}

/* Hero section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-surface) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    color: var(--text-primary);
}

.btn:hover,
.btn:focus {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

.btn-secondary {
    background: var(--bg-surface);
    border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--bg-surface);
    border-color: var(--accent);
}

/* Sections */
section {
    padding: 3rem 0;
}

section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* About section */
.about {
    background: var(--bg-surface);
}

.about p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 800px;
}

/* Featured section */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s ease;
}

.featured-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.featured-card h3 {
    margin-bottom: 1rem;
}

.featured-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.featured-card h3 a:hover {
    color: var(--accent);
}

.featured-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.card-link:hover {
    text-decoration: underline;
}

/* Tables */
.tables {
    background: var(--bg-surface);
}

.table-container {
    margin-bottom: 3rem;
}

.table-container h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--bg-surface);
    font-weight: 600;
    color: var(--text-primary);
}

.data-table td {
    color: var(--text-muted);
}

.data-table tr:hover {
    background: var(--bg-surface);
}

/* FAQ */
.faq-list {
    max-width: 800px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--bg-surface);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* Contact */
.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-disclaimer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-es {
    font-size: 0.875rem;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copyright {
    text-align: right;
    position: relative;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* Page header */
.page-header {
    padding: 2rem 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 800px;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0;
}

/* Blog styles */
.blog-section {
    padding: 3rem 0;
}

.blog-posts {
    display: grid;
    gap: 3rem;
}

.blog-post {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
}

.blog-post:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 25px var(--shadow);
}

.post-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title-link:hover {
    color: var(--accent);
}

.post-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.post-summary p {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

.post-content {
    line-height: 1.7;
    color: var(--text-primary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.post-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
}

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

.post-content p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.post-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-content em {
    color: var(--text-muted);
    font-style: italic;
}

.post-content code {
    background: var(--bg-primary);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
}

.post-content pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: var(--accent);
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-faq {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-faq h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.faq-list {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent);
    background: var(--bg-surface);
}

.faq-question {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-question::after {
    content: '+';
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

.no-posts {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    padding: 3rem;
}

.error-message {
    text-align: center;
    color: var(--error);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--error);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

/* Article styles */
.article-header {
    padding: 2rem 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-summary {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

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

.article-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--text-primary);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-body h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.article-body h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body h4 {
    font-size: 1.25rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body em {
    color: var(--text-muted);
    font-style: italic;
}

.article-body code {
    background: var(--bg-primary);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
}

.article-body pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.article-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.article-body a:hover {
    border-bottom-color: var(--accent);
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Filters */
.filters {
    padding: 2rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.filters-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(78, 161, 243, 0.1);
}

.tag-filters select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 150px;
}

.tag-filters select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(78, 161, 243, 0.1);
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s ease;
}

.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.post-card h3 {
    margin-bottom: 1rem;
}

.post-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-tag {
    background: var(--bg-primary);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-summary {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.post-link:hover {
    text-decoration: underline;
}

.loading,
.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Post page */
.breadcrumb {
    padding: 1rem 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '→';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.post-header {
    padding: 3rem 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-date {
    font-weight: 500;
}

.post-reading-time {
    background: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.post-body {
    padding: 3rem 0;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.post-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.post-content em {
    font-style: italic;
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content code {
    background: var(--bg-surface);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.post-content pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.post-content th,
.post-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

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

.post-content td {
    color: var(--text-primary);
}

/* Table of contents */
.toc {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.toc-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.toc-nav {
    list-style: none;
}

.toc-nav li {
    margin-bottom: 0.5rem;
}

.toc-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.toc-nav a:hover {
    color: var(--accent);
}

.toc-nav .toc-h3 {
    padding-left: 1rem;
}

/* Post footer */
.post-footer {
    padding: 3rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.author-box {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.author-box h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.author-box p {
    color: var(--text-muted);
    line-height: 1.6;
}

.share-buttons {
    margin-bottom: 3rem;
}

.share-buttons h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-links {
    display: flex;
    gap: 1rem;
}

.share-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.share-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.share-linkedin:hover {
    border-color: #0077B5;
    color: #0077B5;
}

.share-twitter:hover {
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.post-navigation {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-link {
    display: block;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.nav-direction {
    display: block;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
}


/* Responsive design */
@media (max-width: 1024px) {
    .hero .container {
        gap: 2rem;
    }
    
    .hero-image img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo-text {
        display: flex; /* Keep text visible on mobile */
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-icon img {
        width: 20px;
        height: 20px;
    }
    
    .logo-name {
        font-size: 1rem; /* Smaller text on mobile */
    }
    
    .logo-subtitle {
        font-size: 0.65rem; /* Smaller subtitle on mobile */
    }
    
    .nav {
        position: relative;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-list {
        position: absolute;
        top: calc(100% + 1rem);
        right: 0;
        background: rgba(11, 13, 16, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        min-width: 200px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        display: block;
        text-align: left;
        border-radius: 0;
        margin: 0 0.5rem;
        border-radius: 8px;
    }
    
    .nav-link:hover {
        background: rgba(78, 161, 243, 0.1);
    }
    
    main {
        margin-top: 70px; /* Smaller margin for mobile */
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
        border-radius: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    
    .filters-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .toc {
        position: static;
        order: -1;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .admin-nav-list {
        flex-direction: column;
    }
    
    .admin-nav-btn {
        text-align: left;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }
    
    .post-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .post-item-actions {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .import-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
        border-radius: 12px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-link {
        text-align: center;
        padding: 0.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .table-wrapper {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .admin-notice,
    .filters,
    .share-buttons,
    .post-navigation {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .post-content {
        font-size: 12pt;
        line-height: 1.4;
    }
}
