/**
 * Testimonials Widget Styles - Modern Clean Style
 *
 * @package MjMember
 */

/* Container */
.mj-testimonials {
    --feed-bg: #f8fafc;
    --feed-card-bg: #ffffff;
    --feed-card-border: #e2e8f0;
    --feed-card-radius: 16px;
    --feed-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --feed-accent: #0ea5e9;
    --feed-accent-light: #e0f2fe;
    --feed-text: #0f172a;
    --feed-text-secondary: #64748b;
    --feed-separator: #f1f5f9;
    --feed-hover: #f8fafc;
    --feed-avatar-bg: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);

    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 640px;
    margin: 0 auto;
}

.mj-testimonials__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--testimonials-text);
    margin: 0 0 0.5rem;
}

.mj-testimonials__intro {
    color: var(--testimonials-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mj-testimonials__intro p:last-child {
    margin-bottom: 0;
}

/* Preview Notice */
.mj-testimonials__preview-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.mj-testimonials__preview-notice p {
    margin: 0;
    font-size: 0.875rem;
    color: #92400e;
}

/* Form Section */
.mj-testimonials__form-section {
    background: var(--testimonials-card-bg);
    border: 1px solid var(--testimonials-card-border);
    border-radius: var(--testimonials-card-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.mj-testimonials__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mj-testimonials__textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--testimonials-card-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mj-testimonials__textarea:focus {
    outline: none;
    border-color: var(--testimonials-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.mj-testimonials__textarea::placeholder {
    color: var(--testimonials-text-muted);
}

/* Media Section */
.mj-testimonials__media-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mj-testimonials__media-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Photos Grid */
.mj-testimonials__photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.mj-testimonials__photos-grid:empty {
    display: none;
}

.mj-testimonials__photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.mj-testimonials__photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mj-testimonials__photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s;
}

.mj-testimonials__photo-item:hover .mj-testimonials__photo-remove {
    opacity: 1;
}

.mj-testimonials__photo-item.is-uploading {
    opacity: 0.6;
}

.mj-testimonials__photo-item.is-uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
}

/* Video Preview / Recording */
.mj-testimonials__video-preview,
.mj-testimonials__video-result,
.mj-testimonials__camera-preview {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.mj-testimonials__video-element,
.mj-testimonials__video-playback,
.mj-testimonials__camera-element {
    width: 100%;
    max-height: 300px;
    display: block;
}

.mj-testimonials__video-controls,
.mj-testimonials__video-result-actions,
.mj-testimonials__camera-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.mj-testimonials__video-record-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.mj-testimonials__video-record.is-recording .mj-testimonials__video-record-dot {
    animation: pulse-recording 1s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Form Footer */
.mj-testimonials__form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mj-testimonials__form-status {
    font-size: 0.875rem;
    flex: 1;
}

.mj-testimonials__form-status.is-success {
    color: #16a34a;
}

.mj-testimonials__form-status.is-error {
    color: #dc2626;
}

/* Login Prompt */
.mj-testimonials__login-prompt {
    text-align: center;
    padding: 2rem;
}

.mj-testimonials__login-prompt p {
    margin: 0 0 1rem;
    color: var(--testimonials-text-muted);
}

/* Testimonials List */
.mj-testimonials__list {
    display: grid;
    gap: var(--testimonials-gap);
}

.mj-testimonials__list--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mj-testimonials__list--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .mj-testimonials__list--cols-2,
    .mj-testimonials__list--cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mj-testimonials__list--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mj-testimonials__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--testimonials-text-muted);
    padding: 3rem 1rem;
    background: #f8fafc;
    border-radius: var(--testimonials-card-radius);
}

/* Testimonial Card */
.mj-testimonial-card {
    background: var(--testimonials-card-bg);
    border: 1px solid var(--testimonials-card-border);
    border-radius: var(--testimonials-card-radius);
    overflow: hidden;
    box-shadow: var(--testimonials-card-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.mj-testimonial-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Card Photos */
.mj-testimonial-card__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #f1f5f9;
}

.mj-testimonial-card__photo {
    aspect-ratio: 1;
    overflow: hidden;
    display: block;
}

.mj-testimonial-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mj-testimonial-card__photo:hover img {
    transform: scale(1.05);
}

.mj-testimonial-card__photos-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: 600;
    aspect-ratio: 1;
}

/* Card Video */
.mj-testimonial-card__video {
    aspect-ratio: 16/9;
    background: #000;
}

.mj-testimonial-card__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content */
.mj-testimonial-card__content {
    padding: 1.25rem;
}

.mj-testimonial-card__content blockquote {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--testimonials-text);
    position: relative;
}

.mj-testimonial-card__content blockquote::before {
    content: '"';
    font-size: 3rem;
    font-family: Georgia, serif;
    color: var(--testimonials-accent);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    line-height: 1;
}

.mj-testimonial-card__content p {
    margin: 0;
}

.mj-testimonial-card__content p + p {
    margin-top: 0.75rem;
}

/* Card Footer */
.mj-testimonial-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--testimonials-card-border);
    background: #fafbfc;
}

.mj-testimonial-card__author-name {
    font-weight: 600;
    color: var(--testimonials-text);
    font-size: 0.9375rem;
}

.mj-testimonial-card__date {
    font-size: 0.8125rem;
    color: var(--testimonials-text-muted);
}

/* Load More */
.mj-testimonials__load-more {
    margin-top: 1.5rem;
    text-align: center;
}

.mj-testimonials__load-more-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Layout: List */
.mj-testimonials--layout-list .mj-testimonials__list {
    display: flex;
    flex-direction: column;
}

.mj-testimonials--layout-list .mj-testimonial-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
}

.mj-testimonials--layout-list .mj-testimonial-card__photos,
.mj-testimonials--layout-list .mj-testimonial-card__video {
    width: 200px;
    flex-shrink: 0;
}

.mj-testimonials--layout-list .mj-testimonial-card__content {
    display: flex;
    align-items: center;
}

.mj-testimonials--layout-list .mj-testimonial-card__footer {
    border-top: none;
    border-left: 1px solid var(--testimonials-card-border);
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 120px;
}

@media (max-width: 768px) {
    .mj-testimonials--layout-list .mj-testimonial-card {
        display: flex;
        flex-direction: column;
    }

    .mj-testimonials--layout-list .mj-testimonial-card__photos,
    .mj-testimonials--layout-list .mj-testimonial-card__video {
        width: 100%;
    }

    .mj-testimonials--layout-list .mj-testimonial-card__footer {
        border-left: none;
        border-top: 1px solid var(--testimonials-card-border);
        flex-direction: row;
    }
}

/* Layout: Carousel */
.mj-testimonials--layout-carousel .mj-testimonials__list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--testimonials-gap);
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.mj-testimonials--layout-carousel .mj-testimonial-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

@media (min-width: 769px) {
    .mj-testimonials--layout-carousel .mj-testimonial-card {
        flex: 0 0 350px;
    }
}

/* Common Button Styles - only if not using mj-btn */
.mj-testimonials .mj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1.4;
}

.mj-testimonials .mj-btn--primary {
    background: var(--testimonials-accent);
    color: #fff;
}

.mj-testimonials .mj-btn--primary:hover {
    background: #4f46e5;
}

.mj-testimonials .mj-btn--secondary {
    background: #f1f5f9;
    color: var(--testimonials-text);
    border: 1px solid var(--testimonials-card-border);
}

.mj-testimonials .mj-btn--secondary:hover {
    background: #e2e8f0;
}

.mj-testimonials .mj-btn--danger {
    background: #ef4444;
    color: #fff;
}

.mj-testimonials .mj-btn--danger:hover {
    background: #dc2626;
}

.mj-testimonials .mj-btn--ghost {
    background: transparent;
    color: var(--feed-text-secondary);
}

.mj-testimonials .mj-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mj-testimonials .mj-btn:disabled,
.mj-testimonials .mj-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* =====================================================
   MODERN TESTIMONIALS FEED STYLE
   ===================================================== */

/* Feed Container */
.mj-testimonials__feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Feed Post Wrapper */
.mj-feed-post-wrapper {
    display: block;
}

/* Feed Post Card */
.mj-feed-post {
    background: var(--feed-card-bg);
    border-radius: var(--feed-card-radius);
    box-shadow: var(--feed-card-shadow);
    border: 1px solid var(--feed-card-border);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.mj-feed-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Post Header */
.mj-feed-post__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}

.mj-feed-post__avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.mj-feed-post__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mj-feed-post__avatar-initial {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.mj-feed-post__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mj-feed-post__author {
    font-weight: 600;
    color: var(--feed-text);
    font-size: 15px;
    line-height: 1.2;
}

.mj-feed-post__author:hover {
    text-decoration: underline;
    cursor: pointer;
}

.mj-feed-post__date {
    font-size: 13px;
    color: var(--feed-text-secondary);
}

/* Post Content */
.mj-feed-post__content {
    padding: 0 20px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--feed-text);
}

.mj-feed-post__content p {
    margin: 0;
}

.mj-feed-post__content p + p {
    margin-top: 8px;
}

/* Post Media */
.mj-feed-post__media {
    position: relative;
    background: #1c1e21;
    max-height: 500px;
    overflow: hidden;
}

.mj-feed-post__media--video video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Photo Grid Layouts */
.mj-feed-post__media--photos-1 {
    display: block;
    max-height: 500px;
}

.mj-feed-post__media--photos-1 .mj-feed-post__photo {
    max-height: 500px;
}

.mj-feed-post__media--photos-1 .mj-feed-post__photo img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
}

.mj-feed-post__media--photos-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    gap: 2px;
    height: 250px;
    max-height: 250px;
    width: 100%;
}

.mj-feed-post__media--photos-2 .mj-feed-post__photo {
    aspect-ratio: auto;
    height: 100%;
    max-height: 250px;
}

.mj-feed-post__media--photos-2 .mj-feed-post__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mj-feed-post__media--photos-3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    max-height: 300px;
    width: 100%;
}

.mj-feed-post__media--photos-3 .mj-feed-post__photo:first-child {
    grid-row: span 2;
}

.mj-feed-post__media--photos-4,
.mj-feed-post__media--photos-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    max-height: 300px;
    width: 100%;
}

.mj-feed-post__photo {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    max-height: 200px;
    width: 100%;
}

.mj-feed-post__media--photos-1 .mj-feed-post__photo {
    aspect-ratio: auto;
    max-height: 500px;
}

.mj-feed-post__media--photos-3 .mj-feed-post__photo:first-child {
    aspect-ratio: auto;
    max-height: 400px;
}

.mj-feed-post__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mj-feed-post__media--photos-1 .mj-feed-post__photo img {
    object-fit: contain;
    background: #000;
}

.mj-feed-post__photo:hover img {
    transform: scale(1.02);
}

.mj-feed-post__photo-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
}

/* Link Preview */
.mj-feed-post__link-preview,
.mj-testimonials__link-preview-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--feed-separator);
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 16px;
    background: var(--feed-card-bg);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.mj-feed-post__link-preview:hover,
.mj-testimonials__link-preview-card:hover {
    background: var(--feed-hover);
    border-color: var(--feed-accent);
}

.mj-feed-post__link-preview-image,
.mj-testimonials__link-preview-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--feed-separator);
}

.mj-feed-post__link-preview-content,
.mj-testimonials__link-preview-content {
    padding: 12px;
}

.mj-feed-post__link-preview-site,
.mj-testimonials__link-preview-site {
    font-size: 12px;
    color: var(--feed-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mj-feed-post__link-preview-title,
.mj-testimonials__link-preview-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--feed-text);
}

.mj-feed-post__link-preview-desc,
.mj-testimonials__link-preview-desc {
    font-size: 13px;
    color: var(--feed-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* YouTube Embed in Feed */
.mj-feed-post__youtube-embed-container {
    position: relative;
    width: calc(100% - 32px);
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #000;
    margin: 12px 16px;
    overflow: hidden;
}

.mj-feed-post__youtube-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Link Preview in Form */
.mj-testimonials__link-preview {
    margin-top: 12px;
}

.mj-testimonials__link-preview-card {
    position: relative;
    margin: 0;
}

.mj-testimonials__link-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mj-testimonials__link-preview-remove:hover {
    background: rgba(0, 0, 0, 0.8);
}

.mj-testimonials__link-preview-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--feed-secondary);
    font-size: 13px;
}

/* YouTube Embed in Form */
.mj-testimonials__youtube-embed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #000;
    margin-top: 12px;
    overflow: hidden;
}

.mj-testimonials__youtube-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.mj-testimonials__youtube-embed-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    transition: background 0.2s;
}

.mj-testimonials__youtube-embed-remove:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Testimonial Card Link Preview (for load more) */
.mj-testimonial-card__link-preview {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--feed-separator);
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0;
    background: var(--feed-card-bg);
    text-decoration: none;
    color: inherit;
}

.mj-testimonial-card__link-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.mj-testimonial-card__link-content {
    padding: 10px 12px;
}

.mj-testimonial-card__link-site {
    font-size: 11px;
    color: var(--feed-secondary);
    text-transform: uppercase;
}

.mj-testimonial-card__link-title {
    font-weight: 600;
    font-size: 14px;
    margin-top: 2px;
}

.mj-testimonial-card__link-desc {
    font-size: 12px;
    color: var(--feed-secondary);
    margin-top: 4px;
}

/* Reactions Summary Bar */
.mj-feed-post__reactions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--feed-separator);
}

.mj-feed-post__reactions-summary {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mj-feed-post__reactions-emojis {
    display: flex;
}

.mj-feed-post__reaction-emoji {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mj-feed-post__reaction-emoji:first-child {
    margin-left: 0;
}

.mj-feed-post__reactions-count {
    font-size: 15px;
    color: var(--feed-text-secondary);
    cursor: pointer;
}

.mj-feed-post__reactions-count:hover {
    text-decoration: underline;
}

.mj-feed-post__comments-count {
    background: none;
    border: none;
    font-size: 15px;
    color: var(--feed-text-secondary);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.mj-feed-post__comments-count:hover {
    text-decoration: underline;
}

/* Action Buttons */
.mj-feed-post__actions {
    display: flex;
    padding: 8px 20px 12px;
    gap: 8px;
}

.mj-feed-post__action {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--feed-separator);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--feed-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
}

.mj-feed-post__action:hover {
    background: var(--feed-accent-light);
    color: var(--feed-accent);
}

.mj-feed-post__action.is-active {
    background: var(--feed-accent-light);
    color: var(--feed-accent);
}

.mj-feed-post__action.is-active .mj-feed-post__action-icon svg {
    fill: var(--feed-accent);
    stroke: var(--feed-accent);
}

.mj-feed-post__action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mj-feed-post__reaction-active {
    font-size: 20px;
}

/* Reaction Picker */
.mj-feed-post__reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: scale(0.9);
    display: flex;
    gap: 2px;
    width: 250px;
    justify-content: space-around;
    background: #fff;
    border-radius: 28px;
    padding: 8px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    margin-bottom: 8px;
}

.mj-feed-post__action--like:hover .mj-feed-post__reaction-picker,
.mj-feed-post__reaction-picker:hover {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mj-feed-post__reaction-option {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 50%;
}

.mj-feed-post__reaction-option:hover {
    transform: scale(1.3) translateY(-4px);
    background: var(--feed-hover);
}

.mj-feed-post__reaction-option-emoji {
    font-size: 32px;
    display: block;
}

/* Comments Section - inside the post card */
.mj-feed-post__comments {
    padding: 12px 20px 20px;
    background: var(--feed-separator);
    border-top: none;
}

.mj-feed-post__comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

/* Individual Comment */
.mj-feed-comment {
    display: flex;
    gap: 8px;
}

.mj-feed-comment__avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--feed-avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mj-feed-comment__avatar-initial {
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

.mj-feed-comment__body {
    flex: 1;
    min-width: 0;
}

.mj-feed-comment__bubble {
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    display: inline-block;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mj-feed-comment__author {
    font-weight: 600;
    font-size: 13px;
    color: var(--feed-text);
    display: block;
    margin-bottom: 2px;
}

.mj-feed-comment__author:hover {
    text-decoration: underline;
    cursor: pointer;
}

.mj-feed-comment__text {
    font-size: 15px;
    color: var(--feed-text);
    line-height: 1.4;
    word-break: break-word;
}

.mj-feed-comment__meta {
    display: flex;
    gap: 12px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--feed-text-secondary);
}

.mj-feed-comment__time {
    font-weight: 600;
}

.mj-feed-comment__delete {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--feed-text-secondary);
    cursor: pointer;
    font-family: inherit;
}

.mj-feed-comment__delete:hover {
    text-decoration: underline;
    color: #dc2626;
}

/* Load More Comments */
.mj-feed-post__load-more-comments {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--feed-text-secondary);
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 8px;
}

.mj-feed-post__load-more-comments:hover {
    text-decoration: underline;
}

/* Comment Form */
.mj-feed-post__comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mj-feed-post__comment-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--feed-hover);
    border-radius: 20px;
    padding: 8px 12px;
    gap: 8px;
}

.mj-feed-post__comment-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--feed-text);
    outline: none;
    font-family: inherit;
}

.mj-feed-post__comment-input::placeholder {
    color: var(--feed-text-secondary);
}

.mj-feed-post__comment-submit {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--feed-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.mj-feed-post__comment-submit:hover {
    background: rgba(24, 119, 242, 0.1);
}

.mj-feed-post__comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.mj-testimonials__empty {
    text-align: center;
    color: var(--feed-text-secondary);
    padding: 48px 24px;
    background: var(--feed-card-bg);
    border-radius: var(--feed-card-radius);
    box-shadow: var(--feed-card-shadow);
}

/* Update form section to match Facebook style */
.mj-testimonials__form-section {
    background: var(--feed-card-bg);
    border-radius: var(--feed-card-radius);
    box-shadow: var(--feed-card-shadow);
    padding: 12px 16px;
    margin-bottom: 16px;
    border: none;
}

.mj-testimonials__textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    border: none;
    background: var(--feed-hover);
    border-radius: 20px;
    font-size: 17px;
    font-family: inherit;
    line-height: 1.5;
    resize: none;
    transition: background-color 0.2s;
}

.mj-testimonials__textarea:focus {
    outline: none;
    background: var(--feed-hover);
}

.mj-testimonials__textarea::placeholder {
    color: var(--feed-text-secondary);
}

/* Media buttons in Facebook style */
.mj-testimonials__media-actions {
    display: flex;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--feed-separator);
    margin-top: 12px;
}

.mj-testimonials__media-actions .mj-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--feed-text-secondary);
    font-weight: 600;
    padding: 8px;
    border-radius: 8px;
}

.mj-testimonials__media-actions .mj-btn:hover {
    background: var(--feed-hover);
}

.mj-testimonials__media-actions .mj-btn svg {
    color: #45bd62;
}

.mj-testimonials__add-video svg {
    color: #f3425f !important;
}

/* Submit button */
.mj-testimonials__submit {
    background: var(--feed-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
}

.mj-testimonials__submit:hover {
    background: #166fe5 !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mj-feed-post__action-label {
        display: none;
    }
    
    .mj-feed-post__action {
        padding: 12px;
    }
    
    .mj-feed-post__reaction-option-emoji {
        font-size: 24px;
    }
    
    .mj-feed-post__reaction-picker {
        padding: 4px 8px;
    }
}

.mj-testimonials .mj-btn svg {
    flex-shrink: 0;
}
/* =====================================================
   Single Post Mode
   ===================================================== */

/* Back button header */
.mj-testimonials__single-header {
    margin-bottom: 1rem;
}

.mj-testimonials__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--feed-text-secondary);
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.mj-testimonials__back-btn:hover {
    background: var(--feed-hover);
    color: var(--feed-text);
}

.mj-testimonials__back-btn svg {
    flex-shrink: 0;
}

/* Single mode container */
.mj-testimonials--single .mj-testimonials__title,
.mj-testimonials--single .mj-testimonials__intro,
.mj-testimonials--single .mj-testimonials__form-section,
.mj-testimonials--single .mj-testimonials__load-more {
    display: none;
}

/* Clickable post */
.mj-feed-post-wrapper:not(.mj-feed-post-wrapper--single) {
    cursor: pointer;
}

.mj-feed-post-wrapper:not(.mj-feed-post-wrapper--single):hover .mj-feed-post {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Single post styling */
.mj-feed-post--single {
    max-width: 100%;
}

.mj-feed-post--single .mj-feed-post__comments {
    display: block !important;
}

/* =====================================================
   Pending Testimonials (Member View & Animator Approval)
   ===================================================== */

/* Pending post wrapper styling */
.mj-feed-post-wrapper--pending {
    position: relative;
}

.mj-feed-post-wrapper--pending .mj-feed-post {
    background: #fef3c7;
    border-color: #fcd34d;
    position: relative;
}

.mj-feed-post--pending {
    opacity: 0.95;
}

/* Pending badge (for post owner) */
.mj-feed-post__pending-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fbbf24;
    color: #78350f;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mj-feed-post__pending-badge-icon {
    font-size: 14px;
    display: inline-block;
}

.mj-feed-post__pending-badge-text {
    white-space: nowrap;
}

/* Approval panel (for animators) */
.mj-feed-post__approval-panel {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.mj-feed-post__approval-message {
    margin: 0 0 12px;
    color: #1e40af;
    font-size: 14px;
    font-weight: 500;
}

/* Approval action buttons */
.mj-feed-post__approval-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mj-feed-post__approve-btn,
.mj-feed-post__reject-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.mj-feed-post__approve-btn {
    background: #22c55e;
    color: white;
}

.mj-feed-post__approve-btn:hover:not(:disabled) {
    background: #16a34a;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.mj-feed-post__reject-btn {
    background: #ef4444;
    color: white;
}

.mj-feed-post__reject-btn:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.mj-feed-post__approve-btn:disabled,
.mj-feed-post__reject-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mj-feed-post__approve-btn svg,
.mj-feed-post__reject-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Success/error messages */
.mj-testimonial-success {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for approval panel */
@media (max-width: 480px) {
    .mj-feed-post__approval-actions {
        flex-direction: column;
    }
    
    .mj-feed-post__approve-btn,
    .mj-feed-post__reject-btn {
        width: 100%;
    }
    
    .mj-feed-post__pending-badge {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   Carousel-3 Template
   ========================================================================== */

.mj-testimonials.mj-testimonials--template-carousel-3 {
    max-width: 1200px;
}

.mj-testimonials--template-carousel-3 .mj-testimonials__feed {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 48px;
}

.mj-testimonials__carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mj-testimonials__carousel-viewport::-webkit-scrollbar {
    display: none;
}

.mj-testimonials__carousel-track {
    display: flex;
    gap: 20px;
    padding: 8px 0;
}

/* --- Carousel Card --- */
.mj-carousel-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 240px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mj-carousel-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    transform: translateY(-2px);
}

/* Card header */
.mj-carousel-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 0;
}

.mj-carousel-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mj-carousel-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mj-carousel-card__avatar-initial {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.mj-carousel-card__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mj-carousel-card__author {
    font-weight: 600;
    font-size: 13px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mj-carousel-card__date {
    font-size: 11px;
    color: #888;
}

/* Card content */
.mj-carousel-card__content {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    height: 56px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mj-carousel-card__content:empty {
    height: 56px;
    padding: 12px 16px;
}

.mj-carousel-card__content p {
    margin: 0 0 6px;
}

.mj-carousel-card__content p:last-child {
    margin-bottom: 0;
}

/* Card media — photos */
.mj-carousel-card__media {
    width: 100%;
    background: #f0f0f0;
}

.mj-carousel-card__media--photos-1 {
    display: block;
}

.mj-carousel-card__media--photos-1 .mj-carousel-card__photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.mj-carousel-card__media--photos-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.mj-carousel-card__media--photos-2 .mj-carousel-card__photo {
    aspect-ratio: 1;
    overflow: hidden;
}

.mj-carousel-card__media--photos-3,
.mj-carousel-card__media--photos-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.mj-carousel-card__media--photos-3 .mj-carousel-card__photo:first-child,
.mj-carousel-card__media--photos-4 .mj-carousel-card__photo:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.mj-carousel-card__media--photos-3 .mj-carousel-card__photo:not(:first-child),
.mj-carousel-card__media--photos-4 .mj-carousel-card__photo:not(:first-child) {
    aspect-ratio: 1;
}

.mj-carousel-card__photo {
    display: block;
    overflow: hidden;
    position: relative;
}

.mj-carousel-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mj-carousel-card__photo:hover img {
    transform: scale(1.05);
}

.mj-carousel-card__photo-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* Card media — video (horizontal & vertical) */
.mj-carousel-card__media--video {
    position: relative;
    width: 100%;
    height: 220px;
    background: #000;
    overflow: hidden;
}

.mj-carousel-card__media--video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card media — YouTube */
.mj-carousel-card__media--youtube {
    position: relative;
    width: 100%;
    height: 220px;
    background: #000;
    overflow: hidden;
}

.mj-carousel-card__media--youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Card stats (reactions + comments) */
.mj-carousel-card__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #666;
    min-height: 38px;
    margin-top: auto;
}

.mj-carousel-card__reactions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.mj-carousel-card__reaction-emoji {
    font-size: 14px;
    line-height: 1;
}

.mj-carousel-card__reactions-count {
    margin-left: 4px;
    font-size: 12px;
    color: #555;
}

.mj-carousel-card__comments-count {
    font-size: 12px;
    color: #555;
}

/* Carousel buttons */
.mj-testimonials__carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    color: #333;
    padding: 0;
}

.mj-testimonials__carousel-btn:hover:not(:disabled) {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mj-testimonials__carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.mj-testimonials__carousel-btn--prev {
    left: 0;
}

.mj-testimonials__carousel-btn--next {
    right: 0;
}

/* Responsive carousel */
@media (max-width: 1024px) {
    .mj-carousel-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .mj-carousel-card {
        flex: 0 0 100%;
    }
    .mj-testimonials--template-carousel-3 .mj-testimonials__feed {
        padding: 0 36px;
    }
}