* {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #F5E6D3 0%, #E6D2B8 100%);
    font-family: 'Noto Sans SC', sans-serif;
    display: flex;
    flex-direction: column;
}

.wood-texture {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(210, 105, 30, 0.1) 0%, transparent 50%),
        linear-gradient(90deg, rgba(139, 69, 19, 0.05) 0%, transparent 50%, rgba(139, 69, 19, 0.05) 100%);
    position: relative;
}

.wood-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wood" x="0" y="0" width="100" height="20" patternUnits="userSpaceOnUse"><rect width="100" height="20" fill="%23D2691E" opacity="0.1"/><path d="M0 10 Q25 5 50 10 T100 10" stroke="%238B4513" stroke-width="0.5" fill="none" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23wood)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.book-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center bottom;
}

.book-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3);
}

.book-card:hover .book-spine {
    transform: rotateY(-5deg);
}

.book-spine {
    transition: transform 0.3s ease;
}

.book-spine img {
    aspect-ratio: auto;
    object-fit: contain;
    width: 100%;
    height: auto;
    max-height: 300px;
}

.shelf-board {
    background: linear-gradient(180deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(139, 69, 19, 0.4);
    position: relative;
}

.shelf-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 2px,
        transparent 20px
    );
}

.search-enhanced {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.book-tooltip {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.book-card:hover .book-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.category-badge {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .book-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}