/* GLYCON Blog Article CSS - Dark Theme */

/* Breadcrumb */
.g-breadcrumb {
    background: #1e293b;
    padding: 16px 0;
    border-bottom: 1px solid #334155;
}

.g-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.g-breadcrumb-list li {
    display: flex;
    align-items: center;
}

.g-breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #64748b;
}

.g-breadcrumb-list a {
    color: #94a3b8;
    text-decoration: none;
}

.g-breadcrumb-list a:hover {
    color: #818cf8;
}

.g-breadcrumb-list li:last-child {
    color: #f1f5f9;
}

/* Article Layout */
.g-article-main {
    background: #0f172a;
    padding-bottom: 60px;
}

.g-article {
    padding: 40px 0;
}

.g-article-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

/* Article Header */
.g-article-header {
    margin-bottom: 32px;
}

.g-article-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 16px;
}

.g-article-category:hover {
    background: #6366f1;
    color: white;
}

.g-article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.g-article-excerpt {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.g-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748b;
    font-size: 0.875rem;
}

.g-article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Featured Image */
.g-article-featured-image {
    margin: 0 0 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #334155;
}

.g-article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Table of Contents */
.g-article-toc {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.g-article-toc-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
}

.g-article-toc-list {
    margin: 0;
    padding-left: 20px;
}

.g-article-toc-item {
    margin-bottom: 8px;
}

.g-article-toc-item a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.g-article-toc-item a:hover {
    color: #818cf8;
}

.g-article-toc-item.g-level-3 {
    margin-left: 16px;
}

/* Article Body */
.g-article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.g-article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 20px;
    padding-top: 24px;
    border-top: 1px solid #334155;
    color: #f1f5f9;
}

.g-article-body h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 36px 0 16px;
    color: #f1f5f9;
}

.g-article-body h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: #f1f5f9;
}

.g-article-body p {
    margin-bottom: 20px;
}

.g-article-body a {
    color: #818cf8;
    text-decoration: underline;
}

.g-article-body a:hover {
    color: #f59e0b;
}

.g-article-body ul,
.g-article-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.g-article-body li {
    margin-bottom: 10px;
}

.g-article-body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: #1e293b;
    border-left: 4px solid #6366f1;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #94a3b8;
}

.g-article-body pre {
    margin: 24px 0;
    padding: 20px;
    background: #1e293b;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.875rem;
    border: 1px solid #334155;
}

.g-article-body code {
    background: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #f59e0b;
}

.g-article-body pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
}

.g-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid #334155;
}

.g-article-body table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
}

.g-article-body th,
.g-article-body td {
    padding: 12px 16px;
    border: 1px solid #334155;
    text-align: left;
}

.g-article-body th {
    background: #1e293b;
    font-weight: 600;
    color: #f1f5f9;
}

.g-article-body td {
    background: #0f172a;
}

/* Related Products */
.g-article-products {
    margin: 48px 0;
    padding: 32px;
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid #334155;
}

.g-article-products-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f1f5f9;
}

.g-article-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.g-article-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #0f172a;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
    border: 1px solid #334155;
}

.g-article-product-card:hover {
    transform: translateY(-2px);
    border-color: #6366f1;
}

.g-article-product-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

.g-article-product-info {
    flex: 1;
}

.g-article-product-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.g-article-product-info p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

/* Sources */
.g-article-sources {
    margin: 32px 0;
    padding: 24px;
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid #334155;
}

.g-article-sources h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
}

.g-article-sources ul {
    margin: 0;
    padding-left: 20px;
}

.g-article-sources li {
    margin-bottom: 8px;
}

.g-article-sources a {
    color: #818cf8;
    text-decoration: none;
    font-size: 0.9rem;
}

.g-article-sources a:hover {
    text-decoration: underline;
}

/* Share */
.g-article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #334155;
}

.g-article-share-label {
    font-weight: 600;
    color: #94a3b8;
}

.g-article-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.g-article-share-btn:hover {
    transform: scale(1.1);
}

.g-article-share-btn.g-twitter { background: #1da1f2; }
.g-article-share-btn.g-linkedin { background: #0077b5; }
.g-article-share-btn.g-facebook { background: #1877f2; }
.g-article-share-btn.g-copy { background: #475569; }

/* Article Sidebar */
.g-article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.g-article-sidebar-widget {
    background: #1e293b;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #334155;
}

.g-article-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
    color: #f1f5f9;
}

.g-article-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.g-article-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0f172a;
    padding: 12px;
}

.g-article-author-name {
    font-weight: 600;
    display: block;
    color: #f1f5f9;
}

.g-article-author-desc {
    font-size: 0.8rem;
    color: #94a3b8;
}

.g-article-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.g-article-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.875rem;
    border-bottom: 1px solid #334155;
    transition: color 0.2s;
}

.g-article-sidebar-item:last-child {
    border-bottom: none;
}

.g-article-sidebar-item:hover {
    color: #818cf8;
}

.g-article-sidebar-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.g-article-sidebar-cta {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    margin-top: 24px;
}

.g-article-sidebar-cta h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: white;
}

.g-article-sidebar-cta p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 20px;
    color: #e0e7ff;
}

/* More Articles */
.g-article-more {
    padding: 60px 0;
    background: #1e293b;
}

.g-article-more-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: #f1f5f9;
}

.g-article-more .g-blog-cards {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive */
@media (max-width: 1024px) {
    .g-article-grid {
        grid-template-columns: 1fr;
    }
    
    .g-article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .g-article-sidebar-cta {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .g-article-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .g-article-excerpt {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .g-article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .g-article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .g-article-sidebar-cta {
        grid-column: span 1;
    }
    
    .g-article-more .g-blog-cards {
        grid-template-columns: 1fr;
    }
    
    .g-article-products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Article Body */
    .g-article-body {
        font-size: 1rem;
        line-height: 1.85;
    }
    
    .g-article-body h2 {
        font-size: 1.35rem;
        margin: 40px 0 16px;
        padding-top: 28px;
        padding-bottom: 12px;
        border-top: 2px solid #334155;
        border-bottom: 1px solid #1e293b;
    }
    
    .g-article-body h3 {
        font-size: 1.15rem;
        margin: 28px 0 12px;
        padding-left: 12px;
        border-left: 3px solid #6366f1;
    }
    
    .g-article-body h4 {
        font-size: 1.05rem;
        margin: 24px 0 10px;
    }
    
    .g-article-body p {
        margin-bottom: 18px;
    }
    
    .g-article-body ul,
    .g-article-body ol {
        margin: 16px 0;
        padding-left: 20px;
    }
    
    .g-article-body li {
        margin-bottom: 12px;
        line-height: 1.7;
        padding-left: 4px;
    }
    
    .g-article-body blockquote {
        margin: 24px -16px;
        padding: 16px 20px;
        border-radius: 0;
        font-size: 0.95rem;
        line-height: 1.7;
        border-left-width: 3px;
    }
    
    .g-article-body pre {
        margin: 20px -16px;
        padding: 16px;
        border-radius: 0;
        font-size: 0.8rem;
    }
    
    .g-article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -16px;
        width: calc(100% + 32px);
    }
    
    .g-article-body th,
    .g-article-body td {
        padding: 10px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .g-article-body img {
        margin: 20px -16px;
        width: calc(100% + 32px);
        max-width: calc(100% + 32px);
        border-radius: 0;
    }
    
    .g-article-body strong {
        color: #f1f5f9;
    }
    
    /* Mobile TOC */
    .g-article-toc {
        margin: 0 0 24px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .g-article-toc-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .g-article-toc-list {
        padding-left: 16px;
    }
    
    .g-article-toc-item {
        margin-bottom: 6px;
    }
    
    .g-article-toc-item a {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Mobile Header */
    .g-article-header {
        margin-bottom: 24px;
    }
    
    .g-article-category {
        font-size: 0.75rem;
        padding: 5px 14px;
        margin-bottom: 12px;
    }
    
    /* Mobile Featured Image */
    .g-article-featured-image {
        margin: 0 -16px 24px;
        border-radius: 0;
    }
    
    /* Mobile Products */
    .g-article-products {
        margin: 32px -16px;
        padding: 20px 16px;
        border-radius: 0;
    }
    
    .g-article-product-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }
    
    /* Mobile Sources */
    .g-article-sources {
        margin: 24px -16px;
        padding: 16px;
        border-radius: 0;
    }
    
    /* Mobile Share */
    .g-article-share {
        margin-top: 32px;
        padding-top: 20px;
        flex-wrap: wrap;
    }
    
    /* Mobile More Articles */
    .g-article-more {
        padding: 40px 0;
    }
    
    .g-article-more-title {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }
    
    /* Mobile Breadcrumb */
    .g-breadcrumb {
        padding: 12px 0;
    }
    
    .g-breadcrumb-list {
        font-size: 0.8rem;
    }
    
    /* Mobile Content Container */
    .g-article-content {
        padding: 0;
    }
}
