/* Tarhan Yemek Listesi - Tarhan Koleji Tasarım Uyumu */

/* Google Fonts - Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

.tyl-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header - Site ile uyumlu */
.tyl-menu-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: #1c1b3b;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(28, 27, 59, 0.25);
    position: relative;
    overflow: hidden;
}

.tyl-menu-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 35, 32, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tyl-title {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    font-family: 'Roboto', sans-serif;
}

.tyl-subtitle {
    margin: 15px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    font-family: 'Roboto', sans-serif;
}

/* Week Card */
.tyl-week {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(28, 27, 59, 0.08);
    overflow: hidden;
    border: 1px solid rgba(28, 27, 59, 0.04);
}

/* Table Wrapper for Horizontal Scroll */
.tyl-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c82320 #f0f0f0;
}

.tyl-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.tyl-table-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.tyl-table-wrapper::-webkit-scrollbar-thumb {
    background: #c82320;
    border-radius: 3px;
}

/* Table */
.tyl-table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Roboto', sans-serif;
}

.tyl-table thead {
    background: #1c1b3b;
}

.tyl-table th {
    color: #fff;
    padding: 18px 12px;
    font-weight: 500;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
}

.tyl-table th:first-child {
    border-radius: 20px 0 0 0;
}

.tyl-table th:last-child {
    border-radius: 0 20px 0 0;
}

.tyl-type-col {
    width: 100px;
    min-width: 100px;
    background: rgba(0, 0, 0, 0.1);
}

.tyl-day-header {
    width: calc((100% - 100px) / 5);
    min-width: 120px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.tyl-day-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
}

.tyl-day-date {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 5px;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

/* Type Cell - Yan başlık */
.tyl-type-cell {
    text-align: center;
    padding: 25px 12px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
}

.tyl-type-text {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

/* Kahvaltı üstte - koyu mavi */
.tyl-row-kahvalti .tyl-type-cell {
    background: #1c1b3b;
}

/* Öğle yemeği altta - kırmızı */
.tyl-row-yemek .tyl-type-cell {
    background: #c82320;
}

/* Son satır için border radius */
.tyl-table tbody tr:last-child .tyl-type-cell {
    border-radius: 0 0 0 20px;
}

.tyl-table tbody tr:last-child td:last-child {
    border-radius: 0 0 20px 0;
}

/* Menu Cell */
.tyl-menu-cell {
    padding: 20px 15px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(28, 27, 59, 0.05);
    border-right: 1px solid rgba(28, 27, 59, 0.05);
    font-size: 12px;
    line-height: 1.8;
    color: #1c1b3b;
    background: #fff;
    transition: all 0.3s ease;
    min-width: 120px;
    min-height: 120px;
    font-family: 'Roboto', sans-serif;
}

.tyl-menu-cell:last-child {
    border-right: none;
}

.tyl-table tbody tr:last-child .tyl-menu-cell {
    border-bottom: none;
}

/* Öğle yemeği altta - hafif gri arka plan */
.tyl-row-yemek .tyl-menu-cell {
    background: #fafbfc;
}

.tyl-menu-cell:hover {
    background: rgba(28, 27, 59, 0.02);
}

/* Menu List */
.tyl-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tyl-menu-list li {
    padding: 5px 0;
    color: #1c1b3b;
    font-size: 12px;
    font-weight: 400;
    position: relative;
    padding-left: 14px;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.tyl-menu-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

/* Kahvaltı madde işareti - koyu mavi */
.tyl-row-kahvalti .tyl-menu-list li::before {
    background: #1c1b3b;
}

/* Öğle yemeği madde işareti - kırmızı */
.tyl-row-yemek .tyl-menu-list li::before {
    background: #c82320;
}

.tyl-menu-item {
    color: #1c1b3b;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

/* Holiday */
.tyl-holiday {
    background: #1c1b3b;
    color: #fff;
    padding: 15px 12px;
    text-align: center;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
}

/* Empty */
.tyl-empty {
    color: rgba(28, 27, 59, 0.15);
    text-align: center;
    display: block;
    font-size: 20px;
    font-weight: 300;
}

/* No Menu */
.tyl-no-menu {
    text-align: center;
    padding: 80px 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(28, 27, 59, 0.08);
    color: #1c1b3b;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .tyl-menu-container {
        padding: 30px 15px;
    }

    .tyl-menu-header {
        padding: 30px 20px;
        border-radius: 16px;
        margin-bottom: 30px;
    }

    .tyl-title {
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .tyl-week {
        border-radius: 16px;
    }

    .tyl-table th:first-child,
    .tyl-table th:last-child,
    .tyl-table tbody tr:last-child .tyl-type-cell,
    .tyl-table tbody tr:last-child td:last-child {
        border-radius: 0;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .tyl-menu-container {
        padding: 20px 12px;
    }

    .tyl-menu-header {
        padding: 25px 15px;
        border-radius: 14px;
        margin-bottom: 25px;
    }

    .tyl-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .tyl-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
        margin-top: 10px;
    }

    .tyl-week {
        border-radius: 14px;
        margin-bottom: 25px;
    }

    .tyl-table {
        min-width: 600px;
    }

    .tyl-table th {
        padding: 14px 10px;
        font-size: 10px;
    }

    .tyl-type-col {
        min-width: 80px;
        width: 80px;
    }

    .tyl-day-header {
        min-width: 100px;
    }

    .tyl-type-cell {
        padding: 20px 10px;
        min-width: 80px;
    }

    .tyl-type-text {
        font-size: 9px;
    }

    .tyl-menu-cell {
        padding: 15px 12px;
        font-size: 11px;
        min-width: 100px;
        min-height: 100px;
    }

    .tyl-menu-list li {
        font-size: 11px;
        padding: 4px 0;
        padding-left: 12px;
    }

    .tyl-menu-list li::before {
        width: 3px;
        height: 3px;
    }

    .tyl-holiday {
        padding: 12px 10px;
        font-size: 9px;
        border-radius: 8px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .tyl-menu-container {
        padding: 15px 10px;
    }

    .tyl-menu-header {
        padding: 20px 12px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .tyl-title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .tyl-subtitle {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .tyl-week {
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .tyl-table-wrapper {
        margin: 0 -2px;
    }

    .tyl-table th {
        padding: 12px 8px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .tyl-day-name {
        font-size: 9px;
    }

    .tyl-day-date {
        font-size: 8px;
    }

    .tyl-type-cell {
        padding: 15px 8px;
    }

    .tyl-type-text {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .tyl-menu-cell {
        padding: 12px 10px;
        font-size: 10px;
        min-height: 90px;
    }

    .tyl-menu-list li {
        font-size: 10px;
        padding: 3px 0;
        padding-left: 10px;
    }

    .tyl-holiday {
        padding: 10px 8px;
        font-size: 8px;
    }

    .tyl-no-menu {
        padding: 50px 20px;
        font-size: 13px;
        border-radius: 12px;
    }
}

/* Print */
@media print {
    .tyl-menu-container {
        max-width: 100%;
        padding: 0;
    }

    .tyl-menu-header {
        background: #1c1b3b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        border-radius: 0;
        box-shadow: none;
    }

    .tyl-week {
        box-shadow: none;
        border: 1px solid #1c1b3b;
        border-radius: 0;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    .tyl-table {
        min-width: 100%;
    }

    /* Kahvaltı - koyu mavi */
    .tyl-row-kahvalti .tyl-type-cell {
        background: #1c1b3b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Öğle yemeği - kırmızı */
    .tyl-row-yemek .tyl-type-cell {
        background: #c82320 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .tyl-table th:first-child,
    .tyl-table th:last-child,
    .tyl-table tbody tr:last-child .tyl-type-cell,
    .tyl-table tbody tr:last-child td:last-child {
        border-radius: 0;
    }
}
