/* Container for the chip buttons */
.floor-chip-container, .floor-block-container  {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0px 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  
  touch-action: pan-y;
  margin-top: 0rem;
  /*background: rgb(250, 250, 250);
   padding: 10px 12px;*/
}

.embeddings-status.placeholder {
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}


/* Row for the chip buttons */
.chip-row {
    opacity: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    max-height: 100%;
    overflow-y: auto;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
    padding-bottom: 16px;
    }
  .chip-row-wrapper{
    display: flex;
    height: 100%;
    align-items: center;
    overflow-y: auto;
    justify-content: center;
  }

.block-row{
  opacity: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  flex-direction: row;
}

/* Individual chip buttons */
.floor-chip-button, .floor-block-button, .fed-floor-chip-button, .trending-floor-item{
  background-color: white;
  color: #1976d2;
  /*border-radius: 10px;*/
  padding: 0px;
  font-size: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  word-break: break-word;
  text-align: left;
  box-shadow : 0 4px 4px rgba(0, 0, 0, 0.1) ;
  /*flex-direction: column;*/
  gap: 2px;
  font-weight: normal;
  border: 1px solid transparent;/*#d3d3d300;*/
  justify-content: flex-start;
  align-items: center;
  /*width: 160px;
  height: 160px;*/
  position: relative;
}

.floor-chip-button:hover, .floor-block-button:hover, .fed-floor-chip-button:hover {
  background-color: #bbdefb63;
}

/* Title styling */
.chip-title-main {
 white-space: normal;
    word-break: break-word;
    line-height: 1.2em;
    font-weight: normal;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    align-items: center;
    height: 18px;
    justify-content: center;
    display: flex;
    position: absolute;
    bottom: 0px;
    background-color: #00000052;/*#fdfdfd52;*/
    width: 100%;
    color: white;
}

.dotted_bg {
      background-color: #f9f9f9;
    background-image: radial-gradient(#ccc 1px, transparent 1px);
    background-size: 12px 12px;
}

/* Subtitle styling */
.chip-title-sub {
  font-size: 12px;
  color: #555;
}

.floor-chip-button img, .fed-floor-chip-button img{
    opacity: 1;
    width: 100%;
    height: -webkit-fill-available;
    /*border-radius: 10px;*/
    margin-right: 0px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    /*height: 156px;*/
}

.chip-row {
  opacity: 1; 
}

@keyframes fadeInChips {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-chips {
  animation: fadeInChips 3.5s forwards;
}

.sunfade-in {
  animation: fadeInChips 3.5s forwards;
}

@keyframes slideInRight {
  from {
    animation: fadeInChips 3.5s forwards;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 1.0s ease forwards;
}

.slide-out-left {
  animation: slideOutLeft 2.5s ease forwards;
}


.dot {
  font-size: 12px;
  color: #bbb;
  transition: color 0.3s;
}

.dot.active-dot {
  color: #4f5b66;
  font-weight: bold;
}

.floor-chip-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  padding: 8px;
  cursor: pointer;
 /* background-color: #f9f9f9;*/
 flex-direction: row-reverse;
}

.floor-chip-title:hover {
  text-decoration: underline;
}

.back_button_main {
  position: absolute;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
        z-index: 999;
}

.back-button {
    padding: 0;
    font-size: 16px;
    background: white;
    border: none;
    cursor: pointer;
    color: black;
    text-align: left;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 100px;
    justify-content: center;
    display: flex;
    align-items: center;
}

.back-button{
  position: fixed;
  top: 50%;
}

.back_main_leaf {
      display: block;
    justify-content: center;
    width: auto;
    margin-top: 1rem;
        position: absolute;
    left: 8px;
    top: 50%;
}

.floor-chip-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 60%; /* Adjust as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 14px;
  color: rgb(81, 166, 245);
  font-weight: 600;
}

.floor-chip-dots {
  display: none;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.back-button-placeholder {
  width: 60px; 
}

.floor-block-chip-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.floor-block-button.fade-in-block {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block-row div{
  display: inline-block;
  width: fit-content;
}

.floor-block-button span{
  font-weight: normal;
  font-size: 10px;
}

.floor-chip-button.selected-chip {
  border: 2px solid #1976d2;
  background-color: #e3f2fd;
  font-weight: bold;
}

.postFloorIdLink {
color: rgb(81, 166, 245);
}

.postFloorIdLink:hover{
  text-decoration: underline;
  color: rgb(81, 166, 245);
}

#viewFloor,#currentView {
    float: right;
    padding: 6px 12px;
    background-color: transparent;
    color: rgb(81, 166, 245);
    border: 1px solid rgb(81, 166, 245);
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    max-width: 64px;
    flex: 1 1 auto;
    font-size: 12px;
}

#viewFloor:hover,#currentView:hover {
  background-color: rgb(81, 166, 245);
  color:white;
}

.owner-chip {
  border: 2px solid #51a6f5;
  background-color: #f0faff;
}

.owner-badge {
  color: #ff9800;
  font-size: 1rem;
  margin-left: 4px;
  vertical-align: middle;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

.studio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0f0f0f91, #1f1f1f);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  font-family: 'Inter', sans-serif;
  animation: fadeIn 0.5s ease-in-out;
  flex-direction: column;
  gap: 10px;
}

.studio-title {
   font-size: 1.6rem;
  font-weight: bold;
  color: white;
  margin-bottom: 15px;
  text-align: center;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3em;
}

.studio-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 435px;
  width: 90%;
  animation: slideUp 0.5s ease-out;
}

.studio-btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
}

.studio-home-btn,.studio-home-nav-btn {
  margin-top: 15px;
  padding: 10px 18px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  background: #51a6f5;
  color: white;
  cursor: pointer;
}

/*.studio-home-btn:hover {
  background: #3b8edc;
}*/

.studio-home-nav-btn:hover, .studio-home-btn:hover {
  background: #1e7cc1;
  transform: translateY(-2px);
}

.studio-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: bounce 1.2s infinite ease-in-out;
}

.studio-glass h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: gold;
}

.studio-sub {
  font-size: 15px;
  color: #ccc;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.floor-chip-search {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 4px;
  padding: 0 10px;
}

.floor-chip-search input {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  margin: 0;
  background: transparent;
  height: 38px;
}

.floor-chip-search i {
  cursor: pointer;
  color: #666;
  font-size: 16px;
  display: none;
}
.floor-chip-search i:hover {
  color: #000;
}



.chip-logo-text {
  width: 100%;
  height: 100%;
  display: flex;                 /* Center wrapper */
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  overflow: hidden;              /* Ensures no spill */
}

.chip-logo-text-inner {
  font-size: 18px;
  line-height: 1.2em;
  color: black;
  text-overflow: ellipsis;

  display: -webkit-box;          /* Enables line clamp */
  -webkit-line-clamp: 3;         /* Limit to 3 lines */
  -webkit-box-orient: vertical;  /* Vertical layout */

  overflow: hidden;              /* Required */
  max-height: calc(1.2em * 3);   /* Hard limit → forces ellipsis cutoff */
  max-width: 100%;
}


@media (max-width: 768px) {
  .chip-row {
    max-height: none;
    height: 100%;
  }

  .floor-chip-button, .floor-block-button, .fed-floor-chip-button { 
    font-size: 10px;
    /*width: 120px;
    height: 160px;*/
  }

  .floor-chip-title {
    font-size: 12px;
    max-width: 52%;
  }
  .chip-logo-text-inner{
    font-size: 10px;
  }
}
