/**
 * Responsive Layout - Novo sistema de media queries
 * Mobile: até 768px
 * Tablet: 769px até 2047px
 * Desktop: 2048px+
 */

/* =================================================================== */
/* MOBILE - até 768px */
/* =================================================================== */
@media (max-width: 768px) {
  /* Header Mobile */
  .main-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 20px;
    position: relative;
  }
  
  .logo-img {
    height: 45px;
  }
  
  /* Mobile Menu Toggle - visível em mobile */
  .mobile-menu-toggle {
    display: flex !important;
    order: 3;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 999999;
    position: relative;
  }
  
  /* Menu principal - configuração mobile */
  .main-nav {
    position: fixed !important;
    top: 65px !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.98) 50%, rgba(0, 0, 0, 0.95) 100%) !important;
    backdrop-filter: blur(15px) !important;
    z-index: 99999 !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 0 !important;
    transform: translateX(-100%) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 2rem 0 !important;
    overflow-y: auto !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(159, 239, 174, 0.05) !important;
    pointer-events: none !important;
  }
  
  .main-nav.active {
    display: flex !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
  }
  
  /* Nav container mobile - ocultar */
  .main-nav .nav-container {
    display: none !important;
  }
  
  /* Header actions - ocultos em mobile */
  .header-actions {
    order: 2;
    display: none;
  }
  
  /* Hero section mobile */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.85rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Language selector mobile - oculto, funcionalidade no menu mobile */
  .header-actions {
    display: none;
  }
  
  /* Mobile language selector no menu */
  .mobile-language-selector .language-flag {
    font-size: 1.3rem;
    margin-right: 0.5rem;
  }
  
  .mobile-language-selector .language-text {
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .mobile-language-selector .language-option .language-flag {
    font-size: 1.2rem;
    margin-right: 0.6rem;
  }
}

/* =================================================================== */
/* TABLET - 769px até 2047px */
/* =================================================================== */
@media (min-width: 769px) and (max-width: 2047px) {
  /* Header Tablet */
  .main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 20px;
    max-width: 1200px;
  }
  
  .logo-img {
    height: 50px;
  }
  
  /* Ocultar mobile toggle */
  .mobile-menu-toggle {
    display: none !important;
  }
  
  /* Ocultar mobile menu actions */
  .mobile-menu-actions {
    display: none !important;
  }
  
  /* Menu principal tablet */
  .main-nav {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    z-index: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    transform: none !important;
    transition: none !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    flex: 1;
    max-width: 500px;
    margin: 0 1.5rem;
  }
  
  /* Nav container tablet */
  .main-nav .nav-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
  }
  
  /* Links tablet */
  .main-nav a {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    text-shadow: none !important;
    padding: 0.7rem 0.1rem !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    text-align: center !important;
    display: inline-block !important;
    flex: 1 !important;
    font-size: 0.9rem;
  }
  
  /* Header actions tablet */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* Language selector tablet */
  .language-btn {
    padding: 0.5rem 0.8rem;
    min-width: 75px;
  }
  
  .language-flag {
    font-size: 1.2rem;
    margin-right: 0.4rem;
  }
  
  .language-text {
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  /* Hero section tablet */
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 2rem;
    max-width: 1200px;
  }
}

/* =================================================================== */
/* DESKTOP - 2048px+ */
/* =================================================================== */
@media (min-width: 2048px) {
  /* Header Desktop */
  .main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 40px;
    max-width: 1600px;
  }
  
  .logo-img {
    height: 60px;
  }
  
  /* Ocultar mobile toggle */
  .mobile-menu-toggle {
    display: none !important;
  }
  
  /* Ocultar mobile menu actions */
  .mobile-menu-actions {
    display: none !important;
  }
  
  /* Menu principal desktop */
  .main-nav {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    z-index: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    transform: none !important;
    transition: none !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    flex: 1;
    max-width: 700px;
    margin: 0 3rem;
  }
  
  /* Nav container desktop */
  .main-nav .nav-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
  }
  
  /* Links desktop */
  .main-nav a {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    text-shadow: none !important;
    padding: 0.8rem 0.3rem !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    text-align: center !important;
    display: inline-block !important;
    flex: 1 !important;
    font-size: 1.1rem;
    font-weight: 500;
  }
  
  /* Header actions desktop */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  /* Language selector desktop */
  .language-btn {
    padding: 0.6rem 1.2rem;
    min-width: 100px;
    gap: 0.6rem;
  }
  
  .language-flag {
    font-size: 1.5rem;
    margin-right: 0.5rem;
  }
  
  .language-text {
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  /* Language dropdown desktop */
  .language-dropdown {
    min-width: 200px;
  }
  
  .language-option {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  
  .language-option .language-flag {
    font-size: 1.4rem;
    margin-right: 0.7rem;
  }
  
  .language-option .language-text {
    font-size: 1rem;
  }
  
  /* Hero section desktop */
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .container {
    padding: 0 3rem;
    max-width: 1600px;
  }
}
