/* AROQA Study Rooms Feature Styles (Phase 3 Isolated Module) */

.rooms-hero {
  min-height: 335px;
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  padding: 38px clamp(30px, 4vw, 55px);
  background:
    radial-gradient(circle at 82% 45%, #5f59ca35, transparent 24%),
    radial-gradient(circle at 22% 50%, #12849b30, transparent 31%),
    linear-gradient(145deg, #0b1924, #050c13);
}

.rooms-hero h1 {
  margin: 10px 0;
  font-size: clamp(38px, 4.5vw, 63px);
  line-height: 1.04;
}

.rooms-hero p,
.product-dashboard .rooms-hero p {
  max-width: 690px;
  color: #849aa5;
  font-size: 15px;
  line-height: 1.65;
}

.rooms-hero .primary-btn {
  min-height: 45px;
  margin-top: 20px;
  border-radius: 12px;
  font-size: 11px;
}

.room-orbit {
  position: relative;
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid #8beaff20;
  border-radius: 50%;
  box-shadow: 0 0 0 32px #8beaff05, 0 0 0 64px #817aff03;
}

.room-orbit > div {
  width: 80px;
  height: 80px;
  padding: 4px;
  border: 1px solid #8beaff5c;
  border-radius: 50%;
  background: #08131d;
  box-shadow: 0 0 34px #5edced35;
}

.room-orbit img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.orbit-user {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 1px solid #8d87ff4e;
  border-radius: 50%;
  background: #07121c;
}

.orbit-user.u1 {
  left: 16px;
  top: 40px;
}

.orbit-user.u2 {
  right: 8px;
  top: 85px;
}

.orbit-user.u3 {
  bottom: 10px;
  left: 70px;
}

.room-orbit > i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8beaff;
  box-shadow: 0 0 14px #8beaff;
}

.room-orbit > i:nth-of-type(1) {
  right: 43px;
  bottom: 44px;
}

.room-orbit > i:nth-of-type(2) {
  left: 35px;
  bottom: 74px;
  background: #8b85ff;
}

.rooms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  margin-top: 24px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 15px;
}

.room-card {
  min-height: 260px;
  padding: 19px;
}

.room-card-head {
  display: flex;
  justify-content: space-between;
}

.room-code {
  color: #9cefff2b;
  font: 700 28px "Space Grotesk";
}

.room-status {
  align-self: start;
  padding: 5px 7px;
  border: 1px solid #79e6f424;
  border-radius: 999px;
  color: #67d6e8;
  font: 700 7px "Space Grotesk";
}

.room-card h3 {
  margin: 28px 0 7px;
  font-size: 14px;
}

.room-card > p {
  margin: 0;
  color: #718894;
}

.avatar-stack {
  display: flex;
  margin-top: 25px;
}

.avatar-stack img,
.avatar-stack span {
  width: 30px;
  height: 30px;
  margin-inline-start: -7px;
  border: 2px solid #08131d;
  border-radius: 50%;
  background: #10202c;
}

.avatar-stack img:first-child {
  margin: 0;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  color: #9de9f2;
  font: 700 7px "Space Grotesk";
}

.room-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #ffffff0c;
}

.room-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #657e8a;
  font-size: 8px;
}

.room-footer .ui-icon {
  width: 12px;
}

.room-footer button {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  color: #6ed9ea;
}

.room-preview,
.room-rules {
  padding: 22px;
}

.room-preview .section-head > span {
  color: #8aeaf6;
  font: 700 12px "Space Grotesk";
}

.room-preview > .card-kicker {
  margin-top: 22px;
}

.room-preview > h3 {
  margin: 8px 0;
  font-size: 17px;
}

.room-preview > p {
  color: #718894;
  line-height: 1.65;
}

.room-preview .soft-button {
  margin-top: 14px;
}

.room-rules > h3 {
  margin: 0 0 15px;
  font-size: 14px;
}

.room-rules ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-rules li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8399a4;
  font-size: 9px;
}

.room-rules .ui-icon {
  width: 14px;
  color: #65d9ba;
}

@media (max-width: 1280px) {
  .rooms-hero {
    grid-template-columns: 1fr 310px;
  }

  .room-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1050px) {
  .rooms-layout {
    grid-template-columns: 1fr;
  }

  .rooms-layout aside {
    grid-template-columns: 1fr 1fr;
  }

  .room-rules {
    grid-column: 1 / -1;
  }

  .rooms-hero {
    grid-template-columns: 1fr 270px;
  }

  .room-orbit {
    width: 210px;
    height: 210px;
  }
}

@media (max-width: 760px) {
  .rooms-hero {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .room-orbit {
    display: none;
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .rooms-layout aside {
    grid-template-columns: 1fr;
  }
}
