@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles */
body {
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}
.font-turret {
    font-family: 'Turret Road', cursive;
}
.bg-gradient-custom {
    background: linear-gradient(rgba(24, 25, 32, 0.8), rgba(24, 25, 32, 0.95)), 
                url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}
.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}
.animate-slide-right {
    animation: slideRight 0.8s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideRight {
    from { transform: translateX(-40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: translateY(-5px);
}

/* Loading animation */
.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Animation delay utilities */
.\[animation-delay\:\.3s\] {
    animation-delay: 0.3s;
}

.\[animation-delay\:\.7s\] {
    animation-delay: 0.7s;
}

/* Loading component */
.loading-dots {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.loading-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background-color: #1d4ed8; /* blue-700 */
    animation: bounce 1s infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dot:nth-child(1),
.loading-dot:nth-child(3) {
    animation-delay: 0.7s;
}
/* From Uiverse.io by Javierrocadev */ 
.temporary__storage {
/*delete this*/
  width: 350px;
  height: 350px;
  background: #1b1a1a;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 320px;
  height: 300px;
  background: #1b1a1a;
  position: relative;
  color: #e6e6ea;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image {
  width: 100%;
  height: 180px;
  position: absolute;
  background-color: rgb(144, 197, 47);
  cursor: pointer;
  transition: all .2s ease;
}

.image::before {
  content: "LIVE";
  position: absolute;
  top: 7px;
  left: 7px;
  font-weight: 900;
  font-size: .8em;
  background-color: rgb(228, 33, 33);
  border-radius: 5px;
  padding: 3px 5px;
}

.image::after {
  content: "102.2k viewers";
  position: absolute;
  bottom: 7px;
  left: 7px;
  font-weight: 300;
  font-size: .7em;
  background-color: rgb(59, 53, 53);
  border-radius: 2px;
  padding: 3px 5px;
}

.image__overlay {
  width: 100%;
  height: 180px;
}

.image:hover {
  transform: translate(8px, -8px);
  box-shadow: -1px 1px 0px 0px violet,-2px 2px 0px 0px violet,-3px 3px 0px 0px violet,-4px 4px 0px 0px violet,-5px 5px 0px 0px violet,-6px 6px 0px 0px violet,-7px 7px 0px 0px violet,-8px 8px 0px 0px violet;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  background-image: linear-gradient(to right top, #371f05, #654607, #8b7600, #a4ae00, #a8eb12);
}

.content {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.content__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.content__body {
  display: flex;
  flex-direction: column;
}

.stream__title {
  font-weight: 900;
  width: 260px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
}

.event {
  cursor: pointer;
}

.streamer__name, .event {
  font-size: .8em;
  font-weight: 400;
  color: rgb(216, 213, 213);
}

.categories__btn {
  text-decoration: none;
  color: rgb(216, 213, 213);
  font-size: .8em;
  background-color: rgb(73, 71, 71);
  padding: 3px 10px;
  border-radius: 15px;
}

.stream__title:hover, .event:hover {
  color: #9f7cd3;
}

.categories__btn:hover {
  background-color: rgb(79, 79, 79);
}
/* From Uiverse.io by SouravBandyopadhyay */ 
.notification {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  position: relative;
  width: 18rem;
  height: 8rem;
  background: #29292c;
  border-radius: 1rem;
  overflow: hidden;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 16px;
  --gradient: linear-gradient(to bottom, #2eadff, #3d83ff, #7e61ff);
  --color: #32a6ff
}

.notification:before {
  position: absolute;
  content: "";
  inset: 0.0625rem;
  border-radius: 0.9375rem;
  background: #18181b;
  z-index: 2
}

.notification:after {
  position: absolute;
  content: "";
  width: 0.25rem;
  inset: 0.65rem auto 0.65rem 0.5rem;
  border-radius: 0.125rem;
  background: var(--gradient);
  transition: transform 300ms ease;
  z-index: 4;
}

.notification:hover:after {
  transform: translateX(0.15rem)
}

.notititle {
  color: var(--color);
  padding: 0.65rem 0.25rem 0.4rem 1.25rem;
  font-weight: 500;
  font-size: 1.1rem;
  transition: transform 300ms ease;
  z-index: 5;
}

.notification:hover .notititle {
  transform: translateX(0.15rem)
}

.notibody {
  color: #99999d;
  padding: 0 1.25rem;
  transition: transform 300ms ease;
  z-index: 5;
}

.notification:hover .notibody {
  transform: translateX(0.25rem)
}

.notiglow,
.notiborderglow {
  position: absolute;
  width: 20rem;
  height: 20rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side at center, white, transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.notiglow {
  z-index: 3;
}

.notiborderglow {
  z-index: 1;
}

.notification:hover .notiglow {
  opacity: 0.1
}

.notification:hover .notiborderglow {
  opacity: 0.1
}

.note {
  color: var(--color);
  position: fixed;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.9rem;
  width: 75%;
}

