/* Agent Details Page Styles */

/* Back Link */
.back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

/* Agent Details Container */
.agent-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Agent Detail Card */
.agent-detail-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.agent-detail-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Agent Detail Header */
.agent-detail-header {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.agent-detail-header.agent-coding {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.agent-detail-header.agent-chatbot {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.agent-detail-header.agent-workflow {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.agent-detail-header.agent-research {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.agent-detail-header.agent-design {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.agent-detail-header.agent-data {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.agent-detail-header.agent-background {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

.agent-detail-header.agent-browser {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.agent-detail-header.agent-computer {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.agent-detail-icon {
    font-size: 48px;
}

.agent-detail-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.coverage-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 6px;
}

/* Agent Detail Content */
.agent-detail-content {
    padding: 32px;
}

/* Detail Section */
.detail-section {
    margin-bottom: 32px;
}

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

.detail-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f5;
}

.detail-section p {
    color: #4a4a6a;
    line-height: 1.8;
    margin: 0;
}

/* Tech Block */
.tech-block {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

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

.tech-block h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d4a;
    margin: 0 0 16px 0;
}

/* Architecture Diagram */
.architecture-diagram {
    background: #1e1e2e;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.architecture-diagram pre {
    margin: 0;
    color: #a6accd;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre;
}

/* Tech List */
.tech-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #667eea;
}

.tech-item .tech-name {
    display: block;
    font-weight: 600;
    color: #2d2d4a;
    margin-bottom: 6px;
}

.tech-item p {
    margin: 0;
    font-size: 14px;
    color: #6b6b8a;
    line-height: 1.6;
}

/* Workflow Patterns */
.workflow-patterns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pattern-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #fa709a;
}

.pattern-item .pattern-name {
    display: block;
    font-weight: 600;
    color: #2d2d4a;
    margin-bottom: 6px;
}

.pattern-item p {
    margin: 0;
    font-size: 14px;
    color: #6b6b8a;
    line-height: 1.6;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Scenario List */
.scenario-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.scenario-list li {
    background: #f8f9fc;
    padding: 14px 18px;
    border-radius: 8px;
    color: #4a4a6a;
    font-size: 14px;
    line-height: 1.5;
}

.scenario-list li strong {
    color: #2d2d4a;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.product-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-card.product-international {
    border-left: 4px solid #4facfe;
}

.product-card.product-domestic {
    border-left: 4px solid #fa709a;
}

.product-region {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-international .product-region {
    background: #e8f4fd;
    color: #2980b9;
}

.product-domestic .product-region {
    background: #fce4ec;
    color: #c2185b;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.product-company {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: #5a5a7a;
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-link {
    display: inline-block;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.product-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Security Notes */
.security-notes {
    background: #fff9e6;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 20px;
}

.security-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-notes li {
    padding: 8px 0;
    color: #5d4e37;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    padding-left: 24px;
}

.security-notes li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 12px;
}

.security-notes li strong {
    color: #3e3525;
}

/* Responsive */
@media (max-width: 768px) {
    .agent-details-container {
        padding: 20px 16px;
    }
    
    .agent-detail-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .agent-detail-icon {
        font-size: 40px;
    }
    
    .agent-detail-title h2 {
        font-size: 24px;
    }
    
    .agent-detail-content {
        padding: 20px;
    }
    
    .detail-section h3 {
        font-size: 18px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-list {
        grid-template-columns: 1fr;
    }
    
    .architecture-diagram {
        padding: 12px;
    }
    
    .architecture-diagram pre {
        font-size: 10px;
    }
}

/* Print Styles */
@media print {
    .back-link {
        display: none;
    }
    
    .agent-detail-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .agent-detail-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
