/**
 * Hostel Detroit - AWESOME Neobrutalist Homepage Enhancements
 * Makes the homepage grab attention while keeping all copy intact
 */

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

/* Dramatic hero with diagonal clip */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Animated noise texture overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.08;
  z-index: 1;
  pointer-events: none;
}

/* Diagonal accent stripe */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal) 50%, var(--color-pink) 50%, var(--color-pink) 100%);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

/* Content positioning */
.hero-section .container {
  padding-top: 140px;
  padding-bottom: 140px;
}

/* Mega title with rotation and depth */
.hero-title {
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  padding: 0;
  background: none !important;
  box-shadow: none !important;
  transform: rotate(-2deg);
  position: relative;
  animation: titlePopIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  text-transform: uppercase;
}

/* Highlighter span for multi-line title background */
.hero-title > span {
  background: var(--color-black);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow: 6px 6px 0 0 var(--color-teal);
  padding: 0.08em 0.35em;
  line-height: 1.15;
}

.hero-title::before {
  display: none;
}

.hero-title::after {
  content: '✦';
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 32px;
  color: var(--color-orange);
  animation: starSpin 4s linear infinite;
}

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

/* Staggered subtitles with different rotations */
.hero-subtitle {
  font-size: var(--font-h4);
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-sm);
  display: inline-block;
  animation: slideInLeft 0.6s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-subtitle-1 {
  transform: rotate(1deg);
  animation-delay: 0.3s;
}

.hero-subtitle-2 {
  transform: rotate(-1deg);
  animation-delay: 0.5s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px) rotate(var(--rotation, 0deg));
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(var(--rotation, 0deg));
  }
}

/* Big book button - enhanced but preserves label swap animation */
.hero-ctas .btn-primary {
  font-size: 32px;
  padding: var(--space-lg) var(--space-2xl);
  min-width: 320px;
  margin-top: var(--space-xl);
  position: relative;
  overflow: visible;
}

/* Final CTA buttons - matching style */
.final-cta-buttons .btn-primary,
.final-cta-buttons .btn-secondary {
  position: relative;
  overflow: visible;
}

/* Preserve original button hover animations - don't override */
.hero-ctas .btn-primary:hover,
.final-cta-buttons .btn-primary:hover,
.final-cta-buttons .btn-secondary:hover {
  /* Let the base style.css handle hover transforms */
}

/* Stats - transparent with individual colored badges */
.hero-social-proof {
  gap: var(--space-xl);
  padding: var(--space-lg);
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: var(--space-2xl);
  transform: none;
}

.stat-number {
  font-size: 26px;
  padding: var(--space-xs) var(--space-sm);
  border: var(--border-width) solid var(--color-black);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 var(--color-black);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: inline-block;
  min-width: 80px;
}

.stat:hover .stat-number {
  transform: translate(calc(var(--shadow-offset-hover) * -1), calc(var(--shadow-offset-hover) * -1));
  box-shadow: var(--shadow-offset-hover) var(--shadow-offset-hover) 0 0 var(--color-black);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* ============================================
   AWESOME PRESS MARQUEE
   ============================================ */

.press-section {
  background: repeating-linear-gradient(
    45deg,
    var(--color-black),
    var(--color-black) 10px,
    #1a1a1a 10px,
    #1a1a1a 20px
  );
  padding: var(--space-sm) 0;
  position: relative;
}

.press-section::before,
.press-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-teal) 0px,
    var(--color-teal) 20px,
    var(--color-pink) 20px,
    var(--color-pink) 40px,
    var(--color-orange) 40px,
    var(--color-orange) 60px,
    var(--color-blue) 60px,
    var(--color-blue) 80px
  );
}

.press-section::before { top: 0; }
.press-section::after { bottom: 0; }

.press-header {
  background: transparent;
  padding: var(--space-xs) 0;
}

.press-title-stationary {
  font-size: 14px;
  padding: 4px 16px;
  background: var(--color-white);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0 0 var(--color-teal);
  transform: rotate(-2deg);
}

.press-item {
  font-size: 20px;
  padding: var(--space-sm) var(--space-xl);
  transform: rotate(var(--rotation, -1deg));
  transition: all 0.3s;
}

.press-item:nth-child(odd) { --rotation: 1deg; }
.press-item:nth-child(even) { --rotation: -1deg; }

.press-item:hover {
  transform: rotate(0deg) scale(1.1);
  z-index: 10;
}

/* ============================================
   AWESOME WHY US SECTION
   ============================================ */

.why-us-section {
  position: relative;
}

.why-us-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0,0,0,0.03) 50px, rgba(0,0,0,0.03) 51px),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0,0,0,0.03) 50px, rgba(0,0,0,0.03) 51px);
  pointer-events: none;
}

.why-us-section .section-title {
  font-size: clamp(36px, 5vw, 52px);
  transform: rotate(-2deg);
  position: relative;
}

/* Feature cards with icons and diagonal stripes */
.why-us-section .feature-card {
  position: relative;
  padding: var(--space-xl);
}

.why-us-section .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--color-black);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.2;
}

.why-us-section .feature-card h3 {
  font-size: 28px;
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.why-us-section .feature-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.why-us-section .feature-card:hover h3::after {
  transform: scaleX(1);
}

/* ============================================
   AWESOME ACCOMMODATIONS
   ============================================ */

.accommodations-section {
  position: relative;
}

.accommodations-section .section-title {
  font-size: clamp(36px, 5vw, 52px);
  transform: rotate(2deg);
}

/* Room cards with badges and better hover */
.room-card {
  position: relative;
}

.room-card::before {
  content: attr(data-price);
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  border: 3px solid var(--color-black);
  box-shadow: 3px 3px 0 0 var(--color-black);
  z-index: 10;
  transform: rotate(3deg);
}

.room-card .room-image {
  position: relative;
  overflow: visible;
}

.room-card .room-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.room-card .room-image img {
  transition: transform 0.4s ease;
}

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

.room-card h3 {
  font-size: 28px;
}

/* ============================================
   AWESOME GROUP CALLOUT
   ============================================ */

.group-callout-section {
  position: relative;
}

.group-callout-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(255,255,255,0.03) 35px,
      rgba(255,255,255,0.03) 70px
    );
  pointer-events: none;
}

.group-callout-box {
  position: relative;
  padding: var(--space-3xl);
  transition: transform 0.3s;
}

.group-callout-box:hover {
  transform: rotate(0deg);
}

.group-callout-box h2 {
  font-size: clamp(32px, 5vw, 48px);
  position: relative;
  display: inline-block;
}

.group-callout-box h2::before {
  content: '👥';
  font-size: 40px;
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.group-inquiry-form {
  background: rgba(0,0,0,0.2);
  padding: var(--space-lg);
  border: 3px solid var(--color-black);
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.3);
}

.group-inquiry-form input,
.group-inquiry-form select {
  background: var(--color-white);
  border: 3px solid var(--color-black);
  box-shadow: 3px 3px 0 0 var(--color-black);
  font-weight: 600;
}

.group-inquiry-form input:focus,
.group-inquiry-form select:focus {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 var(--color-black);
}

/* ============================================
   AWESOME TESTIMONIALS
   ============================================ */

.testimonials-section {
  position: relative;
}

.testimonials-section .section-title {
  font-size: clamp(36px, 5vw, 52px);
  transform: rotate(-2deg);
}

.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
  font-size: 120px;
  color: rgba(255,255,255,0.3);
  line-height: 1;
}

.testimonial-content {
  font-size: 18px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ============================================
   AWESOME LOCATION
   ============================================ */

.location-section {
  position: relative;
}

.location-section .section-title {
  font-size: clamp(36px, 5vw, 52px);
  transform: rotate(1deg);
}

.location-section .location-intro {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
  font-size: 18px;
  line-height: 1.8;
}

.location-section .location-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.location-section .location-highlights li {
  font-size: 16px;
  position: relative;
  padding-left: 30px;
}

.location-section .location-highlights li::before {
  content: '→';
  position: absolute;
  left: var(--space-sm);
  font-weight: 700;
}

/* ============================================
   AWESOME EXPLORE SECTION
   ============================================ */

.explore-section {
  position: relative;
}

.explore-section .section-title {
  font-size: clamp(36px, 5vw, 52px);
  transform: rotate(-1deg);
}

.explore-section .section-subtitle {
  transform: rotate(1deg);
  font-size: 18px;
}

.guide-card {
  position: relative;
}

.guide-card .guide-image {
  position: relative;
  overflow: hidden;
}

.guide-card .guide-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.guide-card .guide-image img {
  transition: transform 0.4s ease;
}

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

.guide-card h3 {
  font-size: 22px;
}

/* ============================================
   AWESOME FINAL CTA
   ============================================ */

.final-cta-section {
  position: relative;
}

.final-cta-section::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% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.final-cta-box {
  position: relative;
  padding: var(--space-3xl) var(--space-2xl);
}

.final-cta-box:hover {
  /* Subtle lift effect */
  transform: translateY(-4px);
}

.final-cta-box h2 {
  font-size: clamp(36px, 6vw, 64px);
  transform: rotate(-2deg);
  position: relative;
}

.final-cta-box h2::after {
  content: '✦';
  position: absolute;
  top: -20px;
  right: -40px;
  font-size: 48px;
  color: var(--color-orange);
  animation: starSpin 3s linear infinite;
}

.final-cta-box p {
  font-size: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-buttons .btn {
  font-size: 24px;
  padding: var(--space-md) var(--space-2xl);
  position: relative;
}

.final-cta-buttons .btn-primary {
  animation: pulseButton 2s ease-in-out infinite;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Elements start hidden and animate in */
.section-title,
.feature-card,
.room-card,
.testimonial-card,
.guide-card,
.group-callout-box,
.final-cta-box {
  opacity: 1; /* Visible by default, JS will handle reveal */
}

/* Reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   FLOATING DECORATION ELEMENTS
   ============================================ */

.floating-shape {
  position: absolute;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   RESPONSIVE AWESOMENESS
   ============================================ */

@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-social-proof {
    gap: var(--space-lg);
    transform: none;
  }
  
  .stat-number {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .hero-section::after {
    height: 60px;
  }
  
  .hero-title {
    font-size: 36px;
    transform: rotate(-1deg);
  }
  
  .hero-title::after {
    font-size: 24px;
    top: -10px;
    right: -10px;
  }
  
  .hero-ctas .btn-primary {
    font-size: 24px;
    min-width: 280px;
  }
  
  .hero-social-proof {
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  
  .stat-number {
    font-size: 20px;
    min-width: auto;
  }
  
  .group-callout-box h2::before {
    display: none;
  }
  
  .final-cta-box h2::after {
    font-size: 32px;
    right: -10px;
  }
  
  .section-title {
    font-size: 32px !important;
  }
  
  .final-cta-box h2::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
    padding: 0;
  }
  
  .hero-title > span {
    padding: 0.06em 0.25em;
    box-shadow: 4px 4px 0 0 var(--color-teal);
  }
  
  .hero-subtitle {
    font-size: var(--font-h5);
  }
  
  .hero-social-proof {
    gap: var(--space-xs);
    padding: var(--space-sm);
    margin-top: var(--space-lg);
  }
  
  .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-number {
    font-size: 16px;
    padding: 2px 8px;
    min-width: 0;
  }
  
  .stat-label {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
  
  .press-item {
    font-size: 16px;
    padding: var(--space-xs) var(--space-md);
  }
  
  /* Push stats above sticky CTA */
  .hero-rebuild > .container {
    padding-bottom: 80px !important;
  }
}

/* ============================================
   NARROW PHONES (<=400px): keep the 3 stats on one row
   ============================================ */
@media (max-width: 400px) {
  .hero-social-proof {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
  }

  .stat {
    flex: 1 1 0;
    min-width: 0;
  }

  .stat-number {
    min-width: auto;
    font-size: 15px;
    padding: 2px 6px;
  }

  .stat-label {
    font-size: 9px;
    line-height: 1.15;
  }
}
