/* ============================================================================
   COMPONENTS: CARDS
   ============================================================================
   Card-Komponenten (Book-Cards, etc.)
   ============================================================================ */

/* Book Card */
.book-card {
    background: white;
    border-radius: 20px;
    overflow: visible; /* Sichtbar, damit Hover-Effekt nicht abgeschnitten wird */
    box-shadow: none !important; /* Entferne grauen Schatten */
    transition: transform 0.3s ease, border 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 5px solid transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 15px;
    padding-left: 10px;
    padding-right: 10px;
    min-width: 0; /* Wichtig für Grid: erlaubt Shrinking */
}

/* Beschränke Breite der Book-Cards in breiteren Ansichten */
@media (min-width: 1400px) {
    .book-card {
        max-width: 400px;
    }
    .gallery-item {
        max-width: 400px; /* Einheitliche maximale Breite */
    }
}

@media (min-width: 1800px) {
    .book-card {
        max-width: 450px;
    }
    .gallery-item {
        max-width: 400px; /* Einheitliche maximale Breite */
    }
}

.book-card.selected {
    border: 5px solid #ff0000;
}

.book-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: none !important;
    border-color: #FFD700;
}

.book-card:active {
    transform: translateY(-10px) scale(1.02);
}

/* Book Card Creative (Spezial-Variante) */
.book-card-creative {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #667eea 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border: 5px solid #FFD700;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5), 0 0 30px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: visible;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    padding: 15px 10px 20px 10px !important;
}

.book-card-creative::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #FFD700, #FF6B9D, #4ecdc4, #FFD700);
    background-size: 300% 300%;
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 2s ease infinite;
    opacity: 0.7;
}

.book-card-creative:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border-color: #FFD700;
    animation: gradientShift 3s ease infinite;
}

.book-card-creative:active {
    transform: translateY(-10px) scale(1.02);
}

.book-card-creative .book-title {
    color: #ffffff;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.3), 0 0 20px rgba(255, 255, 255, 0.5);
}

.book-card-creative .book-description {
    color: #ffffff;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.book-card-creative .age-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.book-card-creative .play-button {
    background: linear-gradient(135deg, #FFD700 0%, #FF6B9D 100%);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
    animation: buttonPulse 2s ease infinite;
}

.book-card-creative .play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.8);
}

/* Book Cover */
.book-cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    background: white;
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
    margin-top: 0;
}

.book-cover video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 20px 20px 0 0;
}

/* Book Content */
.book-content {
    padding: 16px 16px 22px 16px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Book Title */
.book-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 8px;
    margin-top: 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* Book Description */
.book-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Age Badge */
.age-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Play Button */
.play-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    margin-top: auto;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}



