/* ========================================
   Team Page Styles (צוות מטה)
   ======================================== */

.team-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.team-header-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.team-subtitle {
    color: var(--text3);
    font-size: 0.9rem;
    margin: 0;
}

/* Filters */
.team-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.team-filters .filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.team-filters .filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.team-filters .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Card */
.team-card {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
}

.team-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.team-card.inactive {
    opacity: 0.6;
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}

.team-card-info {
    flex: 1;
    min-width: 0;
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-role {
    font-size: 0.8rem;
    color: var(--text3);
}

.team-card-actions {
    display: flex;
    gap: 4px;
}

.team-card-actions .btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.team-card-actions .btn-icon:hover {
    background: var(--hover);
}

/* Card Body */
.team-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
}

.team-info-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}

.team-info-value {
    color: var(--text2);
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-info-value:hover {
    color: var(--primary);
}

.team-whatsapp {
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.team-whatsapp:hover {
    transform: scale(1.2);
}

/* Birthday highlight */
.team-info-row.birthday-highlight {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 6px 10px;
    border-radius: 8px;
    margin: 0 -10px;
}

.birthday-badge {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Card Footer */
.team-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.team-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.team-status.active {
    color: #10b981;
}

.team-status.inactive {
    color: var(--text3);
}

/* Empty State */
.team-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--card);
    border-radius: 16px;
    border: 2px dashed var(--border);
}

.team-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.team-empty h3 {
    color: var(--text);
    margin: 0 0 8px 0;
}

.team-empty p {
    color: var(--text3);
    margin: 0;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .team-page {
        padding: 16px;
    }

    .team-header {
        flex-direction: column;
        align-items: flex-start;
    }

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