/* Team Page Specific Styles */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hover Animations */
.team-card-overlay {
    background: linear-gradient(to top, rgba(0, 31, 63, 0.9) 0%, rgba(0, 31, 63, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .team-card-overlay {
    opacity: 1;
}



/* View Profile Button Animation */
.view-profile-btn .arrow-icon {
    transition: transform 0.3s ease;
}

.view-profile-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Ensure dynamic grid matches Tailwind config */
.team-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }


/* Skeleton Loading */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
}

.dark .skeleton {
    background-color: #1e293b;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

.dark .skeleton::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
}

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

/* View State Management (Prevent Flash) */
.is-profile-view #team-grid-view,
.is-profile-view #team-cta {
    display: none !important;
}

.is-profile-view #profile-view {
    display: block !important;
    opacity: 1 !important;
}
