/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Remove default browser focus styles on all form elements */
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none !important;
}

/* Glow shadow effects for active cards */
.glow-shadow-green {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
  border-radius: 1rem; /* matches rounded-2xl */
}

.glow-shadow-purple {
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.4), 0 0 40px rgba(147, 51, 234, 0.2);
  border-radius: 1rem; /* matches rounded-2xl */
}

/* ================================================================
   Landing page — Grain-inspired design system
   ================================================================ */

/* Inter font + antialiasing for all landing pages */
.landing-body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain/noise texture overlay — subtle paper-like feel.
   A fixed pseudo-element so it covers the full viewport without
   affecting layout. */
.landing-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 9999;
}

/* Grain-style card — gradient border that animates on hover */
.grain-card {
  position: relative;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
}

.grain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.3s ease;
  pointer-events: none;
}

.grain-card:hover::before {
  background: linear-gradient(135deg, #22c55e, #059669);
}
