/*
  Base stylesheet for the Rayos link-in-bio page.
  The palette takes inspiration from the reference image: deep reds,
  dark backgrounds and bright highlights. Typography is kept simple
  and legible while echoing the bold treatment from the phone UI.
*/

/* CSS reset to ensure consistent styling across browsers */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #160606; /* deep dark red background */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hero section with cropped header image from the reference */
/* Hero section updated to use the new Rayos Eats header provided by the user.
   Increased height slightly and centered the image for better composition. */
/* New hero section to display the header image directly. The container enforces height while
   the image uses object-fit to maintain aspect ratio and prevent cropping. */
.hero-section {
  /* Occupy full width and set a fixed height for the header area. We draw the
     provided header graphic as a background image. Using `contain` ensures
     the entire graphic is visible and black padding will appear as needed. */
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #160606;
  background-image: url('assets/header_responsive.jpg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.hero-section .hero-img {
  /* Not used when the header is drawn via CSS background, but retained for
     backward compatibility if an <img> element is present. */
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* In‑app header replicating the phone header: logo and tagline on a radial red gradient */
.app-header {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  background: radial-gradient(circle at top center, #ba0a0a 0%, #4d0101 100%);
  position: relative;
  overflow: hidden;
}

.app-header::before {
  /* subtle swirling effect using an oversized gradient */
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, rgba(255,0,0,0.4), rgba(0,0,0,0) 25%, rgba(255,0,0,0.4) 50%, rgba(0,0,0,0) 75%, rgba(255,0,0,0.4));
  animation: spin 20s linear infinite;
  z-index: 0;
}

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

.app-header .logo {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  background: radial-gradient(circle, #ff2626 0%, #9e0505 100%);
  border: 4px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-header .logo i {
  font-size: 2.5rem;
  color: #ffffff;
}

.app-header h1 {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.app-header .tagline {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 400;
  color: #f0eaea;
}

/* Override the default app-header styling: hide the entire header and its swirling
   pseudo-element because the new hero image acts as the primary header. */
.app-header {
  display: none !important;
}

.app-header::before {
  display: none !important;
}

.container {
  flex: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

/* Generic card styling */
.card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 15px;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.card .card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image area on the right side of each card */
.card .card-img {
  margin-left: auto;
  /* Increase the size of the right‑hand image container so that the custom icons
     fit comfortably without being clipped. */
  /* Set a generous size so larger icons like the scooter and star are fully visible */
  width: 90px;
  height: 90px;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .card-img img {
  width: 100%;
  height: 100%;
  /* Use contain so the entire icon fits within the container without cropping */
  object-fit: contain;
  display: block;
}

/* Ensure the <i> icons inside the left circles are visible.
   They will inherit color and size from inline styles on the HTML. */
.card-icon i {
  display: block;
}

/* Remove the SVG fallback styles; icons are no longer loaded as images */

/* Remove custom background images for card icons so that Font Awesome icons are visible */
.card.eats .card-icon,
.card.conecta .card-icon,
.card.reparto .card-icon,
.card.plus .card-icon {
  background-image: none;
}

.card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.card .card-desc {
  font-size: 0.85rem;
  color: #e3dada;
}

/* Individual gradient themes for each card */
/* Keep the first card bright red throughout with a gentle gradient */
.card.eats {
  background: linear-gradient(90deg, #c2120a 0%, #d83522 50%, #e84528 100%);
}

/* Adjust the second card to remain within red tones without drifting into purple */
.card.conecta {
  /* Maintain red tones with a gentler transition */
  background: linear-gradient(90deg, #b21e24 0%, #ce3534 50%, #e84b40 100%);
}

/* Adjust the third card: deeper reds transitioning to a brighter red */
.card.reparto {
  /* Mid-tone to brighter red for the delivery card */
  background: linear-gradient(90deg, #a91c1f 0%, #c43536 50%, #e0463c 100%);
}

/* Adjust the fourth card: warm maroon tones but still ending in red */
.card.plus {
  /* Warm maroon transitioning to a noticeable red at the end */
  background: linear-gradient(90deg, #931b20 0%, #b02d2f 50%, #d0403c 100%);
}

/* Business call-to-action section */
.business-section {
  background: linear-gradient(180deg, #5b0c0d 0%, #200505 100%);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.business-section h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.business-section p {
  font-size: 0.9rem;
  color: #e3dada;
  margin-bottom: 16px;
}

.business-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.business-buttons .business-btn {
  flex: 1;
  min-width: 130px;
  padding: 10px 15px;
  background: #930909;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.business-buttons .business-btn:hover {
  background: #b31212;
}

/* Promotion button styling */
.promo-btn {
  display: block;
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  text-align: center;
  background: #2a0202;
  color: #ffffff;
  border-radius: 10px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.promo-btn:hover {
  background: #3f0303;
}

/* Header container for the hero image. This ensures the header graphic scales
   responsively across devices while maintaining its aspect ratio and a dark
   backdrop. */
.header-container {
  width: 100%;
  background: #160606;
}

.header-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Search bar styling */
.search-bar {
  display: flex;
  align-items: center;
  background: #300406;
  border: 2px solid #500707;
  border-radius: 25px;
  padding: 6px 12px;
  margin-top: 20px;
}

.search-bar i {
  color: #ffffff;
  font-size: 1rem;
  margin-right: 8px;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  padding: 6px;
}

.search-bar input::placeholder {
  color: #b5a3a3;
}

.search-bar button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.search-bar button:hover {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }
  header .logo {
    width: 80px;
    height: 80px;
  }
  .card .card-title {
    font-size: 1rem;
  }
  .card .card-desc {
    font-size: 0.8rem;
  }
  .business-section h2 {
    font-size: 1.2rem;
  }
}