/* ==========================================================================
   ARISTA TRINKETS — GLOBAL STYLESHEET
   ========================================================================== */

@import "../styles/tokens.css";

/* Accessibility Focus Outline */
:focus-visible {
  outline: 2px solid var(--brand-warm-gold);
  outline-offset: 3px;
}

.nav-link:focus, .nav-link:focus-visible, .nav-link.active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Global Reset & Link Styling */
a, a:visited, a:active {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-warm-gold);
  text-decoration: none;
}

/* Touch Target Minimum Dimensions */
button, 
a.btn,
.action-btn,
.mobile-toggle,
.wishlist-btn {
  min-height: 44px;
  min-width: 44px;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive Container System */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

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

@media (min-width: 1200px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Section Padding */
.section-padding {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* Responsive Product Grid Utility */
.grid-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 992px) {
  .grid-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1200px) {
  .grid-products {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* ==========================================================================
   Global Utility Classes
   ========================================================================== */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

/* ==========================================================================
   LUXURY SCROLL REVEAL & MICRO-INTERACTION ANIMATIONS
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Animations */
app-product-card:nth-child(1), .category-card:nth-child(1), .pillar-card:nth-child(1) { transition-delay: 0.04s; }
app-product-card:nth-child(2), .category-card:nth-child(2), .pillar-card:nth-child(2) { transition-delay: 0.1s; }
app-product-card:nth-child(3), .category-card:nth-child(3), .pillar-card:nth-child(3) { transition-delay: 0.16s; }
app-product-card:nth-child(4), .category-card:nth-child(4) { transition-delay: 0.22s; }

/* Global Luxury Card Hover Effects */
.category-card, app-product-card, .pillar-card, .info-card, .form-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Responsive & Overflow Protection */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

