/* ═══════════════════════════════════════════════════════════════════════════
   PATTERN INTELLIGENCE PAGE STYLES
   DSP-09 Continuity Intelligence Engine Frontend
   ═══════════════════════════════════════════════════════════════════════════ */

/* Enable scrolling for this page */
body.pattern-intelligence-page {
    overflow-y: auto !important;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

body.pattern-intelligence-page #app {
    height: auto;
    min-height: 100vh;
}

/* Page Layout */
.pattern-intelligence-page {
    background: linear-gradient(135deg, #0a0a12 0%, #0d0d18 50%, #0a0a12 100%);
    min-height: 100vh;
}

.pattern-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: calc(60px + 1rem);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PATTERN SUMMARY
   ═══════════════════════════════════════════════════════════════════════════ */

.pattern-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-stat {
    background: linear-gradient(135deg, rgba(100, 140, 180, 0.1) 0%, rgba(80, 120, 160, 0.05) 100%);
    border: 1px solid rgba(100, 140, 180, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
}

.summary-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #64b4a0;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.summary-stat .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAB NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.pattern-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 12px;
    overflow-x: auto;
}

.pattern-tabs .tab-btn {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pattern-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.pattern-tabs .tab-btn.active {
    background: rgba(100, 180, 160, 0.15);
    color: #64b4a0;
}

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

.tab-label {
    font-size: 0.75rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e8e8e8;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PATTERN LIST
   ═══════════════════════════════════════════════════════════════════════════ */

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

.pattern-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.pattern-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pattern-item.emotional { border-left-color: #6b9bc3; }
.pattern-item.behavioral { border-left-color: #9bc36b; }
.pattern-item.cognitive { border-left-color: #c39b6b; }
.pattern-item.trigger { border-left-color: #c36b6b; }
.pattern-item.breakthrough { border-left-color: #6bc3b9; }
.pattern-item.stability { border-left-color: #b96bc3; }

.pattern-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pattern-content {
    flex: 1;
}

.pattern-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e8e8e8;
    margin-bottom: 0.25rem;
}

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

.pattern-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pattern-strength {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.strength-bar {
    width: 6px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
}

.strength-fill {
    background: linear-gradient(to top, #64b4a0, #508cb4);
    border-radius: 3px;
    transition: height 0.3s ease;
}

.strength-value {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMOTIONAL TIMELINE
   ═══════════════════════════════════════════════════════════════════════════ */

.emotional-timeline {
    padding: 1rem 0;
}

.timeline-graph {
    height: 150px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.timeline-graph canvas {
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRIGGER LIST
   ═══════════════════════════════════════════════════════════════════════════ */

.trigger-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trigger-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(200, 100, 100, 0.05);
    border: 1px solid rgba(200, 100, 100, 0.15);
    border-radius: 10px;
}

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

.trigger-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trigger-count {
    font-size: 0.8rem;
    color: rgba(200, 100, 100, 0.8);
    background: rgba(200, 100, 100, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HABIT LOOPS
   ═══════════════════════════════════════════════════════════════════════════ */

.habit-loops {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.habit-loop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.loop-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-width: 70px;
}

.loop-stage-icon {
    font-size: 1.2rem;
}

.loop-stage-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.loop-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NARRATIVE ARC
   ═══════════════════════════════════════════════════════════════════════════ */

.narrative-arc {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.arc-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.arc-icon {
    font-size: 3rem;
}

.arc-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #64b4a0;
}

.arc-description {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* Turning Points */
.turning-points-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.turning-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(100, 180, 160, 0.05);
    border-radius: 12px;
    border-left: 3px solid #64b4a0;
}

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

.tp-content {
    flex: 1;
}

.tp-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e8e8e8;
    margin-bottom: 0.25rem;
}

.tp-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Themes Grid */
.themes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.theme-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.theme-count {
    background: rgba(100, 180, 160, 0.2);
    color: #64b4a0;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Threads List */
.threads-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thread-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(180, 160, 100, 0.05);
    border: 1px dashed rgba(180, 160, 100, 0.2);
    border-radius: 10px;
}

.thread-icon {
    color: rgba(180, 160, 100, 0.8);
}

.thread-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPANION GRID
   ═══════════════════════════════════════════════════════════════════════════ */

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

.companion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.companion-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.companion-card.primary {
    border-color: rgba(100, 180, 160, 0.4);
    background: rgba(100, 180, 160, 0.1);
}

.companion-avatar {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.companion-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e8e8e8;
    margin-bottom: 0.25rem;
}

.companion-interactions {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.companion-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.companion-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #64b4a0, #508cb4);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Primary Companion Card */
.primary-companion {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(100, 180, 160, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.primary-companion .companion-emoji {
    font-size: 2.5rem;
}

.primary-companion .companion-info {
    display: flex;
    flex-direction: column;
}

.primary-companion .companion-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e8e8e8;
}

.primary-companion .companion-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.connection-stats {
    display: flex;
    gap: 2rem;
}

.connection-stats .stat {
    display: flex;
    flex-direction: column;
}

.connection-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.connection-stats .stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #64b4a0;
}

/* Interaction Chart */
.interaction-chart {
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 1rem 0;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

.bar-label {
    font-size: 1rem;
}

.bar-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .pattern-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .summary-stat {
        padding: 1rem 0.5rem;
    }

    .summary-stat .stat-value {
        font-size: 1.5rem;
    }

    .companion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pattern-container {
        padding: 0.75rem;
    }

    .card {
        padding: 1rem;
    }

    .pattern-tabs .tab-label {
        display: none;
    }

    .pattern-tabs .tab-btn {
        padding: 0.75rem 0.5rem;
    }

    .tab-icon {
        font-size: 1.3rem;
    }

    .companion-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .companion-card {
        padding: 0.75rem 0.5rem;
    }

    .companion-avatar {
        font-size: 1.5rem;
    }

    .companion-name {
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED PATTERN INTELLIGENCE STYLES v2.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* Emotional Timeline Chart */
.timeline-card .timeline-graph {
    height: 200px;
    position: relative;
    margin-bottom: 1rem;
}

.timeline-card canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Emotional Phases */
.emotional-phases {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.emotional-phases::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.2), rgba(96, 165, 250, 0.2));
    transform: translateY(-50%);
}

.phase-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(244, 114, 182, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.phase-marker.current .phase-dot {
    background: #f472b6;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.5);
}

.phase-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 80px;
}

/* Mood Shifts */
.mood-shifts {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.mood-shifts h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.shift-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.shift-from {
    color: #fb7185;
}

.shift-arrow {
    color: var(--text-muted);
}

.shift-to {
    color: #4ade80;
}

.shift-trigger {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: auto;
}

/* Habit Loops */
.habit-loop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.loop-cue, .loop-routine, .loop-reward {
    flex: 1;
    text-align: center;
}

.loop-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.loop-value {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.loop-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.loop-strength {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-mini {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    border-radius: 2px;
}

/* Frequency and Impact Tags */
.frequency-tag, .impact-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
}

.impact-tag.positive {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.impact-tag.neutral {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

/* Turning Points */
.turning-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.turning-point:last-child {
    border-bottom: none;
}

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

.tp-content {
    flex: 1;
}

.tp-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.tp-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tp-significance {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 0.5rem;
    display: inline-block;
}

.tp-significance.high {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.tp-significance.medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Theme Tags */
.theme-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.25rem;
}

.theme-tag.positive {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.theme-tag.neutral {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.theme-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Thread Items */
.thread-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.thread-content {
    flex: 1;
}

.thread-topic {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.thread-started {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.thread-status {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: capitalize;
}

.thread-status.active {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

/* Companion Interactions */
.companion-interactions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.companion-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.companion-row .companion-emoji {
    font-size: 1.5rem;
}

.companion-row .companion-name {
    width: 80px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.companion-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.companion-bar .bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.companion-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: right;
}

.resonance-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 10px;
    min-width: 45px;
    text-align: center;
}

/* Primary Companion Card */
.primary-companion-card .primary-companion-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(124, 93, 250, 0.1), rgba(96, 165, 250, 0.05));
    border-radius: 12px;
}

.primary-companion-card .companion-emoji {
    font-size: 2.5rem;
}

.primary-companion-card .companion-info {
    flex: 1;
}

.primary-companion-card .companion-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.primary-companion-card .companion-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.primary-companion-card .companion-stat {
    text-align: right;
}

.primary-companion-card .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.primary-companion-card .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7c5dfa;
}

/* Evolution Cards */
.companion-evolution {
    display: grid;
    gap: 1rem;
}

.evolution-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1rem;
}

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

.evo-header .companion-emoji {
    font-size: 1.5rem;
}

.evo-header .companion-name {
    font-weight: 600;
    color: var(--text-primary);
}

.evo-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.evo-tone {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.evo-effectiveness {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.eff-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.eff-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    border-radius: 2px;
}

/* Synergy Moments */
.synergy-moments {
    display: grid;
    gap: 0.75rem;
}

.synergy-moment {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(124, 93, 250, 0.05));
    border-radius: 10px;
    padding: 1rem;
}

.synergy-companions {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.synergy-context {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.synergy-outcome {
    font-size: 0.8rem;
    color: #4ade80;
}

/* Companion Tag in Pattern Items */
.companion-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}
