/*
      _/_/    _/    _/  _/      _/    _/_/    _/_/_/_/_/  _/_/_/_/  _/      _/
   _/    _/  _/    _/  _/_/  _/_/  _/    _/      _/      _/          _/  _/
  _/_/_/_/  _/    _/  _/  _/  _/  _/_/_/_/      _/      _/_/_/        _/
 _/    _/  _/    _/  _/      _/  _/    _/      _/      _/          _/  _/
_/    _/    _/_/    _/      _/  _/    _/      _/      _/_/_/_/  _/      _/

PROJECT:     Aumatex Official Website
FILE:        src/styles/shared.css
PURPOSE:     Shared cross-page styles for cookie banner and language switcher.
STACK:       CSS (Custom + Tailwind utilities)
CREATED:     2026-01-27
AUTHOR:      Aumatex srls | www.aumatex.it
REPOSITORY:  https://github.com/aumadev/aumatex
LICENSE:     Proprietary Software
SECURITY:    Do not expose, share or modify without authorization.
RIGHTS:      © 2025–2026 Aumatex srls. All rights reserved.

Unauthorized reproduction, distribution or modification
without prior written consent is strictly prohibited.
*/

#cookie-banner {
  inset-inline: 0;
  bottom: 0;
  width: auto;
  max-width: 100%;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

#cookie-settings {
  inset: 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.glass-banner {
  background: rgba(8, 10, 16, 0.88);
  border-top-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}

#cookie-banner.glass-banner {
  background: rgba(8, 10, 16, 0.88) !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(22px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
}

.glass-banner-overlay {
  background: rgba(4, 6, 10, 0.82) !important;
  backdrop-filter: blur(26px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(120%) !important;
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--white-10);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 600;
}
.lang-switcher__toggle:focus-visible {
  outline: 2px solid var(--accent-40);
  outline-offset: 2px;
}
.lang-switcher__chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--motion-fast) var(--motion-ease);
}
.lang-switcher.is-open .lang-switcher__chevron {
  transform: rotate(180deg);
}
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--white-10);
  background: rgba(12, 12, 16, 0.9);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
  z-index: 20;
}
.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-switcher__item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}
.lang-switcher__item.is-active {
  color: var(--text-main);
  background: var(--white-10);
}
.lang-switcher__item:hover {
  color: var(--text-main);
  background: var(--white-08);
}
.mobile-menu__panel .lang-switcher {
  width: 100%;
  align-items: stretch;
}
.mobile-menu__panel .lang-switcher__toggle {
  display: none;
}
.mobile-menu__panel .lang-switcher__menu {
  position: static;
  min-width: 0;
  width: 100%;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  border-radius: 0;
  border: 0;
  background: transparent;
  margin-top: 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.mobile-menu__panel .lang-switcher__item {
  justify-content: center;
  padding: 10px 0;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  background: rgba(255, 255, 255, 0.06);
}

.text-transparent {
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}
.bg-gradient-to-r {
  background-image: linear-gradient(90deg, var(--tw-gradient-stops));
}
.bg-gradient-to-b {
  background-image: linear-gradient(180deg, var(--tw-gradient-stops));
}
.from-white {
  --tw-gradient-from: #ffffff;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}
.via-gray-400 {
  --tw-gradient-stops: var(--tw-gradient-from), #9ca3af, var(--tw-gradient-to, rgba(156, 163, 175, 0));
}
.to-gray-600 {
  --tw-gradient-to: #4b5563;
}
.from-gray-500 {
  --tw-gradient-from: #6b7280;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(107, 114, 128, 0));
}
.to-gray-800 {
  --tw-gradient-to: #1f2937;
}
