/* Blog Styles */
.blog-page {
    background: #f8f9fa;
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 6rem 0 3rem;
    margin-bottom: 3rem;
}

.blog-header .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.blog-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
}

/* Main Content */
.main-content .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Blog Article */
.blog-article {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.blog-section {
    margin-bottom: 3rem;
}

.blog-section:last-child {
    margin-bottom: 0;
}

.blog-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-section h2 i {
    color: #3b82f6;
}

.blog-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem;
}

.blog-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    margin: 1.5rem 0 0.75rem;
}

.blog-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.6;
}

/* Threat Grid */
.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.threat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.threat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.threat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.threat-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.threat-card p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

/* Code Example */
.code-example {
    background: #1f2937;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.code-example h4 {
    color: #f3f4f6;
    margin-bottom: 1rem;
}

.code-example pre {
    margin: 0;
    overflow-x: auto;
}

.code-example code {
    color: #e5e7eb;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tip-box h4 {
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tip-box p {
    color: #1e3a8a;
    margin: 0;
}

/* Reference Box */
.reference-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

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

.reference-header h3 {
    color: #92400e;
    margin: 0;
}

.source {
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.reference-content {
    margin-bottom: 1.5rem;
}

.reference-content p {
    color: #78350f;
    margin-bottom: 1rem;
}

.reference-content ul {
    color: #78350f;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.reference-content li {
    margin-bottom: 0.5rem;
}

.reference-content em {
    font-style: italic;
    opacity: 0.8;
}

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

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.tool-card h4 {
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-card h4 i {
    color: #3b82f6;
}

.tool-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #4b5563;
}

.tool-card li:last-child {
    border-bottom: none;
}

.tool-card strong {
    color: #1f2937;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    color: #dbeafe;
    margin-bottom: 1.5rem;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

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

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.related-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 0.5rem;
}

.related-posts a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    font-size: 0.8rem;
}

.related-posts a:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.related-posts i {
    color: var(--primary-color);
    font-size: 0.9rem;
    min-width: 14px;
}

.article-info {
    flex-grow: 1;
    min-width: 0;
}

.article-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.2;
    font-size: 0.75rem;
}

.article-date {
    display: block;
    color: var(--text-secondary);
    font-size: 0.65rem;
}

.no-related-articles {
    text-align: center;
    padding: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.no-related-articles i {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.no-related-articles p {
    margin: 0;
    font-size: 0.8rem;
}

/* Responsive adjustments for related articles */
@media (max-width: 768px) {
    .related-posts a {
        padding: 0.4rem;
        gap: 0.4rem;
        font-size: 0.75rem;
    }
    
    .related-posts i {
        font-size: 0.8rem;
        min-width: 12px;
    }
    
    .article-title {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    .article-date {
        font-size: 0.6rem;
    }
    
    .no-related-articles {
        padding: 0.5rem;
    }
    
    .no-related-articles i {
        font-size: 1rem;
    }
    
    .no-related-articles p {
        font-size: 0.75rem;
    }
}

/* Resources List Styles */
.resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resources-list li {
    margin-bottom: 0.5rem;
}

.resources-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-size: 0.8rem;
}

.resources-list a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(3px);
}

.resources-list i {
    color: var(--primary-color);
    font-size: 0.9rem;
    min-width: 14px;
}

/* Responsive adjustments for related articles and resources */
@media (max-width: 768px) {
    .related-posts a {
        padding: 0.4rem;
        gap: 0.4rem;
        font-size: 0.75rem;
    }
    
    .related-posts i {
        font-size: 0.8rem;
        min-width: 12px;
    }
    
    .article-title {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    .article-date {
        font-size: 0.6rem;
    }
    
    .resources-list a {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    .resources-list i {
        font-size: 0.8rem;
        min-width: 12px;
    }
    
    .no-related-articles {
        padding: 0.5rem;
    }
    
    .no-related-articles i {
        font-size: 1rem;
    }
    
    .no-related-articles p {
        font-size: 0.75rem;
    }
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.metric-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.metric-card p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0.5rem 0;
}

.metric-card p strong {
    color: #059669;
}

/* Strategy List */
.strategy-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.strategy-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.strategy-item h4 {
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.strategy-item h4 i {
    color: #3b82f6;
}

.strategy-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strategy-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #4b5563;
}

.strategy-item li:last-child {
    border-bottom: none;
}

/* Mobile Checklist */
.mobile-checklist {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.mobile-checklist h3 {
    color: #0c4a6e;
    margin-bottom: 1rem;
}

.mobile-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #0c4a6e;
}

.mobile-checklist li i {
    color: #10b981;
    font-size: 1.1rem;
}

/* Trends Grid */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.trend-card {
    background: #fef7ff;
    border: 1px solid #c084fc;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.trend-card h4 {
    color: #581c87;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trend-card h4 i {
    color: #a855f7;
}

.trend-card p {
    color: #6b21a8;
    margin: 0;
    line-height: 1.6;
}

/* Related Articles Dynamic Styles */
.loading-articles {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    justify-content: center;
}

.loading-articles i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.no-related-articles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
}

.no-related-articles i {
    color: #9ca3af;
    font-size: 1.5rem;
}

.no-related-articles p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .related-posts a {
        padding: 0.5rem;
    }
    
    .article-title {
        font-size: 0.85rem;
    }
    
    .article-date {
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 3rem 0 2rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-excerpt {
        font-size: 1.1rem;
    }
    
    .blog-meta {
        gap: 1rem;
    }
    
    .blog-article {
        padding: 2rem;
    }
    
    .threat-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .reference-actions {
        flex-direction: column;
    }
    
    .blog-tags {
        justify-content: center;
    }

    /* Responsive Design for New Elements */
    .metrics-grid,
    .strategy-list,
    .trends-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-card,
    .strategy-item,
    .trend-card {
        padding: 1rem;
    }
    
    .mobile-checklist {
        padding: 1rem;
    }
    
    .mobile-checklist li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-header .container,
    .main-content .container {
        padding: 0 1rem;
    }
    
    .blog-article {
        padding: 1.5rem;
    }
    
    .blog-section h2 {
        font-size: 1.5rem;
    }
    
    .blog-section h3 {
        font-size: 1.2rem;
    }
} 

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.principle-card {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.principle-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.principle-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.75rem;
}

.principle-card p {
    font-size: 0.95rem;
    color: #0c4a6e;
    margin: 0;
    line-height: 1.5;
}

/* Microinteractions Examples */
.microinteractions-examples {
    margin: 2rem 0;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.example-card {
    background: #fef7ff;
    border: 1px solid #c084fc;
    border-radius: 8px;
    padding: 1.5rem;
}

.example-card h4 {
    color: #581c87;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.example-card h4 i {
    color: #a855f7;
}

.example-card p {
    color: #6b21a8;
    margin-bottom: 1rem;
}

.example-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.example-card li {
    padding: 0.25rem 0;
    color: #6b21a8;
    font-size: 0.9rem;
}

.example-card h5 {
    color: #581c87;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Accessibility Checklist */
.accessibility-checklist {
    margin: 2rem 0;
}

.checklist-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.checklist-category {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 1.5rem;
}

.checklist-category h4 {
    color: #166534;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checklist-category h4 i {
    color: #22c55e;
}

.checklist-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-category li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #166534;
    font-size: 0.9rem;
}

.checklist-category li i {
    color: #22c55e;
    font-size: 0.8rem;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .principles-grid,
    .example-grid,
    .checklist-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .principle-card,
    .example-card,
    .checklist-category {
        padding: 1rem;
    }
    
    .principle-card h3,
    .example-card h4,
    .checklist-category h4 {
        font-size: 1rem;
    }
    
    .principle-card p,
    .example-card li,
    .checklist-category li {
        font-size: 0.85rem;
    }
} 

/* Engines Grid */
.engines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.engine-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.engine-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.engine-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.engine-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 1rem;
}

.engine-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.engine-card p {
    color: #4b5563;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.engine-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pros, .cons {
    padding: 1rem;
    border-radius: 8px;
}

.pros {
    background: #f0fdf4;
    border: 1px solid #22c55e;
}

.cons {
    background: #fef2f2;
    border: 1px solid #ef4444;
}

.pros h4 {
    color: #166534;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.cons h4 {
    color: #991b1b;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li, .cons li {
    font-size: 0.8rem;
    padding: 0.25rem 0;
    line-height: 1.4;
}

.pros li {
    color: #166534;
}

.cons li {
    color: #991b1b;
}

/* Development Phases */
.development-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.phase-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.phase-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.phase-card h3 {
    color: #1f2937;
    margin: 1rem 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.phase-card p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.phase-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-card li {
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
}

.phase-card li:last-child {
    border-bottom: none;
}

/* Programming Concepts */
.programming-concepts {
    margin: 2rem 0;
}

.programming-concepts h3 {
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.programming-concepts p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.programming-concepts ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.programming-concepts li {
    padding: 0.5rem 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.programming-concepts li:last-child {
    border-bottom: none;
}

.programming-concepts strong {
    color: #1f2937;
}

/* Monetization Strategies */
.monetization-strategies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.strategy-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.strategy-card h4 {
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.strategy-card h4 i {
    color: #10b981;
}

.strategy-card p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.strategy-details h5 {
    color: #1f2937;
    margin: 1rem 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.strategy-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.strategy-details li {
    padding: 0.25rem 0;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Marketing Phases */
.marketing-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.marketing-phase {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.marketing-phase h4 {
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.marketing-phase h4 i {
    color: #3b82f6;
}

.marketing-phase ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.marketing-phase li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.marketing-phase li i {
    color: #10b981;
    font-size: 0.8rem;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .engines-grid,
    .development-phases,
    .monetization-strategies,
    .marketing-phases {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .engine-pros-cons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .engine-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .engine-card,
    .phase-card,
    .strategy-card,
    .marketing-phase {
        padding: 1rem;
    }
    
    .engine-card h3,
    .phase-card h3 {
        font-size: 1.1rem;
    }
    
    .strategy-card h4,
    .marketing-phase h4 {
        font-size: 0.95rem;
    }
} 

/* Blog Listing Page Styles */
.blog-listing-page .blog-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

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

.blog-listing-page .blog-excerpt {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

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

.filters-container {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-select, .filter-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-light);
}

#clear-filters {
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

#clear-filters:hover {
    background: var(--text-secondary);
    color: white;
}

/* Stats Section */
.stats-section {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.2rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Articles Section */
.articles-section {
    margin-bottom: 3rem;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.articles-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.articles-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.article-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.article-category {
    background: var(--primary-color-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.article-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.article-read-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

.article-tags .tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
}

.tag-more {
    background: var(--primary-color-light);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.article-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
}

.article-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-results-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-results-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Categories Section */
.categories-section {
    margin-bottom: 3rem;
}

.categories-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.category-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.category-count {
    background: var(--primary-color-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-listing-page .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-listing-page .blog-excerpt {
        font-size: 1rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .articles-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
} 

/* Force smaller sizes for sidebar elements */
.blog-sidebar .related-posts a {
    padding: 0.5rem !important;
    font-size: 0.8rem !important;
}

.blog-sidebar .related-posts i {
    font-size: 0.9rem !important;
}

.blog-sidebar .article-title {
    font-size: 0.75rem !important;
}

.blog-sidebar .article-date {
    font-size: 0.65rem !important;
}

.blog-sidebar .resources-list a {
    padding: 0.5rem !important;
    font-size: 0.8rem !important;
}

.blog-sidebar .resources-list i {
    font-size: 0.9rem !important;
}

/* Mobile specific overrides */
@media (max-width: 768px) {
    .blog-sidebar .related-posts a {
        padding: 0.4rem !important;
        font-size: 0.75rem !important;
    }
    
    .blog-sidebar .related-posts i {
        font-size: 0.8rem !important;
    }
    
    .blog-sidebar .article-title {
        font-size: 0.7rem !important;
    }
    
    .blog-sidebar .article-date {
        font-size: 0.6rem !important;
    }
    
    .blog-sidebar .resources-list a {
        padding: 0.4rem !important;
        font-size: 0.75rem !important;
    }
    
    .blog-sidebar .resources-list i {
        font-size: 0.8rem !important;
    }
} 