/* =========================================================
   PRACTICE HOME
   Home page, saved cards, tabs, topbar, BigFuture
   ========================================================= */

/* =========================================================
   HOME PAGE
   ========================================================= */

.bb-home-topbar,
.bb-home-hero {
  background: #e9eef8;
  padding: 0;
}

.bb-home-topbar-inner,
.bb-home-hero-inner,
.bb-home-main {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 72px;
  padding-right: 72px;
  box-sizing: border-box;
}

.bb-home-topbar,
.bb-home-hero {
  background: #e9eef8;
}

.bb-home-logo-img {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}

/* -------------------- TOP BAR -------------------- */

.bb-home-topbar {
  padding-top: 58px;
  padding-bottom: 26px;
}

.bb-home-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bb-home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.bb-home-user {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
}

/* zaštita ako Quarto negde opet ubaci p */
.bb-home-logo p,
.bb-home-user p {
  margin: 0;
}

/* -------------------- HERO -------------------- */

.bb-home-hero {
  padding-top: 18px;
  padding-bottom: 58px;
}

.bb-home-hero-inner {
  display: block;
}

.bb-home-hero-text {
  display: inline-block;
  font-size: 42px;
  line-height: 1.08;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 200;
  color: #3d57d8;
  letter-spacing: 0.01em;
  transform: scaleX(1.3) scaleY(1.35);
  transform-origin: left top;
  margin-top: 24px;
  margin-bottom: 3px;
}

/* -------------------- MAIN -------------------- */

.bb-home-main {
  padding-top: 30px;
  padding-bottom: 60px;
  box-sizing: border-box;
}

.bb-home-section {
  margin-bottom: 42px;
}

.bb-home-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.bb-home-section-left {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.bb-home-section-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
}

.bb-home-section-link {
  font-size: 20px;
  font-weight: 600;
  color: #3655d8;
  text-decoration: underline;
  white-space: nowrap;
  margin-top: 8px;
}

#bb-dont-see-test-link {
  font-size: 20px;
  font-weight: 600;
  color: #3655d8;
  text-decoration: underline;
  white-space: nowrap;
  margin-top: 8px;
}

/* =========================================================
   HOME GRID + TABS
   ========================================================= */

/* Active / Past */
.bb-home-tabs {
  display: inline-flex;
  align-items: center;
  border: 1px solid #9a9a9a;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.bb-home-tab {
  min-width: 120px;
  height: 45px;
  padding: 0 18px;
  border: 0;
  background: #fff;
  color: #222;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.bb-home-tab + .bb-home-tab {
  border-left: 1px solid #9a9a9a;
}

.bb-home-tab.is-active {
  background: #595959;
  color: #fff;
  position: relative;
}

.bb-home-tab.is-active::before {
  content: "✓";
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
}

/* poruka gore */
.bb-home-message-card {
  width: calc(var(--bb-card-w) * 2 + var(--bb-card-gap));
  min-height: calc(var(--bb-card-h) * 0.75);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 10px 20px 10px;
  margin-top: 0px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bb-home-message-title {
  margin: 10px 0 4px 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}

.bb-home-message-text {
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.35;
  text-align: center;
  color: #1b1b1b;
}

.bb-home-message-title p,
.bb-home-message-text p {
  margin: 0;
}

/* glavni red kartica dole */
.bb-home-cards {
  display: grid;
  grid-template-columns: repeat(4, var(--bb-card-w));
  gap: var(--bb-card-gap);
  align-items: start;
  margin-top: 0px;
}

/* wrapper za saved kartice da ne zauzima samo jednu grid ćeliju */
.bb-saved-practices-slot {
  display: contents;
}

/* Test Preview + Full-Length Practice */
/* glavne kartice */
.bb-home-card {
  width: var(--bb-card-w);
  height: var(--bb-card-h);
  min-height: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  align-self: start;
}

.bb-home-card-link {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 24px 16px 18px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-decoration: none;
  color: #111;
}

.bb-home-card img,
.bb-home-card svg,
.bb-home-card .bb-home-card-icon-img {
  width: 88px;
  height: 88px;
  display: block;
  margin-bottom: 18px;
}

.bb-home-card-title {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
  text-align: center;
}

/* snimljeni / in-progress testovi */
.bb-saved-practice-card {
  width: var(--bb-card-w);
  height: var(--bb-card-h);
  min-height: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  align-self: start;
}

.bb-saved-practice-card-head {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px 1px;
  background: #eef2fb;
  box-sizing: border-box;
}

.bb-saved-practice-title {
  font-size: 23px;
  line-height: 1.15;
  font-weight: 700;
  color: #111;
}

.bb-saved-practice-delete {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.bb-saved-practice-body {
  height: calc(var(--bb-card-h) - 62px);
  min-height: 0;
  padding: 14px 22px 52px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bb-saved-practice-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 19px;
  color: #222;
}

.bb-saved-practice-status-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.bb-saved-practice-actions {
  display: flex;
  justify-content: flex-end !important;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 6px;
}

.bb-saved-practice-resume,
.bb-saved-practice-start {
  min-width: 92px;
  height: 50px;
  border: 1px solid #111;
  background: #fff;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 0;
}

.bb-saved-practice-delete {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.bb-saved-practice-delete-icon {
  width: 30px;
  height: 30px;
  display: block;
}

/* =========================================================
   TOPBAR TEXT FINE CONTROL
   ========================================================= */

.bb-home-topbar .bb-home-logo-text {
  display: inline-block;
  margin: 0;
  font-size: 18px !important;
  line-height: 1;
  font-weight: 600;
  color: #3153d8 !important;
  letter-spacing: -0.01em;
}

.bb-home-topbar .bb-home-user-name {
  display: inline-block;
  margin: 0;
  font-size: 16px !important;
  line-height: 1.1;
  font-weight: 500;
  color: #111 !important;
}

.bb-home-topbar .bb-home-logo,
.bb-home-topbar .bb-home-user {
  font-size: 0;
}

.bb-home-topbar .bb-home-logo-text,
.bb-home-topbar .bb-home-user-name {
  font-size: revert;
}

.bb-home-topbar .bb-home-logo-text {
  font-size: 24px !important;
}

.bb-home-topbar .bb-home-user-name {
  font-size: 24px !important;
}

/* =========================================================
   BIGFUTURE SECTION
   ========================================================= */

.bb-bigfuture-card {
  width: calc(var(--bb-card-w) * 4 + var(--bb-card-gap) * 3);
  height: var(--bb-card-h);
  margin-top: 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 25% 75%;
  align-items: stretch;
  padding: 0;
}

.bb-bigfuture-card-text {
  width: 100%;
  height: 100%;
  padding: 18px 22px 16px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bb-bigfuture-card-title {
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.bb-bigfuture-card-message {
  font-size: 21px;
  line-height: 1.45;
  color: #1b1b1b;
  margin-bottom: 2px;
}

.bb-bigfuture-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;

  min-width: 124px;
  height: 34px;
  padding: 6px 18px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;

  font-size: 19px;
  font-weight: 600;
  color: #111;
  text-decoration: none;

  position: relative;
  z-index: 5;
  transform: translateY(-14px);
}

.bb-bigfuture-card-image-wrap {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.bb-bigfuture-card {
  overflow: hidden;
  border-radius: 18px;
}

.bb-bigfuture-card-image-wrap {
  overflow: hidden;
  border-radius: 18px 0 0 18px;
}

.bb-bigfuture-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left top;
  transform: translateY(-16px);
}

.bb-bigfuture-section {
  margin-top: 68px;
}
