/* ============================================
   PawTreatKitchen — shared / common styles
   ============================================ */

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --white: #ffffff;
    --radius-lg: 0.75rem;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--amber-50);
    margin: 0;
    color: var(--amber-900);
}

section {
    scroll-margin-top: 80px;
}

/* ---------- Site header / nav ---------- */
.site-nav {
    background-color: var(--amber-100);
    border-bottom: 4px solid var(--amber-300);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
}

.site-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

@media (min-width: 640px) {
    .site-nav-inner { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .site-nav-inner { padding: 0 2rem; }
}

.site-logo {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--amber-800);
    text-decoration: none;
    transition: color 0.2s;
}

.site-logo:hover {
    color: var(--amber-900);
}

.site-nav-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2.5rem;
}

@media (min-width: 768px) {
    .site-nav-desktop { display: flex; }
}

.site-nav-link {
    color: var(--amber-700);
    text-decoration: none;
    transition: color 0.2s;
}

.site-nav-link:hover,
.site-nav-link.is-active {
    color: var(--amber-900);
}

.site-nav-link.is-active {
    font-weight: 600;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--amber-700);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    padding: 0;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.is-active {
    color: var(--amber-900);
}

.nav-dropdown-trigger.is-active {
    font-weight: 600;
}

.nav-dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 18rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--amber-200);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--amber-700);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-dropdown-menu a:hover {
    background: var(--amber-50);
    color: var(--amber-900);
}

.nav-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--amber-800);
    cursor: pointer;
    padding: 0.25rem;
}

@media (min-width: 768px) {
    .nav-menu-btn { display: none; }
}

.nav-menu-btn i {
    font-size: 1.5rem;
}

/* ---------- Full-screen mobile menu ---------- */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--amber-100);
    overflow-y: auto;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--amber-300);
    position: sticky;
    top: 0;
    background: var(--amber-100);
}

.mobile-menu-header span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--amber-900);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--amber-800);
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-menu-body {
    padding: 1rem;
}

.mobile-menu-body a {
    display: block;
    padding: 0.5rem 0;
    color: var(--amber-700);
    text-decoration: none;
}

.mobile-menu-body a.is-active {
    color: var(--amber-800);
    font-weight: 600;
}

.mobile-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: var(--amber-700);
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.mobile-accordion-panel {
    display: none;
    padding: 0 0 0.5rem 0.75rem;
}

.mobile-accordion-panel.is-open {
    display: block;
}

.mobile-accordion-panel a {
    padding: 0.375rem 0;
    font-size: 0.95rem;
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
}

/* ---------- Cards ---------- */
.recipe-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

.recipe-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.recipe-card-image {
    height: 12rem;
    background-size: cover;
    background-position: center;
}

.recipe-card-body {
    padding: 1.5rem;
}

.recipe-card-date,
.guide-card-date {
    font-size: 0.875rem;
    color: var(--amber-600);
    margin: 0 0 0.5rem;
}

.recipe-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-900);
    margin: 0 0 0.75rem;
}

.recipe-card-excerpt {
    color: var(--amber-700);
    margin: 0 0 1rem;
    line-height: 1.625;
}

.recipe-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--amber-600);
    margin-bottom: 1rem;
}

.guide-card {
    display: block;
    background: var(--amber-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border-left: 4px solid var(--amber-800);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    cursor: pointer;
}

.guide-card:hover {
    background: var(--amber-100);
}

.guide-card-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--amber-900);
    margin: 0 0 1rem;
}

.guide-card-excerpt {
    color: var(--amber-700);
    margin: 0 0 1rem;
    line-height: 1.625;
}

.guide-card-points {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--amber-700);
    margin: 0 0 1rem;
}

.guide-card-points li {
    margin-bottom: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-block;
    background: var(--amber-800);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--amber-900);
}

.btn-primary.btn-block {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.btn-primary.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-secondary {
    display: inline-block;
    background: var(--amber-100);
    color: var(--amber-900);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--amber-200);
}

/* ---------- Listing toolbar ---------- */
.listing-toolbar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .listing-toolbar {
        flex-direction: row;
        align-items: flex-end;
    }
}

.listing-field {
    flex: 1;
}

.listing-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--amber-900);
    margin-bottom: 0.5rem;
}

.listing-field input,
.listing-field select {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid var(--amber-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    color: var(--amber-900);
    font: inherit;
    background: var(--white);
}

.listing-field input:focus,
.listing-field select:focus {
    outline: none;
    border-color: var(--amber-600);
}

.listing-field-sort {
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .listing-field-sort { width: 16rem; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--amber-900);
    color: var(--amber-100);
    padding: 3rem 0;
    margin-top: 4rem;
}

.site-footer a {
    color: var(--amber-200);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--white);
}

/* ---------- Misc ---------- */
.recipe-btn {
    transition: all 0.3s ease;
}

.recipe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.3);
}

#recipe-modal {
    animation: fadeIn 0.3s ease-in-out;
}

#recipe-modal .bg-white {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media print {
    .site-nav,
    .site-footer,
    .recipe-btn,
    .mobile-menu {
        display: none !important;
    }
}
