/* Grokipedia Article Specific Styles */

/* Hero Section */
.grokipedia-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.grokipedia-hero .article-category {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

.grokipedia-hero .tag {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Definition Card */
.definition-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #3b82f6;
}

.definition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.definition-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
}

.definition-launch {
    background: #3b82f6;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stat-card {
    background: #f0f9ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1d4ed8;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.key-points {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.key-points h4 {
    margin-top: 0;
    color: #1e293b;
    margin-bottom: 15px;
}

.key-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-points li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
}

.key-points li:last-child {
    border-bottom: none;
}

.key-points li strong {
    color: #1e293b;
    min-width: 140px;
    display: inline-block;
}

.musk-quote {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.musk-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.musk-quote footer {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Comparison Table */
.comparison-section {
    margin: 30px 0;
}

.comparison-intro {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #3b82f6;
}

.comparison-table-container {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th {
    background: #3b82f6;
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.comparison-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    vertical-align: top;
}

.comparison-table tr:nth-child(even) {
    background: #f8fafc;
}

.comparison-table tr:hover {
    background: #f1f5f9;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #1e293b;
    width: 180px;
}

.comparison-analysis {
    margin-top: 40px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.analysis-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid;
}

.wikipedia-analysis {
    border-top-color: #6366f1;
}

.grokipedia-analysis {
    border-top-color: #3b82f6;
}

.analysis-card h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.2rem;
}

.analysis-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-card li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
}

.analysis-card li:last-child {
    border-bottom: none;
}

.analysis-card li strong {
    color: #1e293b;
    display: block;
    margin-bottom: 5px;
}

/* Creation Process */
.creation-process {
    margin: 30px 0;
}

.process-intro {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3b82f6;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
}

.process-step {
    display: flex;
    gap: 25px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border-left: 4px solid #3b82f6;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1.3rem;
}

.step-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

.step-details {
    background: #f0f9ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.step-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1.1rem;
}

.step-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e0f2fe;
    color: #475569;
}

.step-details li:last-child {
    border-bottom: none;
}

.ai-architecture {
    margin: 50px 0 30px 0;
}

.ai-architecture h3 {
    color: #1e293b;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3b82f6;
    position: relative;
}

.arch-layer::before {
    content: '';
    position: absolute;
    left: 48px;
    top: -20px;
    width: 2px;
    height: 20px;
    background: #cbd5e1;
}

.arch-layer:first-child::before {
    display: none;
}

.arch-icon {
    width: 60px;
    height: 60px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.arch-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 1.2rem;
}

.arch-content p {
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Contribution Model */
.contribution-model {
    margin: 30px 0;
}

.model-intro {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3b82f6;
}

.contribution-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contribution-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid;
}

.contribution-card:first-child {
    border-top-color: #6366f1;
}

.contribution-card:last-child {
    border-top-color: #3b82f6;
}

.contribution-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.contribution-header i {
    font-size: 2rem;
    color: #3b82f6;
}

.contribution-card:first-child .contribution-header i {
    color: #6366f1;
}

.contribution-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.3rem;
    flex: 1;
}

.contribution-example {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.contribution-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contribution-content li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
}

.contribution-content li:last-child {
    border-bottom: none;
}

.contribution-content li strong {
    color: #1e293b;
    display: block;
    margin-bottom: 5px;
}

.contribution-flow {
    margin: 50px 0 30px 0;
}

.contribution-flow h3 {
    color: #1e293b;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.flow-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.flow-step {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #3b82f6;
    position: relative;
}

.flow-step::before {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 1.5rem;
    font-weight: bold;
}

.flow-step:last-child::before {
    display: none;
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: #f0f9ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
}

.flow-step h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.flow-step p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.contribution-implications {
    margin-top: 50px;
}

.contribution-implications h3 {
    color: #1e293b;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.implications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.implication-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid;
}

.implication-card.positive {
    border-top-color: #10b981;
}

.implication-card.challenge {
    border-top-color: #ef4444;
}

.implication-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.2rem;
}

.implication-card.positive h4 i {
    color: #10b981;
}

.implication-card.challenge h4 i {
    color: #ef4444;
}

.implication-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.implication-card li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.implication-card li:last-child {
    border-bottom: none;
}

.implication-card li strong {
    color: #1e293b;
    display: block;
    margin-bottom: 5px;
}

/* Relevance Section */
.relevance-analysis {
    margin: 30px 0;
}

.relevance-intro {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3b82f6;
}

.relevance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.relevance-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3b82f6;
}

.relevance-icon {
    width: 60px;
    height: 60px;
    background: #f0f9ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.relevance-card h3 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 1.2rem;
}

.relevance-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

.relevance-example {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    font-size: 0.9rem;
    color: #475569;
}

.relevance-example strong {
    color: #1e293b;
}

.industry-implications {
    margin-top: 50px;
}

.industry-implications h3 {
    color: #1e293b;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.implications-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.implication-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3b82f6;
}

.implication-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1.1rem;
}

.implication-item h4 i {
    color: #3b82f6;
}

.implication-item p {
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* Future Section */
.future-section {
    margin: 30px 0;
}

.future-roadmap {
    margin-bottom: 50px;
}

.future-roadmap h3 {
    color: #1e293b;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3b82f6;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    position: absolute;
    left: -30px;
    top: 0;
    background: #3b82f6;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: center;
}

.timeline-item.future-item .timeline-date {
    background: #8b5cf6;
}

.timeline-content {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-left: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.timeline-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.broader-implications {
    margin: 50px 0;
}

.broader-implications h3 {
    color: #1e293b;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.implication-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.scenario-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.scenario-header {
    padding: 20px 25px;
    color: white;
}

.scenario-header.optimistic {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.scenario-header.challenging {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.scenario-header.transformative {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.scenario-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.scenario-content {
    padding: 25px;
}

.scenario-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

.scenario-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scenario-content li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.scenario-content li:last-child {
    border-bottom: none;
}

.call-to-action {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    border: 1px solid #bfdbfe;
}

.call-to-action h3 {
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.cta-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.action-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.action-step {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #3b82f6;
}

.action-step h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1.1rem;
}

.action-step h4 i {
    color: #3b82f6;
}

.action-step p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.action-step a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.action-step a:hover {
    text-decoration: underline;
}

.final-thought {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #cbd5e1;
}

.final-thought blockquote {
    background: white;
    border-left: 4px solid #3b82f6;
    padding: 25px;
    margin: 0;
    border-radius: 0 8px 8px 0;
}

.final-thought blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.final-thought blockquote footer {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Sidebar Styles */
.author-avatar {
    width: 80px;
    height: 80px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
}

.author-info h4 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 10px;
}

.author-info p {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.fact-label {
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
}

.fact-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .flow-diagram {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flow-step:nth-child(2)::before {
        display: none;
    }
    
    .flow-step::before {
        display: none;
    }
}

@media (max-width: 992px) {
    .analysis-grid,
    .contribution-comparison,
    .implications-grid,
    .relevance-grid,
    .implication-scenarios {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .definition-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flow-diagram {
        grid-template-columns: 1fr;
    }
    
    .action-steps {
        grid-template-columns: 1fr;
    }
    
    .arch-layer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .arch-layer::before {
        left: 50%;
        top: -20px;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
    }
    
    .timeline-content {
        margin-left: 30px;
    }
    
    .timeline-date {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .call-to-action {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .comparison-table td:first-child {
        width: 120px;
    }
    
    .key-points li {
        flex-direction: column;
        gap: 5px;
    }
    
    .key-points li strong {
        min-width: auto;
    }
    
    .contribution-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contribution-example {
        align-self: flex-start;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .sidebar,
    .share-buttons,
    .mobile-menu-btn,
    .back-to-top {
        display: none !important;
    }
    
    .article-content {
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .content-wrapper {
        display: block;
    }
    
    .article-hero {
        padding: 20px 0;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-image {
        display: none;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .article-card,
    .more-articles {
        page-break-inside: avoid;
    }
}