@import url(https://db.onlinewebfonts.com/c/0e4eba488b97739bf75317aaa728f3c1?family=TT+Chocolates+Regular);
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'TT Chocolates Regular', Arial, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    background-color: #12161a;
    color: white;
    min-height: 100%;
    height: auto;
    position: relative;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assests/logo_transparent.png');
    background-repeat: repeat-y;
    background-size: 400px auto;
    background-position: center;
    z-index: 0;
    opacity: 0.6;
}

.header-mezeler {
    width: 100%;
    height: 2.6rem;
    background-color: #12161a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.mezeler-container {
    width: calc(100% - 6rem);
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    border: 2px solid #ca931b;
    box-sizing: border-box;
    min-height: auto;
    overflow: visible;
}

.mezeler-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-top: 1rem;
}

.mezeler-header h1 {
    font-size: 3em;
    font-weight: 700;
    font-style: normal;
    color: #ca931b;
    font-kerning: none;
    text-decoration: none;
    text-transform: none;
    text-shadow: none;
    letter-spacing: 8px;
}

.mezeler-header .restaurant-name {
    font-size: 1em;
    font-weight: 400;
    font-style: normal;
    color: rgb(255, 255, 255);
    font-kerning: none;
    text-decoration: none;
    margin-top: 0.5rem;
}

.header-line {
    width: auto;
    height: 2px;
    background-color: #ca931b;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mezeler-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 0;
}

.mezeler-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tek kalan son eleman için özel düzenleme */
.mezeler-grid > .meze-item:last-child:nth-child(3n-2) {
    /* Son satırda tek eleman kalırsa ve toplam eleman sayısı 3n+1 formatında ise */
    /* 3 elemanlı son satır için başlangıç yeri değiştirme */
    grid-column-start: 2;
}

/* Çift kalan son eleman için özel düzenleme */
.mezeler-grid > .meze-item:nth-last-child(2):nth-child(3n-1) {
    grid-column-start: 1;
}

.meze-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background-color: transparent;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    width: 30%;
}

.meze-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meze-image img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    transform: scale(1.1);
    min-width: 100%;
    min-height: 100%;
}

.meze-item:hover .meze-image img {
    transform: scale(1.2);
}

.meze-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    margin-top: 5px;
}

.meze-info h3 {
    font-size: 22px;
    color: #fff;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.meze-price {
    background-color: rgb(202, 147, 27);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    border: 2px solid #fff;
}

/* Responsive tasarım */
@media (max-width: 1200px) {
    .meze-image {
        width: 150px;
        height: 150px;
    }
    .meze-price {
        font-size: 17px;
        padding: 4px 10px;
        min-width: 55px;
        top: 140px;
    }
}

@media (max-width: 992px) {
    .mezeler-grid {
        grid-gap: 1.2rem;
    }
    
    .meze-image {
        width: 140px;
        height: 140px;
    }
    
    .meze-info h3 {
        font-size: 20px;
        text-transform: uppercase;
        font-weight: 600;
    }
    .meze-price {
        font-size: 16px;
        padding: 3px 10px;
        min-width: 50px;
        top: 130px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
        min-height: 100%;
        height: auto;
    }
    
    body::before {
        background-size: 300px auto;
        opacity: 0.5;
        height: 100%;
        position: fixed;
    }
    
    .mezeler-container {
        width: calc(100% - 2rem);
        margin: 4rem 1rem 0;
        padding: 1rem;
        min-height: auto;
        overflow: visible;
    }
    
    .mezeler-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 1rem;
    }
    
    .meze-image {
        width: 110px;
        height: 110px;
        border-width: 2px;
    }
    
    .meze-info h3 {
        font-size: 16px;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .meze-price {
        font-size: 15px;
        padding: 3px 8px;
        min-width: 45px;
        border-radius: 15px;
        top: 100px;
        border-width: 2px;
        z-index: 10;
    }
    
    /* Son satırdaki tek öğeyi ortala */
    .mezeler-grid > .meze-item:last-child:nth-child(3n+1) {
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    html, body {
        min-height: 100%;
        height: auto;
    }
    
    body::before {
        background-size: 200px auto;
        opacity: 0.4;
    }
    
    .mezeler-container {
        width: calc(100% - 2rem);
        margin: 4rem 1rem 0;
        padding: 0.5rem;
        min-height: auto;
        overflow: visible;
    }
    
    .mezeler-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 0.5rem;
        gap: 16px;
    }
    
    .meze-item {
        margin-bottom: 10px;
    }
    
    .meze-image {
        width: 110px;
        height: 110px;
    }
    
    .meze-info h3 {
        font-size: 14px;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.3px;
    }
    
    .meze-price {
        font-size: 14px;
        padding: 2px 8px;
        top: 100px;
    }
}

/* 385px altında ürünleri küçült */
@media (max-width: 414px) {
    .meze-image {
        width: 95px;
        height: 95px;
    }
    
    .meze-price {
        font-size: 14px;
        padding: 2px 6px;
        top: 82px;
    }
    
    .meze-info h3 {
        font-size: 13px;
        letter-spacing: 0.3px;
    }
    
    .mezeler-grid {
        grid-gap: 0.4rem;
        gap: 14px;
    }
}

/* 370px altında 2'li grid yap */
@media (max-width: 370px) {
    .mezeler-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 0.4rem;
    }
    
    .meze-image {
        width: 100px;
        height: 100px;
    }
    
    .meze-price {
        top: 90px;
    }
    
    /* Son satırdaki tek öğeyi ortala - 2'li grid için */
    .mezeler-grid > .meze-item:last-child:nth-child(2n+1) {
        grid-column: 1 / span 2;
        margin-right: auto;
        margin-left: auto;
        max-width: 100px;
    }
    
    /* 3'lü grid için eklenen özel seçiciyi devre dışı bırak */
    .mezeler-grid > .meze-item:last-child:nth-child(3n+1) {
        grid-column: unset;
        margin-right: unset;
        margin-left: unset;
        max-width: unset;
    }
}

@media (max-width: 360px) {
    html, body {
        min-height: 100%;
        height: auto;
    }
    
    body::before {
        background-size: 180px auto;
    }
    
    .mezeler-container {
        margin-top: 3.5rem;
    }
    
    .mezeler-grid {
        grid-gap: 0.3rem;
    }
    
    .meze-image {
        width: 90px;
        height: 90px;
    }
    
    .meze-price {
        font-size: 12px;
        min-width: 40px;
        padding: 2px 6px;
        top: 80px;
    }
    
    .meze-info h3 {
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.2px;
    }
}

/* Footer ayarları */
footer {
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
    background-color: transparent;
    color: #fff;
    font-size: 0.9rem;
}

.designer-credit {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: #ccc;
}

/* Geri butonu stili */
.back-button {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    background-color: rgba(202, 147, 27, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(202, 147, 27, 1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    footer {
        padding: 15px 0;
        margin-top: 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 10px 0;
        margin-top: 10px;
    }
} 