/* Main styling for Navarro */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; /* fixed instead of absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/images/cooking-5880136_1920.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255 255 255 / 25%);
  z-index: -1;
}

.container {
    position: relative;
   /* z-index: 1; */
    }

.footer {
    margin-top: auto;
}

/* Card styling */
.meal-card {
    transition: transform 0.2s;
    height: 100%;
}

/*
.meal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
*/

.meal-card .card-title {
    font-weight: bold;
}

/* Rating stars */
.star-rating {
    color: #ffc107;
}

.star-rating.empty {
    color: #e4e5e9;
}

/* Ingredient status */
.ingredient-available {
    background-color: #d4edda;
}

.ingredient-unavailable {
    background-color: #f8d7da;
}

/* Voting section */
.vote-button {
    font-size: 1.2rem;
}

.vote-count {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Making the app more mobile-friendly */
@media (max-width: 768px) {
    .card-deck {
        display: block;
    }
    
    .meal-card {
        margin-bottom: 20px;
    }
}

/* Custom badges */
.badge-available {
    background-color: #28a745;
}

.badge-unavailable {
    background-color: #dc3545;
}

/* Last cooked date */
.last-cooked {
    font-style: italic;
    color: #6c757d;
}

/* Meal suggestion page */
.suggestion-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.suggestion-title {
    color: #b055e7;
    font-weight: bold;
}

/* Meal image */
.meal-thumbnail {
    height: 160px;
    object-fit: cover;
    width: 100%;
}

.meal-image-container {
    overflow: hidden;
    height: 160px;
    background-color: #f8f9fa;
}

@media (max-width: 576px) {
    .meal-thumbnail {
        height: 120px;
    }

    .meal-image-container {
        height: 120px;
    }
}

@media screen and (max-width: 576px) {

    .d-flex {
        flex-direction: column;
    }
}

/* Mobile-specific styles for voting buttons */
@media screen and (max-width: 576px) {
  /* Table layout adjustments */
  .table th, .table td {
    padding: 0.5rem 0.25rem;
  }

  /* Make column with vote buttons narrower and right-aligned */
  .table th:last-child, .table td:last-child {
    width: 1%;
    white-space: nowrap;
  }

  /* Single column buttons that take less width */
  .d-flex.gap-2.justify-content-end {
    flex-direction: column;
    align-items: end;
    gap: 0.25rem !important;
  }

  /* Smaller, more compact buttons */
  .d-flex.gap-2.justify-content-end .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-width: 80px;
    max-width: 120px;
    margin: 0;
  }

  /* Smaller text for meal names */
  .table td a {
    font-size: 0.9rem;
  }

  /* Smaller badges */
  .badge {
    font-size: 0.6rem;
    padding: 0.2em 0.4em;
  }

  /* Smaller vote count column */
  .vote-count {
    font-size: 1.1rem;
  }
}

/* Extra small devices (phones, 360px and down) */
@media screen and (max-width: 360px) {
  /* Even more compact styling for very small screens */
  .table th, .table td {
    padding: 0.4rem 0.2rem;
    font-size: 0.8rem;
  }

  /* Hide some table columns on very small screens */
  .table-voting th:nth-child(1),
  .table-voting td:nth-child(1) {
    display: none;
  }

  /* Ultra compact buttons */
  .d-flex.gap-2.justify-content-end .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    min-width: 70px;
  }
}


@media screen and (max-width: 768px) {

    .jumbotron .lead {
    background-color: rgb(242 242 244 / 40%);
    border-radius: 55px 225px 15px 25px / 25px 25px 35px 355px;
    }
}