/* 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 {
  .printable-body {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .printable-container {
    padding: 4mm !important;
    width: 100% !important;
    height: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
  }
  
  .printable-header {
    margin-bottom: 3mm !important;
    padding-bottom: 2mm !important;
  }
  
  .printable-header .flex {
    margin-bottom: 0.25rem !important;
  }
  
  .printable-logo {
    max-width: 140px !important;
  }
  
  .printable-title {
    font-size: 20px !important;
  }
  
  .printable-subtitle {
    font-size: 13px !important;
  }
  
  .printable-grid {
    gap: 6mm !important;
    max-width: 190mm !important;
  }
  
  .printable-column {
    gap: 3mm !important;
  }
  
  .printable-section {
    padding: 3mm !important;
  }
  
  .printable-section-header {
    padding: 1.5mm !important;
    font-size: 13px !important;
  }
  
  .printable-item-name {
    font-size: 11px !important;
  }
  
  .printable-item-price {
    font-size: 11px !important;
  }
  
  .printable-item-description {
    font-size: 8px !important;
  }
  
  .printable-bottom {
    margin-top: 4mm !important;
    margin-bottom: 8mm !important;
    max-width: 190mm !important;
  }
  
  .printable-syrups {
    margin-bottom: 3mm !important;
    padding: 3mm !important;
  }
  
  .printable-syrup-name {
    font-size: 10px !important;
  }
  
  .printable-syrup-price {
    font-size: 10px !important;
  }
  
  .printable-footer {
    font-size: 8px !important;
    margin-top: 6mm !important;
    padding-top: 3mm !important;
  }
  
  .printable-header h1 {
    font-size: 42px !important;
  }
  
  .printable-logo {
    max-width: 100px !important;
  }
  
  .printable-container::before {
    width: 160mm !important;
    height: 160mm !important;
    opacity: 0.04 !important;
  }
  
  /* Additional space optimizations */
  .menu-section {
    margin-bottom: 0 !important;
  }
  
  .space-y-1 > * + * {
    margin-top: 0.125rem !important;
  }
  
  .text-center.mb-4 {
    margin-bottom: 0.75rem !important;
  }
  
  .border-b-2.pb-2 {
    padding-bottom: 0.25rem !important;
  }
  
  .mt-2.px-2 {
    margin-top: 0.25rem !important;
  }
  
  /* Ensure proper spacing between content and footer */
  .menu-content {
    padding-bottom: 8mm !important;
  }
}
