/* Bücher-Sektion Styling für Lernkit */

.books-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 8px;
}

.books-section h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.book-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.book-card .card-img-top {
    height: 300px;
    object-fit: cover;
    background: #fff;
    padding: 1rem;
}

.book-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    min-height: 2.5rem;
}

.book-card .card-text {
    font-size: 0.9rem;
    color: #666;
}

.book-card .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.book-card .btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.book-card .btn-primary {
    background: #3498db;
    border-color: #3498db;
}

.book-card .btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: scale(1.02);
}

.book-card .btn-warning {
    background: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.book-card .btn-warning:hover {
    background: #e67e22;
    border-color: #e67e22;
    transform: scale(1.02);
}

.book-card .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.book-card .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.book-card .card-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .books-section {
        padding: 2rem 1rem;
    }

    .book-card .card-img-top {
        height: 250px;
    }
}

/* Widget Titel */
.books-widget-title {
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

/* Slider Layout */
.books-slider-container {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
}

.books-slider-track {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.books-slider-item {
    flex: 0 0 280px;
    min-width: 280px;
}

.books-slider-container::-webkit-scrollbar {
    height: 8px;
}

.books-slider-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.books-slider-container::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.books-slider-container::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Sidebar Layout */
.books-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.books-sidebar .books-widget-title {
    text-align: left;
    font-size: 1.1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.book-sidebar-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.book-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.book-sidebar-item h6 {
    font-size: 0.9rem;
    line-height: 1.3;
}

.book-sidebar-item img {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Inline Layout */
.books-inline {
    border-left: 4px solid #3498db;
}

.book-inline-item {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.book-inline-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.book-inline-item a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Grid mit verschiedenen Spalten */
.books-grid.cols-2 .col-md-6 { }
.books-grid.cols-3 .col-md-4 { }
.books-grid.cols-4 .col-md-3 { }

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .books-section {
        background: #1a1a1a;
    }

    .books-section h3,
    .books-widget-title {
        color: #f8f9fa;
    }

    .book-card {
        background: #2c2c2c;
        color: #f8f9fa;
    }

    .book-card .card-title {
        color: #f8f9fa;
    }

    .book-card .card-text {
        color: #ccc;
    }

    .book-card .card-footer {
        background: #2c2c2c;
        border-top-color: #444;
    }

    .books-sidebar {
        background: #2c2c2c;
        color: #f8f9fa;
    }

    .books-inline {
        background: #2c2c2c !important;
        color: #f8f9fa;
    }

    .book-inline-item a {
        color: #f8f9fa;
    }

    .book-inline-item a:hover {
        color: #3498db;
    }
}
