/* Menu-specific styles that don't have Tailwind equivalents */

/* Apply min-height only on screen, not print */
@media screen {
  .menu-container {
    min-height: 100vh;
  }
}

/* Button components */
.btn {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:hover {
  background-color: #8a9063;
}

.btn-secondary {
  background-color: #b8956d;
}

.btn-secondary:hover {
  background-color: #a08659;
}

/* Print Styles */
@page {
  size: A4;
  margin: 0;
}

@media print {
  html {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
  }
  
  body {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .no-print {
    display: none !important;
  }
  
  /* Reduce padding and margins for print */
  .menu-container {
    padding: 0.25in !important;
    min-height: auto !important;
    margin: 0 !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
  }
  
  header {
    margin-bottom: 0.08in !important;
    padding-bottom: 0.08in !important;
  }
  
  header h1 {
    font-size: 2.25rem !important;
  }
  
  header img {
    max-width: 120px !important;
  }
  
  header .text-right {
    width: 120px !important;
  }
  
  header .text-right p {
    font-size: 0.65rem !important;
    margin-bottom: 0.02in !important;
  }
  
  .grid {
    gap: 0.12in !important;
    margin-bottom: 0.08in !important;
    margin-top: 0.08in !important;
  }
  
  .menu-section {
    padding: 0.12in !important;
    page-break-inside: avoid;
  }
  
  .text-center.mb-1,
  .text-center.mb-2 {
    margin-bottom: 0.08in !important;
  }
  
  .border-b-2.pb-0\.5,
  .border-b-2.pb-1 {
    padding-bottom: 0.04in !important;
  }
  
  .flex.justify-center.mt-0\.5,
  .flex.justify-center.mt-1,
  .flex.justify-center.mt-2 {
    margin-top: 0.08in !important;
  }
  
  h2 {
    font-size: 0.95rem !important;
  }
  
  .text-base {
    font-size: 0.68rem !important;
  }
  
  .text-sm {
    font-size: 0.62rem !important;
  }
  
  .text-xs {
    font-size: 0.58rem !important;
  }
}

/* Paper Texture Background */
.menu-container {
  position: relative;
  background: 
    /* Subtle paper fiber texture */
    linear-gradient(0deg, rgba(184, 149, 109, 0.01) 50%, transparent 50%),
    /* Main paper color with slight variations */
    radial-gradient(ellipse at top, #f8f3eb, #f3ebe0),
    /* Base cream color */
    #f5f0e8;
  background-size: 2px 2px, 100% 100%, 100% 100%;
}

.menu-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background-image: url(/assets/comore_pattern.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.menu-container::after {
  display: none;
}

/* Additional aged paper effects */
.menu-container .aged-spots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Removed circular gradients - keeping only the container for potential future use */
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

.menu-content {
  position: relative;
  z-index: 2;
}

/* Custom dotted borders for menu items */
.menu-item {
  border-bottom: 1px dotted #8a9063;
}

.menu-item:last-child {
  border-bottom: none;
}

/* Letter spacing for headers */
.section-header {
  letter-spacing: 0.5px;
}

.cafe-title {
  letter-spacing: 1.5px;
}

/* Book page effects */
.book-page-effect {
  /* Subtle inner shadow to create page depth */
  box-shadow: 
    inset 0 0 60px rgba(184, 149, 109, 0.08),
    inset 0 0 30px rgba(138, 144, 99, 0.05);
}

/* Vintage paper texture utility */
.paper-texture {
  background: 
    /* Very subtle grain texture */
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
}

/* Menu sections with paper feel */
.menu-section-paper {
  background: 
    /* Subtle paper fiber texture */
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%),
    /* Base white with cream tint */
    rgba(255, 255, 255, 0.95);
  box-shadow: 
    /* Subtle page depth */
    0 2px 8px rgba(184, 149, 109, 0.1),
    /* Inner glow for paper effect */
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Light background for menu sections */
.menu-section {
  background: rgba(255, 255, 255, 0.12);
}

/* Additional book page utilities */
.vintage-shadow {
  box-shadow: 
    0 4px 20px rgba(184, 149, 109, 0.15),
    0 1px 3px rgba(138, 144, 99, 0.1);
}

.aged-edges {
  position: relative;
}

.aged-edges::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, rgba(184, 149, 109, 0.1) 0%, transparent 10%, transparent 90%, rgba(138, 144, 99, 0.1) 100%);
  border-radius: inherit;
  z-index: -1;
}

/* Printable-specific styles */

/* A4 Print Styles - Optimized for full page usage */
@page {
  size: A4;
  margin: 0;
}

/* Printable layout specific styles */
.printable-body {
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.printable-container {
  /* Clean paper texture background for printable version */
  background: 
    /* Subtle paper fiber texture */
    linear-gradient(0deg, rgba(184, 149, 109, 0.005) 50%, transparent 50%),
    /* Main paper color */
    radial-gradient(ellipse at top, #f8f3eb, #f3ebe0),
    #f5f0e8;
  background-size: 1px 1px, 100% 100%, 100% 100%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.printable-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180mm;
  height: 180mm;
  background-image: url(/assets/comore_pattern.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}

.printable-container::after {
  display: none;
}

/* Additional aged paper effects for printable */
.printable-aged-spots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Removed circular gradients - keeping only the container for potential future use */
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

/* Light background for menu sections in printable */
.menu-section {
  background: rgba(255, 255, 255, 0.12);
}


/* Print optimizations */
@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
  }
  
  .printable-body {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .printable-container {
    padding: 2mm !important;
    width: 100% !important;
    height: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    page-break-before: avoid !important;
  }
  
  .printable-header {
    margin-bottom: 1mm !important;
    padding-bottom: 0.8mm !important;
  }
  
  .printable-header .flex {
    margin-bottom: 0.3mm !important;
  }
  
  .printable-header img {
    max-width: 80px !important;
  }
  
  .printable-header h1 {
    font-size: 48px !important;
  }
  
  .printable-header .text-right {
    width: 80px !important;
  }
  
  .printable-header .text-right p {
    font-size: 11px !important;
    margin-bottom: 0.3px !important;
  }
  
  .printable-grid {
    gap: 2mm !important;
    max-width: 206mm !important;
  }
  
  .printable-grid .menu-section {
    padding: 2mm !important;
  }
  
  .menu-section .text-center {
    margin-bottom: 1.2mm !important;
  }
  
  .menu-section .border-b-2 {
    padding-bottom: 0.6mm !important;
  }
  
  .menu-section h2 {
    font-size: 20px !important;
  }
  
  .menu-section .text-base {
    font-size: 15px !important;
  }
  
  .menu-section .text-sm {
    font-size: 13px !important;
  }
  
  .menu-section .text-xs {
    font-size: 11px !important;
  }
  
  .menu-section .space-y-0\.5 > * + * {
    margin-top: 0.6mm !important;
  }
  
  .menu-item {
    padding-top: 0.2mm !important;
    padding-bottom: 0.2mm !important;
  }
  
  .printable-bottom {
    margin-top: 1.2mm !important;
    margin-bottom: 2mm !important;
    max-width: 206mm !important;
  }
  
  .printable-footer {
    font-size: 9px !important;
    margin-top: 1.5mm !important;
    padding-top: 1mm !important;
  }
  
  .printable-container::before {
    width: 130mm !important;
    height: 130mm !important;
    opacity: 0.025 !important;
  }
  
  /* Ensure proper spacing */
  .menu-content {
    padding-bottom: 3mm !important;
  }
  
  /* Maximize space usage */
  .flex-1 {
    flex: 1 !important;
  }
  
  .mt-1, .mt-0\.5 {
    margin-top: 1.5mm !important;
  }
  
  .mb-1, .mb-0\.5 {
    margin-bottom: 1.5mm !important;
  }
}
/* Recetario Styles */

/* Print styles */
@media print {
  @page {
    margin: 0.5cm;
  }

  body {
    background: white !important;
    margin: 0;
    padding: 0;
  }

  /* Hide all chrome */
  nav,
  .no-print {
    display: none !important;
  }

  /* Strip layout wrappers added by application layout */
  body > div,
  main,
  main.container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* Strip the recetario outer wrapper padding */
  .min-h-screen {
    min-height: unset !important;
    background: white !important;
    padding: 0 !important;
  }

  /* Each page block fills the paper */
  .max-w-5xl {
    max-width: 100% !important;
    margin: 0 !important;
  }

  .page-break {
    page-break-after: always;
  }

  /* Tighten spacing to fit more content per page */
  .recipe-cell {
    padding: 0.3rem;
  }

  .recipe-cell h3 {
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.2rem;
  }

  .recipe-image {
    width: 48px;
    height: 48px;
  }

  .recipe-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .recipe-text p {
    margin-bottom: 0.1rem;
  }

  .compact-card {
    padding: 0.35rem;
  }

  .compact-card h3 {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    padding-bottom: 0.15rem;
  }

  .compact-card ul {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .compact-card ul li {
    margin-bottom: 0.05rem;
  }

  .compact-grid-2,
  .compact-grid-3,
  .compact-grid-4 {
    gap: 0.25rem;
  }

  .mb-3 { margin-bottom: 0.5rem !important; }
  .mb-4 { margin-bottom: 0.6rem !important; }
  .mt-3 { margin-top: 0.5rem !important; }

  .bg-stone-100 {
    padding: 0.5rem !important;
  }
}

/* Recipe grid layout - 2x2 */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #6b7280;
}

.recipe-cell {
  border: 1px solid #9ca3af;
  padding: 0.5rem;
  background: white;
}

.recipe-cell h3 {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #d1d5db;
}

.recipe-content {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.recipe-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.recipe-text {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.4;
}

.recipe-text p {
  margin-bottom: 0.15rem;
}

.espresso-note {
  margin-top: 0.4rem;
  padding-top: 0.3rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Compact grid for other variants */
.compact-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.compact-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.compact-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.compact-card {
  background: white;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}

.compact-card h3 {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.compact-card ul {
  font-size: 0.8rem;
  line-height: 1.4;
}

.compact-card ul li {
  margin-bottom: 0.15rem;
}

/* Color variants for compact cards */
.compact-card.category-coffee {
  background: #faf8f5;
}

.americano-variants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.americano-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b4423;
  margin-bottom: 0.1rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid #e5c99a;
}

.compact-card.espresso-highlight {
  background: #fff8e1;
  border: 2px solid #c4a57b;
  box-shadow: 0 1px 4px rgba(139, 111, 71, 0.25);
}

.compact-card.espresso-highlight h3 {
  color: #6b4423;
  border-bottom-color: #c4a57b;
}

.compact-card.category-chai {
  background: #fffaf7;
}

.compact-card.category-matcha {
  background: #f8fdfb;
}

/* Large cards for single-content pages (e.g. temporada) */
.compact-card-lg {
  background: white;
  padding: 1.2rem;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
}

.compact-card-lg h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e5e7eb;
}

.compact-card-lg p {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.compact-card-lg ul {
  font-size: 0.9rem;
  line-height: 1.6;
}

.compact-card-lg ul li {
  margin-bottom: 0.2rem;
}

/* Color coding for drink categories */
.category-coffee {
  background: #f4ede3;
  border-color: #c4a57b;
}

.category-coffee h2 {
  color: #8b6f47;
}

.category-chai {
  background: #fff4ed;
  border-color: #fb923c;
}

.category-chai h2 {
  color: #ea580c;
}

.category-matcha {
  background: #f0fdf4;
  border-color: #86efac;
}

.category-matcha h2 {
  color: #16a34a;
}

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
