/*
 * 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.
 */

/* Custom prose styles for Ass At Golf */
.prose {
  color: #1D3557; /* clubhouse-700 */
}

.prose strong {
  color: #E63946; /* hazard-500 */
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Custom focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid #E63946;
  outline-offset: 2px;
}

/* Brand typography system */
.brand-headline {
  font-family: 'Comic Neue', cursive;
  font-size: 4rem;
  line-height: 1.1;
  color: #1D3557;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-punchline {
  font-family: 'Comic Neue', cursive;
  font-size: 3.5rem;
  color: #d32f2f;
  font-weight: 700;
  transform: rotate(1deg);
  position: relative;
  margin-bottom: 1rem;
}

/* .brand-punchline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: #d32f2f;
  transform: rotate(-1deg);
  opacity: 0.8;
} */

.brand-tagline {
  font-family: 'Comic Neue', cursive;
  font-size: 1.5rem;
  line-height: 1.4;
  color: #1D3557;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.ui-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}



/* Paper texture and imperfections */
.paper-texture {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 250, 240, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 250, 240, 0.6) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Logo styling with sticker effect */
.sticker-logo {
  transform: rotate(-3deg);
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.sticker-logo:hover {
  transform: rotate(-1deg) scale(1.05);
}

/* Hand-drawn squiggles */
.squiggle {
  position: absolute;
  height: 2px;
  background: #E63946;
  border-radius: 50%;
  opacity: 0.6;
}

.squiggle-1 {
  top: 15%;
  left: 10%;
  width: 60px;
  transform: rotate(-15deg);
}

.squiggle-2 {
  top: 25%;
  right: 15%;
  width: 40px;
  transform: rotate(25deg);
}

.squiggle-3 {
  bottom: 20%;
  left: 20%;
  width: 80px;
  transform: rotate(-5deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .brand-headline {
    font-size: 2.5rem;
  }
  
  .brand-punchline {
    font-size: 2.2rem;
  }
  
  .brand-tagline {
    font-size: 1.2rem;
  }
}

body {
  margin: 0;
  background-color: #f4ebda;
  background-image: url("/assets/scorecard-10a3893b.png");
  background-repeat: repeat;
  background-size: auto;
  background-position: center;
}

/*
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: rgba(244, 235, 218, 0.3);
  z-index: 1;
}
*/

/* SVG filter for noise (to be included in HTML, e.g. in application.html.erb) */
/*
<svg width="0" height="0" style="position:absolute">
  <filter id="paper-noise">
    <feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/>
    <feColorMatrix type="saturate" values="0"/>
  </filter>
</svg>
*/
