/* Breadcrumbs */
.breadcrumbs {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* Blog Post Styles */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 30px;
    color: white;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.author-role {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Article Content Layout */
.article-content {
    padding: 1.5rem 0;
}

.article-content .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
}

.article-body {
    max-width: 750px;
}

/* Article Typography */
.article-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: white;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: white;
}

.article-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

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

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

/* Article Images */
.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-style: italic;
}

/* Table of Contents */
.article-toc {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.article-toc h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.article-toc ol {
    counter-reset: toc-counter;
    list-style: none;
    padding: 0;
}

.article-toc li {
    counter-increment: toc-counter;
    margin-bottom: 0.75rem;
}

.article-toc li::before {
    content: counter(toc-counter) ". ";
    font-weight: 600;
    color: #9fa8ff;
}

.article-toc a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-toc a:hover {
    color: #9fa8ff;
}

/* Tip Box */
.tip-box {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.tip-box strong {
    color: #9fa8ff;
}

/* Comparison Table */
.comparison-table {
    margin: 2rem 0;
}

.comparison-table h3 {
    margin-bottom: 1rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: #667eea;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Code Blocks */
pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.article-cta p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

/* Ensure proper contrast when background is overridden to white */
.cta-button[style*="background: white"],
.cta-button[style*="background:white"] {
    color: #667eea !important;
    border-color: #667eea !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #764ba2;
    color: white;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin: 3rem 0;
}

.bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bio-content h3 {
    margin-bottom: 1rem;
    color: white;
}

.bio-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.bio-links a {
    color: #9fa8ff;
    text-decoration: none;
    font-weight: 500;
}

/* Related Articles */
.related-articles {
    margin: 4rem 0;
}

.related-articles h2 {
    margin-bottom: 2rem;
    color: white;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h3 {
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.4;
    color: white;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-toc {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-toc h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.toc-link:hover,
.toc-link.active {
    color: #9fa8ff;
    border-left-color: #9fa8ff;
    padding-left: 1rem;
}

.sidebar-newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar-newsletter h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.sidebar-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-form input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

.sidebar-form button {
    padding: 0.5rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-popular {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.sidebar-popular h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.popular-list {
    list-style: none;
    padding: 0;
}

.popular-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.popular-list a:hover {
    color: #9fa8ff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-content .container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .bio-avatar {
        margin: 0 auto;
    }
    
    .breadcrumbs {
        padding: 0.75rem 1rem;
    }
    
    .breadcrumb-item {
        font-size: 0.75rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.25rem;
    }
}