/* Agents Demo Page Styles */

/* Override main app styles for demo page */
body.demo-body {
    overflow: visible !important;
    height: auto !important;
}

:root {
    --primary-color: #007bff;
    --primary-color-dark: #0056b3;
    --secondary-color: #6c757d;
    --background-color: #f7f7f8;
    --card-background: #ffffff;
    --text-color-primary: #333333;
    --text-color-secondary: #666666;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.demo-body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

/* Top Navigation Bar */
.top-navbar {
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-brand h1 {
    color: #0B5ADB;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.navbar-title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.navbar-title-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.navbar-actions {
    display: flex;
    gap: 1rem;
}

/* Main Content */
.demo-main {
    flex: 1;
    padding: 2rem;
}

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

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-header h2 {
    color: var(--text-color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.demo-header p {
    color: var(--text-color-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.video-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

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

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    color: var(--text-color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-info p {
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Call to Action Section */
.demo-cta {
    text-align: center;
    background-color: var(--card-background);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.demo-cta h3 {
    color: var(--text-color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.demo-cta p {
    color: var(--text-color-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }

    .demo-main {
        padding: 1rem;
    }

    .demo-header h2 {
        font-size: 2rem;
    }

    .demo-header p {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .demo-cta {
        padding: 2rem 1rem;
    }

    .demo-cta h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 30px;
    }

    .navbar-brand h1 {
        font-size: 1rem;
    }

    .demo-header h2 {
        font-size: 1.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-info {
        padding: 1rem;
    }

    .video-info h3 {
        font-size: 1.1rem;
    }
}

/* Animation for smooth entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for multiple cards */
.video-card:nth-child(1).visible { animation-delay: 0.1s; }
.video-card:nth-child(2).visible { animation-delay: 0.2s; }
.video-card:nth-child(3).visible { animation-delay: 0.3s; }
.video-card:nth-child(4).visible { animation-delay: 0.4s; }
.video-card:nth-child(5).visible { animation-delay: 0.5s; }
.video-card:nth-child(6).visible { animation-delay: 0.6s; }