/* ---------------- RESET ---------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; font-family: 'Poppins', sans-serif; scroll-behavior: smooth;      background-image: url('../img/blur_1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y; }

/* ---------------- SIDEBAR START---------------- */
.sidebar {
  position: fixed;
  justify-content: center;
  text-align: center;
  top:0;
  left:-250px;
  width:220px;
  height:100%;
  background-color:#ffffff;
  padding-top:20px;
  box-shadow:10px 0 30px rgba(247,238,238,0.829);
  transition:left 0.9s ease;
  z-index:9999;
}
.sidebar .navbar-nav { 
  list-style:none; 
  padding:0; 
   
}

.sidebar .navbar-nav .nav-item { 
  padding:3px 20px; 
  margin-bottom:10px; 
}

.sidebar .navbar-nav .nav-link { 
  font-family: 'Lora', serif; 
  font-weight:500; color:#461706; 
  font-size:18px; 
  text-decoration:none; 
  display:block; 
}
.sidebar .navbar-nav .nav-link:hover {
  color:#000; 
  transform:translateX(5px); 
}

.sidebar-toggle-btn { 
  position: fixed; 
  top:20px; 
  left:20px; 
  background-color:#461706; 
  color:white; 
  padding:10px 15px; 
  border-radius:50px; 
  font-size:25px; 
  cursor:pointer; 
  box-shadow:2px 2px 40px rgba(0,0,0,0.5); 
  z-index:1000; 
}

.sidebar .profile-photo { 
  display:block; 
  margin:70px auto 50px; 
  width:120px; 
  height:120px; 
  border-radius:50%; 
  object-fit:cover; 
  border:2px solid #461706; 
  box-shadow:0 1px 25px rgba(0,0,0,0.8); 
  animation: zoomInOut 2s infinite; 
}

@keyframes zoomInOut { 0%,100%{transform:scale(1);}50%{transform:scale(1.05);} }

.submenu {
  display: none; /* Ascuns la început */
  flex-direction: column;
  margin-left: 15px; /* Un mic indent să pară subordonate */
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 300;
    color: #461706;
    cursor: pointer;
    
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
    
    border: 1px solid rgba(70, 23, 6, 0.25);
    border-radius: 50%;
    
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    
    transition: 
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.close-btn i {
    font-size: 24px;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: scale(1.12);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

@media (max-width: 480px) {
  .close-btn {
    width: 34px;
    height: 34px;
  }
  .close-btn i {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
 .sidebar-toggle-btn { 
    padding: 10px 14px !important; 
    font-size: 20px !important; 
    border-radius: 50px !important; 
   }
}


/* ---------------- SIDEBAR END---------------- */

/* ----------- GENERAL START ----------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: clamp(12px, 2vw, 20px);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  color: #ffffff;
  background: #b97c20;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  outline: none;
  padding: 0.8em 2.2em;
  margin-top: 1.2rem;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  z-index: 1;
  overflow: visible; /* important ca pseudo-elementul să nu fie tăiat */
}

/* Puls permanent */
.button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 140%;
  background: rgba(177, 100, 11, 0.651);
  border-radius: 50px;
  transform: translate(-50%, -80%);
  animation: pulseGlow 2s infinite ease-in-out;
  z-index: 1;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Hover elegant */
.button:hover {
  transform: scale(1.06);
  background-color: transparent;
  color: #000;
}

/* ----------- LINIE DE DELIMITARE SECȚIUNI ----------- */
.section-divider {
  position: relative;
  width: 60%;
  height: 2px;
  margin: 20px auto;
  background: linear-gradient(to right, transparent, #461706, transparent);
  border-radius: 2px;
  opacity: 0.8;
}

/* ----------- GENERAL END ----------- */





/* ===== CONTINUT PRINCIPAL START ===== */
.content {

      flex: 1;
      padding: 0.5rem;
      overflow-y: auto;
      transition: margin-left 0.3s;
    }

h4 {
  font-family: 'Lora', serif;
  font-size: clamp(16px, 4vw, 42px);
  color: #461706; /* O culoare mai subtilă pentru descriere */
  padding-top: 10px; /* Spațiu între video și descriere */
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
  align-items: center;
  text-align: center;
}

.login-container {
  max-width: 400px;
  margin: 8rem auto;
  padding: 2rem;

}

.video-gallery {
  max-width: 1200px;
  margin: 0rem auto;
  padding: 0.1rem;
      
}

.login-container input {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem;
  font-size: 1rem;
  box-shadow: 0 4px 50px rgba(0,0,0,0.8);
  border-radius: 10px;
  padding-right: 48px;
}

.login-container button {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  background: #222;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  padding-left: -20px;
  margin-top: 0.5rem;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
   box-sizing: border-box;
}

.toggle-eye {
  position: absolute;
  right: 16px;
  top: 45%;
  transform: translateY(-50%);
  font-size: 25px;
}

input[type="password"],
input[type="text"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 10px;
}

.error {
  color: red;
  margin-bottom: 1rem;
}

.video-grid {
  display: flex;
  flex-direction: column; /* UN VIDEO SUB ALTUL */
  align-items: center; /* CENTRAT pe mijloc */
  gap: 2rem;
  padding: 2rem 1rem;
}

video {
  width: 100%;
  max-width: 960px; /* cam cât un video YouTube */
  height: auto; /* proporția standard 16:9 */
  object-fit: cover; /* în caz că video-ul nu respectă proporția, îl ajustează frumos */
  border-radius: 8px;
  box-shadow: 0 4px 50px rgba(0,0,0,0.8); /* un efect subtil de plutire */
  display: block;
}

.video-item {
  text-align: center; /* Aliniem fiecare video și descriere pe centru */
}

.video-description {
  font-family: 'Lora', serif;
  font-size: clamp(16px, 3vw, 25px);
  color: #461706; /* O culoare mai subtilă pentru descriere */
  padding-top: 10px; /* Spațiu între video și descriere */
  max-width: 560px;
  margin: 0 auto;
  font-weight: 100;
}

/* Linia care delimitează fiecare video */
.video-item::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, transparent, #461706, transparent);
  margin: 25px auto 0 auto;
  border-radius: 2px;
}

/* Video 9:16 (vertical) — îl facem rezonabil de mic pe desktop */
.vertical-video {
  max-width: 420px !important;   /* mic, dar vizibil pe desktop */
  height: auto;
  margin: 0 auto;
}

/* Pe ecrane mari îl putem micșora și mai elegant */
@media (min-width: 1200px) {
  .vertical-video {
    max-width: 350px !important;
  }
}

/* Pe mobile se vede full-width normal */
@media (max-width: 768px) {
  .vertical-video {
    max-width: 100% !important;
  }
}

.logout-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  padding:1rem 1rem;
  background: #461706;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  transition: background 0.3s;
}

.logout-btn:hover {
  background: #71321d; /* puțin mai deschis când treci cu mouse-ul peste */
}


 @media (max-width: 768px) {
  video {
    width: 100%;
    height: auto; /* pe mobil video-ul se ajustează automat */
  }
  .logout-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding:0.5rem 0.5rem;
    background: #461706;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.6rem;
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    transition: background 0.3s;
  }
  .cursulcontainer {
    margin-top: 50px;
  }
}

/* Starea inițială invizibilă */
.video-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

/* Când apare în viewport */
.video-item.show {
  opacity: 1;
  transform: translateY(0);
}

.cursulcontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.cursulcontainer h1 { 
  animation-delay: 0.1s; 
  font-size: clamp(24px, 4vw, 60px); 
  font-family: 'Lora', serif;
  color: #461706; 
  font-weight: 400; 
}

.buttoncontainer-tarife {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
  padding: 3vh 1vw;
}

.button-tarife {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: clamp(12px, 2vw, 20px);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  color: #ffffff;
  background: #b97c20;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  outline: none;
  padding: 0.8em 2.2em;
  
  position: relative;
  text-decoration: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  z-index: 1;
  overflow: visible; /* important ca pseudo-elementul să nu fie tăiat */
}

/* Puls permanent */
.button-tarife::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 140%;
  background: rgba(177, 100, 11, 0.651);
  border-radius: 50px;
  transform: translate(-50%, -80%);
  animation: pulseGlow 2s infinite ease-in-out;
  z-index: 1;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Hover elegant */
.button-tarife:hover {
  transform: scale(1.06);
  background-color: transparent;
  color: #000;
}

/* Puls subtil al butonului */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(185,124,32,0); }
  70% { box-shadow: 0 0 30px rgb(255, 136, 0); }
}

/* ===== FOOTER START ===== */

.footer {
  width: 100%;
  padding: 35px 0;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  backdrop-filter: blur(5px);
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
   animation-play-state: paused;
}

.footer-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.8; /* transparent */
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: zoomInOutIcons 2s infinite;
  
}

@keyframes zoomInOutIcons { 0%,100%{transform:scale(1);}50%{transform:scale(1.20);} }


.footer-item span {
  margin-top: 10px;
  font-family: 'Lora', serif;
  font-size: 20px;
  color: #461706;
}

.footer-item:hover img {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .footer-container {
    gap: 20px;
  }

  .footer-item img {
    width: 50px;
    height: 50px;
  }

  .footer-item span {
    font-size: 16px;
  }
}

/* ===== FOOTER ANIMATION ===== */

.footer-item {
  opacity: 0;
  transform: translateY(30px);
  animation: footerFade 0.8s ease forwards;
}

.footer-item:nth-child(1) {
  animation-delay: 0.1s;
}
.footer-item:nth-child(2) {
  animation-delay: 0.25s;
}
.footer-item:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes footerFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FOOTER END ===== */

/* ===== FOOTER START ===== */

.footer-sidebar {
  width: 100%;
  padding: 15px 0;
  position: relative;
}

.footer-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  z-index: 0;
}

.footer-container-sidebar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-item-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
   animation-play-state: paused;
}

.footer-item-sidebar img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8; /* transparent */
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: zoomInOutIconsSidebar 2s infinite;
}

@keyframes zoomInOutIconsSidebar { 0%,100%{transform:scale(1);}50%{transform:scale(1.10);} }

.footer-item-sidebar span {
  margin-top: 10px;
  font-family: 'Lora', serif;
  font-size: 14px;
  color: #461706;
}

.footer-item-sidebar:hover img {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .footer-container-sidebar {
    gap: 10px;
  }

  .footer-item-sidebar img {
    width: 40px;
    height: 40px;
  }

  .footer-item-sidebar span {
    font-size: 12px;
  }
}

/* ===== FOOTER END ===== */

/* ===== VIDEO START===== */
 