/* Custom CSS augmenting Bootstrap */
:root {
  --primary-gradient: linear-gradient(90deg, #F9D489 0%, #F88E81 100%);
  --glass-bg: rgba(33, 37, 41, 0.85); /* Deep dark glass */
  --card-bg: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

.custom-navbar {
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-div {
    width: 45px;
    height: 45px;
    background-image: url("./assets/foodie-logo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(249, 212, 137, 0.5);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.btn-gradient {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #333 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 142, 129, 0.4);
    color: #000 !important;
}

.nav-hover {
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav-hover:hover {
    color: #F9D489 !important;
    transform: translateY(-1px);
}

/* Custom Scrollbar for Left panel & Modal */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Enhancing Card looks for grid mapped items */
.recipe-card {
    background: var(--card-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

.recipe-card-img-full {
    transition: transform 0.6s ease;
}

/* The card overlay for sleek darkening effect over the image */
.card-overlay {
    background: linear-gradient(to top, rgba(33, 37, 41, 1) 0%, rgba(33, 37, 41, 0) 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.recipe-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(249, 212, 137, 0.6) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.recipe-card:hover .recipe-card-img-full {
    transform: scale(1.1);
}

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

/* Modal styling */
.recipe-modal-content {
    background-color: #1a1a1d !important;
}

/* Recipe details hero inside modal */
.recipe-hero {
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 2px solid rgba(255,255,255,0.05);
}

.recipe-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, #1a1a1d 100%);
}

.recipe-title-floating {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    background: var(--primary-gradient);
    color: #111;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 2.2rem;
    font-weight: 900;
    box-shadow: 0 15px 35px rgba(248, 142, 129, 0.4);
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.2);
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 768px) {
  .recipe-title-floating {
      font-size: 1.5rem;
      padding: 10px 20px;
      bottom: -20px;
      transform: translateX(-50%);
  }
}

.info-badge {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
}

.bkm-btn {
    background: var(--primary-gradient);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(248, 142, 129, 0.3);
    flex-shrink: 0;
}

.bkm-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(248, 142, 129, 0.6);
}

.recipe-section-title {
    color: #F9D489;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ingredient-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: background 0.2s, transform 0.2s;
    height: 100%;
}

.ingredient-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

.ingredient-icon {
    color: #F88E81;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}