/* Team Page Styles */
@import url('variables.css');

.team-category-section {
    margin-top: var(--spacing-xxl);
}

/* Agents Grid Layout - Two agents side by side */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 40px 0;
}

/* Spezieller Stil für die ersten Kategorie */
.team-category-section[data-category="leadership-strategy"] {
    margin-top: 40px;
}

/* Horizontales Layout für alle Agenten-Karten */
.agent-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
    flex-direction: row; /* Ensure horizontal layout */
}

.agent-layout .team-image {
    margin: 0;
    flex-shrink: 0;
    order: 1; /* Ensure image is first (left) */
    width: 100px; /* Set a fixed width for the image */
    height: 100px; /* Set a fixed height for the image */
    border-radius: 10px;
}

.agent-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2; /* Ensure info is second (right) */
    flex-grow: 1; /* Allow info to take up remaining space */
}

.team-card .team-name,
.team-card .team-mission {
    margin-top: 0;
}

.team-category-section h3 {
    margin-bottom: 10px;
}

.team-category-section p {
    margin-bottom: 5px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.team-card {
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.8) 0%, rgba(13, 27, 42, 0.9) 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(64, 192, 240, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #40c0f0, transparent);
    opacity: 0.6;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 178, 169, 0.2);
    border-color: rgba(0, 178, 169, 0.3);
}

/* Team Images */
.team-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Specific Team Member Images */
.team-image-1 { background-image: url('https://www.innobu.com/de/bilder/agenten/1.png'); }
.team-image-2 { background-image: url('https://www.innobu.com/de/bilder/agenten/2.png'); }
.team-image-3 { background-image: url('https://www.innobu.com/de/bilder/agenten/3.png'); }
.team-image-4 { background-image: url('https://www.innobu.com/de/bilder/agenten/4.png'); }
.team-image-5 { background-image: url('https://www.innobu.com/de/bilder/agenten/5.png'); }
.team-image-6 { background-image: url('https://www.innobu.com/de/bilder/agenten/6.png'); }       
.team-image-7 { background-image: url('https://www.innobu.com/de/bilder/agenten/7.png'); }
.team-image-8 { background-image: url('https://www.innobu.com/de/bilder/agenten/8.png'); }
.team-image-9 { background-image: url('https://www.innobu.com/de/bilder/agenten/9.png'); }
.team-image-10 { background-image: url('https://www.innobu.com/de/bilder/agenten/10.png'); }
.team-image-11 { background-image: url('https://www.innobu.com/de/bilder/agenten/11.png'); }
.team-image-12 { background-image: url('https://www.innobu.com/de/bilder/agenten/12.png'); }
.team-image-13 { background-image: url('https://www.innobu.com/de/bilder/agenten/13.png'); }
.team-image-14 { background-image: url('https://www.innobu.com/de/bilder/agenten/14.png'); }
.team-image-15 { background-image: url('https://www.innobu.com/de/bilder/agenten/15.png'); }
.team-image-16 { background-image: url('https://www.innobu.com/de/bilder/agenten/16.png'); }
.team-image-17 { background-image: url('https://www.innobu.com/de/bilder/agenten/17.png'); }
.team-image-18 { background-image: url('https://www.innobu.com/de/bilder/agenten/18.png'); }

.team-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    position: relative;
    min-height: 40px;
}

.team-badge {
    position: absolute;
    right: -5px;
    top: -5px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.team-name {
    font-weight: 600;
    font-size: 1.6rem;
    margin: 0 0 15px 0;
    color: #ffffff;
    line-height: 1.3;
    word-wrap: break-word;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    background: linear-gradient(90deg, #ffffff, #40c0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-mission {
    font-style: italic;
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 15px;
}

.article-stats {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-top: 25px;
    font-size: 0.9rem;
    color: #89cff0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-bio {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.utilization-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.utilization-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.battery-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.battery-fill {
    height: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.battery-fill[data-level="high"] {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.battery-fill[data-level="medium"] {
    background: linear-gradient(90deg, #FFC107, #FFD54F);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.battery-fill[data-level="low"] {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
}

.battery-fill[data-level="critical"] {
    background: linear-gradient(90deg, #F44336, #EF5350);
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.3);
}

.battery-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.battery-percentage {
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .team-grid,
    .agents-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .team-grid,
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .team-name {
        font-size: 18px;
    }
    
    .team-badge {
        font-size: 10px;
        padding: 4px 6px;
    }
}
