/**
 * Mobile Teacher Dual Display - Shows both photo and avatar
 * 
 * This CSS shows both the real photo (in square frame) and the avatar (small)
 * at the same time on mobile, with no animations or toggles.
 */

@media (max-width: 768px) {
  /* Main teacher avatar container - centered square photo */
  .mobile-swiper-container .teacher-avatar {
    position: relative !important;
    width: 180px !important;       /* Standard square size */
    height: 180px !important;
    margin: 0 auto !important;     /* Center the photo */
    border-radius: 8px !important; /* Square with slightly rounded corners */
    overflow: visible !important;  /* Allow avatar to overflow */
    background-color: transparent !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
    pointer-events: none !important; /* Prevent any clicks from triggering animations */
    cursor: default !important;
    transition: none !important;
  }
  
  /* Remove any circle frames in all contexts */
  .mobile-swiper-container .teacher-avatar,
  .mobile-swiper-container .teacher-avatar:before,
  .mobile-swiper-container .teacher-avatar:after,
  .mobile-swiper-container .teacher-avatar *,
  .mobile-swiper-container .teacher-avatar *:before,
  .mobile-swiper-container .teacher-avatar *:after {
    border-radius: 8px !important;
  }
  
  /* Style for the real photo - always visible */
  .mobile-swiper-container .teacher-avatar img.photo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Style for the avatar - positioned at bottom right of photo with no frame */
  .mobile-swiper-container .teacher-avatar img.avatar {
    position: absolute !important;
    bottom: 8px !important;       /* Position at the bottom right of photo */
    right: 8px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 20 !important;      /* In front of the photo */
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    transform: none !important;
    transition: none !important;
    pointer-events: none !important;
  }
  
  /* Status tags positioning - ensure they remain in front with proper overlay */
  .mobile-swiper-container .teacher-card .status-tag,
  .mobile-swiper-container .teacher-card .status-message {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 30 !important; /* Higher than both photo and avatar */
    background: linear-gradient(to right, #34d399, #10b981) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid #ffffff !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Card layout */
  .mobile-swiper-container .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
  }
  
  .mobile-swiper-container .teacher-card {
    width: 220px !important;     /* Standard card width */
    max-width: 90% !important;   /* Allow more space for content */
    margin: 0 auto !important;   /* Centered */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    overflow: visible !important; /* Allow avatar to be visible */
    background-color: white !important;
    position: relative !important;
    padding: 10px !important;
    display: flex !important;     /* Use flexbox layout */
    flex-direction: column !important;
  }
  
  /* Remove teacher-card-inner as we no longer need it */
  .mobile-swiper-container .teacher-card-inner,
  .mobile-swiper-container .teacher-card .teacher-card-inner {
    display: none !important;
  }
  
  /* Completely disable any animations, transitions, hovers, clicks */
  .mobile-swiper-container .teacher-avatar,
  .mobile-swiper-container .teacher-avatar *,
  .mobile-swiper-container .teacher-avatar img,
  .mobile-swiper-container .teacher-avatar.show-photo,
  .mobile-swiper-container .teacher-avatar:not(.show-photo),
  .mobile-swiper-container .teacher-avatar:before,
  .mobile-swiper-container .teacher-avatar:after,
  .mobile-swiper-container .teacher-avatar:hover,
  .mobile-swiper-container .teacher-avatar:active,
  .mobile-swiper-container .teacher-avatar.clicked {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    cursor: default !important;
    pointer-events: none !important;
  }
  
  /* Force permanent visibility of both photos and avatars */
  .mobile-swiper-container .teacher-avatar img.avatar,
  .mobile-swiper-container .teacher-avatar img.photo,
  .mobile-swiper-container .teacher-avatar:hover img.avatar,
  .mobile-swiper-container .teacher-avatar:hover img.photo,
  .mobile-swiper-container .teacher-avatar:active img.avatar,
  .mobile-swiper-container .teacher-avatar:active img.photo {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* Prevent background circles from showing */
  .mobile-swiper-container .teacher-card .teacher-avatar {
    border-radius: 8px !important;
    background: none !important;
    overflow: visible !important;
  }
}
