/* Izbirai shared site styles
   Shared navigation, user menu, footer, buttons, utility helpers.
   Page-specific hero/layout/poll/admin styles remain in each page for now. */

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Shared navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  transition: background-color 0.3s;
}

.nav-link {
  opacity: 0.86;
  transition: all 0.15s ease;
}

.nav-link:hover { opacity: 1; }

.navbar-dark-mode,
.navbar-light-mode {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.navbar-dark-mode {
  background-color: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-light-mode {
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-dark-mode .navbar-brand,
.navbar-dark-mode .navbar-nav .nav-link {
  color: #fff !important;
}

.navbar-light-mode .navbar-brand,
.navbar-light-mode .navbar-nav .nav-link {
  color: #333 !important;
}

.navbar .navbar-nav,
.navbar .navbar-nav .nav-item,
.navbar .navbar-nav .nav-link {
  display: flex;
  align-items: center;
}

.navbar .navbar-nav { min-height: 42px; }

.navbar .navbar-nav .nav-link {
  min-height: 42px;
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.dropdown-menu {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(255,255,255,0.8);
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.dropdown-item {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.dropdown-divider {
  margin: 0;
  padding: 0;
}

/* Shared account/user icon */
.izb-account-nav-item .nav-link::after { margin-top: 1px; }

.izb-user-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.izb-user-icon-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.izb-user-icon-wrap:hover .izb-user-icon-ring {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px color-mix(in srgb, currentColor 22%, transparent);
}

.izb-user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.izb-user-icon-svg {
  width: 16px;
  height: 16px;
  display: block;
  background-color: currentColor;
  -webkit-mask: url('/assets/images/user-icon.svg') center / contain no-repeat;
  mask: url('/assets/images/user-icon.svg') center / contain no-repeat;
}

@supports not (background: color-mix(in srgb, currentColor 12%, transparent)) {
  .izb-user-icon-ring { background: rgba(255,255,255,.12); }
  .navbar-light-mode .izb-user-icon-ring { background: rgba(0,0,0,.06); }
}

/* Mobile/Lottie navbar toggler */
.lottie-toggler {
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: none;
  background: none;
  padding: 0;
}

.lottie-toggler:focus { outline: none; }

@media (max-width: 991.98px) {

  #navbarNav .navbar-nav {
    align-items: flex-start !important;
    gap: .12rem;
    padding: .65rem 0 .4rem;
  }
  #navbarNav .nav-item {
    width: 100%;
  }
  #navbarNav .nav-link {
    justify-content: flex-start;
    width: 100%;
    text-align: left;
  }
  #navbarNav .izb-mobile-profile-item {
    border-bottom: 1px solid rgba(127,127,127,.18);
    margin-bottom: .3rem;
    padding-bottom: .3rem;
  }
  .lottie-toggler { display: flex; }
}

/* Shared buttons */
.btn-primary {
  background-color: rgb(46, 64, 87);
  color: #fff;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: #0197F6;
  border-color: #0197F6;
}

.btn-cstm {
  font-size: 1.25rem;
  padding: 1rem 1.5rem;
}

/* Shared headings/helpers */
.heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.heading-dark {
  color: rgb(46, 64, 87);
  width: auto;
}

.display-5 { text-align: center; }

.lead {
  font-size: 1.1rem;
  line-height: 110%;
  text-align: center;
}

.h1-seperator {
  background-color: rgba(46, 64, 87,0.86);
  height: 0.25rem;
  width: 100%;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Shared footer */
#footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 60px 0;
}

#footer h5 {
  font-size: 1.1rem;
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

#footer a {
  text-decoration: none;
  transition: color 0.3s;
}

#footer a:hover { color: #0197F6; }

#footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#footer .row > div { padding: 0 15px; }

#footer hr {
  border: none;
  height: 1px;
  background: #fff;
  opacity: 0.25;
}


/* Shared hero overlays and slideshow pieces used by multiple public pages */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 2;
}

.hero .slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  visibility: hidden;
}

.hero .slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeInOut 54s infinite;
}

.hero .slideshow img:nth-child(1) { animation-delay: 0s; }
.hero .slideshow img:nth-child(2) { animation-delay: 6s; }
.hero .slideshow img:nth-child(3) { animation-delay: 12s; }
.hero .slideshow img:nth-child(4) { animation-delay: 18s; }
.hero .slideshow img:nth-child(5) { animation-delay: 24s; }
.hero .slideshow img:nth-child(6) { animation-delay: 30s; }
.hero .slideshow img:nth-child(7) { animation-delay: 36s; }
.hero .slideshow img:nth-child(8) { animation-delay: 42s; }
.hero .slideshow img:nth-child(9) { animation-delay: 48s; }

@keyframes fadeInOut {
  0% { opacity: 0; }
  5% { opacity: 1; }
  85% { opacity: 1; }
  90% { opacity: 0; }
  100% { opacity: 0; }
}

#archive-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

#archive-banner h2,
#archive-banner p,
#archive-banner a {
  position: relative;
  z-index: 2;
}

.card-corner-style-psudo-r {
  position: absolute;
  bottom: -4px;
  right: -4px;
  height: 4rem;
  width: 6rem;
  border-right: solid 12px rgb(102, 161, 130);
  border-bottom: solid 12px rgb(102, 161, 130);
  border-radius: 0 0 7px 5px;
  z-index: 1;
}

.card-corner-style-psudo-in-r {
  position: absolute;
  bottom: 0px;
  right: 0px;
  height: 5rem;
  width: 6rem;
  border-radius: 0 0 4px 0;
  background-color: white;
  overflow: hidden;
  z-index: 2;
}

.card-corner-style-psudo-l {
  position: absolute;
  top: -4px;
  left: -4px;
  height: 4rem;
  width: 6rem;
  border-left: solid 12px rgb(219, 84, 97);
  border-top: solid 12px rgb(219, 84, 97);
  border-radius: 7px 5px 0 0;
  z-index: 1;
}

.card-corner-style-psudo-in-l {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 5rem;
  width: 6rem;
  border-radius: 4px 0 0 0;
  background-color: white;
  overflow: hidden;
  z-index: 2;
}

img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.lazy.loaded { opacity: 1; }

/* Mobile account/admin rows inside hamburger menu */
@media (max-width: 991.98px) {
  #navbarNav .izb-mobile-profile-item .nav-link {
    gap: .6rem;
    font-weight: 700;
  }
  #navbarNav .izb-mobile-profile-item .izb-user-icon-ring {
    width: 30px;
    height: 30px;
  }
}

/* Bootstrap toggler icon support for the shared custom nav color modes */
.navbar-light-mode .navbar-toggler {
  border-color: rgba(15, 23, 42, .16);
}
.navbar-light-mode .navbar-toggler-icon {
  background-image: var(--bs-navbar-toggler-icon-bg, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833,37,41,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"));
}
.navbar-dark-mode .navbar-toggler {
  border-color: rgba(255, 255, 255, .22);
}
.navbar-dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.82%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Unified mobile navigation refinements */
@media (max-width: 991.98px) {
  #navbarNav .izb-mobile-profile-link {
    display: flex !important;
    align-items: center !important;
    gap: .65rem;
  }
  #navbarNav .izb-mobile-profile-name {
    margin-left: .15rem !important;
  }
  #navbarNav .izb-mobile-logout-item {
    border-top: 1px solid rgba(127,127,127,.18);
  }
  #navbarNav .izb-mobile-logout-item .nav-link {
    font-weight: 700;
  }
  .navbar-dark-mode .navbar-collapse,
  .navbar-light-mode .navbar-collapse {
    padding-top: .35rem;
  }
}

/* Mobile nav identity/login row refinements */
@media (max-width: 991.98px) {
  #navbarNav .izb-mobile-profile-link {
    gap: .8rem !important;
  }
  #navbarNav .izb-mobile-profile-name {
    margin-left: .28rem !important;
  }
  #navbarNav .izb-mobile-login-label {
    font-weight: 700;
  }
}

/* Lottie hamburger: remove mobile tap highlight/focus glow and hide Bootstrap bars when Lottie is available */
.lottie-toggler,
.lottie-toggler:focus,
.lottie-toggler:active,
.lottie-toggler:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-color: transparent !important;
  -webkit-tap-highlight-color: transparent;
}
.lottie-toggler .navbar-toggler-icon { display: none !important; }
.lottie-toggler #hamburgerLottie { display: block !important; }


/* Lottie hamburger visibility: the JSON source is white, so invert it on light navbars. */
.lottie-toggler #hamburgerLottie,
.lottie-toggler #hamburgerLottie svg {
  width: 25px !important;
  height: 25px !important;
  display: block !important;
  overflow: visible !important;
}
.navbar-light-mode .lottie-toggler #hamburgerLottie { filter: invert(1) contrast(1.2); }
.navbar-dark-mode .lottie-toggler #hamburgerLottie { filter: invert(0); }

/* Analysis CTA shown under active poll cards and poll pages */
.izb-poll-analysis {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, .15);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .07), rgba(255, 255, 255, .95));
}
.izb-poll-analysis__copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.izb-poll-analysis__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}
.izb-poll-analysis__eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #2563eb;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.izb-poll-analysis__title {
  display: block;
  color: #172033;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.izb-poll-analysis__text {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.35;
}
.izb-poll-analysis__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.izb-poll-analysis__actions .btn {
  white-space: nowrap;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  padding: .58rem .85rem;
}
.izb-poll-analysis--large {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
}
.izb-poll-analysis--large .izb-poll-analysis__icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 15px;
}
.izb-poll-analysis--large .izb-poll-analysis__title {
  font-size: 1.05rem;
}
@media (max-width: 575.98px) {
  .izb-poll-analysis,
  .izb-poll-analysis--large {
    align-items: stretch;
    flex-direction: column;
  }
  .izb-poll-analysis__actions,
  .izb-poll-analysis__actions .btn {
    width: 100%;
  }
  .izb-poll-analysis__actions {
    flex-direction: column;
  }
}
