/* Hiçşeyi seçmeyi engeller */
* {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -user-drag: none;
  }


/* Genel stil ve tema */
:root {
    --primary-color: black;
    --secondary-color: gray;
    --background-color: #f2f2f2;
    --text-color: #333;
    --light-mode-bg: #ffffff;
    --dark-mode-bg: #1a1a1a;
    --dark-mode-text: #f8f8f8;
}
/* Genel stil */
body {
    justify-content:center ;
    font-family: 'poppins', sans-serif;
    margin: 0;
    padding: 0;
    flex-direction: column;
    background-color: var(--background-color);
    transition: background-color 0.5s, color 0.5s;
    color: var(--text-color);
    
}


/************* İNDEX.PHP *************/
/* Konteyner stil */
.main-header {
    background-image: url('../images/bg.webp'); /* Arka plan fotoğrafı */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    height: 250px;
    overflow: hidden;
    
}
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Yarı saydam siyah katman */
    z-index: 1; /* Karanlık katman, içerikten daha düşük z-index */
    pointer-events: none; /* Katman tıklamayı engellemesin */
}
.main-title {
    color: white;
    z-index: 2;
    margin-bottom: 10px; /* Altındaki butona mesafe bırak */
    text-align: center;
    font-family: 'Playwrite GB S', sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.main-header p {
    color: white;
    z-index: 2;
    margin-bottom: 10px; /* Altındaki butona mesafe bırak */
    text-align: center;
    font-family: 'Playwrite GB S', sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}


.container {
    display: inline-block;
    background-color: #fff;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-right: 15px;
    margin-left: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}



/* Kategori ızgarası */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.category-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Kategori adı stil */
.category-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2em;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}



/* Menü konteyneri */
.menu-container {
    max-width: 1000px;
    margin: 20px auto;
    background: var(--light-mode-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 10px;
    transition: background-color 0.5s, color 0.5s;
}

.menu-header {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: color 0.5s;
}


/* Menü öğesi */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #f9f9f9;
    transform: scale(1.02);
}

footer {
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
    color: var(--text-color);
    transition: color 0.5s;
   
}
footer a {
    color: #1560bd;
    text-decoration: none;
}
footer a:hover {
    opacity: 0.8;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .menu-container{
        width: 500px;
    }
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-details {
        flex-direction: column;
        gap: 10px;
    }

    .item-image {
        width: 100%;
        height: auto;
        max-width: 300px;
    }
}
