/* Tools Page - AI Prompt Builder Styles */

/* ======================= */
/* CSS VARIABLES FOR TOOLS */
/* ======================= */
/* 
 * The tools page uses the brutalist white theme from app.css.
 * The prompt builder overlay uses a dark theme.
 * We scope dark theme variables to .prompt-builder-overlay
 */

/* Dark theme variables for prompt builder overlay */
.prompt-builder-overlay {
    --background: #0a0a0a;
    --card-background: #1a1a1a;
    --text: #FFFFFF;
    --text-secondary: #CCCCCC;
    --accent: #FFFF00;
    --accent-rgb: 255, 255, 0;
    --border-color: rgba(255, 255, 255, 0.15);
}

/* ======================= */
/* TOOLS PAGE HERO & GRID  */
/* ======================= */

/* Tools page uses the brutalist white theme from app.css */
/* Only the prompt builder overlay uses dark theme */

.tools-hero {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--light-gray, #F5F5F5);
    border-bottom: 4px solid var(--black, #000000);
}

.tools-hero h1 {
    font-size: 2.5rem;
    color: var(--black, #000000);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.tools-hero h1 span {
    color: var(--yellow, #FFFF00);
    background: var(--black, #000000);
    padding: 0 0.5rem;
}

.tools-hero .hero-subtitle {
    color: #333333;
    font-size: 1.2rem;
}

.tools-grid-section {
    padding: 3rem 2rem;
    background: var(--white, #FFFFFF);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tool cards use brutalist white/black theme */
.tool-card {
    background: var(--light-gray, #F5F5F5);
    border: 4px solid var(--black, #000000);
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card.featured {
    border-color: var(--black, #000000);
    background: var(--yellow, #FFFF00);
}

.tool-card.coming-soon {
    opacity: 0.7;
}

.tool-card:hover:not(.coming-soon) {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--black, #000000);
}

.tool-card .tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h2 {
    font-size: 1.5rem;
    color: var(--black, #000000);
    margin-bottom: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tool-card > p {
    color: #333333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: var(--black, #000000);
    padding: 0.3rem 0.8rem;
    border-radius: 0;
    font-size: 0.8rem;
    color: var(--yellow, #FFFF00);
    font-weight: 700;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--black, #000000);
    color: var(--yellow, #FFFF00);
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--black, #000000);
}

/* ======================= */
/* PROMPT BUILDER OVERLAY  */
/* ======================= */
/* 
 * Dark theme for the prompt builder modal.
 * CSS variables are defined at top of this file, scoped to .prompt-builder-overlay
 */

.prompt-builder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.prompt-builder-overlay.active {
    display: block;
}

.prompt-builder-container {
   
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    position: relative;
    background: var(--background);
    color: var(--text);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--accent);
    color: var(--background);
}

.pb-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pb-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pb-icon {
    font-size: 2rem;
}

.pb-header h1 {
    font-size: 2rem;
    color: var(--text);
}

.pb-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Main Container (legacy) */
.prompt-builder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 200px);
}

/* Progress Stepper */
.progress-container {
    position: sticky;
    top: 70px;
    background: var(--background);
    z-index: 100;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.progress-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-stepper .step.active,
.progress-stepper .step.current {
    opacity: 1;
}

.progress-stepper .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-background);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.progress-stepper .step.active .step-number {
    background: var(--accent);
    color: var(--background);
}

.progress-stepper .step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.progress-stepper .step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
    max-width: 80px;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.step-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.step-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--accent);
    color: var(--background);
}

/* Topics Grid (Step 1) */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.topic-card {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.topic-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.topic-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.topic-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Sub-Topics Grid (Step 2) */
.subtopics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.subtopic-card {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subtopic-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.subtopic-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.subtopic-card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.subtopic-card .example {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    font-style: italic;
}

/* Frameworks List (Step 3) */
.frameworks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.framework-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.framework-card:hover {
    border-color: var(--accent);
}

.framework-card.recommended {
    border-color: rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(255, 193, 7, 0.05) 100%);
}

.framework-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.framework-info {
    flex: 1;
}

.framework-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.framework-header h3 {
    font-size: 1.1rem;
    color: var(--text);
}

.framework-header .short-code {
    color: var(--accent);
    font-weight: 400;
}

.framework-score {
    text-align: right;
}

.framework-score .score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.framework-score .score-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.framework-structure {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.framework-reasoning {
    font-size: 0.85rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.framework-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.type-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text);
}

.best-for {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #ffc107;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Adherence Level (Step 4) */
.framework-explainer {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.explainer-card {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

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

.explainer-header h3 {
    font-size: 1.2rem;
    color: var(--text);
}

.score-badge {
    background: var(--accent);
    color: var(--background);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.explainer-reasoning {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.explainer-structure,
.explainer-fields {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.field-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.field-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Adherence Spectrum */
.adherence-spectrum {
    max-width: 1000px;
    margin: 0 auto;
}

.spectrum-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

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

.adherence-levels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.adherence-card {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    /* Fix: Top-down grid structure with equal gaps */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: stretch;
}

.adherence-card:hover:not(.disabled) {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.adherence-card.recommended {
    border-color: rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(255, 193, 7, 0.08) 100%);
}

.adherence-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.adherence-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0;
}

.level-icon {
    font-size: 1.5rem;
}

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

/* Ensure consistent spacing within adherence cards */
.adherence-card .adherence-header {
    margin: 0;
}

.adherence-card h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
}

.adherence-card .adherence-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1;
}

.adherence-card .tooling-indicator {
    margin: 0;
}

.adherence-card .expected-output {
    font-size: 0.75rem;
    color: var(--accent);
    margin: 0;
    margin-top: auto;
}

.level-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.expected-output {
    font-size: 0.75rem;
    color: var(--accent);
}

.recommended-tag {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #ffc107;
}

/* Result (Step 5) */
.result-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.result-breadcrumb .crumb {
    color: var(--text-secondary);
}

.result-breadcrumb .crumb.current {
    color: var(--accent);
    font-weight: 600;
}

.result-breadcrumb .separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

.prompt-card {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-header h3 {
    font-size: 1.1rem;
    color: var(--accent);
}

.prompt-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--background);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.prompt-content {
    padding: 1.5rem;
}

.prompt-field {
    margin-bottom: 1.25rem;
}

.prompt-field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-value {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top:30px;
    margin-bottom:20px;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--background);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

/* Frameworks Reference Panel */
.frameworks-reference {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    transition: all 0.3s ease;
}

.frameworks-reference .toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    padding: 0.75rem 1rem;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
}

.frameworks-reference .panel-content {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.frameworks-reference.collapsed .panel-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.frameworks-reference .panel-content h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.frameworks-table table {
    width: 100%;
    border-collapse: collapse;
}

.frameworks-table th,
.frameworks-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.frameworks-table th {
    color: var(--accent);
    font-weight: 600;
}

.frameworks-table td {
    color: var(--text-secondary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent);
    color: var(--background);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ======================= */
/* STEP 4 ENHANCEMENTS     */
/* ======================= */

/* Explainer Card */
.explainer-card {
    background: var(--card-background);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.explainer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.explainer-icon {
    font-size: 1.5rem;
}

.explainer-header h3 {
    font-size: 1.1rem;
    color: var(--text);
}

.explainer-why {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.explainer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.explainer-section h4 {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.explainer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.explainer-section li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.explainer-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.explainer-structure,
.explainer-fields {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.explainer-fields .field-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0.25rem 0.25rem 0.25rem 0;
}

/* Anti-Patterns Warning */
.anti-patterns-warning {
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.warning-icon {
    font-size: 1.25rem;
}

.warning-header h4 {
    color: #ff5722;
    font-size: 1rem;
    margin: 0;
}

.anti-patterns-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.anti-pattern {
    padding-left: 1.75rem;
}

.anti-pattern .pattern-title {
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.anti-pattern .pattern-example {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

/* Pattern Comparison (Bad vs Good) */
.pattern-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pattern-bad,
.pattern-good {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.pattern-label {
    font-weight: 600;
    white-space: nowrap;
    min-width: 70px;
}

.pattern-bad .pattern-label {
    color: #ef5350;
}

.pattern-good .pattern-label {
    color: #66bb6a;
}

.pattern-comparison code {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    word-break: break-word;
    flex: 1;
}

/* Adherence Spectrum Labels */
.adherence-spectrum {
    max-width: 1100px;
    margin: 0 auto 1.5rem;
}

.spectrum-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.spectrum-bar {
    height: 4px;
    background: linear-gradient(to right, #4CAF50, #FFC107, #E91E63);
    border-radius: 2px;
}

/* Structure/Creativity Bars */
.adherence-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.level-badge {
    background: var(--accent);
    color: var(--background);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.adherence-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.expected-output {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.adherence-bars {
    margin: 1rem 0;
}

.bar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bar-label {
    width: 70px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bar-fill.structure {
    background: linear-gradient(to right, #4CAF50, #8BC34A);
}

.bar-fill.creativity {
    background: linear-gradient(to right, #E91E63, #9C27B0);
}

.bar-value {
    width: 35px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
}

/* Prompt Preview */
.prompt-preview {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--accent);
    margin: 0 0 0.25rem 0;
}

.preview-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ================================ */
/* STEP 5: ESCALATION ADDITIONS    */
/* ================================ */

.escalation-additions-section {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem auto 2rem;
    max-width: 1100px;
}

.additions-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.additions-icon {
    font-size: 1.5rem;
}

.additions-header h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0;
}

.additions-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.escalation-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    width: fit-content;
}

.escalation-level-badge .level-num {
    background: var(--accent);
    color: var(--background);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.escalation-level-badge .level-label {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Level-specific badge colors */
.escalation-level-badge.level-1 { border-color: #10b981; background: rgba(16, 185, 129, 0.1); }
.escalation-level-badge.level-1 .level-num { background: #10b981; }
.escalation-level-badge.level-1 .level-label { color: #10b981; }

.escalation-level-badge.level-2 { border-color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.escalation-level-badge.level-2 .level-num { background: #3b82f6; }
.escalation-level-badge.level-2 .level-label { color: #3b82f6; }

.escalation-level-badge.level-3 { border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.escalation-level-badge.level-3 .level-num { background: #f59e0b; }
.escalation-level-badge.level-3 .level-label { color: #f59e0b; }

.escalation-level-badge.level-4 { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }
.escalation-level-badge.level-4 .level-num { background: #8b5cf6; }
.escalation-level-badge.level-4 .level-label { color: #8b5cf6; }

.escalation-level-badge.level-5 { border-color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.escalation-level-badge.level-5 .level-num { background: #ef4444; }
.escalation-level-badge.level-5 .level-label { color: #ef4444; }

.addition-block {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
}

.addition-block h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.addition-block ul {
    margin: 0;
    padding-left: 1.25rem;
}

.addition-block li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.addition-block li:last-child {
    margin-bottom: 0;
}

.addition-block p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Addition block type colors */
.addition-block.constraints h4 { color: #3b82f6; }
.addition-block.validations h4 { color: #10b981; }
.addition-block.governance h4 { color: #8b5cf6; }
.addition-block.tips h4 { color: #f59e0b; }

/* ======================= */
/* STEP 5: LLM OUTPUTS     */
/* ======================= */

.llm-outputs-section {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 1100px;
}

.llm-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.llm-icon {
    font-size: 1.5rem;
}

.llm-header h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0;
}

.llm-outputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.llm-output-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.llm-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.llm-output-header h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
}

.quality-rating {
    display: flex;
    gap: 2px;
}

.quality-rating .star {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
}

.quality-rating .star.filled {
    color: #ffc107;
}

.llm-output-code {
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.llm-output-code pre {
    margin: 0;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Result Card (Step 5) */
.result-card {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-header h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin: 0;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--background);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.prompt-fields {
    padding: 1.5rem;
}

.prompt-field {
    margin-bottom: 1.25rem;
}

.prompt-field:last-child {
    margin-bottom: 0;
}

.prompt-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-field .field-value {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

/* Select Arrow */
.select-arrow {
    display: block;
    margin-top: 1rem;
    color: var(--accent);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.topic-card:hover .select-arrow {
    opacity: 1;
}

/* Example Box in Sub-Topics */
.example-box {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
}

.example-box strong {
    color: var(--accent);
}

/* Optimality Box in Frameworks */
.optimality-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 8px;
    width: fit-content;
}

.optimality-icon {
    font-size: 1rem;
}

.optimality-label {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.framework-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ======================= */
/* TOOLING INDICATORS (C.1)*/
/* ======================= */

.tooling-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 0.75rem 0;
}

.tooling-indicator.tooling-none {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.tooling-indicator.tooling-optional {
    background: rgba(158, 158, 158, 0.1);
    border: 1px solid rgba(158, 158, 158, 0.3);
    color: #9E9E9E;
}

.tooling-indicator.tooling-proposed {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

.tooling-indicator.tooling-required {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

.tooling-icon {
    font-size: 1rem;
}

.tooling-text {
    font-weight: 500;
}

/* High complexity card (Level 4+) visual break */
.adherence-card.high-complexity {
    border-color: rgba(255, 152, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
}

.adherence-card.high-complexity:hover {
    border-color: #FF9800;
}

/* ================================== */
/* TOOLING RELATIONSHIP (Step 5 C.2) */
/* ================================== */

.tooling-relationship {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.tooling-relationship.no-tooling {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4CAF50;
}

.tooling-relationship.optional-tooling {
    background: rgba(158, 158, 158, 0.1);
    border-left-color: #9E9E9E;
}

.tooling-relationship.proposed-tooling {
    background: rgba(33, 150, 243, 0.1);
    border-left-color: #2196F3;
}

.tooling-relationship.required-tooling {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: #FF9800;
}

.tooling-relationship.full-tooling {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #F44336;
}

.tooling-rel-icon {
    font-size: 1.5rem;
}

.tooling-rel-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

/* Tooling subtitles in addition blocks */
.tooling-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0.75rem 0;
    font-style: italic;
}

/* No tooling block (Level 1) */
.addition-block.no-tools {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.addition-block.no-tools h4 {
    color: #4CAF50;
}

.addition-block.no-tools p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ======================= */
/* EU AI RISK SECTION (C.2)*/
/* ======================= */

.eu-ai-risk-alignment {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    max-width: 1100px;
    margin: 1.5rem auto 2rem;
}

.eu-ai-risk-alignment .risk-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.eu-ai-risk-alignment .risk-icon {
    font-size: 1.5rem;
}

.eu-ai-risk-alignment .risk-header h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
    flex-grow: 1;
}

.eu-ai-risk-alignment .info-tooltip {
    cursor: help;
    color: var(--text-secondary);
    font-size: 1rem;
}

.risk-badge {
    display: inline-flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.risk-badge .risk-level {
    font-weight: 700;
    font-size: 1rem;
}

.risk-badge .risk-category {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Risk color coding */
.risk-badge.risk-green,
.risk-badge.risk-level-1 {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4CAF50;
}

.risk-badge.risk-green-yellow,
.risk-badge.risk-level-2 {
    background: rgba(205, 220, 57, 0.15);
    border: 1px solid rgba(205, 220, 57, 0.4);
    color: #CDDC39;
}

.risk-badge.risk-yellow,
.risk-badge.risk-level-3 {
    background: rgba(255, 235, 59, 0.15);
    border: 1px solid rgba(255, 235, 59, 0.4);
    color: #FFEB3B;
}

.risk-badge.risk-orange,
.risk-badge.risk-level-4 {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.4);
    color: #FF9800;
}

.risk-badge.risk-red,
.risk-badge.risk-level-5 {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #F44336;
}

.risk-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.risk-warning {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.escalation-notice,
.compliance-requirement {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196F3;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.key-insight {
    background: rgba(255, 235, 59, 0.1);
    border: 1px solid rgba(255, 235, 59, 0.3);
    color: #FFEB3B;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 500;
}

.risk-disclaimer {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin: 1rem 0;
}

.compliance-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: opacity 0.2s;
}

.compliance-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ======================= */
/* TOOLING BLOCKS (C.3)    */
/* ======================= */

.addition-block.required-tools {
    border-left: 4px solid #F44336;
}

.addition-block.required-tools h4 {
    color: #F44336;
}

.addition-block.proposed-tools {
    border-left: 4px solid #2196F3;
}

.addition-block.proposed-tools h4 {
    color: #2196F3;
}

.addition-block.optional-tools {
    border-left: 4px solid #9E9E9E;
}

.addition-block.optional-tools h4 {
    color: #9E9E9E;
}

/* Responsive */
@media (max-width: 900px) {
    .adherence-levels {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .frameworks-reference {
        display: none;
    }
    
    .explainer-grid {
        grid-template-columns: 1fr;
    }
    
    .llm-outputs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tools-hero {
        padding: 2.5rem 1rem;
    }
    
    .tools-hero h1 {
        font-size: 2rem;
    }
    
    .tools-grid-section {
        padding: 2rem 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .prompt-builder-container {
        padding: 1rem;
    }
    
    .prompt-builder {
        padding: 1rem;
    }
    
    .progress-stepper .step-label {
        display: none;
    }
    
    .progress-stepper .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .step-header h1,
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .back-btn {
        position: static;
        transform: none;
        margin-bottom: 1rem;
    }
    
    .adherence-levels {
        grid-template-columns: 1fr;
    }
    
    .framework-card {
        flex-direction: column;
        text-align: center;
    }
    
    .framework-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .anti-patterns-warning {
        padding: 1rem;
    }
    
    .explainer-card {
        padding: 1rem;
    }
    
    .llm-outputs-section {
        padding: 1rem;
    }
    
    .result-card {
        margin-bottom: 1.5rem;
    }
}

/* ======================================== */
/* PHASE 5.0.4c: CONSOLIDATED TECHNICAL UI */
/* ======================================== */

/* Technical Block - Base styles for all consolidated sections */
.technical-block {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.technical-block .block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.technical-block .block-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.technical-block .block-header h4 {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
    font-weight: 600;
    flex-shrink: 0;
}

.technical-block .block-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: auto;
    text-align: right;
}

.technical-block .block-content {
    padding: 1rem;
}

.technical-block .no-requirements {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* Tooling Block - Level-specific colors */
.tooling-block.no-tooling {
    border-color: rgba(16, 185, 129, 0.3);
}
.tooling-block.no-tooling .block-header {
    background: rgba(16, 185, 129, 0.1);
}

.tooling-block.optional-tooling {
    border-color: rgba(59, 130, 246, 0.3);
}
.tooling-block.optional-tooling .block-header {
    background: rgba(59, 130, 246, 0.1);
}

.tooling-block.proposed-tooling {
    border-color: rgba(245, 158, 11, 0.3);
}
.tooling-block.proposed-tooling .block-header {
    background: rgba(245, 158, 11, 0.1);
}

.tooling-block.required-tooling {
    border-color: rgba(139, 92, 246, 0.3);
}
.tooling-block.required-tooling .block-header {
    background: rgba(139, 92, 246, 0.1);
}

.tooling-block.full-tooling {
    border-color: rgba(239, 68, 68, 0.3);
}
.tooling-block.full-tooling .block-header {
    background: rgba(239, 68, 68, 0.1);
}

/* Tools Grid - Compact horizontal layout */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tool-category {
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.75rem;
}

.tool-category .category-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-category.required .category-label {
    color: #ef4444;
}

.tool-category.proposed .category-label {
    color: #f59e0b;
}

.tool-category.optional .category-label {
    color: #3b82f6;
}

.tool-category ul {
    margin: 0;
    padding-left: 1rem;
}

.tool-category li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.2rem;
}

.tool-category li:last-child {
    margin-bottom: 0;
}

/* Prompt Engineering Block */
.prompt-engineering-block {
    border-color: rgba(59, 130, 246, 0.3);
}

.prompt-engineering-block .block-header {
    background: rgba(59, 130, 246, 0.08);
}

.engineering-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.engineering-section {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.75rem;
}

.engineering-section .section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.engineering-section.constraints .section-label {
    color: #3b82f6;
}

.engineering-section.validations .section-label {
    color: #10b981;
}

.engineering-section.governance .section-label {
    color: #8b5cf6;
}

.engineering-section ul {
    margin: 0;
    padding-left: 1rem;
}

.engineering-section li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.2rem;
}

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

/* Pipeline Block - Level 5 */
.pipeline-block {
    border-color: rgba(239, 68, 68, 0.3);
}

.pipeline-block .block-header {
    background: rgba(239, 68, 68, 0.1);
}

.pipeline-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.pipeline-stage {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pipeline-arrow {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .technical-block .block-header {
        flex-wrap: wrap;
    }
    
    .technical-block .block-summary {
        width: 100%;
        text-align: left;
        margin-left: 2rem;
        margin-top: 0.25rem;
    }
    
    .tools-grid,
    .engineering-sections {
        flex-direction: column;
    }
    
    .tool-category,
    .engineering-section {
        max-width: none;
    }
    
    .pipeline-flow {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pipeline-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
}
