/* ==========================================================================
   Agentic Academy Design System - Components
   Version: 1.1
   ========================================================================== */

/* Typography Components
   ========================================================================== */

.subtitle {
    font-size: 1.125rem;
    color: #475569;
    font-weight: 500;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #0D9488;
    margin-bottom: 8px;
}

.section-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0D9488 0%, #14B8A6 100%);
    margin-top: 8px;
}

/* Category Cards
   ========================================================================== */

.category {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    border-left-width: 3px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.category-question {
    font-size: 0.875rem;
    color: #64748B;
    font-style: italic;
    margin-top: 4px;
}

/* Category Color System - Actors (Purple)
   ========================================================================== */

.actors {
    border-left-color: #8B5CF6;
}

.actors:hover {
    border-left-color: #7C3AED;
}

.actors .category-icon {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.actors .category-title {
    color: #7C3AED;
}

.actors .sub-primitive {
    background: rgba(139, 92, 246, 0.1);
    color: #7C3AED;
}

/* Category Color System - Tools (Teal)
   ========================================================================== */

.tools {
    border-left-color: #0D9488;
}

.tools:hover {
    border-left-color: #0891B2;
}

.tools .category-icon {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.tools .category-title {
    color: #0D9488;
}

.tools .sub-primitive {
    background: rgba(13, 148, 136, 0.1);
    color: #0D9488;
}

/* Category Color System - Instructions (Pink)
   ========================================================================== */

.instructions {
    border-left-color: #EC4899;
}

.instructions:hover {
    border-left-color: #DB2777;
}

.instructions .category-icon {
    background: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}

.instructions .category-title {
    color: #DB2777;
}

.instructions .sub-primitive {
    background: rgba(236, 72, 153, 0.1);
    color: #DB2777;
}

/* Category Color System - Coordination (Orange)
   ========================================================================== */

.coordination {
    border-left-color: #F59E0B;
}

.coordination:hover {
    border-left-color: #D97706;
}

.coordination .category-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.coordination .category-title {
    color: #D97706;
}

.coordination .sub-primitive {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

/* Category Color System - Connections (Blue)
   ========================================================================== */

.connections {
    border-left-color: #3B82F6;
}

.connections:hover {
    border-left-color: #2563EB;
}

.connections .category-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.connections .category-title {
    color: #2563EB;
}

.connections .sub-primitive {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
}

/* Category Color System - Interactions (Cyan)
   ========================================================================== */

.interactions {
    border-left-color: #06B6D4;
}

.interactions:hover {
    border-left-color: #0891B2;
}

.interactions .category-icon {
    background: linear-gradient(135deg, #06B6D4 0%, #22D3EE 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.interactions .category-title {
    color: #0891B2;
}

.interactions .sub-primitive {
    background: rgba(6, 182, 212, 0.1);
    color: #0891B2;
}

/* Nested Primitive Cards
   ========================================================================== */

.primitives-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.primitive {
    background: #F1F5F9;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
    cursor: default;
}

.primitive:hover {
    background: white;
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    transform: scale(1.01);
}

.primitive-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0F172A;
}

.primitive-desc {
    font-size: 0.875rem;
    color: #64748B;
    line-height: 1.6;
}

/* Sub-primitives (Pills)
   ========================================================================== */

.sub-primitives {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}

.sub-primitive {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 500;
}

/* Badges
   ========================================================================== */

.badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    background: rgba(13, 148, 136, 0.1);
    color: #0D9488;
}

/* Statistics Display
   ========================================================================== */

.summary {
    background: white;
    border-radius: 8px;
    padding: 48px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    margin-top: 32px;
}

.summary h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #0F172A;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0F172A;
    background-clip: text;
    -webkit-background-clip: text;
}

/* Gradient text for stats */
.stat:nth-child(1) .stat-number {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat:nth-child(2) .stat-number {
    background: linear-gradient(135deg, #0D9488 0%, #3B82F6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat:nth-child(3) .stat-number {
    background: linear-gradient(135deg, #F59E0B 0%, #06B6D4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: #64748B;
    margin-top: 8px;
    font-weight: 500;
}

/* Footer
   ========================================================================== */

footer {
    text-align: center;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #E2E8F0;
    color: #64748B;
    font-size: 0.875rem;
}

/* Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .subtitle {
        font-size: 1rem;
    }

    .summary {
        padding: 32px 24px;
    }

    .stats {
        gap: 48px;
    }
}
