﻿body {
    display: flex;
    font-family: Arial, sans-serif;
    margin: 0;
}

.sidebar {
    width: 250px;
    background: #2ecc71;
    padding: 20px;
    position: fixed;
    left: -250px;
    top: 0;
    height: 100%;
    transition: 0.3s;
}

.content {
    margin-left: 20px;
    flex-grow: 1;
    padding: 20px;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    background: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.right-menu {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 15px;
}

    .hamburger-menu div {
        width: 100%;
        height: 4px;
        background: #333;
        border-radius: 2px;
    }

.user-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.login-form {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    padding: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

    .login-form input {
        display: block;
        margin: 5px 0;
        padding: 8px;
        width: 100%;
    }

    .login-form button {
        width: 100%;
        padding: 8px;
        background: #2ecc71;
        color: white;
        border: none;
        cursor: pointer;
    }

.books {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.book-card {
    width: 200px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .book-card img {
        width: 100%;
        height: auto;
        border-radius: 5px;
    }

    .book-card h3 {
        font-size: 18px;
        margin: 10px 0 5px;
    }

    .book-card p {
        font-size: 14px;
        color: #555;
    }

.book-cardd {
    display: flex;
  
    background: #f8f1e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', serif;
    color: #333;

    border-radius: 5px;
    overflow: hidden;
    /* opsiyonel: yüksekliği sabitle */
    height: 300px;
}

.book-coverr {
    flex: 0 0 40%;
    overflow: hidden; /* Resmin taşmasını engeller */
}

    .book-coverr img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Resmi üst kısma hizalar */
    display: block;
}

.book-detailss {
    flex: 0 0 60%;
    padding: 5px;
}

.book-headerr h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #5c4d3c;
}
.book-contentt a{
    
}
.book-contentt h2 {
    margin: 15px 0 5px;
    font-size: 20px;
    color: #6b5840;
}

    .book-contentt h2 a {
        color: #6b5840 !important; /* H2'nin rengini kullan */
        text-decoration: none !important; /* Alt çizgiyi kaldır */
    }

        .book-contentt h2 a:hover {
            color: #5a452f; /* İstersen hover rengi */
        }
        .book-contentt h2 a:visited,
        .book-contentt h2 a:active {
            color: inherit; /* H2 rengi ile aynı kalsın */
            text-decoration: none;
        }


.authorr {
    font-style: italic;
    color: #8b7d6b;
    margin-bottom: 15px;
}

.ratingg {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.starss {
    color: #e6b422;
    font-size: 18px;
}

.scoree {
    font-weight: bold;
    color: #5c4d3c;
}

.descriptionn {
    line-height: 1.5;
    font-size: 15px;
    color: #5c4d3c;
}

.book-cardd:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* YAN YANA DİZİLME İÇİN CONTAINER */
.book-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 kart yan yana */
    gap: 15px; /* Kartlar arası boşluk */
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* MOBILE UYUMLULUK */
@media (max-width: 768px) {
    .book-cards-container {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
}

