/**
 * Testimonial Grid Widget Styles
 */

/* ===================
   CONTAINER
   =================== */
.hmea-testimonial-grid {
    width: 100%;
}

/* Grid Layout */
.hmea-testimonial-grid.layout-grid {
    display: grid;
    gap: 24px;
}

/* Masonry Layout */
.hmea-testimonial-grid.layout-masonry {
    column-gap: 24px;
}

.hmea-testimonial-grid.layout-masonry .hmea-tg-card {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 24px;
}

/* List Layout */
.hmea-testimonial-grid.layout-list {
    display: flex;
    flex-direction: column;
}

.hmea-testimonial-grid.layout-list .hmea-tg-card {
    max-width: 700px;
    margin: 0 auto 24px;
    width: 100%;
}

/* ===================
   CARD
   =================== */
.hmea-tg-card {
    background-color: #1e293b;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hmea-tg-card:hover {
    transform: translateY(-4px);
}

/* ===================
   RATING
   =================== */
.hmea-tg-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.hmea-tg-rating i {
    color: #fbbf24;
    font-size: 14px;
}

.hmea-tg-rating i.empty {
    color: #475569;
}

/* ===================
   CONTENT TEXT
   =================== */
.hmea-tg-content {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===================
   AUTHOR SECTION
   =================== */
.hmea-tg-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar */
.hmea-tg-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.hmea-tg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.hmea-tg-info {
    display: flex;
    flex-direction: column;
}

/* Name */
.hmea-tg-name {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

/* Username */
.hmea-tg-username {
    color: #ef4444;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hmea-tg-username:hover {
    color: #dc2626;
}

/* ===================
   LOAD MORE BUTTON
   =================== */
.hmea-tg-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.hmea-tg-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: #10b981;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hmea-tg-load-more:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.hmea-tg-load-more:active {
    transform: translateY(0);
}

.hmea-tg-load-more.loading {
    pointer-events: none;
    opacity: 0.7;
}

.hmea-tg-load-more.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: hmea-tg-spin 0.8s linear infinite;
}

/* Infinite Scroll Loader */
.hmea-tg-infinite-loader {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.hmea-tg-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: hmea-tg-spin 0.8s linear infinite;
}

@keyframes hmea-tg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================
   RESPONSIVE
   =================== */
@media (max-width: 767px) {
    .hmea-tg-card {
        padding: 20px;
    }

    .hmea-tg-content {
        font-size: 15px;
    }

    .hmea-tg-avatar {
        width: 40px;
        height: 40px;
    }

    .hmea-tg-name {
        font-size: 15px;
    }

    .hmea-tg-username {
        font-size: 13px;
    }
}