/* ===================================================== */
/* 🌐 RESET GENERAL & BODY                             */
/* ===================================================== */

html, body {
  overflow-x: hidden;
}

body {
  /*outline: 2px dashed red;*/ /* test vizual overflow */
}


/* ===================================================== */
/* 🧭 NAVBAR – Dropdown-uri active                      */
/* ===================================================== */

.navbar .nav-link.dropdown-toggle.active {
  color: #0d6efd !important;
  font-weight: 700;
  border-bottom: 2px solid #0d6efd;
}

.navbar .nav-link.dropdown-toggle.active::after {
  filter: brightness(0.5);
}


/* ===================================================== */
/* 📘 STRUCTURĂ LEGISLATIVĂ – Titluri / Paragrafe        */
/* ===================================================== */

.capitol {
  padding: 0;
  margin: 0;
  font-weight: bold;
  color: red;
  font-size: 1.3rem;
}

.articol {
  font-weight: bold;
  color: blue;
  font-size: 1.1rem;
}

.punct {
  color: black;
  font-size: 1rem;
  text-indent: -2em;
  padding-left: 2em;
}

.litera {
  color: #000;
  font-size: 0.9rem;
  text-indent: -1.8em;
  padding-left: 4em;
}

.block_1 {
  border-left: 5px solid red;
  padding-left: 1rem;
}

.block_2 {
  border-left: 5px solid blue;
  padding-left: 1rem;
}

.block {
  padding-left: 1rem;
}

.bordura {
  border-bottom: 1px solid yellow;
}


/* ===================================================== */
/* 🔄 LOADER ANIMAT                                     */
/* ===================================================== */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 8px solid transparent;
  border-top: 8px solid yellow;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


/* ===================================================== */
/* 🖼️ LOGO CDU – HERO                                    */
/* ===================================================== */

.cdu-logo-wrapper {
  max-width: 320px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid #efce21;
  border-radius: 0;
  padding: 1.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdu-logo {
  font-family: 'Cinzel', serif;
  color: #efce21;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cdu-main {
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
}

.cdu-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin: 0.2rem 0;
}

.cdu-values {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}


/* ===================================================== */
/* 🔽 RESPONSIVE: HERO CDU – Mobil + Tabletă             */
/* ===================================================== */

@media (max-width: 768px) {
  .cdu-logo-wrapper {
    max-width: 220px;
    padding: 1rem;
    margin-inline: auto;
  }

  .cdu-main {
    font-size: 4.5rem;
  }

  .cdu-subtitle,
  .cdu-values {
    font-size: 0.8rem;
  }

  .hero-text-col {
    margin-top: 2rem;
    text-align: center !important;
  }

  .hero-logo-col {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 576px) {
  h2.redimensionare {
    font-size: 1.4rem;
  }

  h3.redimensionare {
    font-size: 0.9rem;
  }

  .btn.redimensionare {
    font-size: 0.7rem;
  }

  .cdu-main {
    font-size: 4rem;
  }

  .cdu-subtitle,
  .cdu-values {
    font-size: 0.75rem;
  }
}





/* ===================================================== */
/* 🖱️ Logo hover                                         */
/* ===================================================== */

.logo-hover {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center center;
}

.logo-hover:hover {
  transform: scale(1.1);
  opacity: 0.9;
  cursor: pointer;
}


/* ===================================================== */
/* ⚡ Flash message automată                             */
/* ===================================================== */

.flash-auto-close {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flash-auto-close.hidden {
  opacity: 0;
  transform: translateY(-10px);
}


/* ===================================================== */
/* 🃏 Card icon hover                                    */
/* ===================================================== */

.card i {
  transition: transform 0.3s ease;
}

.card:hover i {
  transform: scale(1.15) rotate(-2deg);
}
