/* Methodology Page Styles */
/* Enhanced styling for the CV extraction methodology interface */

/* Tab Navigation */
.methodology-tabs {
    margin-bottom: 2rem;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 0.5rem 0.5rem 0 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.tab-btn.active {
    background: #1e40af;
    color: white;
    border-bottom-color: #1e40af;
}

/* Tab Content */
.tab-content {
    min-height: 600px;
}

.tab-panel {
    display: none;
}

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

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

/* Content Cards */
.content-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.content-card h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.content-card h4 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.content-card h5 {
    color: #4b5563;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.content-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Pipeline Diagram */
.pipeline-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stage {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    min-width: 280px;
    position: relative;
}

.stage-number {
    background: #1e40af;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

.stage h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.stage ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.stage li {
    color: #6b7280;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.stage li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.arrow {
    font-size: 2rem;
    color: #1e40af;
    font-weight: bold;
}

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

.method-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.method-item:hover {
    border-color: #1e40af;
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.1);
}

.code-example {
    background: #1f2937;
    color: #f9fafb;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.code-example code {
    color: #f9fafb;
}

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

.pattern-category {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.pattern-category ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.pattern-category li {
    color: #6b7280;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.pattern-category li:last-child {
    border-bottom: none;
}

.pattern-category code {
    background: #1f2937;
    color: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

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

.metric-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.score-breakdown span {
    background: #e5e7eb;
    color: #374151;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.feature-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.status {
    background: #fbbf24;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* Current Configuration */
.current-config {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.config-display {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.config-display p {
    margin: 0.5rem 0;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        border-radius: 0.5rem;
        border-bottom: none;
    }
    
    .pipeline-diagram {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stage {
        min-width: auto;
        width: 100%;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .method-grid,
    .pattern-grid,
    .metrics-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 1.5rem;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
