/* 
Purpose: CSS styles specific to the agents.html page
Author: AI Assistant
Last Modified: 2025-01-27
*/

/* Hero Visual Section */
#hero-agents .hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-agents .visual-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

#hero-agents .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    z-index: 1;
}

#hero-agents .placeholder-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #e2e8f0;
}

#hero-agents .placeholder-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #6366f1;
}

#hero-agents .placeholder-content span {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Use Cases Section */
.use-cases-section {
    padding: 5rem 0;
    background-color: #0f172a;
}

.use-cases-section h2 {
    color: #ffffff !important;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.use-cases-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.use-case-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.75rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.use-case-chip:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.use-case-chip i {
    color: #6366f1;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Agent Catalog Section */
.agent-catalog-section {
    padding: 5rem 0;
    background-color: #1e293b;
}

.agent-catalog-section h2 {
    color: #ffffff !important;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.agent-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.agent-card {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

.agent-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.agent-icon i {
    font-size: 1.75rem;
    color: white;
}

.agent-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.agent-tagline {
    color: #ffffff !important;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #6366f1;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #6366f1;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background-color: white;
}

.toggle-labels {
    display: flex;
    gap: 1rem;
}

.toggle-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: #6366f1;
}

/* Agent Capabilities */
.agent-capabilities {
    margin-bottom: 1.5rem;
    min-height: 100px;
    display: flex;
    align-items: flex-start;
}

.capabilities-content {
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
}

.capabilities-content.active {
    opacity: 1;
}

.capabilities-content strong {
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.capabilities-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capabilities-content li {
    color: #e2e8f0;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.capabilities-content li:before {
    content: "•";
    color: #6366f1;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.agent-pill {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* AI in Action Section */
.ai-action-section {
    padding: 5rem 0;
    background-color: #0f172a;
}

.ai-action-section h2 {
    color: #ffffff !important;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.action-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tab-btn {
    flex: 1;
    max-width: 200px;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-btn:hover:not(.active) {
    color: #e2e8f0;
    background: rgba(99, 102, 241, 0.1);
}

.tab-content {
    position: relative;
}

.tab-panel {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.3s ease;
}

.tab-panel.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text h3 {
    color: #f1f5f9;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.content-text p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.kpi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kpi-list li {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.kpi-list li:before {
    content: "✓";
    color: #22c55e;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.content-visual .visual-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.content-visual .visual-placeholder i {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.content-visual .visual-placeholder span {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Use Case Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1e293b;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.modal-content h3 {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Responsive Design - Agents Page */
@media (max-width: 1024px) {
    .panel-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .agent-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tab-switcher {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        max-width: none;
    }
    
    .agent-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .content-text h3 {
        font-size: 1.75rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .use-case-chip {
        padding: 0.875rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .agent-card {
        padding: 1.5rem;
    }
    
    .content-visual .visual-placeholder {
        height: 250px;
    }
}