/* ==========================================
   ULTRAKIT TEAM MEMBER GRID — Premium
   6 Card Styles × Social Links × Responsive Columns
   ========================================== */

.ultrakit-tmg-grid {
    --ultrakit-tmg-accent: #6c5ce7;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    width: 100%;
}

.ultrakit-tmg-no-members { text-align: center; color: #aaa; padding: 24px; }

/* ---- Card base ---- */
.ultrakit-tmg-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.ultrakit-tmg-card:hover { transform: translateY(-5px); }

/* ---- Photo ---- */
.ultrakit-tmg-photo-wrap { position: relative; overflow: hidden; background: #f0f0f0; }
.ultrakit-tmg-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.4s ease;
}
.ultrakit-tmg-shape-circle {
    border-radius: 50%;
    width: 60%;
    margin: 24px auto 0;
    aspect-ratio: 1 / 1;
}
.ultrakit-tmg-shape-rounded { border-radius: 14px 14px 0 0; }
.ultrakit-tmg-shape-square  { border-radius: 0; }

.ultrakit-tmg-hover-zoom:hover .ultrakit-tmg-photo { transform: scale(1.08); }
.ultrakit-tmg-hover-grayscale .ultrakit-tmg-photo { filter: grayscale(100%); }
.ultrakit-tmg-hover-grayscale:hover .ultrakit-tmg-photo { filter: grayscale(0%); }

/* ---- Body ---- */
.ultrakit-tmg-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.ultrakit-tmg-name { font-size: 17px; font-weight: 800; color: #1a1a2e; }
.ultrakit-tmg-role { font-size: 13px; font-weight: 600; color: var(--ultrakit-tmg-accent); margin-bottom: 6px; }
.ultrakit-tmg-bio  { font-size: 13.5px; line-height: 1.65; color: #777777; margin: 4px 0 10px; }

.ultrakit-tmg-card[style*="text-align: center"] .ultrakit-tmg-shape-circle,
.ultrakit-tmg-card { text-align: center; }

/* ---- Social icons ---- */
.ultrakit-tmg-socials { display: flex; gap: 8px; margin-top: auto; justify-content: center; flex-wrap: wrap; }
.ultrakit-tmg-card[style*="left"] .ultrakit-tmg-socials { justify-content: flex-start; }
.ultrakit-tmg-social-link {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ultrakit-tmg-accent);
    background: rgba(108,92,231,0.1);
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.ultrakit-tmg-social-link:hover { background: var(--ultrakit-tmg-accent); color: #ffffff; transform: translateY(-2px); }
.ultrakit-tmg-social-square .ultrakit-tmg-social-link { border-radius: 8px; }
.ultrakit-tmg-social-minimal .ultrakit-tmg-social-link { background: transparent !important; font-size: 17px; }

/* ---- Overlay caption (style 2 / 6) ---- */
.ultrakit-tmg-overlay-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px 18px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}
.ultrakit-tmg-photo-wrap:hover .ultrakit-tmg-overlay-caption { transform: translateY(0); }
.ultrakit-tmg-overlay-caption .ultrakit-tmg-name { color: #ffffff; }
.ultrakit-tmg-overlay-caption .ultrakit-tmg-role { color: rgba(255,255,255,0.85); }
.ultrakit-tmg-overlay-caption .ultrakit-tmg-socials { justify-content: center; margin-top: 6px; }

/* ==========================================
   CARD STYLES
   ========================================== */

/* Style 1: Clean White — default */

/* Style 2: Photo Overlay Caption */
.tmg-style-2 { box-shadow: 0 6px 26px rgba(0,0,0,0.1); }
.tmg-style-2 .ultrakit-tmg-photo { aspect-ratio: 3 / 4; }
.tmg-style-2 .ultrakit-tmg-overlay-caption { transform: translateY(60%); }
.tmg-style-2 .ultrakit-tmg-photo-wrap:hover .ultrakit-tmg-overlay-caption { transform: translateY(0); }

/* Style 3: Dark */
.tmg-style-3 { background: #1a1a2e; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.tmg-style-3 .ultrakit-tmg-name { color: #ffffff; }
.tmg-style-3 .ultrakit-tmg-bio  { color: #9999b3; }

/* Style 4: Glassmorphism */
.tmg-style-4 {
    background: rgba(255,255,255,0.14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.tmg-style-4 .ultrakit-tmg-name { color: #ffffff; }
.tmg-style-4 .ultrakit-tmg-bio  { color: rgba(255,255,255,0.75); }

/* Style 5: Bordered Minimal */
.tmg-style-5 { background: #ffffff; border: 1.5px solid #ececf5; box-shadow: none; }
.tmg-style-5:hover { border-color: var(--ultrakit-tmg-accent); }

/* Style 6: No Card — photo + caption only */
.tmg-style-6 { background: transparent; box-shadow: none; border-radius: 0; }
.tmg-style-6:hover { transform: none; }
.tmg-style-6 .ultrakit-tmg-photo { border-radius: 14px; aspect-ratio: 4 / 5; }
.tmg-style-6 .ultrakit-tmg-overlay-caption {
    position: static;
    background: none;
    color: #1a1a2e;
    transform: none;
    padding: 14px 4px 0;
    align-items: center;
    text-align: center;
}
.tmg-style-6 .ultrakit-tmg-overlay-caption .ultrakit-tmg-name { color: #1a1a2e; }
.tmg-style-6 .ultrakit-tmg-overlay-caption .ultrakit-tmg-role { color: var(--ultrakit-tmg-accent); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .ultrakit-tmg-body { padding: 18px 16px; }
    .ultrakit-tmg-name { font-size: 15px; }
}
