/* ============================================
   STEINOTEK BRAND STYLESHEET
   Touch of Genius - Professional Tech Solutions
   ============================================ */

/* CSS Variables - Steinotek Brand Colors */
:root {
  /* Primary Brand Colors (from logo) */
  --steinotek-blue: #3B4BA8;
  --steinotek-blue-dark: #2D3A7F;
  --steinotek-blue-light: #5668C2;
  --steinotek-cyan: #17C3CE;
  --steinotek-cyan-dark: #12A3AD;
  --steinotek-cyan-light: #4DD0E1;
  
  /* Gradient */
  --steinotek-gradient: linear-gradient(135deg, #3B4BA8 0%, #17C3CE 100%);
  --steinotek-gradient-hover: linear-gradient(135deg, #2D3A7F 0%, #12A3AD 100%);
  
  /* Neutral Colors */
  --steinotek-dark: #1a1a1a;
  --steinotek-gray-900: #111827;
  --steinotek-gray-800: #1f2937;
  --steinotek-gray-600: #6B7280;
  --steinotek-gray-400: #9CA3AF;
  --steinotek-gray-200: #E5E7EB;
  --steinotek-gray-100: #F3F4F6;
  --steinotek-gray-50: #F9FAFB;
  --steinotek-white: #FFFFFF;
  
  /* Spacing */
  --section-padding: 4rem 0;
  --container-max-width: 1280px;
  
  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--steinotek-gray-800);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--steinotek-gray-900);
  line-height: 1.2;
}

/* ============================================
   BUTTONS & INTERACTIVE ELEMENTS
   ============================================ */

/* Primary Gradient Button */
.btn-steinotek,
.btn-primary-gradient {
  background: var(--steinotek-gradient);
  color: var(--steinotek-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 12px rgba(59, 75, 168, 0.25);
}

.btn-steinotek:hover,
.btn-primary-gradient:hover {
  background: var(--steinotek-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 75, 168, 0.35);
  color: var(--steinotek-white);
}

/* Secondary Button (White with Gradient Border) */
.btn-secondary-gradient {
  background: var(--steinotek-white);
  color: var(--steinotek-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-secondary-gradient::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 0.5rem;
  padding: 2px;
  background: var(--steinotek-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.btn-secondary-gradient:hover {
  background: var(--steinotek-gradient);
  color: var(--steinotek-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 75, 168, 0.25);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-gradient {
  background: var(--steinotek-gradient);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--steinotek-white);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* ============================================
   CARDS & PRODUCT ELEMENTS
   ============================================ */

.card-steinotek {
  background: var(--steinotek-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
}

.card-steinotek:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-gradient-border {
  position: relative;
  background: var(--steinotek-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 0.75rem;
  padding: 2px;
  background: var(--steinotek-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0;
  transition: var(--transition-base);
}

.card-gradient-border:hover::before {
  opacity: 1;
}

/* Product Cards */
.product-card {
  background: var(--steinotek-white);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition-base);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(23, 195, 206, 0.2);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image {
  transition: var(--transition-base);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================
   SECTION TITLES & ACCENTS
   ============================================ */

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--steinotek-gray-900);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-title-gradient {
  background: var(--steinotek-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--steinotek-gray-600);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--steinotek-gradient);
  margin: 2rem auto;
  border-radius: 2px;
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge-gradient {
  background: var(--steinotek-gradient);
  color: var(--steinotek-white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.badge-new {
  background: var(--steinotek-cyan);
  color: var(--steinotek-white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.input-steinotek {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--steinotek-gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.input-steinotek:focus {
  outline: none;
  border-color: var(--steinotek-cyan);
  box-shadow: 0 0 0 3px rgba(23, 195, 206, 0.1);
}

/* ============================================
   GRADIENTS & OVERLAYS
   ============================================ */

.gradient-overlay {
  position: relative;
}

.gradient-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--steinotek-gradient);
  opacity: 0.9;
  z-index: 1;
}

.gradient-text {
  background: var(--steinotek-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ICONS & DECORATIVE ELEMENTS
   ============================================ */

.icon-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--steinotek-gradient);
  color: var(--steinotek-white);
  border-radius: 0.75rem;
  font-size: 1.5rem;
}

.icon-circle-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--steinotek-gradient);
  color: var(--steinotek-white);
  border-radius: 50%;
  font-size: 1.75rem;
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(23, 195, 206, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(23, 195, 206, 0.6);
  }
}

.animate-fade-in {
  animation: fade-in-up 0.6s ease-out;
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

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

.text-gradient {
  background: var(--steinotek-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-steinotek {
  background: var(--steinotek-gradient);
}

.border-gradient {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.border-gradient::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--steinotek-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* Shadow Utilities */
.shadow-steinotek {
  box-shadow: 0 4px 12px rgba(59, 75, 168, 0.15);
}

.shadow-steinotek-lg {
  box-shadow: 0 10px 30px rgba(59, 75, 168, 0.2);
}

.shadow-cyan {
  box-shadow: 0 4px 12px rgba(23, 195, 206, 0.15);
}

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

@media (max-width: 1024px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn-steinotek,
  .btn-primary-gradient,
  .btn-secondary-gradient {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* ==========================================================
   STEINOTEK UI ENHANCEMENTS (AUDIT FIXES)
   ========================================================== */

/* 1. Button Feedback (Hover/Focus States) */
.btn:hover, button:hover, .add-to-cart:hover, .shop-now:hover, .learn-more:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
    transition: all 0.3s ease !important;
    filter: brightness(1.1) !important;
}
.btn:focus, button:focus {
    outline: 2px solid #0ea5e9 !important;
    outline-offset: 2px !important;
}

/* 2. Responsive Navigation & Menu Contrast */
@media (max-width: 991px) {
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    .navbar-collapse {
        background: #0f172a !important; /* Dark menu for mobile */
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    .navbar-nav .nav-link {
        color: #f8fafc !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}
.search-bar input:focus {
    outline: 2px solid #0ea5e9 !important;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5) !important;
}

/* 3. Product Grid Alignment */
.product-card, .card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.product-card .card-body, .card .card-body {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
.product-card .card-title {
    margin-bottom: auto !important;
}

/* 4. Checkout and Form Inputs */
input.form-control, textarea.form-control, select.form-select {
    padding: 0.75rem 1rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
input.form-control:focus, textarea.form-control:focus, select.form-select:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25) !important;
}

/* 5. Footer & Widget Spacing */
footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}
.social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
    margin: 0 4px !important;
}
.social-icons a:hover {
    background: #0ea5e9 !important;
    transform: scale(1.1) !important;
}
@media (max-width: 768px) {
    footer .row > div {
        margin-bottom: 2rem !important;
    }
}

/* ==========================================================
   STEINOTEK UI ENHANCEMENTS (AUDIT FIXES)
   ========================================================== */

/* 1. Button Feedback (Hover/Focus States) */
.btn:hover, button:hover, .add-to-cart:hover, .shop-now:hover, .learn-more:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
    transition: all 0.3s ease !important;
    filter: brightness(1.1) !important;
}
.btn:focus, button:focus {
    outline: 2px solid #0ea5e9 !important;
    outline-offset: 2px !important;
}

/* 2. Responsive Navigation & Menu Contrast */
@media (max-width: 991px) {
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    .navbar-collapse {
        background: #0f172a !important; /* Dark menu for mobile */
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    .navbar-nav .nav-link {
        color: #f8fafc !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}
.search-bar input:focus {
    outline: 2px solid #0ea5e9 !important;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5) !important;
}

/* 3. Product Grid Alignment */
.product-card, .card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.product-card .card-body, .card .card-body {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
.product-card .card-title {
    margin-bottom: auto !important;
}

/* 4. Checkout and Form Inputs */
input.form-control, textarea.form-control, select.form-select {
    padding: 0.75rem 1rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
input.form-control:focus, textarea.form-control:focus, select.form-select:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25) !important;
}

/* 5. Footer & Widget Spacing */
footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}
.social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
    margin: 0 4px !important;
}
.social-icons a:hover {
    background: #0ea5e9 !important;
    transform: scale(1.1) !important;
}
@media (max-width: 768px) {
    footer .row > div {
        margin-bottom: 2rem !important;
    }
}
