/* Anasayfa yemek menüsü (Günlük / Haftalık / Aylık) — renkler modern.css'teki değişkenlerden */

/* Başlık alanı */
.ym-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(97, 242, 189, 0.22), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(21, 25, 26, 0.35), transparent 55%),
        linear-gradient(135deg, var(--brand) 0%, #7E002C 100%);
    box-shadow: 0 16px 36px rgba(168, 0, 59, 0.22);
}

.ym-hero__ust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ym-hero__logo {
    flex: none;
    display: block;
    padding: 6px 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(21, 25, 26, 0.18);
}

.ym-hero__logo img {
    display: block;
    height: 46px;
    width: auto;
}

.ym-hero__basliklar {
    flex: 1;
    min-width: 0;
}

.ym-hero__baslik {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
}

.ym-hero__alt {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: capitalize;
}

.ym-kampuskart {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(21, 25, 26, 0.18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.ym-kampuskart:hover,
.ym-kampuskart:focus {
    color: var(--ink);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(21, 25, 26, 0.25);
}

.ym-kampuskart:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.ym-kampuskart__simge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
}

.ym-kampuskart__simge svg {
    width: 20px;
    height: 20px;
    fill: var(--ink);
}

.ym-kampuskart__metin {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ym-kampuskart__metin small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.ym-kampuskart__dis {
    width: 16px;
    height: 16px;
    fill: var(--brand-yazi, var(--brand));
}

@media (max-width: 767px) {
    .ym-hero { padding: 14px; }
    .ym-hero__ust { flex-wrap: wrap; }
    .ym-hero__logo img { height: 38px; }
    .ym-hero__baslik { font-size: 21px; }
    .ym-kampuskart { flex: 1 1 100%; }
    .ym-kampuskart__metin { flex: 1; }
}

.ym-arac {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
}

.ym-sekmeler,
.ym-ogun-secim {
    list-style: none;
    margin: 0;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.ym-sekmeler a,
.ym-ogun-secim a {
    display: block;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.ym-sekmeler a:hover,
.ym-ogun-secim a:hover {
    background: rgba(168, 0, 59, 0.08);
    text-decoration: none;
}

.ym-sekmeler .aktif a,
.ym-ogun-secim .aktif a {
    background: var(--brand);
    color: #fff;
}

.ym-ogun-secim {
    margin-bottom: 14px;
}

.ym-gezinti {
    display: flex;
    gap: 8px;
}

/* Kartlar */
.ym-kart {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.ym-gunluk {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ym-izgara {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1199px) {
    .ym-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .ym-gunluk,
    .ym-izgara { grid-template-columns: minmax(0, 1fr); }
    .ym-arac { flex-direction: column; align-items: stretch; }
    .ym-sekmeler, .ym-ogun-secim { display: flex; }
    .ym-sekmeler li, .ym-ogun-secim li { flex: 1; text-align: center; }
    .ym-gezinti { justify-content: center; }
}

.ym-gun__baslik {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.ym-gun__baslik:hover,
.ym-gun__baslik:focus {
    color: #fff;
    text-decoration: none;
    background: #7E002C;
}

.ym-gun__baslik small {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: capitalize;
}

.ym-gun {
    transition: transform .15s ease, box-shadow .15s ease;
}

.ym-gun:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.10);
}

.ym-gun--bugun,
.ym-gun--bugun:hover {
    outline: 2px solid rgba(168, 0, 59, 0.45);
    box-shadow: 0 14px 36px rgba(168, 0, 59, 0.18);
}

.ym-bugun-rozet {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: 2px;
}

.ym-vegan-simge {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    fill: currentColor;
    vertical-align: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .ym-gun,
    .ym-kampuskart {
        transition: none;
    }

    .ym-gun:hover,
    .ym-kampuskart:hover {
        transform: none;
    }
}

/* Öğün bölümü */
.ym-ogun + .ym-ogun {
    border-top: 1px dashed rgba(17, 24, 39, 0.18);
}

.ym-ogun__baslik {
    padding: 10px 14px 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--brand-yazi, var(--brand));
}

.ym-gunluk .ym-ogun__baslik {
    padding: 12px 16px;
    font-size: 15px;
    color: #fff;
    background: var(--brand);
    letter-spacing: 0.3px;
}

.ym-yemekler {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ym-yemek {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
}

.ym-yemek:last-child {
    border-bottom: none;
}

.ym-yemek__ust {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ym-yemek__ad {
    font-weight: 700;
}

.ym-yemek__kcal {
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.ym-lejant__tanim {
    overflow-wrap: anywhere;
}

.ym-gunluk .ym-yemek {
    padding: 12px 16px;
}

.ym-gunluk .ym-yemek__ad {
    font-size: 15px;
}

.ym-yemek__alerjen {
    margin-top: 4px;
    font-size: 12px;
}

.ym-alerjen-etiket {
    color: var(--muted);
}

.ym-alerjen-yok {
    font-weight: 700;
    color: #047857;
}

.ym-alerjen-bilinmiyor {
    font-weight: 700;
    color: var(--muted);
}

.ym-rozet {
    display: inline-block;
    min-width: 22px;
    padding: 1px 6px;
    margin: 0 1px;
    border-radius: 999px;
    background: rgba(168, 0, 59, 0.10);
    color: var(--brand-yazi, var(--brand));
    font-weight: 800;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
}

a.ym-rozet:hover,
a.ym-rozet:focus {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}

.ym-toplam {
    padding: 8px 14px;
    text-align: right;
    font-size: 12px;
    color: var(--muted);
    background: rgba(17, 24, 39, 0.03);
}

.ym-bos {
    padding: 12px 14px;
    color: var(--muted);
    font-style: italic;
}

.ym-bos-kart {
    text-align: center;
    padding: 32px 24px;
}

.ym-bos-kart__simge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: rgba(168, 0, 59, 0.08);
    color: var(--brand-yazi, var(--brand));
}

.ym-bos-kart__simge svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.ym-bos-kart__baslik {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
}

.ym-bos-kart p {
    color: var(--muted);
}

/* Alerjen listesi (akordeon) */
.ym-lejant {
    margin-top: 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ym-lejant[open] {
    border-color: rgba(168, 0, 59, 0.25);
    box-shadow: 0 12px 28px rgba(168, 0, 59, 0.08);
}

.ym-lejant__ozet {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    outline: none;
    user-select: none;
    transition: background-color .12s ease;
}

.ym-lejant__ozet::-webkit-details-marker {
    display: none;
}

.ym-lejant__ozet:hover {
    background: rgba(168, 0, 59, 0.03);
}

.ym-lejant__ozet:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(168, 0, 59, 0.22);
}

.ym-lejant__simge {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(168, 0, 59, 0.08);
}

.ym-lejant__simge svg {
    width: 20px;
    height: 20px;
    fill: var(--brand-yazi, var(--brand));
}

.ym-lejant__metin {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ym-lejant__baslik {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}

.ym-lejant__ipucu {
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.ym-lejant__durum {
    flex: none;
    color: var(--brand-yazi, var(--brand));
    font-size: 13px;
    font-weight: 700;
}

.ym-lejant__durum-kapat,
.ym-lejant[open] .ym-lejant__durum-ac {
    display: none;
}

.ym-lejant[open] .ym-lejant__durum-kapat {
    display: inline;
}

.ym-lejant__ok {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    transition: transform .2s ease, background-color .12s ease, border-color .12s ease;
}

.ym-lejant__ok svg {
    width: 16px;
    height: 16px;
    fill: var(--brand-yazi, var(--brand));
}

.ym-lejant__ozet:hover .ym-lejant__ok {
    border-color: rgba(168, 0, 59, 0.35);
}

.ym-lejant[open] .ym-lejant__ok {
    transform: rotate(180deg);
    background: var(--brand);
    border-color: var(--brand);
}

.ym-lejant[open] .ym-lejant__ok svg {
    fill: #fff;
}

.ym-lejant__icerik {
    padding: 4px 16px 12px;
    border-top: 1px solid var(--border);
}

.ym-lejant__icerik > .ym-lejant__aciklama {
    margin-top: 12px;
}

@media (max-width: 480px) {
    .ym-lejant__durum {
        display: none;
    }
}

.ym-lejant__aciklama,
.ym-lejant__not {
    color: var(--muted);
    font-size: 13px;
}

.ym-lejant__tablo {
    margin-bottom: 10px;
}

.ym-lejant__tablo td:first-child,
.ym-lejant__tablo th:first-child {
    width: 56px;
    text-align: center;
}

.ym-lejant__tanim {
    color: var(--muted);
    font-size: 12px;
}

/* Yemekhane saatleri */
.ym-saatler {
    margin: 12px 0 10px;
}

.ym-saatler th:not(:first-child),
.ym-saatler td:not(:first-child) {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.ym-saatler__ad {
    font-weight: 700;
}

.ym-saat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(168, 0, 59, 0.08);
    color: var(--brand-yazi, var(--brand));
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ym-saat--yok {
    background: transparent;
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 480px) {
    .ym-saatler { font-size: 13px; }
    .ym-saat { padding: 2px 6px; font-size: 12px; }
}

.ym-lejant__tablo tr:target {
    background: rgba(97, 242, 189, 0.25);
}

/* Yemek detayı */
.ym-yemek__ad {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.ym-yemek__ad:hover,
.ym-yemek__ad:focus-visible {
    color: var(--brand-yazi, var(--brand));
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    outline: none;
}

.ym-yemek__son {
    white-space: nowrap;
}

.ym-yemek__bilgi {
    width: 13px;
    height: 13px;
    margin-left: 4px;
    fill: currentColor;
    opacity: 0.35;
    vertical-align: -1px;
    transition: opacity .12s ease;
}

.ym-yemek__ad:hover .ym-yemek__bilgi,
.ym-yemek__ad:focus-visible .ym-yemek__bilgi {
    opacity: 1;
}

.ym-modal .modal-content {
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.25);
    overflow: hidden;
}

.ym-modal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.ym-modal .modal-title {
    font-weight: 800;
    color: var(--ink);
}

.ym-modal .modal-body {
    padding: 16px 20px 20px;
}

.ym-detay__kcal {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.ym-detay__bolum {
    margin: 14px 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--brand-yazi, var(--brand));
}

.ym-detay__bolum:first-child {
    margin-top: 0;
}

.ym-malzeme {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.05);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
}

.ym-detay__bos {
    margin: 0;
    color: var(--muted);
    font-style: italic;
}

.ym-detay__alerjen-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ym-detay__alerjen-liste li {
    padding: 3px 0;
    font-weight: 600;
}

.ym-detay__not {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* Takvim aboneliği */
.ym-takvim__ogunler {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ym-takvim__ogunler label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.ym-takvim__ogunler input {
    position: absolute;
    opacity: 0;
}

.ym-takvim__ogunler span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 700;
    transition: background-color .12s ease, color .12s ease;
}

.ym-takvim__ogunler input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.ym-takvim__ogunler input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(168, 0, 59, 0.25);
}

.ym-takvim__dugmeler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ym-modal .form-control {
    border-radius: 12px 0 0 12px;
}

.ym-modal .input-group-btn .btn {
    border-radius: 0 12px 12px 0;
}

/* Araç çubuğu simge düğmeleri */
.ym-simge-dugme svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    vertical-align: -3px;
}

.ym-tema-dugme__gunes,
.ym-koyu .ym-tema-dugme__ay {
    display: none;
}

.ym-koyu .ym-tema-dugme__gunes {
    display: inline;
}

@media (max-width: 767px) {
    .ym-gezinti { flex-wrap: wrap; }
}

/* Karanlık tema (yalnızca anasayfa; html.ym-koyu sınıfını Home/Index ekler) */
html.ym-koyu {
    --bg: #0F1213;
    --card: #181C1E;
    --text: #E6E8EA;
    --ink: #E6E8EA;
    --muted: #9AA3AB;
    --border: rgba(255, 255, 255, 0.10);
    --brand-yazi: #FF7FA6;
    color-scheme: dark;
}

.ym-koyu body {
    background: var(--bg);
    color: var(--text);
}

.ym-koyu .ym-lejant__not a {
    color: #8FC1FF;
}

.ym-koyu .site-header {
    background: var(--card);
}

.ym-koyu .site-navbar.navbar {
    background: #15191A;
}

.ym-koyu .ym-hero {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.ym-koyu .ym-kampuskart,
.ym-koyu .ym-sekmeler,
.ym-koyu .ym-ogun-secim,
.ym-koyu .page-card,
.ym-koyu .ym-lejant__ok,
.ym-koyu .btn-default,
.ym-koyu .modal-content,
.ym-koyu .form-control {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
}

.ym-koyu .ym-kampuskart:hover,
.ym-koyu .ym-kampuskart:focus {
    color: var(--text);
}

.ym-koyu .ym-kampuskart__simge svg,
.ym-koyu .ym-bugun-rozet {
    fill: #15191A;
    color: #15191A;
}

.ym-koyu .btn-default:hover,
.ym-koyu .btn-default:focus {
    background: rgba(97, 242, 189, 0.14);
    color: var(--text);
}

.ym-koyu .ym-sekmeler a,
.ym-koyu .ym-ogun-secim a {
    color: var(--text);
}

.ym-koyu .ym-sekmeler a:hover,
.ym-koyu .ym-ogun-secim a:hover {
    background: rgba(255, 127, 166, 0.12);
}

.ym-koyu .ym-sekmeler .aktif a,
.ym-koyu .ym-ogun-secim .aktif a {
    color: #fff;
}

.ym-koyu .ym-kart,
.ym-koyu .ym-lejant {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.ym-koyu .ym-ogun + .ym-ogun {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.ym-koyu .ym-toplam,
.ym-koyu .ym-malzeme {
    background: rgba(255, 255, 255, 0.04);
}

.ym-koyu .ym-rozet,
.ym-koyu .ym-saat:not(.ym-saat--yok),
.ym-koyu .ym-lejant__simge,
.ym-koyu .ym-bos-kart__simge {
    background: rgba(255, 127, 166, 0.14);
}

.ym-koyu .ym-saat--yok {
    background: transparent;
}

.ym-koyu .ym-alerjen-yok {
    color: #34D399;
}

.ym-koyu .ym-lejant[open] {
    border-color: rgba(255, 127, 166, 0.25);
}

.ym-koyu .ym-lejant[open] .ym-lejant__ok {
    background: var(--brand);
}

.ym-koyu .ym-lejant[open] .ym-lejant__ok svg {
    fill: #fff;
}

.ym-koyu .table > thead > tr > th,
.ym-koyu .table > tbody > tr > td {
    border-color: var(--border);
}

.ym-koyu .ym-lejant__tablo tr:target {
    background: rgba(97, 242, 189, 0.12);
}

.ym-koyu .modal-header,
.ym-koyu .modal-footer {
    border-color: var(--border);
}

.ym-koyu .close {
    color: var(--text);
    text-shadow: none;
    opacity: 0.6;
}

.ym-koyu .modal-backdrop.in {
    opacity: 0.7;
}

.ym-koyu .tooltip-inner {
    background: #E6E8EA;
    color: #15191A;
}

.ym-koyu .tooltip.top .tooltip-arrow {
    border-top-color: #E6E8EA;
}

@media print {
    html.ym-koyu {
        --bg: #fff;
        --card: #fff;
        --text: #111827;
        --ink: #15191A;
        --muted: #6b7280;
        --border: rgba(17, 24, 39, 0.10);
        --brand-yazi: var(--brand);
    }
}

/* Yönetim: yemek formu ve listesi */
.alerjen-form {
    margin: 10px 0 16px;
}

.alerjen-form__ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.alerjen-form__uyari {
    padding: 8px 12px;
    font-size: 13px;
}

.alerjen-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 14px;
}

.alerjen-secim {
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    padding: 4px 6px;
    border-radius: 8px;
}

.alerjen-secim:hover {
    background: rgba(168, 0, 59, 0.05);
}

.alerjen-gerekce {
    display: block;
    margin-left: 22px;
    color: #92400E;
    font-weight: 400;
}

.alerjen-onay {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.alerjen-durum--onayli {
    color: #047857;
    font-weight: 700;
}

.alerjen-durum--bekliyor {
    color: #92400E;
    font-weight: 700;
}

.alerjen-oneri {
    display: block;
    color: var(--muted);
    font-style: italic;
}

.ym-yazdir {
    margin-right: 6px;
}

@media print {
    .ym-arac,
    .ym-ogun-secim,
    .ym-kampuskart {
        display: none !important;
    }

    .ym-hero {
        padding: 0;
        background: none;
        color: var(--ink);
    }

    .ym-hero__baslik,
    .ym-hero__alt {
        color: var(--ink);
    }
}
