﻿/* ============================================
   Litethemmabibliotek — Recensionssida Vine
   Scrollande vinranka + recensionskort
   ============================================ */

.vine-reviews-wrapper {
    display: flex;
    gap: 0;
    position: relative;
    max-width: 780px;
    margin: 2rem auto;
}

.vine-column {
    width: 60px;
    flex-shrink: 0;
    position: relative;
}

.vine-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    overflow: visible;
}

.vine-cards-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem 0;
}

/* ── KORT ── */
.vine-card {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.vine-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.vine-card-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1.25rem;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border-left: 3px solid transparent;
}

.vine-card-link:hover {
    box-shadow: 0 5px 20px rgba(45,107,45,0.12);
    transform: translateY(-2px);
    border-left-color: #2d6b2d;
}

/* ── OMSLAG ── */
.vine-card-cover {
    flex-shrink: 0 !important;
    width: 100px !important;
}

.vine-card-cover img {
    display: block !important;
    width: 100px !important;
    height: 145px !important;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
}

/* ── INFO ── */
.vine-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    flex: 1;
    padding-top: 0.1rem;
}

.vine-card-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 0.1rem !important;
    line-height: 1.3;
}

.vine-card-author {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: #aaa;
    margin: 0 !important;
    letter-spacing: 0.01em;
}

/* Metadata-rad: stjärnor + genre bredvid varandra */
.vine-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0.15rem 0;
}

.vine-card-stars { font-size: 0.9rem; line-height: 1; letter-spacing: 1px; }
.vine-card-stars .stars-filled { color: #c4876a; }
.vine-card-stars .stars-empty  { color: #e0d8d4; }

.vine-card-genre {
    display: inline-block;
    background: #f0f5f0;
    color: #2d6b2d;
    border: 1px solid #c8dcc8;
    font-size: 0.65rem;
    font-family: 'Lato', sans-serif;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Separator */
.vine-card-divider {
    border: none;
    border-top: 1px solid #f0ede8;
    margin: 0.25rem 0;
}

.vine-card-level {
    display: inline-block;
    background: #f5f0eb;
    color: #c4876a;
    border: 1px solid #e8d5c8;
    font-size: 0.62rem;
    font-family: 'Lato', sans-serif;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.vine-card-isbn {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    color: #d8d4d0;
    margin: 0.1rem 0 0 !important;
    letter-spacing: 0.03em;
}

.vine-card-excerpt {
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.65;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── MOBIL ── */
@media (max-width: 640px) {
    .vine-column { display: none; }
    .vine-card-link { max-width: 100%; }
    .vine-card-cover { width: 80px !important; }
    .vine-card-cover img { width: 80px !important; height: 116px !important; }
}