/* ===== HEADER PROMOPING MODERN ===== */

:root {
  /* Cores PromoPing */
  --promoping-orange-light: #f4af55;
  --promoping-orange-medium: #ed9a6c;
  --promoping-orange-dark: #dc7c35;
  --promoping-cream: #fff5d5;
  --promoping-dark: #0e0f19;
  --promoping-orange-gradient: linear-gradient(135deg, #f4af55 0%, #ed9a6c 50%, #dc7c35 100%);
  --promoping-cream-transparent: rgba(255, 245, 213, 0.95);
  --promoping-dark-transparent: rgba(14, 15, 25, 0.15);
  --text-primary: #0e0f19;
  --text-secondary: #2d1b69;
  --text-light: #fff5d5;
}

.pp-header {
  background: var(--promoping-cream-transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 24px;
  margin: 30px auto 0 auto;
  max-width: 1400px;
  box-shadow: 0 8px 32px var(--promoping-dark-transparent);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 24px 40px;
  z-index: 1000;
}

/* ===== CONTAINER INTERNO ===== */
.pp-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  position: relative;
}

/* ===== LOGO PROMOPING ===== */
.pp-header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  z-index: 10;
}

.pp-header-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}

.pp-header-logo span {
  color: var(--text-secondary);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== NAVEGAÇÃO ===== */
.pp-header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.pp-header-nav-wrapper {
  position: relative;
  z-index: 1001;
}

.pp-header-nav-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.pp-header-nav-button:hover {
  background: rgba(45, 27, 105, 0.1);
  color: var(--text-secondary);
}

.pp-header-nav-button-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.pp-header-nav-button-link:hover {
  background: rgba(45, 27, 105, 0.1);
  color: var(--text-secondary);
}

/* ===== DROPDOWN MENUS ===== */
.pp-header-nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px 0;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: none;
  z-index: 9999;
}

.pp-header-nav-links a {
  display: block;
  padding: 14px 24px;
  color: #2d1b69;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pp-header-nav-links a:hover {
  background: rgba(45, 27, 105, 0.1);
  color: #2d1b69;
}

/* ===== MOBILE MENU & BURGER ===== */
.pp-header-burger {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pp-header-burger-lang {
  display: flex;
  align-items: center;
}

.pp-header-lang-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 27, 105, 0.15);
  color: #2d1b69;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pp-header-lang-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #2d1b69;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pp-header-burger-btn {
  display: none;
  background: none;
  border: none;
  color: #2d1b69;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pp-header-burger-btn:hover {
  background: rgba(45, 27, 105, 0.1);
}

.pp-header-burger-btn .line {
  transition: all 0.3s ease;
}

.pp-header-burger-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pp-header-cta-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 12px;
}

.pp-header-cta-button-secondary {
  background: #e9e9e9;
  color: #111;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.pp-header-cta-button-secondary:hover {
  background: #d3d3d3;
  transform: translateY(-1px);
}

.pp-header-cta-button {
  background: var(--promoping-orange-gradient);
  color: var(--text-light);
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(220, 124, 53, 0.3);
}

.pp-header-cta-button:hover {
  background: linear-gradient(135deg, var(--promoping-orange-medium), var(--promoping-orange-dark));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 124, 53, 0.4);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .pp-header {
    margin: 20px auto 0 auto;
    max-width: 95%;
    border-radius: 20px;
    padding: 20px 24px;
  }
  
  .pp-header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
  }
  
  .pp-header-nav.active {
    display: flex;
  }
  
  .pp-header-nav-wrapper {
    width: 100%;
  }
  
  .pp-header-nav-button {
    width: 100%;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(45, 27, 105, 0.05);
  }
  
  .pp-header-nav-links {
    position: static;
    background: rgba(45, 27, 105, 0.05);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: none;
    border: 1px solid rgba(45, 27, 105, 0.1);
  }
  
  .pp-header-burger-btn {
    display: block;
  }
  
  .pp-header-burger-cta {
    display: none;
  }
  
  .pp-header-logo span {
    font-size: 1.2rem;
  }
  
  .pp-header-logo img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .pp-header {
    margin: 15px auto 0 auto;
    border-radius: 16px;
    padding: 16px 20px;
  }
  
  .pp-header-logo span {
    font-size: 1.1rem;
  }
  
  .pp-header-logo img {
    width: 36px;
    height: 36px;
  }
  
  .pp-header-cta-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
  }

  .pp-header-cta-button,
  .pp-header-cta-button-secondary {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===== GLASSMORPHISM ENHANCEMENT ===== */
.pp-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.pp-header::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.1), transparent);
  pointer-events: none;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  z-index: 10000;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0;
  background: rgba(220, 124, 53, 0.6);
}
@media (max-width: 600px) {
  .modal-overlay {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
}

.modal-overlay.active {
  display: flex !important;
}

/* Garantir que os modais estejam ocultos por padrão e centralizados */
.modal-overlay .pinterest-modal {
  display: none !important;
  position: relative !important;
  margin: 0 auto !important;
  width: 484px !important;
  max-width: calc(100% - 40px) !important;
  overflow: visible;
  border: 1px solid #ddd !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-sizing: border-box !important;
  z-index: 10001 !important;
  background-color: rgb(255, 255, 255) !important;
}

/* Garantir que modal-content não tenha background duplicado dos outros CSS */
.modal-overlay .pinterest-modal .modal-content {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Garantir que apenas um modal apareça por vez */
.modal-overlay .pinterest-modal:not([style*="display: block"]) {
  display: none !important;
}

.modal-overlay .modal-verification {
  display: none !important;
}

/* Quando overlay está ativo, mostrar apenas o modal que tem display: block */
.modal-overlay.active .pinterest-modal[style*="display: block"] {
  display: block !important;
  position: relative !important;
  margin: 0 auto !important;
}

.modal-overlay.active .modal-verification[style*="display: block"] {
  display: block !important;
  position: relative !important;
  margin: 0 auto !important;
}

.modal-overlay .pinterest-modal::-webkit-scrollbar {
  width: 8px;
}

.modal-overlay .pinterest-modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal-overlay .pinterest-modal::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.modal-overlay .pinterest-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE REFINEMENTS ===== */
@media (max-width: 768px) {
  .pp-header {
    margin: 14px 12px 0;
    max-width: none;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .pp-header::before,
  .pp-header::after {
    border-radius: inherit;
  }

  .pp-header-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pp-header-logo {
    min-width: 0;
    justify-content: center;
  }

  .pp-header-burger {
    width: 100%;
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
  }

  .pp-header-burger-btn {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .pp-header-cta-buttons {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pp-header-cta-button,
  .pp-header-cta-button-secondary {
    min-width: 0;
    text-align: center;
    padding: 11px 16px;
  }
}

@media (max-width: 560px) {
  .pp-header {
    padding: 14px;
  }

  .pp-header-logo {
    width: 100%;
    justify-content: center;
  }

  .pp-header-burger {
    grid-template-columns: 1fr;
  }

  .pp-header-burger-lang {
    width: 100%;
    justify-content: center;
  }

  .pp-header-lang-btn {
    width: 100%;
    max-width: 180px;
  }

  .pp-header-cta-buttons {
    grid-template-columns: 1fr;
  }

  .pp-header-cta-button,
  .pp-header-cta-button-secondary {
    width: 100%;
    flex-basis: auto;
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-start;
  }

  .modal-overlay .pinterest-modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .modal-overlay .pinterest-modal .modal-content {
    max-height: calc(100vh - 24px) !important;
    overflow-y: auto !important;
  }
}
