:root {
    --gold: #c5a059;
    --charcoal: #1a1a1a;
    --cream: #fcfaf5;
    --white: #ffffff;
}

body { background: var(--cream); font-family: 'Lato', sans-serif; margin: 0; }

header { 
    background: var(--white); 
    padding: 40px 0; 
    text-align: center; 
    border-bottom: 1px solid #e0dec2; 
}

h1 { font-family: 'Playfair Display', serif; text-transform: uppercase; letter-spacing: 4px; }

.category-nav { 
    align-items: center;
}
.category-nav a { 
    margin: 0 15px; 
    text-decoration: none; 
    color: var(--charcoal); 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    padding-bottom: 5px;
}
.category-nav a:hover { 
    color: var(--gold);
}

.container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
    padding: 50px 20px; 
}

.recipe-card {
    background: #fff;
    width: 300px; /* Smaller, more elegant width */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.recipe-image { width: 100%; height: 300px; object-fit: cover; filter: grayscale(20%); }

.recipe-content { padding: 30px; }
.category-label { color: var(--gold); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; }
.recipe-title { font-family: 'Playfair Display', serif; margin: 10px 0; font-style: italic; }
.recipe-desc { color: #777; font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.method-preview { border-top: 1px solid #eee; padding-top: 15px; font-size: 0.85rem; color: #444; }
.nav-divider { color: var(--gold); margin: 0 10px; }
.admin-link { font-style: italic; opacity: 0.6; }
.admin-link:hover { opacity: 1; color: var(--gold); }
footer {
    margin-top: 100px;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    color: #999;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

#secret-trigger {
    cursor: default;
    transition: color 0.3s;
    padding: 0 10px;
}

#secret-trigger:hover {
    color: var(--gold);
}

#secret-input-container {
    margin-top: 20px;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none; /* This ensures it doesn't take up space until triggered */
}

.visible {
    display: block;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#secret-key {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gold);
    color: var(--charcoal);
    text-align: center;
    font-family: var(--serif);
    outline: none;
    padding: 5px;
}
.admin-form {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.admin-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    box-sizing: border-box; /* Ensures padding doesn't break width */
    font-family: 'Lato', sans-serif;
}

.btn-gold {
    background: var(--charcoal);
    color: white;
    padding: 15px;
    border: none;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.3s;
}

.btn-gold:hover {
    background: var(--gold);
}
/* Admin Form Styling */
.admin-form-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 50px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.form-heading {
    font-family: 'Playfair Display', serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: var(--charcoal);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: #fff;
}

/* Form Buttons */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-save {
    background: var(--charcoal);
    color: white;
    padding: 18px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-save:hover {
    background: var(--gold);
}

.btn-cancel {
    text-align: center;
    text-decoration: none;
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
}
/* Gallery Layout */
.gallery-container {
    padding: 60px 0;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

/* The Card */
.recipe-card {
    background: #fff;
    width: 300px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px; /* Proportional height for a 300px card */
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.recipe-card:hover .recipe-image {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--gold);
    color: white;
    padding: 8px 15px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Card Content */
.recipe-content {
    padding: 20px;
}

.recipe-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; /* Down from 1.8rem */
    margin: 0 0 10px 0;
    color: var(--charcoal);
    font-style: italic;
    line-height: 1.2;
}

.recipe-description {
    font-size: 0.85rem; /* Down from 0.95rem */
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.detail-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.detail-section p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.no-recipes {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #999;
}
/* Navigation Wrapper */
.nav-outer-wrapper {
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    /* Removed padding: 10px 0 to let the flex container handle centering */
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.category-nav {
    display: flex;
    align-items: center;      /* Vertically centers the links in the bar */
    justify-content: center;   /* Keeps them centered horizontally if they don't fill the space */
    height: 60px;             /* Fixed height for a consistent hotel look */
    white-space: nowrap;
    gap: 15px;
    padding: 0 40px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;    /* Firefox hide scrollbar */
}




.category-nav::-webkit-scrollbar {
    display: none; /* Hides scrollbar on Chrome/Safari */
}
.category-nav a { 
    text-decoration: none; 
    color: var(--charcoal); 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;      /* Ensures text is centered if a height is applied to the link */
    height: 100%;             /* Makes the whole bar clickable */
    padding: 0 10px;          /* Even horizontal padding */
    transition: color 0.3s;
}



/* Mobile Nav - Hidden by default */
.mobile-nav-container {
    display: none;
    padding: 20px;
}

.mobile-cat-select {
    width: 100%;
    padding: 12px;
    font-family: 'Playfair Display', serif;
    background: white;
    border: 1px solid var(--gold);
    color: var(--charcoal);
    text-align: center;
}

/* Responsive Logic */
@media (max-width: 768px) {
    .nav-outer-wrapper { display: none; }
    .mobile-nav-container { display: block; }
    header h1 { font-size: 1.8rem; }
}
/* Placeholder Styling */
.recipe-image-placeholder {
    width: 100%;
    height: 100%; /* Matches the 300px height of your wrapper */
    background-color: #f9f7f2; /* A soft, premium cream */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.placeholder-icon {
    font-size: 4rem; /* Large and clear */
    filter: sepia(0.5) contrast(0.8); /* Subtly mutes the emoji color to look more "hotel-branded" */
    opacity: 0.6;
}

/* Ensure the wrapper handles the placeholder correctly */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: #fdfcf9; /* Fallback background */
}
/* Link Reset for Gallery Cards */
.recipe-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.view-recipe-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: bold;
}

/* Detail Page Layout */
.detail-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-link {
    text-decoration: none;
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-top: 10px;
}

.detail-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.detail-visual {
    flex: 1;
}

.detail-image {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.detail-instructions {
    flex: 1.5;
}

.instruction-block {
    margin-bottom: 40px;
}

.instruction-block h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.instruction-block p {
    line-height: 1.8;
    color: #444;
}

/* Responsive details */
@media (max-width: 850px) {
    .detail-content { flex-direction: column; }
}