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


 */

/* Sticky footer styles */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  background-color: #fcfcfc;
}

footer a.text-muted {
  color: #9aa0a6 !important;
  font-weight: 300;
  transition: color 0.2s ease;
}

footer a.text-muted:hover {
  color: #747a80 !important;
  text-decoration: none;
}

footer .text-muted {
  color: #9aa0a6 !important;
}

.footer-links {
  line-height: 1.8;
}

/* Authentication pages styling */
.auth-links {
  margin-top: 1rem;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

:root {
  --primary: #5c8d89;       /* Sage green */
  --secondary: #f4a259;     /* Warm orange */
  --success: #68b684;       /* Fresh green */
  --info: #2d5362;          /* Deep teal */
  --warning: #f4e285;       /* Soft yellow */
  --danger: #e45641;        /* Rustic red */
  --light: #f8f9fa;         /* Off white */
  --dark: #343a40;          /* Deep charcoal */
  --bg-light: #f5f7f6;      /* Light background */
  --accent: #bc4749;        /* Accent red */
}

/* Typography */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #343a40;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.card-title {
  font-weight: 600;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-info {
  color: var(--info) !important;
}

.fw-medium {
  font-weight: 500;
}

/* Better link styling */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: darken(var(--primary), 10%);
}

.welcome-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.header {
  margin-bottom: 2rem;
}

.title-with-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  gap: 0;
  padding: 0;
}

.logo-img {
  width: 70px;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.05));
  mix-blend-mode: multiply;
}

.logo-img-mobile {
  width: 60px;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.05));
  mix-blend-mode: multiply;
  margin: 0;
  padding: 0;
}

.mobile-title {
  margin: 0 0 0.5rem 0;
  padding: 0;
  width: 100%;
  white-space: nowrap;
}

.mobile-title h1 {
  font-size: 2rem !important;
}

.welcome-container h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.welcome-container p {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 2rem;
}

.definition {
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.0128em; /* reduced by another 20% from 0.016em */
  font-style: normal;
  line-height: 1.4;
}

.break-opportunity {
  display: inline;
}

@media (max-width: 576px) {
  .break-opportunity {
    display: block;
    height: 0;
    overflow: hidden;
  }
}

.extra-bold {
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero-banner {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  padding: 3rem 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.banner-content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  flex: 1;
  min-width: 250px;
  background-color: #fff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-top: 4px solid var(--secondary);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.feature p {
  font-size: 1rem;
  color: var(--dark);
  opacity: 0.8;
}

/* Bootstrap overrides */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #4b7a76;
  border-color: #4b7a76;
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-dark {
  background-color: var(--info) !important;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.card-header {
  border-bottom: none;
  padding: 1rem 1.25rem;
}

/* Recipe Cards */
.recipe-card {
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.card-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-img-top {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .card-img-top {
  transform: scale(1.05);
}

.recipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recipe-card:hover .recipe-overlay {
  opacity: 1;
}

.recipe-time-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  background-color: var(--bg-light);
  color: var(--info);
  font-weight: 500;
}

.recipe-description {
  font-size: 0.9rem;
  color: var(--dark);
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.8rem;
}

/* Recipe Placeholder */
.recipe-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #e8f1f0, #dae5e3);
  color: var(--primary);
  overflow: hidden;
  position: relative;
}

.recipe-placeholder::before {
  content: "🍳";
  font-size: 3.5rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.recipe-placeholder span {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
}

/* Tag styling */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 4px;
  font-size: 0.75em;
  text-transform: capitalize;
}

.badge-tag {
  background-color: var(--light);
  color: var(--primary);
  border: 1px solid rgba(92, 141, 137, 0.2);
  transition: all 0.2s ease;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.badge-tag:hover {
  background-color: var(--primary);
  color: white;
}

/* Tag selection in form */
.tag-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.tag-selection .form-check-inline {
  margin-right: 0;
  margin-bottom: 0.5rem;
}

.tag-selection .form-check-input {
  margin-right: 0.3rem;
}

.tag-selection .form-check-label.badge-tag {
  cursor: pointer;
  margin-right: 0;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.4em 0.8em;
  border-radius: 20px;
}

.tag-selection .form-check-input:checked + .badge-tag {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tag-selection .badge-tag {
  padding: 0.4em 0.8em;
  transition: all 0.2s ease;
}

/* Copy URL button styling */
.copy-url-btn {
  transition: all 0.2s ease;
}

.copy-url-btn:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

/* Category tags styling */
.list-group-item.border-primary {
  border-left: 3px solid var(--primary) !important;
  background-color: rgba(92, 141, 137, 0.08) !important;
}

/* Better table styling */
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
}

.table th {
  font-weight: 600;
  background-color: rgba(92, 141, 137, 0.1);
}

.table-hover tbody tr:hover {
  background-color: rgba(92, 141, 137, 0.05);
}

/* Form placeholder styling */
::placeholder {
  color: rgba(128, 128, 128, 0.65) !important;
  opacity: 0.85 !important;
}

/* For older browsers */
::-webkit-input-placeholder {
  color: rgba(128, 128, 128, 0.65) !important;
  opacity: 0.85 !important;
}

::-moz-placeholder {
  color: rgba(128, 128, 128, 0.65) !important;
  opacity: 0.85 !important;
}

/* Barcode scanner - QuaggaJS video/canvas sizing */
#barcode-scanner-viewport {
  position: relative;
}

#barcode-scanner-viewport video,
#barcode-scanner-viewport canvas,
#barcode-scanner-viewport canvas.drawingBuffer {
  width: 100%;
  height: auto;
}
