/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(82, 60%, 28%);
  --title-color: hsl(0, 0%, 15%);
  --body-color: hsl(0, 0%, 95%);
  --container-color: hsl(0, 0%, 100%);
  --container-desc-color: hsla(0, 0%, 100%, 0.884);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --h2-font-size: 1.25rem;
  --small-font-size: .813rem;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1120px) {
  :root {
    --h2-font-size: 1.5rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}







/* =========== Badges =========== */

/* Status Badge Styles */
.status-container {
    position: absolute;
    top: 15px;
    left: 15px;
    /* z-index: 10; */
}

.status-badge {
    display: flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-badge.online {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
}

.status-badge.offline {
    background: linear-gradient(135deg, #9E9E9E, #607D8B);
    color: white;
}

/* Hover Effects */
.status-badge.online:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #8BC34A, #4CAF50);
}

.status-badge.offline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(158, 158, 158, 0.3);
    background: linear-gradient(135deg, #607D8B, #9E9E9E);
}

.status-icon {
    margin-right: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.status-badge:hover .status-icon {
    transform: scale(1.1);
}

.status-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: scale(0);
    animation: pulse 2s infinite;
    z-index: -1;
}

/* Typing Dots Animation */
.typing-dots {
    display: flex;
    align-items: center;
    margin-left: 8px;
    height: 100%;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: white;
    margin: 0 2px;
    opacity: 0.4;
}

.dot-1 {
    animation: typing-dots 1.5s infinite ease-in-out;
}
.dot-2 {
    animation: typing-dots 1.5s infinite ease-in-out 0.3s;
}
.dot-3 {
    animation: typing-dots 1.5s infinite ease-in-out 0.6s;
}

@keyframes typing-dots {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Ensure other badges don't overlap */
.badge-container {
    position: absolute;
    top: 0;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-container2 {
    display: flex;
    gap: 15px;
    margin-top: -10px;
}





.modern-chat-icon {
    position: relative;
    display: inline-block;
}
.overlay-bubble {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 0.8em;
    opacity: 0.7;
}
.onlineAgent .modern-chat-icon {
    color: #91ff95;
}
.offlineAgent .modern-chat-icon {
    color: #9E9E9E;
}


.offlineAgent{
    background-color: grey;
}
.onlineAgent{
    background-color: green;
}



/* VIP Badge Styles */
.vip-badge {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    padding: 5px 10px 5px 5px;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    align-self: flex-start;
    margin-top: 15px;
    margin-left: 10px;
}

.vip-icon {
    position: relative;
    color: #FFD700;
    font-size: 1.2rem;
    margin-right: 5px;
}

.vip-text {
    color: white;
    font-weight: bold;
    text-shadow: 0 0 5px #FFD700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.vip-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 2s infinite;
}

.vip-sparkle.delay-1 { animation-delay: 0.3s; top: -5px; right: -5px; }
.vip-sparkle.delay-2 { animation-delay: 0.6s; bottom: -5px; left: -5px; }

/* New Badge Styles */
.new-badge {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    padding: 5px 10px 5px 5px;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.3);
    border: 1px solid rgba(0, 150, 255, 0.3);
    align-self: flex-start;
    margin-top: 0px;
}

.new-icon {
    position: relative;
    color: #00BFFF;
    font-size: 1.2rem;
    margin-right: 5px;
}

.new-text {
    color: white;
    font-weight: bold;
    text-shadow: 0 0 5px #00BFFF;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.new-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 191, 255, 0.2);
    border-radius: 20px;
    animation: pulse 2s infinite;
}
/* Animations */
@keyframes sparkle {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { opacity: 0; }
}


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

img {
  display: block;
  max-width: 100%;
  height: auto;
}


.container-for-card {
  display: grid;
  place-items: center;
  margin-inline: 0.5rem;
  padding-block: 0rem;
}

.card__container {
  display: grid;
  row-gap: 3.5rem;
  overflow: hidden !important;

}


.card__article {
  position: relative;
  overflow: hidden !important;
}


/* Card Positioning */
.card__article {
    position: relative;
    overflow: hidden;
}



.card__img {
  width: 328px;
  height: 350px;
  max-height: 350px;
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 0 0;
}


.card__data {
  width: 100%;
  background-color: hsla(0, 0%, 1%, 0.74);
  padding: 2rem;
  box-shadow: 0 8px 24px hsla(0, 0%, 1%, 0.15);
  border-radius: 1.5rem 1.5rem 0 0;
  position: absolute;
  top: 245;
  bottom: -20rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 1;
  transition: opacity 1s 1s;
}

.card__description {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
  color: var(--text-color);
}

.card__list li{
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: .25rem;
    color: var(--text-color);
    margin: 0;
    padding: 0;
  }
  .card__list{
    padding-left: 0;
  }

.card__title {
  font-size: var(--h2-font-size);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: .75rem;
}

.card__button {
  text-decoration: none;
  font-size: var(--small-font-size);
  font-weight: 500;
  color: var(--color-primary);
}

.card__button:hover {
  text-decoration: underline;
}

/* Naming animations in hover */
.card__article:hover .card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
}

.card__article:hover {
  animation: remove-overflow 2s forwards;
}

.card__article:not(:hover) {
  animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data {
  animation: remove-data 1s forwards;
}




/* Mobile/touch device adaptations */
@media (hover: none) and (pointer: coarse) {
    /* Apply hover styles on tap (using :active) */
    .card__article:active .card__data {
      animation: show-data 1s forwards;
      opacity: 1;
      transition: opacity .3s;
    }

    .card__article:active {
      animation: remove-overflow 2s forwards;
    }

    /* Alternative: Make the effect persistent after tap */
    .card__article.tapped .card__data {
      animation: show-data 1s forwards;
      opacity: 1;
      transition: opacity .3s;
    }

    .card__article.tapped {
      animation: remove-overflow 2s forwards;
    }

    /* For devices that support :focus-visible */
    .card__article:focus-visible .card__data {
      animation: show-data 1s forwards;
      opacity: 1;
    }

    .card__article:focus-visible {
      animation: remove-overflow 2s forwards;
    }
  }



/* Card animation */
@keyframes show-data {
  50% {
    transform: translateY(-12rem);
  }
  100% {
    transform: translateY(-12rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container-for-card {
    margin-inline: 1rem;
  }
  .card__article{
    margin: 5px;
  }
  .card__data {
    width: 250px;
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .card__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1120px) {
  /* .container-for-card {
    height: 100vh;
  } */

  .card__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .card__img {
    width: 348px;
  }
  .card__data {
    width: 316px;
    padding-inline: 2.5rem;
  }
}




















