/* Z Tech POS Blog & Knowledge Hub Styles (Obsidian Gold) */

/* Base Typography for Readability */
.blog-content {
    font-family: 'Inter', 'Kanit', sans-serif;
    color: #F8F8F8;
    line-height: 1.8;
}

.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4 {
    font-family: 'Cinzel', serif;
    color: #D4AF37;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* Glassmorphism Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: #D4AF37;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-category-badge {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* NYX Branding Blocks */
.nyx-insight-block {
    background: rgba(13, 13, 13, 0.8);
    border-left: 4px solid #D4AF37;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nyx-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: #D4AF37;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nyx-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #D4AF37;
}

.nyx-alert-block {
    background: rgba(139, 0, 0, 0.1);
    border-left: 4px solid #8B0000;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
    margin: 2rem 0;
}

.nyx-alert-block .nyx-header {
    color: #ff4d4d;
}

.nyx-alert-block .nyx-avatar {
    border-color: #8B0000;
}

.nyx-hardware-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.nyx-hardware-block img {
    max-height: 150px;
    margin: 0 auto 1rem auto;
    border-radius: 8px;
}

/* Sticky Table of Contents */
.sticky-toc {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sticky-toc h3 {
    font-family: 'Cinzel', serif;
    color: #D4AF37;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sticky-toc ul {
    list-style: none;
    padding: 0;
}

.sticky-toc li {
    margin-bottom: 0.75rem;
}

.sticky-toc a {
    color: rgba(248, 248, 248, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.sticky-toc a:hover {
    color: #D4AF37;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }
    
    .nyx-insight-block, .nyx-alert-block, .nyx-hardware-block {
        padding: 1rem;
    }
    
    .sticky-toc {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        max-height: none;
    }
}
