/* ========================================
   BENTO SPACE BACKGROUND
   AI-Powered Planning, Book Everything,
   and Share & Discover cards in bento grid
   ======================================== */

/* ----------------------------------------
   SHARED BASE STYLES
   ---------------------------------------- */

.bento-space-bg {
  background: linear-gradient(
      145deg,
      rgba(var(--primary-rgb), 0.65) 0%,
      rgba(var(--primary-rgb), 1) 50%,
      rgba(var(--primary-rgb), 0.75) 100%
    )
    #000000;
  position: relative;
  overflow: hidden;
}

.bento-space-icon {
  position: absolute;
  color: var(--white);
  pointer-events: none;
  z-index: 1;
  animation: bento-float var(--float-duration, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.bento-space-icon i {
  display: block;
}

.bento-space-img {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: bento-float var(--float-duration, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.bento-space-img img {
  display: block;
  width: 100%;
  height: auto;
}

.bento-space-star {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: bento-twinkle var(--twinkle-duration, 4s) ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s);
}

.bento-space-text {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: white;
  z-index: 2;
}

.bento-space-text h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bento-space-text p {
  font-size: 1.125rem;
  opacity: 0.85;
}

@keyframes bento-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bento-twinkle {
  0%,
  100% {
    opacity: var(--star-opacity, 0.3);
  }
  50% {
    opacity: calc(var(--star-opacity, 0.3) * 0.4);
  }
}

/* ----------------------------------------
   AI CARD - Positioned elements
   ---------------------------------------- */

/* Icons */
.bento-ai-pin {
  left: 82%;
  top: 5%;
  opacity: 0.15;
  --float-duration: 7s;
}

.bento-ai-pin i {
  font-size: 44px;
  transform: rotate(-18.5deg);
}

.bento-ai-compass {
  left: 14%;
  top: 62%;
  opacity: 0.05;
  --float-duration: 8s;
  --float-delay: 1.5s;
}

.bento-ai-compass i {
  font-size: 35px;
  transform: rotate(12.3deg);
}

.bento-ai-plane {
  left: 22%;
  top: 36%;
  opacity: 0.06;
  --float-duration: 9s;
  --float-delay: 0.5s;
}

.bento-ai-plane i {
  font-size: 40px;
  transform: rotate(18.8deg);
}

.bento-ai-camera {
  left: 71%;
  top: 35%;
  opacity: 0.02;
  --float-duration: 6s;
  --float-delay: 2s;
}

.bento-ai-camera i {
  font-size: 22px;
  transform: rotate(-24.2deg);
}

.bento-ai-utensils {
  left: 46%;
  top: 71%;
  opacity: 0.07;
  --float-duration: 7.5s;
  --float-delay: 1s;
}

.bento-ai-utensils i {
  font-size: 38px;
  transform: rotate(-2.5deg);
}

.bento-ai-hotel {
  left: 84%;
  top: 56%;
  opacity: 0.02;
  --float-duration: 8.5s;
  --float-delay: 3s;
}

.bento-ai-hotel i {
  font-size: 19px;
  transform: rotate(-18.6deg);
}

.bento-ai-globe {
  left: 13%;
  top: 11%;
  opacity: 0.02;
  --float-duration: 10s;
  --float-delay: 2.5s;
}

.bento-ai-globe i {
  font-size: 18px;
  transform: rotate(11deg);
}

/* Floating images */
.bento-ai-itinerary {
  left: 55%;
  top: 3%;
  width: 160px;
  --float-duration: 8s;
  --float-delay: 0.5s;
}

.bento-ai-itinerary img {
  transform: rotate(-6deg);
}

.bento-ai-arrow {
  left: 5%;
  top: 30%;
  width: 65px;
  --float-duration: 7s;
  --float-delay: 2s;
}

.bento-ai-arrow img {
  transform: rotate(15deg);
}

.bento-ai-van {
  left: 68%;
  top: 48%;
  width: 120px;
  --float-duration: 9s;
  --float-delay: 1s;
}

.bento-ai-van img {
  transform: rotate(-4deg);
}

/* Stars */
.bento-ai-star-1 {
  left: 77%;
  top: 6%;
  width: 4px;
  height: 4px;
  --star-opacity: 0.28;
  --twinkle-duration: 5s;
}

.bento-ai-star-2 {
  left: 67%;
  top: 1%;
  width: 4px;
  height: 4px;
  --star-opacity: 0.32;
  --twinkle-duration: 4s;
  --twinkle-delay: 1s;
}

.bento-ai-star-3 {
  left: 13%;
  top: 5%;
  width: 5px;
  height: 5px;
  --star-opacity: 0.24;
  --twinkle-duration: 6s;
  --twinkle-delay: 0.5s;
}

.bento-ai-star-4 {
  left: 79%;
  top: 42%;
  width: 6px;
  height: 6px;
  --star-opacity: 0.52;
  --twinkle-duration: 3.5s;
  --twinkle-delay: 2s;
}

.bento-ai-star-5 {
  left: 20%;
  top: 77%;
  width: 7px;
  height: 7px;
  --star-opacity: 0.58;
  --twinkle-duration: 4.5s;
  --twinkle-delay: 1.5s;
}

.bento-ai-star-6 {
  left: 47%;
  top: 16%;
  width: 7px;
  height: 7px;
  --star-opacity: 0.57;
  --twinkle-duration: 5.5s;
  --twinkle-delay: 0.8s;
}

.bento-ai-star-7 {
  left: 46%;
  top: 45%;
  width: 3px;
  height: 3px;
  --star-opacity: 0.14;
  --twinkle-duration: 7s;
  --twinkle-delay: 3s;
}

.bento-ai-star-8 {
  left: 61%;
  top: 63%;
  width: 1px;
  height: 1px;
  --star-opacity: 0.08;
  --twinkle-duration: 6s;
  --twinkle-delay: 4s;
}

/* ----------------------------------------
   BOOKING THEME - Brand orange
   ---------------------------------------- */

.bento-space-bg--booking {
  background: linear-gradient(
      145deg,
      rgba(var(--secondary-rgb), 0.65) 0%,
      rgba(var(--secondary-rgb), 1) 50%,
      rgba(var(--secondary-rgb), 0.75) 100%
    )
    #000000;
}

.bento-space-bg--booking .bento-space-icon {
  color: var(--white);
}

.bento-space-bg--booking .bento-space-star {
  background: rgba(255, 255, 255, 0.2);
}

/* Booking icons */
.bento-booking-card {
  left: 15%;
  top: 15%;
  opacity: 0.12;
  --float-duration: 7s;
}

.bento-booking-card i {
  font-size: 28px;
  transform: rotate(-15deg);
}

.bento-booking-ticket {
  left: 75%;
  top: 18%;
  opacity: 0.08;
  --float-duration: 8s;
  --float-delay: 1.5s;
}

.bento-booking-ticket i {
  font-size: 22px;
  transform: rotate(20deg);
}

.bento-booking-bed {
  left: 45%;
  top: 10%;
  opacity: 0.05;
  --float-duration: 9s;
  --float-delay: 0.5s;
}

.bento-booking-bed i {
  font-size: 18px;
  transform: rotate(-8deg);
}

.bento-booking-tag {
  left: 88%;
  top: 50%;
  opacity: 0.1;
  --float-duration: 6.5s;
  --float-delay: 2s;
}

.bento-booking-tag i {
  font-size: 24px;
  transform: rotate(12deg);
}

.bento-booking-bag {
  left: 8%;
  top: 55%;
  opacity: 0.06;
  --float-duration: 8.5s;
  --float-delay: 3s;
}

.bento-booking-bag i {
  font-size: 20px;
  transform: rotate(-20deg);
}

/* Booking stars */
.bento-booking-star-1 {
  left: 30%;
  top: 12%;
  width: 4px;
  height: 4px;
  --star-opacity: 0.3;
  --twinkle-duration: 5s;
}

.bento-booking-star-2 {
  left: 65%;
  top: 55%;
  width: 5px;
  height: 5px;
  --star-opacity: 0.45;
  --twinkle-duration: 4s;
  --twinkle-delay: 1s;
}

.bento-booking-star-3 {
  left: 50%;
  top: 35%;
  width: 3px;
  height: 3px;
  --star-opacity: 0.2;
  --twinkle-duration: 6s;
  --twinkle-delay: 2s;
}

.bento-booking-star-4 {
  left: 85%;
  top: 25%;
  width: 5px;
  height: 5px;
  --star-opacity: 0.5;
  --twinkle-duration: 3.5s;
  --twinkle-delay: 0.5s;
}

.bento-booking-star-5 {
  left: 10%;
  top: 35%;
  width: 3px;
  height: 3px;
  --star-opacity: 0.15;
  --twinkle-duration: 7s;
  --twinkle-delay: 3s;
}

/* ----------------------------------------
   SOCIAL THEME - Brand yellow/accent
   ---------------------------------------- */

.bento-space-bg--social {
  background: linear-gradient(
      145deg,
      rgba(var(--accent-rgb), 0.65) 0%,
      rgba(var(--accent-rgb), 1) 50%,
      rgba(var(--accent-rgb), 0.75) 100%
    )
    #000000;
}

.bento-space-bg--social .bento-space-icon {
  color: var(--text-dark);
}

.bento-space-bg--social .bento-space-star {
  background: rgba(0, 0, 0, 0.2);
}

/* Social icons */
.bento-social-share {
  left: 12%;
  top: 18%;
  opacity: 0.1;
  --float-duration: 7.5s;
}

.bento-social-share i {
  font-size: 26px;
  transform: rotate(10deg);
}

.bento-social-heart {
  left: 80%;
  top: 15%;
  opacity: 0.08;
  --float-duration: 8s;
  --float-delay: 1s;
}

.bento-social-heart i {
  font-size: 22px;
  transform: rotate(-12deg);
}

.bento-social-users {
  left: 50%;
  top: 8%;
  opacity: 0.05;
  --float-duration: 9s;
  --float-delay: 2s;
}

.bento-social-users i {
  font-size: 18px;
  transform: rotate(5deg);
}

.bento-social-comment {
  left: 88%;
  top: 50%;
  opacity: 0.07;
  --float-duration: 6.5s;
  --float-delay: 2.5s;
}

.bento-social-comment i {
  font-size: 20px;
  transform: rotate(-18deg);
}

.bento-social-camera {
  left: 20%;
  top: 55%;
  opacity: 0.06;
  --float-duration: 8.5s;
  --float-delay: 0.5s;
}

.bento-social-camera i {
  font-size: 24px;
  transform: rotate(15deg);
}

/* Social stars */
.bento-social-star-1 {
  left: 35%;
  top: 15%;
  width: 4px;
  height: 4px;
  --star-opacity: 0.28;
  --twinkle-duration: 5s;
}

.bento-social-star-2 {
  left: 70%;
  top: 50%;
  width: 5px;
  height: 5px;
  --star-opacity: 0.4;
  --twinkle-duration: 4.5s;
  --twinkle-delay: 1s;
}

.bento-social-star-3 {
  left: 55%;
  top: 40%;
  width: 3px;
  height: 3px;
  --star-opacity: 0.18;
  --twinkle-duration: 6s;
  --twinkle-delay: 2s;
}

.bento-social-star-4 {
  left: 8%;
  top: 40%;
  width: 5px;
  height: 5px;
  --star-opacity: 0.48;
  --twinkle-duration: 3.5s;
  --twinkle-delay: 0.5s;
}

.bento-social-star-5 {
  left: 90%;
  top: 30%;
  width: 3px;
  height: 3px;
  --star-opacity: 0.22;
  --twinkle-duration: 7s;
  --twinkle-delay: 3s;
}
