
main a, main a:hover {
    color: #61872B;
}

main a:is(.dark *) {
    color: #4FB021;
}

.favorite-link:hover, .favorite-link:focus {
    color: #4FB021;
}

/******************************/
/*          CAROUSEL          */
/******************************/
.carousel-image-container {
    width: 100%; 
    max-width: 1200px; 
    margin: auto; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.carousel-main-image {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
}

.carousel-side-image {
    width: 100px;
    opacity: .5;
    display: none;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5); 
    color: white; 
    padding: 10px; 
}

.carousel-slide {
    position: relative;
    text-align: center;
}

.carousel-slide img {
    width: 100%;
    object-fit: cover; 
    object-position: top;
    height: 300px; 
}

.slick-prev, .slick-next {
    display: none !important; /* Skryje boční šipky */
}

.overlay {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-shadow: 1px 1px 3px #ccc;
    width: 100%;
    padding: 10px;
    text-align: left;
}

.article-section {
    padding: 0 15px;
}

.article-item {
    display: flex;
    margin-bottom: 10px;
    /*background: #fff;*/
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-thumbnail {
    width: 100px;
    height: 150px;
    margin:5px;
}

.article-content {
    padding: 10px;
    flex: 1;
}

.article-head-title {
    display: flex;
    flex-wrap: wrap;
}

.article-head-title a {
    width: 100%;
}

.generating-books {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem; /* 8px */
}

.book-card {
    display: flex;
    width: 100%;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;
    border: 1px solid #dee2e6 !important;
    border-radius: .5rem !important;
}

.book-card:is(.dark *) {
    background-color: #252229;
}

.book-card img {
    border-top-left-radius: .5rem;
    border-bottom-left-radius: .5rem;
}

.card2 {
    height: 350px;
}

.card-text {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 0;
}

.card-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.card-title a {
    width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.card-price {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    justify-items: start;
    width: 100%;
}

.card-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1rem;
    width: 100%;
}

.book-slider div {
    text-align: center;
    padding: 10px 0;
}

.book-slider img {
    width: 100%;
    height: auto;
    border-radius: .5rem;
}

.book-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    margin: 10px;
    width: 145px;
}

.book-item img {
    max-width: 140px; 
    height: 205px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.slick-dots {
    bottom: 0;
}

.slick-initialized .slick-slide {
    display: flex !important;
}

#id_quote {
    width: 100%;
}

.book-offer {
    display: flex;
    overflow: hidden;
    margin-bottom: 16px;
    width: 100%;
}

.book-offer-detail {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    margin-left: 1rem;
    width: 100%;
}

.edit-offer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 8px;
}

.save-cancel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 1rem;
}


/******************************/
/*             ISBN           */
/******************************/
.isbn-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.isbn-card {
    background: #fff;
    border-radius: .5rem;
    border: 1px solid #dee2e6;
    padding: .5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    color: #000;
    width: 100%;
}

.isbn-card:is(.dark *) {
    color: #ffffff;
    background-color: #0d0c0f;
}

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

.isbn-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px;
    font-size: .9rem;
    color: #555;
}

.isbn-meta:is(.dark *) {
    color: #c6c6c6;
}

.isbn-add {
    border-radius: .5rem;
    background: #f9fafb;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
}

.isbn-add:is(.dark *) {
    color: #ffffff;
    background-color: #0d0c0f;
}

.isbn-add summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.isbn-add summary::-webkit-details-marker {
    display: none;
}

.isbn-add select {
    margin-top: 10px;
    color: #000;
}

.isbn-form {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.badge {
    padding: 4px 10px;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 600;
}

.badge-book { 
    display: flex;
    align-items: center;
    background:#e6f4ea; 
    color:#1e7e34; 
}

.badge-ekniha { 
    display: flex;
    align-items: center;
    background:#e7f1ff; 
    color:#0d6efd; 
}

.badge-audio { 
    display: flex;
    align-items: center;
    background:#fff3cd; 
    color:#856404; 
}

.bagde-book-icon {
    width: 15px;
    height: fit-content;
}



/******************************/
/*        BOOK MARKET         */
/******************************/
.book-market {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
}

.book-market-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.book-market-title h4 {
    font-weight: 700;
    margin: 0;
}

.book-market-body {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background-color: #ffffff;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

.book-market-body:is(.dark *) {
    background-color: #0d0c0f;
}

.book-market-body img {
    width: 72px;
    height: 108px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.book-market-body:is(.dark *) img {
    background: #1a1a1a;
    border: .25rem 0 0 .25rem;
}

.book-market-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: .5rem 0.75rem;
    flex: 1;
    min-height: 108px;
}

.book-market-text p {
    margin: 0;
}

.book-market-text p:first-child a {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.book-market-text p:first-child a:hover {
    text-decoration: underline;
}

.book-market-text p:nth-child(2) {
    font-size: .875rem;
    opacity: .8;
}

.book-market-text p:nth-child(3) {
    font-weight: 700;
}

.book-market-user {
    font-size: .75rem;
    opacity: .7;
    text-align: right;
}


/******************************/
/*         E-BOOK LIST        */
/******************************/
.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.book-card2 {
    display: flex;
    background: #ffffff;
    border-radius: .5rem;
    padding: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.book-card2:is(.dark *) {
    background: #1E1B22;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.book-card2 img {
    width: 100%;
    border-radius: .5rem;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.book-card-info {
    flex: 1;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.book-card-info p {
    margin: 4px 0;
}

.book-card-info p:nth-child(3) {
    font-size: .9rem;
    opacity: .9;
}

.book-card-formats {
    margin-top: 8px;
    font-size: .9rem;
    font-weight: 600;
}

.book-card-formats span {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 6px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(97, 135, 43, 0.18);
    border: 1px solid rgba(97,135,43,0.25);
    border-radius: .5rem;
    color: #4b6f1d;
}

.book-card-price {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #61872B;
}

.book-card-price:is(.dark *) {
    color: #8EE463;
}

.listings-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.listings-section {
    width: 100%;
}

.section-title {
    margin-left: 1rem;
}

.listing-row {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.listing-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.arrow {
    cursor: pointer;
    margin-right: .5rem;
}

.listing-row.open .listing-header,
.listing-row.open .listing-details {
    background-color: #ffffff;
}

.listing-row.open .listing-header:is(.dark *),
.listing-row.open .listing-details:is(.dark *) {
    background-color: #0d0c0f;
}

.price-info {
    margin-top: .25rem;
}

.status-reserved { color: #ccc; }
.status-active { color: green; }
.status-shipped { color: orange; }
.status-completed { color: gray; }
.status-paid { color: blue; }

.listing-details {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #495057;
}

.listing-details.active {
    display: block;
}

.username {
    width: 120px;
}

.details-content {
    display: flex;
    align-items: flex-start;
}

.book-image {
    width: 90px;
    height: auto;
    margin-right: .5rem;
}

.details-text {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% - 100px);
}

.details-text p {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.note {
    flex-wrap: wrap;
}

.details-footer {
    display: flex;
    justify-content: flex-end;
    margin-right: 2.5rem;
    width: 100%;
    position: relative;
}

.price {
    display: inline-block;
    padding: .25em 1em;
    background: linear-gradient(90deg, #003300 10%, #61872B 90%);
    color: white;
    font-weight: bold;
    border-radius: 999px;
    box-shadow: 3px 3px 10px rgb(0 0 0 / 49%);
    font-family: 'Segoe UI', sans-serif;
    transition: transform 0.2s ease;
    max-height: 36px;
}

.price:is(.dark *) {
    background: linear-gradient(90deg, #003300 10%, #61872B 90%);
    border: 1px solid #ffffff;
    box-shadow: 3px 3px 10px rgb(255 255 255 / 49%);
}

.sell-listing,
.buy-listing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .5rem;
}

.listing-row:last-child .sell-listing::after,
.listing-row:last-child .buy-listing::after {
    display: none;
}

.listing-status {
    font-size: .875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
    width: 90px;
}

.add-book:disabled {
    display: flex; 
    align-items: center; 
    margin: 0;
    background: #e5e5e5;
    color: #000000;
    cursor: not-allowed;
    opacity: 1; /* žádná průhlednost */
}

.add-book-icon {
    width: 35px; 
}

.kindleinfo {
    display: none; 
    font-size: 90%;
    margin-top: .5rem;
}

.btn-buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px 0;
}


/******************************/
/*         CÍL ČTENÍ          */
/******************************/
.reading-goal {
    margin-bottom: 1rem;
    width: 100%;
}

.reading-goal-text {
    display: block;
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: .5rem;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: #61872B;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar-label {
    color: #fff;
    font-size: .875rem;
}

.progress-zero {
    font-size: .75rem;
    margin-left: .5rem;
}

.goal-complete {
    margin-top: .5rem;
    text-align: center;
    font-weight: bold;
    color: #16a34a;
}

.goal-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.form-group {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.input-suffix {
    margin-left: .5rem;
}

.goal-empty {
    text-align: center;
    padding: 1rem 0;
}


/******************************/
/*       BIRTHDAYS LIST       */
/******************************/
.page-title {
    margin-bottom: 1rem;
}

.section {
    margin: 2rem 0;
}

.section-title {
    margin-bottom: 1rem;
}

.grid-creators {
    display: grid;
    width: 100%;
    gap: 1rem;
    margin-bottom: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.card {
    background: #F9F9F9;
    border-radius: .5rem;
}

body.dark .card {
    background: #1A161F;
}

.card-rating {
    text-align: center;
    font-size: .9rem;
    opacity: .7;
}

.img-rounded-top {
    width: 100%;
    border-radius: .5rem .5rem 0 0;
    display: block;
}


/******************************/
/*        NAVBAR BOOKS        */
/******************************/
nav, footer {
    background: linear-gradient(90deg, #003300 10%, #61872B 90%);
}


.tab-links a.active {
    background-color: #61872B;
}

.tag-detail {
    top: 10px;
    left: -6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #3ccf4e;
    background: rgba(60, 207, 78, 0.1);
    border: 1px solid rgba(60, 207, 78, 0.3);
    border-radius: 0 9999px 9999px 0;
    padding: 4px 10px 4px 12px;
    box-shadow: 0 2px 6px rgba(60, 207, 78, 0.25);
    transition: all 0.25s ease;
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: #f5f6fa;
    border: 1px solid #E2E2ED;
    border-radius: .5rem;
    overflow: hidden;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(41, 41, 86, 0.06);
}

.lang-item {
    border: none;
    background: transparent;
    color: #5A5A64;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: .5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-item:hover {
    background: rgba(9, 171, 195, 0.1);
    color: #61872B;
}

.lang-item:hover:is(.dark *) {
    color: #4FB021;
}

.lang-item.active {
    background: #61872B;
    color: #fff;
    box-shadow: 0 2px 5px rgba(9, 171, 195, 0.3);
}

.lang-item.active:is(.dark *) {
    background: #4FB021;
    color: #fff;
}




#market details {
    margin-bottom: 1rem; /* 16px */
    margin-top: 1rem; /* 16px */
}

.tab-container {
    margin-top: 20px;
    /* border-bottom: 1px solid #ccc; */

}

.tab-links::-webkit-scrollbar {
    display: none;  /* Pro Chrome, Safari a Opera */
}

.tab-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    gap: 5px;
    overflow-x: scroll;
    overflow-y: hidden; 
    -ms-overflow-style: none;  /* Pro Internet Explorer a Edge */
    scrollbar-width: none;  /* Pro Firefox */
}

.tab-links a {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: .5rem .5rem 0 0;
    background-color: #f0f0f0;
    color: #000;
    display: inline-block;
}

.tab-links a.active {
    color: #fff;
    border: 1px solid #dee2e6;
    border-bottom: none;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.tab-content.active {
    display: block;
}





@media (max-width: 480px) {
    .market-card {
        padding: 1rem;
    }

    .market-list-item {
        padding: 1rem;
    }

    .book-card2 {
        flex-direction: column;
        padding: 12px;
    }

    .book-card-info {
        margin-left: 0;
        margin-top: 12px;
    }
}

@media (max-width: 525px) {

}

@media (max-width: 639.98px) {
    .card-detail {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}      

@media (max-width: 767.98px) {
    .banner {
        flex-direction: column;
    }

    .banner-caption {
        position: static; 
        align-self: center; 
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .carousel-side-image {
        display: block;
    }

    .carousel-slide img {
        width: 100%;
        object-fit: cover; 
        height: 200px; 
    }

}

@media (min-width: 640px) {
    .grid-creators {
        grid-template-columns: repeat(3, 1fr);
    }

    .market-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .market-section {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .grid-creators {
        grid-template-columns: repeat(4, 1fr);
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (min-width: 1024px) {
    .grid-creators {
        grid-template-columns: repeat(5, 1fr);
    }

    .market-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}