/* Shared page chrome: the white panel + black banner used by most side views. */

.o_container {
  display: block;
  width: auto;
  /* Content height, not a forced 100%: a floated image inside must not leave the
     white panel short (the Nuxt page rendered inside an iframe, which hid this). */
  min-height: 100%;
  background-color: rgb(255, 255, 255);
  padding: 2rem;
  /* Stay a block formatting context so the floated images below always count
     towards this panel's height. */
  overflow: auto;
}

/* Clear the floated images used on the Home page. */
.about_container::after {
  content: '';
  display: table;
  clear: both;
}

.title {
  background-color: #000;
  color: #fff;
  font-size: larger;
  text-align: center;
  padding: 3rem 0;
  border-radius: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* --- BaseCard.vue --------------------------------------------------------- */

.card {
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  max-width: 300px;
  width: auto;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  cursor: pointer;
  box-shadow: 0 0.7rem 1.5rem rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease-in-out;
}

.card img {
  object-fit: contain;
  background-color: black;
  max-width: 300px;
  max-height: 300px;
}

.card-info {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  width: auto;
}

.card-info .name {
  text-align: center;
  color: white;
  background-color: black;
  border-radius: 4px;
  padding: 0.1rem 0;
  margin: 0.25rem 0;
  font-weight: bold;
}

.card-info .description {
  text-align: left;
  font-size: small;
  padding: 0.1rem 0.1rem;
}

/* --- home page (app/pages/sideviews/home.vue) ------------------------------ */

.about_container {
  padding: 2rem 3rem;
}

.home_page p {
  text-indent: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 200;
  font-size: 0.85rem;
}

.home_page .p_img {
  float: right;
  margin-right: 10px;
  background-color: rgba(0, 0, 0, 0);
  width: 14rem;
  height: 14rem;
  object-fit: contain;
}

.home_page .ul_img {
  float: left;
  background-color: rgba(0, 0, 0, 0);
  width: 12rem;
  height: 11rem;
  object-fit: contain;
}

.home_page .vl_img {
  float: left;
  background-color: rgba(0, 0, 0, 0);
  width: 10rem;
  height: 10rem;
  object-fit: contain;
}

/* --- demo reel (app/pages/sideviews/demoreel.vue) -------------------------- */

/* The views are plain pages in the dashboard now, so the player fills the content
   area instead of 100vh (which pushed it past the fold). */
.demo_page {
  height: 100%;
  padding: 0;
}

/* A direct .item-view descendant selector so this wins over the shared iframe
   reset no matter which stylesheet order the browser ends up with. */
.item-view .demo_page .demo-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: #000;
}

/* --- empty state (apps page) ---------------------------------------------- */

.empty_state {
  margin-top: 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 2px dashed #6d6d6d77;
  border-radius: 1rem;
  color: #333;
}

.empty_icon {
  font-size: 3rem;
  color: #636363;
}

.empty_state p {
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
}

.empty_state .empty_sub {
  font-size: 0.8rem;
  font-weight: 200;
  color: #555;
}
