/**
 * VOVEO Editore - Elementor Widgets Styles
 *
 * @package Voveo_Editore
 * @since 1.1.0
 * @updated 1.3.0 - Comprehensive styling for all widgets
 */

/* ==========================================================================
   COMMON STYLES
   ========================================================================== */

.voveo-elementor-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

/* Grid System */
.voveo-grid--cols-1 { grid-template-columns: repeat(1, 1fr); }
.voveo-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.voveo-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.voveo-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.voveo-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.voveo-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .voveo-grid--cols-4,
    .voveo-grid--cols-5,
    .voveo-grid--cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .voveo-grid--cols-3,
    .voveo-grid--cols-4,
    .voveo-grid--cols-5,
    .voveo-grid--cols-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .voveo-grid--cols-2,
    .voveo-grid--cols-3,
    .voveo-grid--cols-4,
    .voveo-grid--cols-5,
    .voveo-grid--cols-6 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BOOK CARD WIDGET
   ========================================================================== */

.voveo-book-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voveo-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.voveo-book-card--horizontal {
    display: flex;
    flex-direction: row;
}

.voveo-book-card--horizontal .voveo-book-card__cover {
    flex-shrink: 0;
    width: 35%;
    max-width: 180px;
}

.voveo-book-card__cover {
    position: relative;
    overflow: hidden;
}

.voveo-book-card__cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.voveo-book-card:hover .voveo-book-card__cover img {
    transform: scale(1.03);
}

.voveo-book-card__content {
    padding: 20px;
}

.voveo-book-card__title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.voveo-book-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.voveo-book-card__title a:hover {
    color: #2271b1;
}

.voveo-book-card__author {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.voveo-book-card__author a {
    color: inherit;
    text-decoration: none;
}

.voveo-book-card__author a:hover {
    color: #2271b1;
}

.voveo-book-card__excerpt {
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.voveo-book-card__price {
    font-size: 1.3em;
    font-weight: 700;
    color: #1a8917;
}

.voveo-book-card__series {
    display: inline-block;
    background: #f0f0f1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}

.voveo-book-card__buy-button {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.voveo-book-card__buy-button:hover {
    background: #135e96;
    color: #fff;
}

/* ==========================================================================
   BOOK GRID WIDGET
   ========================================================================== */

.voveo-book-grid {
    display: grid;
    gap: 30px;
}

.voveo-book-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.voveo-book-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.voveo-book-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.voveo-book-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .voveo-book-grid--cols-4,
    .voveo-book-grid--cols-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .voveo-book-grid--cols-3,
    .voveo-book-grid--cols-4,
    .voveo-book-grid--cols-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .voveo-book-grid { grid-template-columns: 1fr; }
}

.voveo-book-grid__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.voveo-book-grid__pagination a,
.voveo-book-grid__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.voveo-book-grid__pagination a {
    background: #f0f0f1;
    color: #333;
}

.voveo-book-grid__pagination a:hover {
    background: #2271b1;
    color: #fff;
}

.voveo-book-grid__pagination .current {
    background: #2271b1;
    color: #fff;
}

/* ==========================================================================
   BOOK COVER WIDGET
   ========================================================================== */

.voveo-book-cover {
    display: inline-block;
    position: relative;
}

.voveo-book-cover img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Hover Effects */
.voveo-book-cover--hover-zoom:hover img {
    transform: scale(1.05);
}

.voveo-book-cover--hover-lift:hover {
    transform: translateY(-8px);
}

.voveo-book-cover--hover-shadow:hover img {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.voveo-book-cover--hover-brightness:hover img {
    filter: brightness(1.1);
}

/* 3D Book Effect */
.voveo-book-cover--3d {
    perspective: 1000px;
}

.voveo-book-cover--3d .voveo-book-cover__wrapper {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-5deg);
    transition: transform 0.4s ease;
}

.voveo-book-cover--3d:hover .voveo-book-cover__wrapper {
    transform: rotateY(0deg);
}

.voveo-book-cover--3d .voveo-book-cover__spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, #333 0%, #555 100%);
    transform: rotateY(-90deg) translateX(-10px);
    transform-origin: left center;
}

.voveo-book-cover--3d .voveo-book-cover__pages {
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 15px;
    background: linear-gradient(to right, #f5f5f5 0%, #e0e0e0 100%);
    transform: rotateY(90deg) translateX(7px);
    transform-origin: right center;
}

/* ==========================================================================
   BOOK DETAILS WIDGET
   ========================================================================== */

.voveo-book-details {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.voveo-book-details__title {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.voveo-book-details--grid {
    display: grid;
    gap: 15px;
}

.voveo-book-details__row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.voveo-book-details--grid .voveo-book-details__row {
    flex-direction: column;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.voveo-book-details__row:last-child {
    border-bottom: none;
}

.voveo-book-details__label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voveo-book-details__label i {
    color: #888;
}

.voveo-book-details__value {
    color: #666;
    text-align: right;
}

.voveo-book-details--grid .voveo-book-details__value {
    text-align: left;
    margin-top: 5px;
}

/* ==========================================================================
   BOOK DESCRIPTION WIDGET
   ========================================================================== */

.voveo-book-description {
    line-height: 1.8;
}

.voveo-book-description__title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 15px;
}

.voveo-book-description__content {
    font-size: 1.05em;
    color: #333;
}

.voveo-book-description__content p {
    margin-bottom: 1.2em;
}

.voveo-book-description--drop-cap .voveo-book-description__content p:first-of-type::first-letter {
    float: left;
    font-size: 3.5em;
    font-weight: 700;
    line-height: 0.8;
    margin: 0 10px 0 0;
    padding: 5px;
}

.voveo-book-description__excerpt {
    position: relative;
}

.voveo-book-description__full {
    display: none;
}

.voveo-book-description__read-more {
    display: inline-block;
    background: none;
    border: none;
    color: #2271b1;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    margin-top: 10px;
    font-size: inherit;
    transition: color 0.3s ease;
}

.voveo-book-description__read-more:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ==========================================================================
   STORE BUTTONS WIDGET
   ========================================================================== */

.voveo-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.voveo-store-buttons--layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.voveo-store-buttons--layout-list {
    flex-direction: column;
}

.voveo-store-buttons--layout-list .voveo-store-button {
    width: 100%;
    justify-content: flex-start;
}

.voveo-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.voveo-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Store Colors */
.voveo-store-button--amazon { background: #FF9900; color: #000; }
.voveo-store-button--amazon:hover { background: #E88B00; color: #000; }
.voveo-store-button--ibs { background: #E31C23; color: #fff; }
.voveo-store-button--mondadori { background: #E4002B; color: #fff; }
.voveo-store-button--feltrinelli { background: #C8102E; color: #fff; }
.voveo-store-button--kobo { background: #BF0000; color: #fff; }
.voveo-store-button--apple { background: #000; color: #fff; }
.voveo-store-button--google { background: #4285F4; color: #fff; }
.voveo-store-button--kindle { background: #232F3E; color: #fff; }
.voveo-store-button--hoepli { background: #00529B; color: #fff; }

.voveo-store-button__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.voveo-store-button__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Store Group Headers */
.voveo-store-group-header {
    width: 100%;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 15px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

.voveo-store-group-header:first-child {
    margin-top: 0;
}

/* ==========================================================================
   AUTHOR CARD WIDGET
   ========================================================================== */

.voveo-author-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.voveo-author-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Multi-Author Card Layouts */
.voveo-author-cards-grid {
    display: grid;
    gap: 20px;
}

.voveo-author-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.voveo-author-cards-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.voveo-author-cards-inline .voveo-author-card {
    flex: 1;
    min-width: 200px;
}

.voveo-author-card--horizontal {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 25px;
}

.voveo-author-card--horizontal .voveo-author-card__photo {
    margin: 0;
    flex-shrink: 0;
}

.voveo-author-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #f0f0f1;
}

.voveo-author-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Photo Hover Effects */
.voveo-author-card__photo--hover-zoom:hover img {
    transform: scale(1.1);
}

.voveo-author-card__photo--hover-rotate:hover img {
    transform: rotate(5deg) scale(1.05);
}

.voveo-author-card__photo--hover-grayscale img {
    filter: grayscale(100%);
}

.voveo-author-card__photo--hover-grayscale:hover img {
    filter: grayscale(0%);
}

.voveo-author-card__content {
    flex: 1;
}

.voveo-author-card__name {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 8px;
}

.voveo-author-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.voveo-author-card__name a:hover {
    color: #2271b1;
}

.voveo-author-card__book-count {
    font-size: 0.85em;
    color: #888;
    margin: 0 0 10px;
}

.voveo-author-card__bio {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 15px;
}

.voveo-author-card__social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.voveo-author-card--horizontal .voveo-author-card__social {
    justify-content: flex-start;
}

.voveo-author-card__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.voveo-author-card__social-link:hover {
    background: #2271b1;
    color: #fff;
    transform: translateY(-3px);
}

.voveo-author-card__link {
    display: inline-block;
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.voveo-author-card__link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ==========================================================================
   AUTHOR BIO WIDGET
   ========================================================================== */

.voveo-author-bio {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.voveo-author-bio__title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 15px;
}

.voveo-author-bio__content p {
    margin-bottom: 1.2em;
}

.voveo-author-bio--drop-cap .voveo-author-bio__content p:first-of-type::first-letter {
    float: left;
    font-size: 3.5em;
    font-weight: 700;
    line-height: 0.8;
    margin: 0 10px 0 0;
    padding: 5px;
    color: #2271b1;
}

.voveo-author-bio__read-more {
    display: inline-block;
    background: none;
    border: none;
    color: #2271b1;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    margin-top: 10px;
    font-size: inherit;
}

.voveo-author-bio__read-more:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ==========================================================================
   AUTHOR BOOKS WIDGET
   ========================================================================== */

.voveo-author-books__title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 25px;
}

.voveo-author-books__grid {
    display: grid;
    gap: 25px;
}

.voveo-author-books__item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.voveo-author-books--hover-up .voveo-author-books__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.voveo-author-books--hover-scale .voveo-author-books__item:hover {
    transform: scale(1.02);
}

.voveo-author-books__cover img {
    width: 100%;
    height: auto;
    display: block;
}

.voveo-author-books__content {
    padding: 15px;
}

.voveo-author-books__book-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 8px;
}

.voveo-author-books__book-title a {
    color: inherit;
    text-decoration: none;
}

.voveo-author-books__book-title a:hover {
    color: #2271b1;
}

.voveo-author-books__series {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 8px;
}

.voveo-author-books__price {
    font-weight: 700;
    color: #1a8917;
}

/* ==========================================================================
   AUTHOR SOCIAL WIDGET
   ========================================================================== */

.voveo-author-social-wrapper {
    text-align: center;
}

.voveo-author-social__title {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 15px;
    color: #666;
}

.voveo-author-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.voveo-author-social--vertical {
    flex-direction: column;
    align-items: center;
}

.voveo-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.voveo-social-link--with-label {
    width: auto;
    padding: 8px 16px;
    border-radius: 25px;
    gap: 8px;
}

.voveo-social-link__label {
    font-size: 0.9em;
    font-weight: 500;
}

/* Hover animations */
.voveo-author-social--hover-up .voveo-social-link:hover {
    transform: translateY(-4px);
}

.voveo-author-social--hover-scale .voveo-social-link:hover {
    transform: scale(1.15);
}

.voveo-author-social--hover-rotate .voveo-social-link:hover {
    transform: rotate(15deg);
}

/* Brand colors on hover */
.voveo-author-social--brand-colors .voveo-social-link--facebook:hover { background: #1877f2; color: #fff; }
.voveo-author-social--brand-colors .voveo-social-link--twitter:hover { background: #1da1f2; color: #fff; }
.voveo-author-social--brand-colors .voveo-social-link--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.voveo-author-social--brand-colors .voveo-social-link--linkedin:hover { background: #0077b5; color: #fff; }
.voveo-author-social--brand-colors .voveo-social-link--youtube:hover { background: #ff0000; color: #fff; }
.voveo-author-social--brand-colors .voveo-social-link--tiktok:hover { background: #000; color: #fff; }
.voveo-author-social--brand-colors .voveo-social-link--amazon:hover { background: #FF9900; color: #000; }
.voveo-author-social--brand-colors .voveo-social-link--goodreads:hover { background: #553B08; color: #fff; }
.voveo-author-social--brand-colors .voveo-social-link--website:hover { background: #2271b1; color: #fff; }

/* ==========================================================================
   SERIES CARD WIDGET
   ========================================================================== */

.voveo-series-card {
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Default styles only when Elementor doesn't set custom ones */
.voveo-series-card:not([style*="background"]) {
    background: #fff;
}

.voveo-series-card--horizontal {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 25px;
}

.voveo-series-card--horizontal .voveo-series-card__cover {
    margin: 0;
    flex-shrink: 0;
}

.voveo-series-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.voveo-series-card__badge--ongoing { background: #d4edda; color: #155724; }
.voveo-series-card__badge--completed { background: #cce5ff; color: #004085; }
.voveo-series-card__badge--on_hold { background: #fff3cd; color: #856404; }

.voveo-series-card__cover {
    max-width: 200px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.voveo-series-card__cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Cover Hover Effects */
.voveo-series-card__cover--effect-zoom:hover img {
    transform: scale(1.1);
}

.voveo-series-card__cover--effect-zoom-rotate:hover img {
    transform: scale(1.1) rotate(3deg);
}

.voveo-series-card__cover--effect-grayscale img {
    filter: grayscale(var(--cover-grayscale, 100%));
}

.voveo-series-card__cover--effect-grayscale:hover img {
    filter: grayscale(0%);
}

.voveo-series-card__cover--effect-brightness:hover img {
    filter: brightness(var(--cover-brightness, 1.2));
}

.voveo-series-card__cover--effect-blur img {
    filter: blur(2px);
}

.voveo-series-card__cover--effect-blur:hover img {
    filter: blur(0);
}

.voveo-series-card__cover--effect-sepia img {
    filter: sepia(100%);
}

.voveo-series-card__cover--effect-sepia:hover img {
    filter: sepia(0%);
}

.voveo-series-card__content {
    flex: 1;
}

.voveo-series-card__title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 8px;
}

.voveo-series-card__title a {
    color: inherit;
    text-decoration: none;
}

.voveo-series-card__title a:hover {
    color: #2271b1;
}

.voveo-series-card__subtitle {
    color: #666;
    font-size: 1em;
    margin: 0 0 15px;
}

.voveo-series-card__description {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 15px;
}

.voveo-series-card__stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9em;
    color: #888;
}

.voveo-series-card--horizontal .voveo-series-card__stats {
    justify-content: flex-start;
}

.voveo-series-card__stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   SERIES BOOKS WIDGET
   ========================================================================== */

.voveo-series-books__title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 25px;
}

.voveo-series-books__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.voveo-series-books__grid {
    display: grid;
    gap: 20px;
}

.voveo-series-book-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.voveo-series-book-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.voveo-series-book-item__number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
}

.voveo-series-book-item__cover {
    flex-shrink: 0;
    width: 60px;
}

.voveo-series-book-item__cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.voveo-series-book-item__content {
    flex: 1;
}

.voveo-series-book-item__title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 5px;
}

.voveo-series-book-item__title a {
    color: inherit;
    text-decoration: none;
}

.voveo-series-book-item__title a:hover {
    color: #2271b1;
}

.voveo-series-book-item__author {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.voveo-series-book-item__date {
    color: #888;
    font-size: 0.85em;
    margin: 5px 0 0;
}

.voveo-series-book-item__subtitle {
    color: #555;
    font-size: 0.9em;
    font-style: italic;
    margin: 0 0 5px;
}

.voveo-series-book-item__author a {
    color: inherit;
    text-decoration: none;
}

.voveo-series-book-item__author a:hover {
    color: #2271b1;
    text-decoration: underline;
}

.voveo-series-book-item__price {
    color: #28a745;
    font-weight: 600;
    font-size: 1em;
    margin: 8px 0 0;
}

.voveo-series-book-item__excerpt {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 8px 0 0;
}

.voveo-series-book-item__button {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.voveo-series-book-item__button:hover {
    background: #135e96;
    color: #fff;
}

/* Timeline Layout */
.voveo-series-books--timeline {
    position: relative;
    padding-left: 30px;
}

.voveo-series-books--timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
}

.voveo-series-book-item--timeline {
    position: relative;
}

.voveo-series-book-item--timeline::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #2271b1;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px #e5e5e5;
}

/* ==========================================================================
   SERIES INFO WIDGET
   ========================================================================== */

.voveo-series-info {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

/* Logo Positions */
.voveo-series-info--logo-left {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.voveo-series-info--logo-right {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 25px;
}

.voveo-series-info--logo-top {
    display: flex;
    flex-direction: column;
}

.voveo-series-info__logo {
    flex-shrink: 0;
}

.voveo-series-info--logo-top .voveo-series-info__logo {
    text-align: center;
    margin-bottom: 20px;
}

.voveo-series-info__logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.voveo-series-info__main {
    flex: 1;
}

.voveo-series-info__title {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.voveo-series-info__content {
    display: flex;
    flex-direction: column;
}

.voveo-series-info--grid .voveo-series-info__content {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 2), 1fr);
    gap: 15px;
}

.voveo-series-info--inline .voveo-series-info__content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.voveo-series-info__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.voveo-series-info--table .voveo-series-info__row:last-child {
    border-bottom: none;
}

.voveo-series-info--grid .voveo-series-info__row {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.voveo-series-info--inline .voveo-series-info__row {
    border: none;
    padding: 0;
}

.voveo-series-info__icon {
    color: #888;
    flex-shrink: 0;
}

.voveo-series-info__label {
    font-weight: 600;
    color: #333;
}

.voveo-series-info--table .voveo-series-info__label {
    flex: 1;
}

.voveo-series-info__value {
    color: #666;
}

.voveo-series-info--table .voveo-series-info__value {
    text-align: right;
}

/* ==========================================================================
   CONTRIBUTORS WIDGET
   ========================================================================== */

.voveo-contributors__title {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 20px;
}

.voveo-contributors__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voveo-contributors--inline .voveo-contributors__list {
    flex-direction: row;
    flex-wrap: wrap;
}

.voveo-contributors--grid .voveo-contributors__list {
    display: grid;
}

.voveo-contributor-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.voveo-contributor-item:hover {
    background: #f0f0f1;
}

.voveo-contributor-item--role-below {
    flex-direction: column;
    align-items: flex-start;
}

.voveo-contributor-item__name {
    font-weight: 600;
}

.voveo-contributor-item__separator {
    color: #ccc;
}

.voveo-contributor-item__role {
    color: #666;
    font-size: 0.9em;
}

.voveo-contributor-item__role--below {
    margin-top: 3px;
}

/* ==========================================================================
   NO RESULTS / EMPTY STATES
   ========================================================================== */

.voveo-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.voveo-no-results__icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.3;
}

.voveo-no-results__message {
    font-size: 1.1em;
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */

.voveo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.voveo-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f1;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: voveo-spin 1s linear infinite;
}

@keyframes voveo-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   AUTHOR NAME WIDGET
   ========================================================================== */

.voveo-author-name {
    display: inline-block;
    width: 100%;
}

.voveo-author-name__prefix {
    color: #666;
}

.voveo-author-name__text {
    display: inline;
    margin: 0;
}

.voveo-author-name__text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.voveo-author-name__text a:hover {
    color: #2271b1;
}

/* ==========================================================================
   BOOK BACK COVER WIDGET
   ========================================================================== */

.voveo-book-back-cover {
    display: inline-block;
    width: 100%;
}

.voveo-book-back-cover img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.voveo-book-back-cover--hover-zoom img:hover {
    transform: scale(1.05);
}

.voveo-book-back-cover--hover-lift img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.voveo-book-back-cover--hover-brightness img:hover {
    filter: brightness(1.1);
}

/* ==========================================================================
   BOOK DOWNLOADS WIDGET
   ========================================================================== */

.voveo-book-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.voveo-book-downloads--vertical {
    flex-direction: column;
    align-items: flex-start;
}

.voveo-book-downloads--horizontal {
    flex-direction: row;
    align-items: center;
}

.voveo-book-downloads__button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.voveo-book-downloads__button:hover {
    background: #135e96;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.voveo-book-downloads__icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.voveo-book-downloads__text {
    flex: 1;
}

/* ==========================================================================
   BOOK FLIPBOOK WIDGET
   ========================================================================== */

.voveo-book-flipbook {
    width: 100%;
    overflow: hidden;
}

.voveo-book-flipbook--no-pdf {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.voveo-book-flipbook__fallback {
    color: #666;
    margin-bottom: 20px;
}

.voveo-book-flipbook__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.voveo-book-flipbook__download:hover {
    background: #135e96;
    color: #fff;
}

/* ==========================================================================
   BOOK AUTHORS WIDGET - Multi-Author Display
   ========================================================================== */

.voveo-book-authors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Names Only Mode */
.voveo-book-authors--names-only {
    justify-content: flex-start;
}

.voveo-book-authors__name {
    margin: 0;
}

.voveo-book-authors__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.voveo-book-authors__name a:hover {
    color: #2271b1;
}

.voveo-book-authors__role {
    font-size: 0.85em;
    color: #666;
    font-weight: 400;
}

/* Avatar Base Styles */
.voveo-book-authors__avatar {
    overflow: hidden;
    flex-shrink: 0;
}

.voveo-book-authors__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Shape Variants */
.voveo-book-authors--shape-circle .voveo-book-authors__avatar {
    border-radius: 50%;
}

.voveo-book-authors--shape-square .voveo-book-authors__avatar {
    border-radius: 0;
}

.voveo-book-authors--shape-rounded .voveo-book-authors__avatar {
    border-radius: 12px;
}

/* Hover Effects */
.voveo-book-authors--hover-zoom .voveo-book-authors__avatar:hover img {
    transform: scale(1.1);
}

.voveo-book-authors--hover-lift .voveo-book-authors__item:hover {
    transform: translateY(-5px);
}

.voveo-book-authors--hover-glow .voveo-book-authors__avatar:hover {
    box-shadow: 0 0 20px rgba(34, 113, 177, 0.4);
}

/* Inline Layout */
.voveo-book-authors--inline {
    flex-wrap: wrap;
}

.voveo-book-authors--inline .voveo-book-authors__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.voveo-book-authors--inline .voveo-book-authors__info {
    margin-top: 8px;
}

/* Cards Layout */
.voveo-book-authors--cards {
    flex-wrap: wrap;
}

.voveo-book-authors__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

.voveo-book-authors__card .voveo-book-authors__info {
    margin-top: 10px;
}

/* Stacked (Overlapping) Layout */
.voveo-book-authors--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.voveo-book-authors__avatars-stack {
    display: flex;
    align-items: center;
}

.voveo-book-authors--stacked .voveo-book-authors__item {
    position: relative;
}

.voveo-book-authors--stacked .voveo-book-authors__avatar {
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.voveo-book-authors__names-list {
    margin-top: 5px;
}

/* Split Photo Layout - Creative half-face effect */
.voveo-book-authors--split-photo {
    flex-direction: column;
    align-items: center;
}

.voveo-book-authors__photo-split {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 50%;
}

.voveo-book-authors__split-left,
.voveo-book-authors__split-right {
    width: 50%;
    overflow: hidden;
}

.voveo-book-authors__split-left {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.voveo-book-authors__split-left img {
    object-fit: cover;
    width: 200%;
    height: 100%;
    object-position: left center;
}

.voveo-book-authors__split-right {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.voveo-book-authors__split-right img {
    object-fit: cover;
    width: 200%;
    height: 100%;
    object-position: right center;
    margin-left: -100%;
}

.voveo-book-authors--split-photo .voveo-book-authors__names-list {
    margin-top: 15px;
    text-align: center;
}

/* Diagonal Split variant */
.voveo-book-authors__photo-split--diagonal {
    clip-path: none;
}

.voveo-book-authors__photo-split--diagonal .voveo-book-authors__split-left {
    clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
}

.voveo-book-authors__photo-split--diagonal .voveo-book-authors__split-right {
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
    margin-left: -20%;
}

/* Collage Layout */
.voveo-book-authors--collage {
    flex-direction: column;
    align-items: center;
}

.voveo-book-authors__collage {
    display: grid;
    border-radius: 50%;
    overflow: hidden;
}

/* 2 Authors - Vertical Split */
.voveo-book-authors__collage--2 {
    grid-template-columns: 1fr 1fr;
}

/* 3 Authors - One top, two bottom */
.voveo-book-authors__collage--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.voveo-book-authors__collage--3 .voveo-book-authors__collage-item:first-child {
    grid-column: span 2;
}

/* 4 Authors - 2x2 Grid */
.voveo-book-authors__collage--4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.voveo-book-authors__collage-item {
    overflow: hidden;
}

.voveo-book-authors__collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.voveo-book-authors__collage-item:hover img {
    transform: scale(1.1);
}

.voveo-book-authors--collage .voveo-book-authors__names-list {
    margin-top: 15px;
    text-align: center;
}

/* Animation for stacked hover */
.voveo-book-authors--stacked .voveo-book-authors__item:hover {
    z-index: 20 !important;
    transform: scale(1.15);
}

.voveo-book-authors--stacked .voveo-book-authors__item {
    transition: transform 0.3s ease, z-index 0s;
}

/* Responsive */
@media (max-width: 768px) {
    .voveo-book-authors--cards,
    .voveo-book-authors--inline {
        justify-content: center;
    }
    
    .voveo-book-authors__photo-split {
        width: 100px !important;
        height: 100px !important;
    }
}
