:root {
  --primary-color: #3c79f5;
  --accent-color: #5b29b8;
  --secondary-color: #f5f0ff;
  --text-color: #333;
  --border-color: #dcd0ff;
  --table-header-bg: #eae4ff;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
}

.navbar {
  background-color: rgba(245, 240, 255, 0.95);
  box-shadow: var(--box-shadow);
  padding: 0.5rem 1rem;
  margin-bottom: 4px;
}

.navbar-brand img {
  max-height: 65px;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(91, 41, 184, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#desktop-nav-links .nav-link,
.menu-content a {
  color: var(--accent-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.4s ease-in-out;
  position: relative;
  z-index: 1;
  overflow: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.menu-content a {
  font-size: 2rem;
}

.link-text {
  position: relative;
  z-index: 2;
}

.wave-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.4, 0.2, 0.6, 1);

  background-image: url("data:image/svg+xml,%3csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='300px' height='300px' viewBox='0 0 300 300' enable-background='new 0 0 300 300' xml:space='preserve'%3e%3cpath fill='%235B29B8' d='M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4 c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9 c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z'/%3e%3c/svg%3e");
  background-repeat: repeat-x;
  background-size: auto 150px;
  animation: waveAction 2.5s linear infinite;
}

#desktop-nav-links .nav-link:hover,
.menu-content a:hover,
.hero-btn:hover {
  color: white;
}

#desktop-nav-links .nav-link:hover .wave-container,
.menu-content a:hover .wave-container,
.hero-btn:hover .wave-container {
  transform: translateY(0%);
}

@keyframes waveAction {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: -300px;
  }
}

.bubbles-hover-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bubble-hover {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  bottom: -20px;
  animation: bubbleUp linear infinite;
}

#desktop-nav-links .nav-link:hover .bubbles-hover-container,
.menu-content a:hover .bubbles-hover-container,
.hero-btn:hover .bubbles-hover-container {
  opacity: 1;
}

@keyframes bubbleUp {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }

  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

.bubble-hover:nth-child(1) {
  width: 5px;
  height: 5px;
  left: 15%;
  animation-duration: 3s;
  animation-delay: 0.2s;
}

.bubble-hover:nth-child(2) {
  width: 3px;
  height: 3px;
  left: 40%;
  animation-duration: 4s;
  animation-delay: 1s;
}

.bubble-hover:nth-child(3) {
  width: 6px;
  height: 6px;
  left: 60%;
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}

.bubble-hover:nth-child(4) {
  width: 4px;
  height: 4px;
  left: 85%;
  animation-duration: 5s;
  animation-delay: 1.5s;
}

.bubble-hover:nth-child(5) {
  width: 5px;
  height: 5px;
  left: 30%;
  animation-duration: 3.5s;
  animation-delay: 2s;
}

#fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(234, 228, 255, 0.98);
  backdrop-filter: blur(15px);
  z-index: 1055;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s;
}

#fullscreen-menu.visible {
  opacity: 1;
  visibility: visible;
}

#close-menu-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: var(--accent-color);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nonalk-section {
  padding: 6rem 2px;
  text-align: center;
  background: url("bg_shot.png") no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
  z-index: 1;
}

.nonalk-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(10 93 112 / 50%),
    rgba(50, 20, 90, 0.5)
  );
  z-index: -1;
}

.nonalk-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgb(150 136 177);
  color: #31008c;
}

.nonalk-section p {
  font-size: 1.25rem;
  color: #000;
  max-width: 750px;
  margin: 1rem auto;
  text-shadow: 1px 1px 4px rgb(91 41 184);
  font-weight: 400;
}

.gen-section {
  padding: 6rem 2px;
  text-align: center;
  background: url("bg2.png") no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
  z-index: 1;
}

.gen-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(10 93 112 / 50%),
    rgba(50, 20, 90, 0.5)
  );
  z-index: -1;
}

.gen-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgb(150 136 177);
  color: #31008c;
}

.gen-section p {
  font-size: 1.25rem;
  color: #000;
  max-width: 750px;
  margin: 1rem auto;
  text-shadow: 1px 1px 4px rgb(91 41 184);
  font-weight: 400;
}

.page-section {
  padding: 6rem 2px;
  text-align: center;
  background: url("bg8.png") no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
  z-index: 1;
}

.page-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(10 93 112 / 50%),
    rgba(50, 20, 90, 0.5)
  );
  z-index: -1;
}

.page-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgb(150 136 177);
  color: #31008c;
}

.page-section p {
  font-size: 1.25rem;
  color: #000;
  max-width: 750px;
  margin: 1rem auto;
  text-shadow: 1px 1px 4px rgb(91 41 184);
  font-weight: 400;
}

.hero-section {
  padding: 6rem 2px;
  text-align: center;
  background: url("bg1.png") no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(10 93 112 / 50%),
    rgba(50, 20, 90, 0.5)
  );
  z-index: -1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgb(150 136 177);
  color: #31008c;
}

.hero-section p {
  font-size: 1.25rem;
  color: #000;
  max-width: 750px;
  margin: 1rem auto;
  text-shadow: 1px 1px 4px rgb(91 41 184);
  font-weight: 400;
}

.hero-btn {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: transparent;
  color: white;
  border: 1px solid black;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease !important;
}

.hero-btn:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-btn .link-text {
  color: var(--accent-color) !important;
  transition: color 0.3s ease !important;
}

.hero-btn:hover .link-text {
  color: white !important;
  transition: color 0.3s ease !important;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-color);
  font-weight: 600;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
}

.how-it-works .step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(60, 121, 245, 0.4);
}

.testimonial {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  border-left: 5px solid var(--primary-color);
  height: 100%;
}

.testimonial p:last-of-type {
  font-weight: bold;
  text-align: right;
  margin-bottom: 0;
  color: var(--accent-color);
}

.possibilities-section .possibility-image {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta-section {
  padding: 6rem 2px;
  text-align: center;
  background: url("bg5.png") no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
  z-index: 1;
}

.final-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(184 0 158 / 50%),
    rgba(50, 20, 90, 0.5)
  );
  z-index: -1;
}

.final-cta-section h2 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgb(150 136 177);
  color: #31008c;
}

.final-cta-section p {
  font-size: 1.25rem;
  color: #000;
  max-width: 750px;
  margin: 1rem auto;
  text-shadow: 1px 1px 4px rgb(91 41 184);
  font-weight: 400;
}

.footer-full {
  background-color: #eae4ff;
  padding: 4rem 0 0 0;
  margin-top: 4rem;
  border-top: 2px solid var(--border-color);
}

.footer-full .footer-heading {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-full .footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-full .footer-links li {
  margin-bottom: 0.75rem;
}

.footer-full .footer-links a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-full .footer-links a:hover {
  color: var(--primary-color);
}

.footer-copyright {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bubbles.paused .bubble {
  animation-play-state: paused;
}

.bubble {
  position: absolute;
  bottom: -150px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid rgba(91, 41, 184, 0.5);
  box-shadow: 0 0 10px rgba(91, 41, 184, 0.5);
  animation-name: rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  25% {
    transform: translateY(-20vh) translateX(15px);
  }

  50% {
    transform: translateY(-50vh) translateX(-15px);
  }

  75% {
    transform: translateY(-75vh) translateX(10px);
  }

  100% {
    transform: translateY(-110vh) translateX(-10px);
    opacity: 0;
  }
}

.container {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

.choices__inner {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: #fff;
}

.choices[data-type*="select-multiple"] .choices__inner {
  padding-bottom: 0.5rem;
}

.choices__list--multiple .choices__item {
  display: none !important;
}

.generuj_btn {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.generuj_btn:hover {
  background-color: #492296;
  color: #fff;
}

button:hover {
  background-color: #492296;
}

button:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

#results {
  margin-top: 2rem;
}

table.recipe-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recipe-table th,
.recipe-table td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
}

.recipe-table th {
  background-color: var(--table-header-bg);
  font-weight: bold;
}

.recipe-table caption {
  caption-side: top;
  font-size: 1.5em;
  font-weight: bold;
  padding: 10px;
  color: var(--accent-color);
}

.recipe-table .label {
  background-color: #f2f2f2;
  font-weight: 600;
  width: 120px;
}

#ingredient-fall-container {
  width: 100%;
  max-width: 550px;
  height: auto;
  aspect-ratio: 550 / 579;
  margin-left: auto;
  margin-right: auto;
  background-color: #f0f0f0;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-image: var(--bg-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
}

#ingredient-fall-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--fg-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  pointer-events: none;
}

.ingredient-tag {
  position: absolute;
  background-color: var(--accent-color);
  color: white;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: grab;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform-origin: center center;
  user-select: none;
  will-change: transform;
}

.remove-ingredient {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  padding: 1px 5px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s;
}

.remove-ingredient:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

#selected-ingredients-list-container {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 3px;
  background-color: #fff;
  min-height: 50px;
}

#selected-ingredients-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#selected-ingredients-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 0 1px 20px;
  border-bottom: 1px solid var(--border-color);
}

#selected-ingredients-list li:last-child {
  border-bottom: none;
}

.remove-from-list-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  color: #dc3545;
  font-weight: bold;
  font-size: 1.2rem;
}

@media (max-width: 991.98px) {
  h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 1rem;
  }

  .ingredient-tag {
    font-size: 12px;
    padding: 3px 6px;
  }

  .remove-ingredient {
    font-size: 12px;
  }

  .choices__inner,
  .choices__input {
    font-size: 16px !important;
  }
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.loading-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wine-glass-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass {
  position: relative;
  width: 120px;
  height: 160px;
  border: 4px solid #e0e0e0;
  border-radius: 0 0 60px 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(0, 0, 0, 0.2);
}

.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  width: 8px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  border-radius: 4px;
}

.stem {
  position: relative;
  width: 6px;
  height: 80px;
  background: linear-gradient(to bottom, #e0e0e0 0%, #d0d0d0 50%, #c0c0c0 100%);
  border-radius: 3px;
  box-shadow:
    inset 2px 0 4px rgba(255, 255, 255, 0.3),
    inset -2px 0 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.stem::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
}

.base {
  position: relative;
  width: 80px;
  height: 12px;
  background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 50%, #b8b8b8 100%);
  border-radius: 40px/6px;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.base::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 32px/1px;
}

.liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    45deg,
    #8e24aa 0%,
    #ab47bc 25%,
    #ce93d8 50%,
    #ab47bc 75%,
    #8e24aa 100%
  );
  border-radius: 0 0 56px 56px;
  animation: fillAndEmpty 6s ease-in-out infinite;
  overflow: hidden;
}

.liquid::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: wave 2s ease-in-out infinite;
}

.stream {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(142, 36, 170, 0.8) 20%,
    rgba(142, 36, 170, 0.9) 100%
  );
  border-radius: 4px;
  animation: pourStream 6s ease-in-out infinite;
}

.lemon-slice {
  position: absolute;
  top: -15px;
  right: -25px;
  width: 50px;
  height: 50px;
  background: radial-gradient(
    circle at center,
    #fff9c4 0%,
    #ffeb3b 30%,
    #fdd835 60%,
    #f9a825 80%,
    #ff8f00 100%
  );
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: lemonFloat 4s ease-in-out infinite;
}

.lemon-slice::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: repeating-conic-gradient(
    from 0deg at center,
    transparent 0deg 30deg,
    rgba(255, 255, 255, 0.3) 30deg 60deg
  );
  border-radius: 50%;
}

.lemon-slice::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.loading-text {
  margin-top: 30px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes fillAndEmpty {
  0% {
    height: 0%;
    opacity: 0.8;
  }

  25% {
    height: 90%;
    opacity: 1;
  }

  50% {
    height: 90%;
    opacity: 1;
  }

  75% {
    height: 0%;
    opacity: 0.8;
  }

  100% {
    height: 0%;
    opacity: 0.8;
  }
}

@keyframes wave {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
  }

  50% {
    transform: translateX(-5px) scaleX(1.1);
  }
}

@keyframes pourStream {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }

  5% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }

  45% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }

  50% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }
}

@keyframes lemonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.bubbles-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bubble-animation {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: bubble-rise 3s infinite ease-in;
}

.bubble-animation:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
}

.bubble-animation:nth-child(2) {
  left: 50%;
  animation-delay: 1s;
}

.bubble-animation:nth-child(3) {
  left: 80%;
  animation-delay: 2s;
}

@keyframes bubble-rise {
  0% {
    bottom: 0;
    opacity: 1;
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }

  100% {
    bottom: 100%;
    opacity: 0;
    transform: scale(0);
  }
}

.glass-shine {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 4px;
  height: 60%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}

.accordion-button {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.accordion-button:not(.collapsed):hover,
.accordion-button:hover {
  color: white;
  background-color: var(--accent-color);
}

.accordion-button:not(.collapsed) {
  color: var(--accent-color);
  background-color: rgba(245, 240, 255, 0.95);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
  filter: grayscale(1) brightness(1.5) sepia(1) hue-rotate(220deg);
}

.accordion-button:not(.collapsed)::after {
  filter: none;
}

.form-control:focus {
  border-color: #5b29b8;
  box-shadow: 0 0 0 0.25rem rgba(91, 41, 184, 0.25);
  outline: 0;
}

.form-check-input:checked {
  background-color: #5b29b8;
  border-color: #5b29b8;
}

.form-check-input:focus {
  border-color: #5b29b8;
  box-shadow: 0 0 0 0.25rem rgba(91, 41, 184, 0.25);
  outline: 0;
}

.category-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  text-decoration: none;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
  position: relative;
}

.category-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.category-link span {
  position: relative;
  z-index: 2;
}

.category-link:hover {
  transform: scale(1.02);
  color: white;
}

@media (min-width: 992px) {
  .footer-full .container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.ai-model-toggle {
  position: relative;
  display: flex;
  background-color: var(--table-header-bg, #eae4ff);
  border-radius: 30px;
  border: 1px solid var(--border-color, #dcd0ff);
  overflow: hidden;
  padding: 4px;
}

.ai-model-toggle input[type="radio"] {
  display: none;
}

.ai-model-toggle label {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--accent-color, #5b29b8);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  margin-bottom: 0;
}

.ai-model-toggle .toggle-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(
    90deg,
    var(--accent-color, #5b29b8) 0%,
    #b8009e 100%
  );
  border-radius: 30px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ai-model-toggle #model-free:checked + label {
  color: #ffffff;
}
.ai-model-toggle #model-free:checked ~ .toggle-slider {
  transform: translateX(0%);
}

.ai-model-toggle #model-pro:checked + label {
  color: #ffffff;
}
.ai-model-toggle #model-pro:checked ~ .toggle-slider {
  transform: translateX(calc(100% + 4px));
}

.ai-model-toggle #model-pro:disabled + label {
  color: #aaa;
  cursor: not-allowed;
}

@media (max-width: 576px) {
  .ai-model-toggle label {
    font-size: 0.8rem;
    padding: 8px 5px;
  }
}

.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(91, 41, 184, 0.2);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.auth-modal-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(91, 41, 184, 0.25);
  text-align: center;
  max-width: 450px;
  width: 90%;
  position: relative;
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.auth-modal-overlay.active .auth-modal-box {
  transform: translateY(0);
}

.auth-modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.auth-modal-title {
  color: var(--accent-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-modal-text {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.auth-modal-btn {
  display: inline-block;
  width: 100%;
  padding: 0.8rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  border: none;
  margin-bottom: 0.5rem;
}

.auth-modal-btn:hover {
  background-color: #492296;
  color: white;
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.age-gate-box {
  background: #1a1a1a;
  border: 2px solid var(--accent-color);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 50px rgba(91, 41, 184, 0.3);
  color: white;
}

.age-gate-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.age-gate-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.btn-enter {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

.btn-enter:hover {
  transform: scale(1.05);
  background-color: #4a2196;
}

.btn-leave {
  background-color: transparent;
  border: 2px solid #666;
  color: #ccc;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-leave:hover {
  border-color: #888;
  color: white;
}

.age-legal-note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 15px;
}

.age-gate-hidden {
  display: none !important;
}

body.age-gate-active {
  overflow: hidden;
}

.blog-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
  background-color: var(--card-bg, #fff);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.blog-img-container {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0;
}

.blog-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-container img {
  transform: scale(1.05);
}

.blog-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
  display: block;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

.post-header {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.post-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.post-header-content {
  position: relative;
  z-index: 2;
}

.post-date-badge {
  position: absolute;
  bottom: 0;
  right: 15px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  backdrop-filter: blur(5px);
}

.text-dark .post-date-badge {
  background-color: rgba(0, 0, 0, 0.05);
  color: #555;
}

.article-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

.article-content h2 {
  color: var(--accent-color);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.share-section {
  border-top: 1px solid #eee;
  margin-top: 4rem;
  padding-top: 2rem;
}

.blogpost {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 12px;
  color: #31008c;
}

.form-data-location {
  display: none !important;
  opacity: 0;
  position: absolute;
  left: -9999px;
  z-index: -1;
}
