/* ISEA Technical Report Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 75%, #64748b 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

header {
    background: linear-gradient(135deg, #2c3e50, #4a6741);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.benchmark-score {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: inline-block;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00d4aa;
}

nav {
    background: #34495e;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #3498db;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin: 1.5rem 0 1rem 0;
}

.architecture-diagram {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
}

.agent-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
}

.agent-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    min-width: 140px;
    max-width: 160px;
    flex: 0 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.agent-box h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.agent-box p {
    font-size: 0.8rem;
    margin: 0;
}

.arrow {
    font-size: 1.2rem;
    color: #7f8c8d;
    flex: 0 0 auto;
    margin: 0 0.2rem;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1rem 0;
    border-left: 4px solid #3498db;
}

.highlight {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.stats-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tr:hover {
    background: #e3f2fd;
}

.tools-section {
    background: #f1f3f4;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tool-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.tool-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.tool-desc {
    color: #666;
    margin-top: 0.5rem;
}

/* Tooltip styles - now handled by JavaScript */
.custom-tooltip {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes tooltip-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.workflow-section {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.workflow-step {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-number {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.results-highlight {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.results-highlight h3 {
    color: white;
    margin-bottom: 1rem;
}

.workflow-pipeline {
    margin: 2rem 0;
}

.pipeline-step {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    margin: 1.5rem 0;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pipeline-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.step-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem;
    border-radius: 13px 13px 0 0;
    display: flex;
    align-items: center;
}

.step-icon {
    font-size: 2rem;
    margin-right: 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-header h4 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.step-content {
    padding: 1.5rem;
}

.step-content p {
    margin: 0.5rem 0;
}

.step-content ul, .step-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.step-content li {
    margin: 0.5rem 0;
}

.academic-diagram {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.diagram-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.flow-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.flow-box {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
}

.flow-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.flow-box.preprocessing {
    border-color: #f59e0b;
    background: #fef3c7;
}

.flow-box.analysis {
    border-color: #3b82f6;
    background: #dbeafe;
}

.flow-box.generation {
    border-color: #10b981;
    background: #d1fae5;
}

.flow-box.selection {
    border-color: #8b5cf6;
    background: #ede9fe;
}

.flow-box h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: bold;
}

.flow-box p {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.flow-arrow {
    font-size: 2rem;
    color: #6b7280;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.flow-arrow:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.flow-arrow:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

.flow-arrow:hover:before {
    transform: scale(1);
}

@keyframes pulse-arrow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.flow-arrow {
    animation: pulse-arrow 2s ease-in-out infinite;
}

.generation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.selection-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.criteria-item {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b21a8;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .agent-flow {
        flex-direction: column;
    }
    
    .arrow, .flow-arrow {
        transform: rotate(90deg);
    }
    
    main {
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .flow-row {
        flex-direction: column;
    }
    
    .flow-box {
        min-width: 100%;
        margin: 0.5rem 0;
    }
    
    .generation-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .selection-criteria {
        grid-template-columns: 1fr;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin: 0 0 1rem 0;
    }
}