/* ===== GOOGLE FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Alef:wght@400;700&display=swap');

/* ===== VARIABLES ===== */
:root {
    --primary:      #C0392B;
    --primary-dark: #922B21;
    --primary-light:#E74C3C;
    --accent:       #C8A882;
    --accent-light: #DFC0A0;

    --bg:           #FBF8F4;
    --bg-card:      #FFFFFF;
    --bg-muted:     #F5EFE7;
 
    --text:         #2C2416;
    --text-muted:   #7A6A58;
    --text-light:   #A89880;

    --border:       #E8DDD0;
    --border-light: #F0EAE0;

    --success:      #27AE60; 
    --warning:      #D4A017; 
    --danger:       #C0392B;
    --info:         #2980B9;

    --radius:       12px; 
    --radius-sm:    8px;
    --radius-full:  9999px;
    --shadow:       0 2px 14px rgba(100,70,40,0.08);
    --shadow-md:    0 4px 24px rgba(100,70,40,0.11);
    --shadow-lg:    0 8px 40px rgba(100,70,40,0.15);

    --transition:   all 0.25s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    max-width: 100%;
}

body {
    font-family: 'Alef', 'Arial Hebrew', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
iframe { max-width: 100%; }
table { max-width: 100%; overflow-x: auto; display: block; }
pre, code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.main-content {
    overflow-x: hidden;
    min-height: calc(100vh - 72px);
    padding: 2.5rem 0;
}

.card {
    overflow: hidden;
    word-break: break-word;
}

/* ===== HEADER ===== */
.main-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav search";
    align-items: center;
    gap: 1.5rem;
    min-height: 92px;
    padding: 0.75rem 0;
}

/* ===== LOGO ===== */
.logo {
    grid-area: logo;
    justify-self: start;
    flex-shrink: 0;
    min-width: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.logo .tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.site-logo-img {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ===== NAVIGATION ===== */
.main-nav {
    grid-area: nav;
    min-width: 0;
}

.main-nav ul {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav a:hover {
    background: var(--bg-muted);
    color: var(--text);
}

.main-nav a.nav-highlight {
    color: var(--primary);
    font-weight: 700;
    padding: 11px 18px;
}

.main-nav a.nav-highlight:hover {
    background: var(--bg-muted);
}

.nav-notif-item {
    position: relative;
}

/* ===== HEADER SEARCH ===== */
.header-search-wrap {
    grid-area: search;
    justify-self: end;
    position: relative;
    width: 270px;
    max-width: 270px;
}

.header-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.header-search-input {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    direction: rtl;
    outline: none;
    min-width: 0;
}

.header-search-input::placeholder {
    color: var(--text-light);
}

.header-search-input:focus {
    border-color: var(--primary);
}

.header-search-btn {
    width: 54px;
    min-width: 54px;
    height: 42px;
    padding: 0;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    border-radius: var(--radius) 0 0 var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.header-search-btn:hover {
    background: var(--primary-dark);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1400;
    max-height: 320px;
    overflow-y: auto;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.88rem;
    text-decoration: none;
    color: var(--text);
}

.search-suggestion-item:hover {
    background: var(--bg-muted);
}

.search-suggestion-item img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ===== NOTIFICATIONS ===== */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #C0392B;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.notif-panel {
    position: fixed;
    width: 300px;
    background: #fff;
    border: 1px solid #E8DDD0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    direction: rtl;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.notif-panel {
    position: fixed;
    width: 360px;
    max-width: calc(100vw - 16px);
    background: #fff;
    border: 1px solid #E8DDD0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    direction: rtl;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
}

.notif-item {
    padding: 10px 16px;
    border-bottom: 1px solid #F5EFE7;
    color: #2C2416;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.notif-item .notif-time {
    font-size: 0.72rem;
    color: #9A8A78;
    margin-bottom: 3px;
}

.notif-item .notif-msg {
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
}

.notif-item:hover { background: #FBF8F4; }
.notif-item.unread { background: #FFF8F4; }
.notif-item.unread .notif-msg { font-weight: 600; }

.notif-empty {
    padding: 24px;
    text-align: center;
    color: #7A6A58;
    font-size: 0.9rem;
}

.notif-header {
    padding: 10px 16px;
    border-bottom: 1px solid #E8DDD0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7A6A58;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    padding: 6px 10px;
    line-height: 1;
    z-index: 1600;
    position: relative;
}

/* ===== MOBILE DRAWER ===== */
.nav-drawer-header,
.nav-search-mobile {
    display: none;
}

/* ===== HERO ===== */
/* ===== HERO ===== */

.hero-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
}

.above-hero-section {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: -90px;
}

.hero-logo {
    height: 250px;
    width: auto;
    display: inline-block;
    background: transparent;
}

.hero-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 6.5rem 2rem 3rem;
    border-radius: var(--radius);
    text-align: center;
}

.hero-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .above-hero-section {
        margin-bottom: -30px;
    }

    .hero-logo {
        height: 120px;
    }

    .hero-section {
        padding: 4rem 1.25rem 2rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .hero-section p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}
/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.card h2 {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* ===== RECIPE GRID ===== */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ===== RECIPE CARD ===== */
.recipe-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.recipe-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-muted);
}

.recipe-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recipe-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recipe-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stars {
    color: #F39C12;
    font-size: 0.9rem;
}

.recipe-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

/* ===== DIFFICULTY BADGES ===== */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.difficulty-easy   { background: #D5F5E3; color: #1E8449; }
.difficulty-medium { background: #FEF9E7; color: #B7770D; }
.difficulty-hard   { background: #FADBD8; color: #C0392B; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success { background: #D5F5E3; color: #1E8449; }
.badge-warning { background: #FEF9E7; color: #B7770D; }
.badge-danger  { background: #FADBD8; color: #C0392B; }
.badge-info    { background: #D6EAF8; color: #1A5276; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192,57,43,0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover { background: #1E8449; }

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover { background: #A93226; }

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.btn-icon:hover { color: var(--primary); }
.btn-icon.active { color: #F39C12; }

.btn-group {
    display: flex;
    gap: 8px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-card);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

select.form-control { cursor: pointer; }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-success { background: #D5F5E3; color: #1E8449; border: 1px solid #A9DFBF; }
.alert-error   { background: #FADBD8; color: #C0392B; border: 1px solid #F1948A; }
.alert-warning { background: #FEF9E7; color: #B7770D; border: 1px solid #FAD7A0; }

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card-image {
    height: 160px;
    overflow: hidden;
    background: var(--bg-muted);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.25;
}

.category-card-body { padding: 1.25rem; }

.category-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.category-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.category-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: #FADBD8;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* ===== PROFILE ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border);
    display: block;
    margin-bottom: 1.25rem;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.empty-state p { color: var(--text-muted); }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== FOOTER ===== */
.main-footer {
    background: #1A1A1A;
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section a:hover { color: #fff; }

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE DESKTOP ===== */
@media (max-width: 1200px) {
    .site-logo-img {
        height: 82px;
    }

    .header-search-wrap {
        width: 230px;
        max-width: 230px;
    }

    .main-nav a {
        font-size: 0.88rem;
        padding: 8px 9px;
    }
}

@media (max-width: 980px) {
    .site-logo-img {
        height: 74px;
    }

    .header-search-wrap {
        width: 190px;
        max-width: 190px;
    }

    .main-nav a {
        font-size: 0.82rem;
        padding: 7px 8px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .main-header {
        position: sticky;
        top: 0;
        z-index: 1600;
    }

    .header-content {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 95px;
        height: 95px;
        padding: 0.5rem 0;
        gap: 0;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 46px;
        height: 46px;
        padding: 0;
        z-index: 1601;
    }

    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0 56px;
    }

    .logo a {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        overflow: hidden;
    }

    .site-logo-img {
        height: 60px;
        width: auto;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .header-search-wrap,
    .header-search,
    .search-suggestions {
        display: none !important;
    }

    .main-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        z-index: 1500;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -4px 0 24px rgba(0,0,0,0.18);
        padding-top: 0;
    }

    .main-nav.active {
        right: 0 !important;
    }

    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
        background: var(--primary);
        color: #fff;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .nav-drawer-header .nav-close-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 4px;
        line-height: 1;
    }

    .nav-drawer-logo {
        font-size: 1rem;
        font-weight: 700;
    }

    .nav-search-mobile {
        display: block !important;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        background: #fff;
    }

    .nav-search-mobile input {
        width: 100%;
        padding: 10px 12px;
        border: 1.5px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
        font-family: inherit;
        direction: rtl;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        flex-wrap: nowrap;
        padding: 0;
    }

    .main-nav a {
        font-size: 1rem;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
        white-space: normal;
        color: var(--text);
        justify-content: flex-start;
    }

    .main-nav a:hover {
        background: var(--bg-muted);
    }

    .main-nav a.nav-highlight {
        background: transparent;
        color: var(--primary);
        font-weight: 700;
        box-shadow: none;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .mobile-menu-toggle {
        opacity: 0;
        pointer-events: none;
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.28);
        z-index: 1400;
    }

    .hero-section {
        padding: 2.2rem 1.2rem;
        margin-bottom: 2.25rem;
    }

    .hero-section h2 {
        font-size: 1.9rem;
        line-height: 1.35;
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .cta-register-grid { grid-template-columns: 1fr !important; }
    .memorial-bio-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .memorial-stats-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .search-filters-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-content {
        min-height: 90px; 
        height: 90px;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        font-size: 1.85rem;
    }

    .site-logo-img {
        height: 60px;
        width: auto;
    }

    .logo {
        padding: 0 50px;
    }

    .hero-section {
        padding: 2rem 1rem;
        border-radius: 16px;
    }

    .hero-section h2 {
        font-size: 1.55rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}