/* Reset & Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: url('assets/background.png') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
  overflow-x: hidden;
}

/* Container general */
.container {
  z-index: 2;
  width: 600px;
  max-width: 100%;
  padding: 20px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Logo și titlu */
.logo-box {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  width: 140px;
  margin-bottom: 10px;
}

h1 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffffff;
}

.subtitle {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-top: 5px;
}

/* Formular */
.form-box {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: blur(8px);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
}

/* Butoane */
.analyze-btn,
.download-btn {
  background-color: #00bfff;
  color: #ffffff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.analyze-btn:hover,
.download-btn:hover {
  background-color: #0099cc;
}

/* Rezultate */
.result-box {
  margin-top: 25px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  max-width: 100%;
}

/* ✅ Bannere intercalate (formulare) – universal */
.ad-inline {
  width: 320px;
  height: 50px;
  margin: 10px auto;
}

/* ✅ Bannere laterale FIXE – Large Skyscraper 160x600 */
.ad-left,
.ad-right {
  position: fixed;
  top: 40px;
  width: 160px;
  height: 600px;
  background: rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.ad-left {
  left: calc(60% - 600px - 180px);
}

.ad-right {
  right: calc(60% - 600px - 180px);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ✅ Bannere mobile doar pe mobil */
.mobile-ad {
  display: none;
}
@media (max-width: 768px) {
  .mobile-ad {
    display: block;
    width: 320px;
    height: 50px;
    margin: 12px auto;
  }
}

/* Ascunde butonul PDF inițial */
#downloadBtn {
  display: none;
}

/* Spinner */
#loadingSpinner {
  display: none;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  color: #fff;
}

/* ✅ Overlay publicitate full-screen */
#adOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  padding: 30px;
}

/* ✅ Login */
.login-container {
  max-width: 400px;
  width: 100%;
  margin-top: 10vh;
  padding: 30px;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-container input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}

.login-container button {
  width: 100%;
  padding: 12px;
  background-color: #f5c518;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.note {
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 20px;
}

/* ✅ Profil lateral */
.profile-panel {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 320px;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  color: white;
  z-index: 1001;
  padding: 30px 20px;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-panel.open {
  right: 0;
}

.profile-panel h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-align: center;
}

.profile-panel label {
  font-weight: bold;
  margin-top: 10px;
}

.profile-panel input,
.profile-panel select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  color: #ffffff;
  background-color: #222;
}

.profile-panel .button-group {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-panel .button-group button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

.profile-panel .save-btn {
  background-color: #00bfff;
  color: white;
}

.profile-panel .reset-btn {
  background-color: #ff4444;
  color: white;
}

.profile-panel .close-btn {
  background-color: #777;
  color: white;
}

/* ✅ Banner salvare */
#savedBanner {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: #00ffcc;
  margin: 15px auto 5px auto;
  padding: 8px;
}

/* ✅ Analyze Again */
#analyzeAgainSection {
  display: none;
  margin-top: 30px;
  text-align: center;
}

/* ✅ Responsive – mobil */
@media (max-width: 768px) {
  body {
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: flex-start;
  }

  .container {
    width: 95%;
    padding: 15px;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .form-box {
    padding: 20px;
    gap: 12px;
  }

  .form-group input,
  .form-group select {
    font-size: 1rem;
    padding: 10px;
  }

  .analyze-btn,
  .download-btn {
    font-size: 1.1rem;
    padding: 14px;
    width: 100%;
  }

  .ad-left,
  .ad-right {
    display: none !important;
  }

  .logo {
    width: 110px;
  }

  #adOverlay {
    font-size: 1.2rem;
    padding: 20px;
  }

  .profile-panel {
    width: 100vw;
    padding: 25px 15px;
  }
}

/* ✅ Forțare afișare bannere laterale pe desktop */
@media (min-width: 769px) {
  .ad-left,
  .ad-right {
    display: block !important;
  }
}

/* ✅ Cookie Consent GDPR Bar */
#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #222;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 0.95rem;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#cookieConsent p {
  margin: 0;
}

#cookieConsent a {
  color: #00bfff;
  text-decoration: underline;
}

#cookieConsent button {
  background: #00bfff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
