
/*~ =====================================  */
/*^              HERO Partial              */
/*~ =====================================  */

.hero-img {
    width: 100%;
    height: auto;        /* key: preserve aspect ratio */
    max-width: 100%;
    object-fit: contain; /* safe if any other rules interfere */
    
}

.hero-clickable {
    background-color: var(--color-bg);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    -webkit-transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    -moz-transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    -ms-transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    -o-transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    border: 2px solid #575757;
}

.hero-clickable:hover {
    border: 2px solid var(--color-border-hover);
    border-color: var(--color-border-hover) !important;
    /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05); */
    box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.6);
    transform: translateY(-10px);
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
}

/* Needs to match an inside border-radius for base content-container */
/* inner-border-radius = outer-border-radius - outer-padding */
.hero-container {
    margin-bottom: 18px;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

/*~ =======================================  */
/*^              NavBar Partial              */
/*~ =======================================  */

.navbar-btn-img {
    align-self: center;
    display: block;
    height: 60px;
    width: auto;
    object-fit: contain;

}

/* NOT IN USE - Not found anywhere */
.navbar-btn-img-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.navbar-btn {
    border: 2px solid var(--color-border-default);
    border-radius: 6px;
    padding: 2px;
    margin-left: 6px;
    margin-right: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.navbar-btn:hover {
    border-color: var(--color-border-hover);
    border: 2px solid var(--color-border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    /*border-color: #e0b84f;
    *//*box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.05);
    */
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    -o-transform: translateY(-4px);
}

/* In button.html partial */
.btn-label {
    size: 1.125rem;
}


/*~ ==========================================================  */
/*^              Recipe Form Buttons (Edit/Delete)              */
/*~ ==========================================================  */


.recipe-btn {
    margin-left: 6px;
    margin-right: 6px;
    border: 1px solid var(--color-border-default);
}

.recipe-btn:hover {
    border-color: var(--color-border-hover) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.05);
    transform: translateX(8px);
    -webkit-transform: translateX(8px);
    -moz-transform: translateX(8px);
    -ms-transform: translateX(8px);
    -o-transform: translateX(8px);
}

/* Action button container */
.recipe-actions {
    min-height: 80px; /* gives "bottom" meaning */
}

/* Button group */
/* NOT IN USE - NOT FOUND */
.recipe-action-buttons {
    display: flex;
    align-items: flex-end;
}

.recipe-btn-image-wrap {
    display: inline-flex;
    flex-direction: column;   /* image over label */
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* Image size */
.recipe-btn-img {
    display: block;
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* Label BELOW image, controlled spacing */
.btn-label {
    display: block;
    margin-top: 4px;
    font-size: 1.4rem; 
    line-height: 1.1;
    text-align: center;
    color: var(--color-text);
}

.btn_border {
    padding-bottom: 15px;
}

.btn_border_clickable {
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    background-color: var(--color-bg);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    -webkit-transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    -moz-transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    -ms-transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    -o-transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    border: 2px solid var(--color-border-default);
}

.btn_border:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--color-border-hover);
    border-color: #e0b84f !important;
    /*box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    */
}


/* Base (mobile) */
.action-btn {
    width: 74px;
    height: 74px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 8px;
}

.action-btn img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.action-btn-lg {
    width: 110px;
    height: 110px;
    padding: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 8px;
}

.action-btn-lg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* sm+ */
@media (min-width: 576px){
    .action-btn {
        width: 90px;
        height: 90px;
    }
    .action-btn-lg {
        width: 130px;
        height: 130px;
    }
}

/* lg+ (desktop) */
@media (min-width: 992px){
    .action-btn {
        width: 120px;   /* ← bigger desktop target */
        height: 120px;
    }
    .action-btn-lg {
        width: 150px;
        height: 150px;
    }
}



/*~ ==========================================================  */
/*^              NavBar              */
/*~ ==========================================================  */

/* Navbar background should match site chrome */
.recipe-navbar,
.navbar {
    background-color: var(--color-bg);
}


/*~ ==========================================================  */
/*^              Modal              */
/*~ ==========================================================  */

/* =========================
   Dark Modal Theme
   ========================= */

.modal.modal-dark .modal-content {
    background-color: #2b3035; /* slightly lighter than #212529 */
    color: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal.modal-dark .modal-header,
.modal.modal-dark .modal-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.modal.modal-dark .modal-title {
    color: #f8f9fa;
}

.modal.modal-dark .modal-body {
    color: #f8f9fa;
}

/* Fix Bootstrap close button on dark backgrounds */
.modal.modal-dark .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.85;
}

.modal.modal-dark .btn-close:hover {
    opacity: 1;
}

/* Forms inside modal */
.modal.modal-dark .form-control,
.modal.modal-dark .form-select {
    background-color: #212529;
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.15);
}

.modal.modal-dark .form-control::placeholder {
    color: rgba(248, 249, 250, 0.5);
}

.modal.modal-dark .form-control:focus,
.modal.modal-dark .form-select:focus {
    background-color: #212529;
    color: #f8f9fa;
    border-color: #ffc107;
    box-shadow: 0 0 0 0.15rem rgba(255, 193, 7, 0.25);
}

/* Optional: links inside modal */
.modal.modal-dark a {
    color: var(--color-link-hover);  
}

.modal.modal-dark a:hover {
    color: var(--color-link-hover-dark);
}





