/* SSG-specific styles */
.ssg-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.header-stats span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* SSG Introduction Styles */
.ssg-intro {
    margin-top: 30px;
}

.definition-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.definition-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #f59e0b;
}

.definition-card h3 {
    color: var(--accent-warning);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.definition-card p {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.build-process {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #6366f1;
}

.build-process h3 {
    color: var(--accent-primary);
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
}

.build-steps {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.build-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    flex: 1;
}

.step-number {
    background: #f59e0b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-align: center;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
}

.build-arrow {
    font-size: 1.5rem;
    color: var(--accent-warning);
    font-weight: bold;
}

.ssg-advantages {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #fbbf24;
    margin-bottom: 40px;
}

.ssg-advantages h3 {
    color: var(--accent-warning);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

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

.advantage-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #fbbf24;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.advantage-item h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.advantage-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.advantage-metric {
    background: var(--bg-accent);
    color: var(--accent-warning);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.jamstack-explanation {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #22c55e;
}

.jamstack-explanation h3 {
    color: var(--accent-success);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.jamstack-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.jam-component {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
}

.jam-letter {
    background: #22c55e;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.jam-details h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.jam-details p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.jam-examples {
    background: var(--bg-accent);
    color: var(--accent-success);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.jam-plus {
    font-size: 2rem;
    color: var(--accent-success);
    font-weight: bold;
}

/* Performance Showdown Styles */
.performance-showdown {
    margin-top: 30px;
}

.performance-comparison {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #6366f1;
    margin-bottom: 40px;
}

.performance-comparison h3 {
    color: var(--accent-primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.speed-test-container {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.speed-test-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.speed-test-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.speed-test-btn:hover {
    background: #4f46e5;
}

.reset-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #4b5563;
}

.race-track {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.race-lane {
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.lane-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.lane-icon {
    font-size: 1.2rem;
}

.ssg-lane .lane-name {
    color: var(--accent-warning);
}

.ssr-lane .lane-name {
    color: var(--accent-success);
}

.csr-lane .lane-name {
    color: var(--accent-primary);
}

.race-progress {
    background: #e5e7eb;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.ssg-bar {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.ssr-bar {
    background: linear-gradient(90deg, #10b981, #059669);
}

.csr-bar {
    background: linear-gradient(90deg, #3b82f6, #1e40af);
}

.lane-time {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.race-results {
    background: var(--bg-accent);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0ea5e9;
}

.race-results h4 {
    color: var(--accent-info);
    margin-bottom: 15px;
}

.results-list {
    color: var(--text-primary);
    line-height: 1.6;
}

.detailed-metrics {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #8b5cf6;
    margin-bottom: 40px;
}

.detailed-metrics h3 {
    color: #6b21a8;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.metrics-table {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.metrics-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: #374151;
    color: white;
}

.metrics-header span {
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

.metrics-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #e5e7eb;
}

.metrics-row:last-child {
    border-bottom: none;
}

.metrics-row span {
    padding: 12px 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metrics-row span:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.metric-excellent {
    background: #dcfce7;
    color: var(--accent-success);
    font-weight: 600;
}

.metric-good {
    background: var(--bg-accent);
    color: var(--accent-warning);
    font-weight: 600;
}

.metric-fair {
    background: #fed7d7;
    color: #b91c1c;
    font-weight: 600;
}

.metric-poor {
    background: #fee2e2;
    color: #dc2626;
    font-weight: 600;
}

.cost-comparison {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #22c55e;
}

.cost-comparison h3 {
    color: var(--accent-success);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.cost-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.cost-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.ssg-cost {
    border-top: 4px solid #22c55e;
}

.ssr-cost {
    border-top: 4px solid #ef4444;
}

.csr-cost {
    border-top: 4px solid #3b82f6;
}

.cost-card h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.cost-amount {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.ssg-cost .cost-amount {
    color: var(--accent-success);
}

.ssr-cost .cost-amount {
    color: #ef4444;
}

.csr-cost .cost-amount {
    color: #3b82f6;
}

.cost-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.cost-details li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cost-scale {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Build Process Styles */
.build-process-content {
    margin-top: 30px;
}

.build-overview {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #8b5cf6;
    margin-bottom: 40px;
}

.build-overview h3 {
    color: #6b21a8;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.pipeline-visual {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.pipeline-stage {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
}

.stage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.pipeline-stage h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.stage-details {
    margin-top: 15px;
}

.source-types,
.build-tasks,
.output-files,
.cdn-benefits {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.source-type,
.build-task,
.output-file,
.cdn-benefit {
    background: #f3f4f6;
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pipeline-arrow {
    font-size: 2rem;
    color: #8b5cf6;
    font-weight: bold;
}

.build-demo {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #0ea5e9;
}

.build-demo h3 {
    color: var(--accent-info);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.build-simulator {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.build-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.build-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.build-btn:hover {
    background: #0284c7;
}

.build-console {
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.console-header {
    background: #374151;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.console-status {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.console-status.building {
    background: #f59e0b;
}

.console-status.error {
    background: #ef4444;
}

.console-output {
    padding: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
}

.console-line {
    margin: 2px 0;
}

.console-line.success {
    color: var(--accent-success);
}

.console-line.error {
    color: #ef4444;
}

.console-line.info {
    color: #0ea5e9;
}

.build-output {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.build-output h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.file-tree {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.tree-item {
    padding: 2px 0;
    color: var(--text-secondary);
}

.tree-item.indent {
    padding-left: 20px;
}

.tree-item.new {
    color: var(--accent-success);
    font-weight: 500;
}

.build-stats {
    background: var(--bg-accent);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0ea5e9;
}

.build-stats h4 {
    color: var(--accent-info);
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

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

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Next.js SSG Styles */
.nextjs-ssg-content {
    margin-top: 30px;
}

.ssg-methods {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #6366f1;
    margin-bottom: 40px;
}

.ssg-methods h3 {
    color: var(--accent-primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

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

.method-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #6366f1;
}

.method-card h4 {
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.method-card>p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.method-example {
    background: #1f2937;
    color: #e5e7eb;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}

.method-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.method-features span {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.isr-deep-dive {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #f59e0b;
    margin-bottom: 40px;
}

.isr-deep-dive h3 {
    color: var(--accent-warning);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.8rem;
}

.isr-explanation {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.isr-explanation p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.1rem;
}

.isr-flow-demo {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.isr-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.isr-event {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.event-time {
    background: #f59e0b;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.event-description h5 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.event-description p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.event-status {
    background: var(--bg-accent);
    color: var(--accent-warning);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.isr-interactive-demo {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

.isr-interactive-demo h4 {
    color: var(--accent-warning);
    margin-bottom: 15px;
}

.isr-demo-container {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.isr-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.isr-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.isr-btn:hover {
    background: #d97706;
}

.revalidate-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.revalidate-setting input {
    width: 60px;
    padding: 5px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    text-align: center;
}

.isr-status-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.page-status,
.request-simulation {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.page-status h5,
.request-simulation h5 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.status-indicator {
    background: #22c55e;
    color: white;
    padding: 5px 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 8px;
}

.status-indicator.stale {
    background: #f59e0b;
}

.status-indicator.regenerating {
    background: #3b82f6;
}

.last-generated,
.request-count,
.regeneration-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Frameworks Content Styles */
.frameworks-content {
    margin-top: 30px;
}

.frameworks-comparison {
    margin-bottom: 40px;
}

.frameworks-comparison h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.framework-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.nextjs {
    border-top: 4px solid #000000;
}

.gatsby {
    border-top: 4px solid #663399;
}

.nuxt {
    border-top: 4px solid #00dc82;
}

.eleventy {
    border-top: 4px solid #000000;
}

.framework-logo {
    font-size: 3rem;
    margin-bottom: 15px;
}

.framework-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.framework-description p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.framework-features {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.framework-features span {
    background: var(--bg-accent);
    color: var(--accent-success);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.framework-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.framework-stats .stat {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.framework-selector {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #0ea5e9;
}

.framework-selector h3 {
    color: var(--accent-info);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.selector-container {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.selection-criteria {
    margin-bottom: 25px;
}

.selection-criteria h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.criteria-options,
.type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.criteria-option,
.type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.criteria-option:hover,
.type-option:hover {
    background: var(--bg-secondary);
}

.criteria-option input,
.type-option input {
    accent-color: #0ea5e9;
}

.recommendation-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
}

.recommendation-btn:hover {
    background: #0284c7;
}

.recommendation-result {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0ea5e9;
}

.recommendation-result h4 {
    color: var(--accent-info);
    margin-bottom: 15px;
}

.recommendation-content {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Limitations Styles */
.limitations-content {
    margin-top: 30px;
}

.limitations-overview {
    background: #fff5f5;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #ef4444;
    margin-bottom: 40px;
}

.limitations-overview h3 {
    color: #dc2626;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.limitation-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #ef4444;
}

.limitation-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.limitation-item h4 {
    color: #dc2626;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.limitation-details p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.limitation-details strong {
    color: var(--text-primary);
}

.limitation-example {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.example-scenario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    font-size: 0.9rem;
}

.scenario-label {
    color: var(--text-primary);
    font-weight: 500;
}

.scenario-time {
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

.example-result {
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: #fee2e2;
    border-radius: 6px;
}

.result-text {
    color: #dc2626;
    font-weight: 500;
    font-size: 0.9rem;
}

.build-time-chart {
    margin-top: 15px;
}

.build-time-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.build-time-item span:first-child {
    width: 100px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.time-bar {
    height: 20px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 50px;
}

.dynamic-content-example {
    margin-top: 15px;
}

.content-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px;
    border-radius: 6px;
}

.content-type.static {
    background: #dcfce7;
    border-left: 4px solid #22c55e;
}

.content-type.dynamic {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
}

.content-label {
    font-weight: 600;
    color: var(--text-primary);
}

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

.resource-usage {
    margin-top: 15px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.resource-type {
    font-weight: 500;
    color: var(--text-primary);
}

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

/* Modern Solutions Styles */
.modern-solutions {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #22c55e;
    margin-bottom: 40px;
}

.modern-solutions h3 {
    color: var(--accent-success);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.solution-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #22c55e;
}

.solution-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.solution-card h4 {
    color: var(--accent-success);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.solution-description p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.solution-code {
    background: #1f2937;
    color: #e5e7eb;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}

.solution-benefits {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.solution-benefits span {
    background: #dcfce7;
    color: var(--accent-success);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* CMS Integration Styles */
.cms-integration {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #8b5cf6;
}

.cms-integration h3 {
    color: #6b21a8;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.cms-workflow {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.cms-step {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
}

.cms-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cms-step h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cms-step p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.cms-examples {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.cms-examples span {
    background: #ede9fe;
    color: #6b21a8;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.webhook-code {
    background: #1f2937;
    color: #e5e7eb;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    line-height: 1.3;
}

.build-pipeline {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.build-pipeline span {
    background: var(--bg-accent);
    color: var(--accent-info);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cms-arrow {
    font-size: 2rem;
    color: #8b5cf6;
    font-weight: bold;
}

.cms-demo {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cms-demo h4 {
    color: #6b21a8;
    margin-bottom: 20px;
}

.cms-demo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cms-interface,
.build-trigger,
.generated-site {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
}

.cms-interface h5,
.build-trigger h5,
.generated-site h5 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.cms-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cms-form input,
.cms-form textarea {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.cms-form textarea {
    min-height: 80px;
    resize: vertical;
}

.publish-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.publish-btn:hover {
    background: #7c3aed;
}

.build-status {
    text-align: center;
}

.status-indicator {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-indicator.ready {
    background: #dcfce7;
    color: var(--accent-success);
}

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

.site-preview {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.preview-page h6 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.preview-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-post {
    background: var(--bg-secondary);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #8b5cf6;
}

.preview-post h7 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.preview-post p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

/* Best Practices Styles */
.best-practices-content {
    margin-top: 30px;
}

.practices-overview {
    margin-bottom: 40px;
}

.practices-overview h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

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

.practice-category {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #f59e0b;
}

.practice-category h4 {
    color: var(--accent-warning);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.practice-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.practice-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.practice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.practice-content h5 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.practice-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.practice-code {
    background: #1f2937;
    color: #e5e7eb;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    line-height: 1.3;
    overflow-x: auto;
}

.revalidation-examples {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.revalidation-example {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.content-type {
    font-weight: 500;
    color: var(--text-primary);
}

.revalidate-time {
    color: var(--accent-warning);
    font-weight: 600;
}

.bundle-optimization-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.optimization-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.stat-bad {
    color: #dc2626;
    font-weight: 600;
}

.stat-good {
    color: var(--accent-success);
    font-weight: 600;
}

.stat-excellent {
    color: var(--accent-success);
    font-weight: 600;
}

.meta-example {
    background: var(--bg-secondary);
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.meta-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
    margin: 2px 0;
}

/* Optimization Checklist */
.optimization-checklist {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #0ea5e9;
}

.optimization-checklist h3 {
    color: var(--accent-info);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.checklist-category {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.checklist-category h4 {
    color: var(--accent-info);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
    color: var(--text-primary);
}

.checklist-item:hover {
    background: var(--bg-secondary);
}

.checklist-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
}

/* Use Case Matrix */
.use-case-matrix {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #6366f1;
    margin-bottom: 40px;
}

.use-case-matrix h3 {
    color: var(--accent-primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.matrix-container {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.matrix-axis {
    position: relative;
}

.axis-label {
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 10px 0;
}

.y-axis {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.x-axis {
    margin-top: 20px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.matrix-cell {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.matrix-cell.perfect {
    background: #dcfce7;
    border: 2px solid #22c55e;
}

.matrix-cell.good {
    background: var(--bg-accent);
    border: 2px solid #f59e0b;
}

.matrix-cell.avoid {
    background: #fee2e2;
    border: 2px solid #ef4444;
}

.matrix-cell h5 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.matrix-cell p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Deployment Strategies */
.deployment-strategies {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #0ea5e9;
    margin-bottom: 40px;
}

.deployment-strategies h3 {
    color: var(--accent-info);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.deployment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.deployment-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 3px solid #0ea5e9;
}

.deployment-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.deployment-card h4 {
    color: var(--accent-info);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.deployment-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.deployment-features li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.deployment-pricing {
    background: var(--bg-accent);
    color: var(--accent-info);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Summary Styles */
.summary-content {
    margin-top: 30px;
}

.ssg-summary {
    margin-bottom: 40px;
}

.ssg-summary h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.takeaways-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.takeaway-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.takeaway-item.pros {
    border-top: 4px solid #22c55e;
}

.takeaway-item.cons {
    border-top: 4px solid #ef4444;
}

.takeaway-item h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.pros h4 {
    color: var(--accent-success);
}

.cons h4 {
    color: #dc2626;
}

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

.takeaway-item li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-primary);
    line-height: 1.5;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-success);
    font-weight: bold;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

.next-steps {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.next-steps h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.next-steps p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.next-topic-btn {
    background: var(--bg-card);
    color: #667eea;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.next-topic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {

    .definition-section,
    .takeaways-grid,
    .trade-off-comparison,
    .matrix-grid {
        grid-template-columns: 1fr;
    }

    .build-steps,
    .jamstack-breakdown,
    .pipeline-visual,
    .cms-workflow {
        flex-direction: column;
    }

    .build-arrow,
    .jam-plus,
    .pipeline-arrow,
    .cms-arrow {
        transform: rotate(90deg);
    }

    .race-lane {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    .speed-test-controls,
    .build-controls,
    .isr-controls {
        flex-direction: column;
        align-items: center;
    }

    .speed-test-controls button,
    .build-controls button,
    .isr-controls button {
        width: 100%;
        max-width: 200px;
    }

    .metrics-table {
        font-size: 0.8rem;
    }

    .metrics-header,
    .metrics-row {
        grid-template-columns: 1fr;
    }

    .method-example,
    .solution-code,
    .practice-code {
        font-size: 0.7rem;
    }

    .cms-demo-container {
        grid-template-columns: 1fr;
    }
}