@font-face {
  font-family: Lexend Deca;
  src: url("/fonts/LexendDeca.ttf") format("truetype");
}

:root {
  --bg: #d9c3b0;
  --text: #1a1a1a;
  --primary: #f0e6d2;
  --accent: #7b281d;
}

/* Social Color Scheme */
.twitch {
  --accent: #9146ff;
}

.youtube {
  --accent: #ff0000;
}

.tipply {
  --accent: #26ff00;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease;
  font-family:
    Lexend Deca,
    sans-serif;
}

.social {
  padding: 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 1.4rem;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0.5rem;
  background-color: #fefefe;
}

.accent {
  color: var(--accent);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 20svh;
  justify-content: flex-start;
  padding: 6rem 1.5rem 2rem;
  text-align: center;
  box-sizing: border-box;
}

.hero-avatar {
  width: clamp(110px, 18vw, 150px);
  aspect-ratio: 1 / 1;
  margin-bottom: 1.25rem;
  border-radius: 50%;
}

.short-description {
  font-size: 1.25rem;
  max-width: 600px;
  padding: 1rem;
  border-radius: 50px;
  border: 1px solid var(--accent);
  background: var(--primary);
  color: #e1e1e1;
  margin-bottom: 2rem;
}

section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0.8rem 0.8rem;
  line-height: 1.3;
}

section p {
  margin-bottom: 1.25rem;
}

.fursona-section {
  max-width: 900px;
}

.section-title {
  margin-bottom: 1rem;
}

.ref-wrapper {
  display: flex;
  justify-content: center; /* tylko obrazek center */
  margin: 2rem 0;
}

.ref-image {
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
}

.section-content p {
  margin-bottom: 1rem;
}

.warning {
  font-weight: bold;
}

/* Desktop layout */
@media (min-width: 768px) {
  .fursona-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  .fursona-text {
    text-align: left;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.image-modal {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    backdrop-filter 0.25s ease;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;

  transform: scale(0.92);
  opacity: 0;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  will-change: transform, opacity;
}

.image-modal.active {
  opacity: 1;
  pointer-events: all;
  cursor: zoom-out;
}

.image-modal.active img {
  transform: scale(1);
  opacity: 1;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.friend {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.friend img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.friend img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 1rem;
  transition: transform 0.2s ease;
}

.carousel-btn:hover {
  transform: scale(1.2);
}

.no-link {
  position: relative;
  display: inline-block;
}

.no-link::after {
  content: "nie ma sociali :c";
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: var(--accent);
  backdrop-filter: blur(6px);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.no-link.show-tooltip::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.text-bold {
  font-weight: bold;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--accent);
  border-radius: 12px 12px 0 0;
}
