/**
 * Ultra-Premium Future Enhancements - Part 1
 * Power of Knowledge - AI-Powered Academic Journal
 * 
 * HIGH PRIORITY FEATURES:
 * 1. Video testimonials with play overlays
 * 2. Real-time activity feed
 * 3. Institution logo grid
 * 4. Award badge ribbons
 */

/* ============================================
   1. VIDEO TESTIMONIALS
   ============================================ */

.up-testimonial-video {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--anthracite, #1a1a2e);
    cursor: pointer;
}

.up-testimonial-video .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth, cubic-bezier(0.4, 0, 0.2, 1));
}

.up-testimonial-video:hover .thumbnail {
    transform: scale(1.05);
}

.up-testimonial-video .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    transition: background 0.3s ease;
}

.up-testimonial-video:hover .play-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.up-testimonial-video .play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--quantum-blue, #00d4ff), var(--neural-purple, #8b5cf6));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
    transition: all 0.3s var(--ease-smooth);
}

.up-testimonial-video:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.6);
}

.up-testimonial-video .play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid white;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}

.up-testimonial-video .author-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.up-testimonial-video .author-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.up-testimonial-video .author-title {
    color: var(--silver, #9ca3af);
    font-size: 0.875rem;
}

/* Testimonial Grid */
.up-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ============================================
   2. REAL-TIME ACTIVITY FEED
   ============================================ */

.up-activity-feed {
    background: var(--anthracite, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.up-activity-feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.up-activity-feed-header .live-dot {
    width: 8px;
    height: 8px;
    background: var(--plasma-green, #10b981);
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.up-activity-feed-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--platinum, #e5e7eb);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.up-activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.up-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    animation: slide-in 0.5s ease-out;
    transition: background 0.2s ease;
}

.up-activity-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.up-activity-item.new {
    background: rgba(0, 212, 255, 0.05);
}

.up-activity-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--quantum-blue, #00d4ff), var(--neural-purple, #8b5cf6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.up-activity-item .content {
    flex: 1;
    min-width: 0;
}

.up-activity-item .text {
    color: var(--silver, #9ca3af);
    font-size: 0.875rem;
    line-height: 1.5;
}

.up-activity-item .text strong {
    color: var(--platinum, #e5e7eb);
    font-weight: 600;
}

.up-activity-item .text .action {
    color: var(--quantum-blue, #00d4ff);
}

.up-activity-item .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--silver, #9ca3af);
    opacity: 0.7;
}

.up-activity-item .institution {
    display: flex;
    align-items: center;
    gap: 4px;
}

.up-activity-item .institution img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Activity Types */
.up-activity-item[data-type="submission"] .avatar {
    background: linear-gradient(135deg, var(--plasma-green, #10b981), #059669);
}

.up-activity-item[data-type="review"] .avatar {
    background: linear-gradient(135deg, var(--neural-purple, #8b5cf6), #7c3aed);
}

.up-activity-item[data-type="publish"] .avatar {
    background: linear-gradient(135deg, var(--quantum-blue, #00d4ff), #0ea5e9);
}

.up-activity-item[data-type="citation"] .avatar {
    background: linear-gradient(135deg, var(--gold-standard, #fbbf24), #f59e0b);
}

/* ============================================
   3. INSTITUTION LOGO GRID
   ============================================ */

.up-institution-section {
    padding: 60px 0;
    text-align: center;
}

.up-institution-section h2 {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 1.25rem;
    color: var(--silver, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.up-institution-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.up-institution-logo {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(0.6);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.up-institution-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

.up-institution-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Scrolling Logo Carousel */
.up-institution-carousel {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.up-institution-carousel-track {
    display: flex;
    gap: 60px;
    animation: carousel-scroll 30s linear infinite;
}

.up-institution-carousel:hover .up-institution-carousel-track {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   4. AWARD BADGE RIBBONS
   ============================================ */

.up-award-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold-standard, #fbbf24), #f59e0b);
    color: var(--void-black, #0a0a0f);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.up-award-badge i {
    font-size: 0.875rem;
}

/* Ribbon Style */
.up-award-ribbon {
    position: absolute;
    top: 20px;
    right: -8px;
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--gold-standard, #fbbf24), #f59e0b);
    color: var(--void-black, #0a0a0f);
    font-weight: 700;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    z-index: 10;
}

.up-award-ribbon::before,
.up-award-ribbon::after {
    content: '';
    position: absolute;
    right: 0;
    border-style: solid;
}

.up-award-ribbon::before {
    top: 100%;
    border-width: 0 8px 8px 0;
    border-color: transparent #b45309 transparent transparent;
}

.up-award-ribbon::after {
    bottom: 100%;
    height: 8px;
    width: 8px;
    background: linear-gradient(135deg, transparent 50%, #b45309 50%);
}

/* Multiple Award Badges */
.up-award-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Special Badge Types */
.up-award-badge.platinum {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
}

.up-award-badge.rose-gold {
    background: linear-gradient(135deg, var(--rose-gold, #f472b6), #ec4899);
    color: white;
}

.up-award-badge.scopus {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

/* Animated Shine Effect */
.up-award-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badge-shine 3s infinite;
}

@keyframes badge-shine {
    0% {
        left: -100%;
    }

    20%,
    100% {
        left: 100%;
    }
}

/* ============================================
   Award Card with Ribbon
   ============================================ */

.up-card-with-award {
    position: relative;
    overflow: visible;
}

.up-card-with-award .up-award-ribbon {
    position: absolute;
    top: -5px;
    right: -5px;
}