/* Code Review Agent Styles */
.agent-hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.agent-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.agent-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Demo section */
.agent-demo {
    background: var(--bg-medium);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.demo-controls {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.language-selector,
.example-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-controls label {
    color: var(--primary);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

.demo-controls select {
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-controls select:hover {
    border-color: var(--primary);
}

.demo-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .demo-main {
        grid-template-columns: 1fr;
    }
    
    .code-input-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .demo-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .language-selector,
    .example-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .agent-demo {
        padding: 1rem;
    }
    
    #codeInput {
        min-height: 200px;
        font-size: 0.8rem;
    }
    
    .code-stats {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
}

.code-input-section h3,
.review-output-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-family: 'Space Mono', monospace;
}

.code-editor {
    position: relative;
    margin-bottom: 1rem;
}

#codeInput {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

#codeInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.1);
}

.code-stats {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--secondary);
    font-family: 'Space Mono', monospace;
    pointer-events: none;
}

.review-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.review-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.4);
}

.review-button:active {
    transform: translateY(0);
}

.review-button.loading {
    background: var(--secondary);
    cursor: not-allowed;
}

.button-loader {
    display: inline-block;
}

/* Review results */
.review-results {
    min-height: 300px;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 600px;
}

.placeholder {
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0.7;
}

.placeholder p {
    margin-bottom: 0.5rem;
}

.placeholder-hint {
    font-size: 0.9rem;
    color: var(--secondary);
}

.review-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--primary);
}

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

.review-type {
    font-weight: bold;
    color: var(--text-light);
}

.severity {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.severity.critical {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
}

.severity.warning {
    background: rgba(255, 165, 0, 0.2);
    color: #ffaa00;
}

.severity.info {
    background: rgba(0, 212, 255, 0.2);
    color: var(--secondary);
}

.review-message {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.review-suggestion {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}

.confidence {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Metrics bar */
.metrics-bar {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 480px) {
    .metrics-bar {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .metric {
        flex: 1 1 45%;
        min-width: 0;
    }
    
    .metric-value {
        font-size: 1rem;
    }
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.metric-value {
    display: block;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Info section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--bg-medium);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.info-card h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

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

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

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

@media (max-width: 640px) {
    .integration-examples {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .integration-card {
        padding: 1rem;
    }
    
    .integration-card pre {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}

.integration-card {
    background: var(--bg-medium);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.integration-card h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.integration-card pre {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.integration-card code {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Light theme adjustments */
[data-theme="light"] .agent-demo,
[data-theme="light"] .info-card,
[data-theme="light"] .integration-card {
    background: #f5f5f5;
    border-color: rgba(0, 166, 49, 0.2);
}

[data-theme="light"] #codeInput,
[data-theme="light"] .review-results,
[data-theme="light"] .demo-controls select {
    background: #ffffff;
    border-color: rgba(0, 166, 49, 0.3);
}

[data-theme="light"] .review-button {
    color: #ffffff;
}

[data-theme="light"] .integration-card pre {
    background: #f0f0f0;
}