/* ====== VOUCH CARD STYLING ====== */
#vouchesContainer {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    display: block;
}

.vouch {
    backdrop-filter: blur(6px);
    background: rgba(36, 44, 55, 0.82);
    padding: 16px;
    border-radius: 16px;
    color: #f4f4f8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-wrap: break-word;
    word-break: break-word;
    width: 300px;
    min-height: 180px;     /* small base */
    max-height: none;      /* grow freely */
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.vouch:hover {
    transform: translateY(-4px);
}

.vouch-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    text-align: center;
    flex-shrink: 0;
}

.vouch-header .user-pfp {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #26a69a;
}

.vouch-header .username {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.vouch-header .user-id {
    font-size: 12px;
    color: #aaaaaa;
}

.vouch .rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
    flex-shrink: 0;
}

.vouch .rating .star {
    color: #ff40af;
    font-size: 18px;
}

.vouch .message {
    font-size: 13px;
    line-height: 1.3;
    color: #ffffff;
    font-style: italic;
    text-align: center;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    padding: 0 4px;
}
.vouch .timestamp {
    font-size: 12px;
    color: #b0b7be;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

.proof-button {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: #26a69a;
    text-decoration: underline;
    transition: color 0.2s ease;
    text-align: center;
    flex-shrink: 0;
}

.proof-button:hover {
    color: #1d8d80;
}

[data-layout="carousel"] {
    display: block !important;
    position: relative;
    overflow: hidden;
    padding: 20px 50px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden
}

.vouch-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
    align-items: stretch;
    min-width: max-content;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    color: white;
    border: none;
    font-size: 20px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

.vouch-track::-webkit-scrollbar {
    display: none;
}

.loading-message {
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    padding: 40px;
}

.error-message {
    text-align: center;
    color: #ff6b6b;
    font-size: 16px;
    padding: 40px;
}

.debug-info {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    max-width: 300px;
    display: none;
}

.debug-info.show {
    display: block;
}

.carousel-progress {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    width: 200px;
    border-radius: 2px;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: #26a69a;
    transition: width 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .vouch {
        width: 280px;
        min-height: 300px;
    }

    [data-layout="carousel"] {
        padding: 20px 40px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-arrow.left {
        left: 5px;
    }

    .carousel-arrow.right {
        right: 5px;
    }
}
