/**
 * Aura Tech Design System
 * Clone Phone WordPress Theme
 * 
 * Modern Minimalism + Glassmorphism
 * Premium smartphone e-commerce experience
 */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */

:root {
  /* Aliases for legacy template variable names used across myaccount.php /
     page-about.php etc. These names were referenced but never defined, which
     silently broke colors (and fully invalidated any gradient using them).
     Mapped to their closest defined design-system token. */
  --color-onyx: #333333;                 /* alias of --color-onyx-gray */
  --color-slate: #5f5e5e;                /* alias of --color-secondary */
  --color-alabaster: #f3f3f4;            /* alias of --color-surface-container-low */
  --color-pale-lilac: #eedbff;           /* alias of --color-primary-fixed */
  --color-royal-purple: #663b99;         /* alias of --color-primary-dark */
  --color-on-primary-fixed-variant: #663b99;

  /* Colors - Primary */
  --color-primary: #7F54B3;
  --color-primary-dark: #663b99;
  --color-primary-light: #dab9ff;
  --color-primary-fixed: #eedbff;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #f3e4ff;
  --color-primary-container: #7f54b3;

  /* Colors - Secondary */
  --color-secondary: #5f5e5e;
  --color-secondary-container: #e4e2e1;
  --color-on-secondary: #ffffff;
  --color-on-secondary-container: #656464;

  /* Colors - Tertiary */
  --color-tertiary: #4f5151;
  --color-tertiary-container: #686969;
  --color-on-tertiary: #ffffff;

  /* Colors - Surface */
  --color-surface: #f9f9f9;
  --color-surface-dim: #dadada;
  --color-surface-bright: #f9f9f9;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f3f3f4;
  --color-surface-container: #eeeeee;
  --color-surface-container-high: #e8e8e8;
  --color-surface-container-highest: #e2e2e2;
  --color-on-surface: #1a1c1c;
  --color-on-surface-variant: #4b4451;
  --color-inverse-surface: #2f3131;
  --color-inverse-on-surface: #f0f1f1;

  /* Colors - Brand Custom */
  --color-deep-amethyst: #7F54B3;
  --color-onyx-gray: #333333;
  --color-mist-silver: #F0F0F0;
  --color-pure-white: #FFFFFF;

  /* Colors - Background */
  --color-background: #f9f9f9;
  --color-on-background: #1a1c1c;

  /* Colors - Error */
  --color-error: #ba1a1a;
  --color-error-container: #ffdad6;
  --color-on-error: #ffffff;
  --color-on-error-container: #93000a;

  /* Colors - Outline */
  --color-outline: #7c7482;
  --color-outline-variant: #cdc3d2;

  /* Typography - Font Families */
  --font-display: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Typography - Font Sizes (Desktop) */
  --text-display-lg: 48px;
  --text-display-lg-line-height: 56px;
  --text-display-lg-mobile: 36px;
  --text-display-lg-mobile-line-height: 42px;
  --text-headline-md: 32px;
  --text-headline-md-line-height: 40px;
  --text-headline-sm: 24px;
  --text-headline-sm-line-height: 32px;
  --text-body-lg: 18px;
  --text-body-lg-line-height: 28px;
  --text-body-md: 16px;
  --text-body-md-line-height: 24px;
  --text-label-bold: 14px;
  --text-label-bold-line-height: 20px;
  --text-label-md: 14px;
  --text-label-md-line-height: 20px;

  /* Typography - Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Typography - Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;

  /* Spacing - Base Unit: 8px */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 80px;
  --spacing-5xl: 120px;

  /* Layout */
  --container-max-width: 1280px;
  --margin-desktop: 48px;
  --margin-mobile: 20px;
  --gutter-desktop: 24px;
  --gutter-mobile: 16px;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-default: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-product-hover: 0 20px 40px -15px rgba(127, 84, 179, 0.1);
  --shadow-ambient-glow: 0 0 40px rgba(127, 84, 179, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ========================================
   BASE STYLES
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md-line-height);
  font-weight: var(--font-weight-regular);
  color: var(--color-on-background);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  color: var(--color-onyx-gray);
  line-height: 1.2;
}

.display-lg {
  font-size: var(--text-display-lg);
  line-height: var(--text-display-lg-line-height);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
}

.headline-md {
  font-size: var(--text-headline-md);
  line-height: var(--text-headline-md-line-height);
  font-weight: var(--font-weight-semibold);
}

.headline-sm {
  font-size: var(--text-headline-sm);
  line-height: var(--text-headline-sm-line-height);
  font-weight: var(--font-weight-semibold);
}

.body-lg {
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg-line-height);
  font-weight: var(--font-weight-regular);
}

.body-md {
  font-size: var(--text-body-md);
  line-height: var(--text-body-md-line-height);
  font-weight: var(--font-weight-regular);
}

.label-bold {
  font-size: var(--text-label-bold);
  line-height: var(--text-label-bold-line-height);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
}

.label-md {
  font-size: var(--text-label-md);
  line-height: var(--text-label-md-line-height);
  font-weight: var(--font-weight-medium);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.section {
  padding: var(--spacing-4xl) 0;
}

/* Contact page two-column block (the page markup set grid-template-columns
   but was missing display:grid, so the columns collapsed). */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (min-width: 768px) {
  .section {
    padding: var(--spacing-5xl) 0;
  }
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */

.glass-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: var(--text-label-bold);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-label-bold-line-height);
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background-color: var(--color-deep-amethyst);
  color: var(--color-pure-white);
  box-shadow: 0 4px 12px rgba(127, 84, 179, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 16px rgba(127, 84, 179, 0.3);
}

.btn-secondary {
  background-color: var(--color-mist-silver);
  color: var(--color-onyx-gray);
}

.btn-secondary:hover {
  background-color: var(--color-surface-container-highest);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-deep-amethyst);
  border: 2px solid var(--color-deep-amethyst);
}

.btn-outline:hover {
  background-color: var(--color-primary-fixed);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */

.product-card {
  cursor: pointer;
  transition: all var(--transition-slower);
}

.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--color-pure-white);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform var(--transition-slower);
}

.product-card:hover .product-card__image {
  transform: scale(1.1);
}

.product-card:hover {
  box-shadow: var(--shadow-product-hover);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-onyx-gray);
  margin-bottom: var(--spacing-xs);
}

.product-card__variant {
  font-size: var(--text-body-md);
  color: var(--color-on-surface-variant);
  margin-bottom: var(--spacing-sm);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--text-headline-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-deep-amethyst);
  margin-top: var(--spacing-sm);
}

.product-card__badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  z-index: 10;
  background-color: var(--color-deep-amethyst);
  color: var(--color-pure-white);
  font-size: 10px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.product-card__badge--sale {
  background-color: var(--color-error);
}

/* ========================================
   INPUT FIELDS
   ======================================== */

.input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  border: 1px solid var(--color-mist-silver);
  border-radius: var(--radius-lg);
  background-color: var(--color-pure-white);
  transition: all var(--transition-base);
}

.input:focus {
  outline: none;
  border-color: var(--color-deep-amethyst);
  box-shadow: 0 0 0 3px rgba(127, 84, 179, 0.1);
}

.input--pill {
  border-radius: var(--radius-full);
  background-color: var(--color-mist-silver);
  border: none;
}

/* ========================================
   CHIPS & BADGES
   ======================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 6px 12px;
  background-color: var(--color-mist-silver);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: var(--color-on-surface-variant);
}

.chip--primary {
  background-color: var(--color-primary-fixed);
  color: var(--color-on-primary-fixed-variant);
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.nav--scrolled {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-shadow: var(--shadow-md);
}

.nav__link {
  font-family: var(--font-display);
  font-size: var(--text-label-bold);
  font-weight: var(--font-weight-bold);
  color: var(--color-on-surface-variant);
  text-decoration: none;
  transition: color var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-deep-amethyst);
}

.nav__link--active {
  border-bottom: 2px solid var(--color-deep-amethyst);
  padding-bottom: 4px;
}

/* ========================================
   ICONS (Material Symbols)
   ======================================== */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.material-symbols-outlined--filled {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 767px) {
  .display-lg {
    font-size: var(--text-display-lg-mobile);
    line-height: var(--text-display-lg-mobile-line-height);
    letter-spacing: -0.01em;
  }
  
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 1s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 1s ease-out;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--color-mist-silver);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-deep-amethyst);
  border-radius: var(--radius-full);
}

/* ========================================
   WOOCOMMERCE OVERRIDES
   ======================================== */

.woocommerce .products ul,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  list-style: none;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: var(--color-pure-white);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-md);
  transition: all var(--transition-slower);
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-product-hover);
}

.woocommerce ul.products li.product img {
  border-radius: var(--radius-xl);
  background-color: var(--color-mist-silver);
}

.woocommerce ul.products li.product .price {
  color: var(--color-deep-amethyst);
  font-family: var(--font-display);
  font-size: var(--text-headline-sm);
  font-weight: var(--font-weight-semibold);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--color-deep-amethyst);
  color: var(--color-pure-white);
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  border: none;
  transition: all var(--transition-base);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--color-primary-dark);
  transform: scale(0.98);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
  padding: 16px 0;
  transition: all var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.site-logo {
  font-weight: 700;
  color: var(--color-deep-amethyst);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.site-logo:hover {
  opacity: 0.8;
}

.desktop-nav .nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  margin: 0;
  padding: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background-color: var(--color-mist-silver);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.search-bar:focus-within {
  box-shadow: 0 0 0 2px var(--color-deep-amethyst);
}

.search-bar .material-symbols-outlined {
  color: var(--color-outline);
}

.search-input {
  border: none;
  background: transparent;
  padding: 0;
  width: 192px;
}

.search-input:focus {
  box-shadow: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.icon-btn {
  position: relative;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  color: var(--color-primary);
}

.icon-btn:hover {
  background-color: var(--color-mist-silver);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--color-deep-amethyst);
  color: var(--color-pure-white);
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  color: var(--color-primary);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-pure-white);
  z-index: var(--z-modal);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  transition: right var(--transition-slow);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  align-self: flex-end;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-on-surface);
}

.mobile-nav-header {
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-outline-variant);
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background-color: var(--color-mist-silver);
  padding: 12px 16px;
  border-radius: var(--radius-full);
}

.mobile-search .material-symbols-outlined {
  color: var(--color-outline);
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.mobile-nav-menu .nav__link {
  display: block;
  padding: var(--spacing-sm) 0;
  font-size: var(--text-body-lg);
}

.mobile-nav-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.language-switcher-mobile {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-outline-variant);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (min-width: 768px) {
  .hero-section .container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .bento-grid-section {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .bento-card:first-child {
    grid-column: span 2 !important;
  }
  
  .features-bar .container {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Keep the Fan Favorites row aligned to the same width as other sections */
  .horizontal-scroll {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--margin-desktop) !important;
    padding-right: var(--margin-desktop) !important;
  }
}

@media (max-width: 767px) {
  .display-lg {
    font-size: var(--text-display-lg-mobile) !important;
    line-height: var(--text-display-lg-mobile-line-height) !important;
    letter-spacing: -0.01em !important;
  }
  
  .hero-section {
    min-height: auto !important;
    padding: var(--spacing-2xl) 0 !important;
  }
  
  .hero-image {
    display: none !important;
  }

  /* --- Mobile tightening / simplification --- */
  /* Reduce the very large section spacing so pages feel more compact */
  .section {
    padding: var(--spacing-2xl) 0 !important;
  }
  /* Trust features as a compact 2x2 grid instead of 4 tall stacked rows */
  .features-bar .container {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--spacing-lg) !important;
  }
  .headline-md {
    font-size: 22px !important;
  }
}
