/* ============================================
   AI Solutions Catalog — Styles
   ============================================ */

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #F8FAFC;
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  color: #0F172A;
}

/* ---- Horizontal scroll row — hide scrollbar completely ---- */
.type-row-scroll::-webkit-scrollbar { display: none; }

/* ---- Animations ---- */

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn  { animation: fadeIn 180ms ease-out forwards; }
.animate-slideUp { animation: slideUp 260ms cubic-bezier(.2,.9,.3,1) forwards; }
.animate-scaleIn { animation: scaleIn 260ms cubic-bezier(.2,.9,.3,1) forwards; }
.animate-spin    { animation: spin 1s linear infinite; }

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E8ECF1 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ---- Header ---- */

.header-gradient {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.header-gradient::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -15%;
  width: 55%;
  height: 220%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.header-gradient::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 45%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Cards ---- */

.solution-card {
  transition: transform 180ms cubic-bezier(.2,.9,.3,1),
              box-shadow 180ms ease,
              border-color 180ms ease;
  animation: cardIn 300ms cubic-bezier(.2,.9,.3,1) both;
}

.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.04);
  border-color: #CBD5E1;
}

.solution-card:active {
  transform: translateY(-1px);
  transition-duration: 60ms;
}

/* ---- Buttons ---- */

.btn-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  box-shadow: 0 2px 8px rgba(59,130,246,0.25), 0 1px 2px rgba(0,0,0,0.06);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.35), 0 2px 4px rgba(0,0,0,0.08);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(59,130,246,0.2);
}

.btn-primary:disabled {
  background: #E2E8F0;
  color: #94A3B8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ---- Modal ---- */

.modal-overlay {
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 160ms ease-out forwards;
}

.modal-box {
  animation: slideUp 280ms cubic-bezier(.2,.9,.3,1) forwards;
}

/* ---- Inputs ---- */

.input-field {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-field:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  outline: none;
}

select:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  outline: none;
}

/* ---- Filter pills ---- */

.filter-pill {
  transition: all 120ms ease;
}

/* ---- Gradient icon box ---- */

.gradient-icon {
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
}

/* ---- Power BI embed ---- */

.embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.embed-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---- Search clear ---- */

.search-clear {
  transition: opacity 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.search-clear:hover {
  transform: scale(1.1);
  background-color: #E2E8F0 !important;
}

/* ---- Success icon ---- */

.success-icon {
  animation: scaleIn 280ms cubic-bezier(.2,.9,.3,1) forwards;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .filter-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filter-scroll::-webkit-scrollbar {
    display: none;
  }
}
