/* Google Fonts Poppins – definicje klas */
.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}
.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}
.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}
.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}
.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}
.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}
.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}
.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}
.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}
.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}
.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}
.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}
.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}
.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}
.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}
.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* Zmienne kolorów */
:root {
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-50:  #f5f5f5;
  --slate-400: #94a3b8;
  --indigo-500: #6366f1;
  --indigo-200: #a5b4fc;
  --dark-blue: rgba(2,6,23,255);
  --button-bg: #e61d47;
  --button-hover-text: rgb(33,37,41);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--dark-blue);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Kontener karty */
.card-container {
  position: relative;
  width: 90%;
  max-width: 24rem;
  margin: 4rem auto;
  border-radius: 0.5rem;
  background-color: var(--slate-800);
  padding: 0.125rem;
  overflow: hidden;
  transition: all 0.5s;
}
.card-container:hover {
  transform: scale(1.01);
  background-color: rgba(30, 41, 59, 0.5);
}

/* Karta – zawartość wewnętrzna */
.card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background-color: var(--slate-900);
  padding: 2rem;
  transition: background-color 0.5s;
  box-sizing: border-box;
}
.card-container:hover .card {
  background-color: var(--slate-800);
}

/* Kontener ikony z animowanym efektem – ustalamy wymiary na 4rem,
   aby efekt obracającego się obramowania działał poprawnie */
.icon-container {
  position: relative;
  z-index: 10;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  border: none;
  background-color: transparent;
  padding: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* pozwala wyświetlić większe logo poza granicami kontenera */
}
/* Teraz skalujemy logo wewnątrz kontenera – logo będzie większe */
.icon-container img {
  width: 6rem;
  height: auto;
}

/* Nagłówek – “Bazzare” */
.card h3.poppins-bold {
  margin-bottom: 1rem;
  margin-top: 0;
  width: 100%;
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-50);
  text-align: left;
  opacity: 0.9;
  cursor: pointer;
}

/* Opis – Poppins Regular */
.card p.poppins-regular {
  color: var(--slate-400);
  text-align: left;
  margin: 0;
  font-weight: 400;
  font-size: 0.95rem;
  opacity: 0.9;
  cursor: pointer;
}

/* Przycisk Discorda */
.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--button-bg);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  border: none;
  border-radius: 18px;
  padding: 12px 30px;
  cursor: pointer;
  overflow: hidden;
  margin-top: 2rem;
}
.hero-btn::after {
  content: "";
  position: absolute;
  top: -50px;
  left: -75px;
  width: 50px;
  height: 155px;
  background: #fff;
  opacity: 0.2;
  transform: rotate(35deg);
  transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 0;
}
.hero-btn:hover::after {
  left: 120%;
}
.hero-btn:hover,
.hero-btn:active {
  color: var(--button-hover-text);
}

/* Ikona Discorda */
.discord-icon {
  width: 20px;
  height: 20px;
  background-color: #fff;
  -webkit-mask: url("https://i.imgur.com/HHh2pa3.png") center/contain no-repeat;
          mask: url("https://i.imgur.com/HHh2pa3.png") center/contain no-repeat;
  display: block;
  transition: background-color 0.3s ease;
}
.hero-btn:hover .discord-icon,
.hero-btn:active .discord-icon {
  background-color: var(--button-hover-text);
}

/* Animacja tła – obracający się gradient w obramowaniu karty */
.animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--indigo-200), transparent, var(--indigo-200));
  opacity: 0;
  transition: opacity 0.5s;
  transform: scale(1.75) rotate(0deg);
}
.card-container:hover .animated-bg {
  opacity: 1;
}
@keyframes rotateAnim {
  from { transform: scale(1.75) rotate(0deg); }
  to   { transform: scale(1.75) rotate(360deg); }
}
.animated-bg {
  animation: rotateAnim 3.5s linear infinite;
}

/* Media Queries – dla mniejszych ekranów */
@media (max-width: 480px) {
  .card-container {
    margin: 2rem auto;
    width: 95%;
  }
  .card {
    padding: 1.5rem;
  }
  .card h3.poppins-bold {
    font-size: 1.6rem;
  }
  .card p.poppins-regular {
    font-size: 0.9rem;
  }
  .hero-btn {
    font-size: 11px;
    padding: 10px 20px;
  }
  @media (hover: none) {
    .card-container:hover {
      transform: none;
      background-color: var(--slate-800);
    }
    .card-container:hover .card {
      background-color: var(--slate-900);
    }
    .card-container:hover .animated-bg {
      opacity: 0;
    }
  }
}
