/* =========================================
   12. FEEDBACK & ROLES (PIMPED UP 🚀)
========================================= */
.feedback-card {
    width: 350px;
    height: 295px; /* Increased slightly for more space */
    flex-shrink: 0;
    /* Glassmorphism Effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 0, 127, 0.15);
    padding: 25px;
    border-radius: 20px; /* Softer radius */
    position: relative;
    /* Bouncy smooth transition */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feedback-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-8px);
    border-color: var(--rose, #ff007f);
    box-shadow: 0 15px 35px rgba(255, 0, 127, 0.15), 
                inset 0 0 20px rgba(255, 0, 127, 0.05); /* Inner glow */
}

/* =========================================
   VIP / SPECIAL CARD STYLES 👑
========================================= */
.feedback-card.card-vip {
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(0, 0, 0, 0.4));
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.feedback-card.card-vip:hover {
    border-color: #ffe44d;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.25),
                inset 0 0 25px rgba(255, 215, 0, 0.1);
    transform: translateY(-10px) scale(1.03); /* Extra pop for VIP */
}

.feedback-card.card-vip::after {
    content: '\f521'; /* FontAwesome Crown Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 1.2rem;
    color: #ffd700;
    background: #000;
    border: 2px solid #ffd700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    z-index: 10;
    /* No animation for stability */
}

/* Removed floating animation */
/* @keyframes floatCrown { ... } */

.feedback-card.card-vip .feedback-name {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.feedback-card.card-vip .feedback-avatar {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* =========================================
   ROLE AURA SYSTEM
========================================= */
.feedback-card.role-theme-owner::before {
    opacity: 1;
    border: 1px solid rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.4);
    animation: auraPulseGold 2.4s ease-in-out infinite;
}

.feedback-card.role-theme-vip::before {
    opacity: 1;
    border: 1px solid rgba(255, 0, 127, 0.5);
    box-shadow: 0 0 24px rgba(255, 0, 127, 0.32);
    animation: auraPulsePink 2.2s ease-in-out infinite;
}

.feedback-card.role-theme-admin::before {
    opacity: 0.95;
    border: 1px solid rgba(204, 204, 204, 0.4);
    box-shadow: 0 0 20px rgba(180, 180, 180, 0.22);
}

.feedback-card.role-theme-client::before {
    opacity: 1;
    border: 1px solid rgba(0, 255, 255, 0.45);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.24);
    animation: auraPulseCyan 2.8s ease-in-out infinite;
}

/* =========================================
   STANDARD ELEMENTS 👤
========================================= */
.feedback-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feedback-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rose, #ff007f);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
    transition: transform 0.3s ease;
}

.feedback-card:hover .feedback-avatar {
    transform: scale(1.1) rotate(-5deg); /* Avatar interaction on card hover */
}

.feedback-info {
    flex: 1;
}

.feedback-name {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

/* Role Badges Container */
.feedback-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* الأساس بتاع أي رتبة (بما فيهم "العضو" العادي) */
.role-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 6px;
    /* رجعنا خلفية وحدود العضو العادي */
    background: rgba(255, 255, 255, 0.08); 
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    cursor: default;
}

/* دلع العضو العادي لما تقف عليه بالماوس */
.role-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Specific Role Styles (Neon glow on hover) */
.role-owner { background: rgba(255, 215, 0, 0.1); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.3); }
.role-owner:hover { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); background: rgba(255, 215, 0, 0.2); }

.role-admin { background: rgba(192, 192, 192, 0.1); color: #e0e0e0; border: 1px solid rgba(192, 192, 192, 0.3); }
.role-admin:hover { box-shadow: 0 0 10px rgba(192, 192, 192, 0.5); background: rgba(192, 192, 192, 0.2); }

.role-vip { background: rgba(255, 0, 127, 0.1); color: #ff007f; border: 1px solid rgba(255, 0, 127, 0.3); }
.role-vip:hover { box-shadow: 0 0 10px rgba(255, 0, 127, 0.5); background: rgba(255, 0, 127, 0.2); }

.role-client { background: rgba(0, 255, 255, 0.1); color: #0ff; border: 1px solid rgba(0, 255, 255, 0.3); }
.role-client:hover { box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); background: rgba(0, 255, 255, 0.2); }
.role-member { background: rgba(255, 255, 255, 0.08); color: #ccc; border: 1px solid rgba(255, 255, 255, 0.15); }

.feedback-rating {
    color: #ffd700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.feedback-text {
    color: #ddd;
    font-size: 0.9rem; /* Increased slightly */
    line-height: 1.5; /* Better readability */
    font-style: italic;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 15px;
    border-radius: 10px;
    border-left: 3px solid var(--rose, #ff007f);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    
    /* Smooth truncation with fade */
    height: 135px; /* Increased to match card height */
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;

    /* Visual fade at bottom to indicate more text */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Keep text preview short in card; full content is shown in focus overlay */
.feedback-card:hover .feedback-text {
    background: rgba(0, 0, 0, 0.4);
}

/* Custom Scrollbar for Feedback Text */
.feedback-text::-webkit-scrollbar {
    width: 4px;
}
.feedback-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.feedback-text::-webkit-scrollbar-thumb {
    background: var(--rose);
    border-radius: 4px;
}

/* Date Footer Styles */
.feedback-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.feedback-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

/* =========================================================
   Feedback Focus Overlay (zoom + dim effect)
========================================================= */
.feedback-focus-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: grid;
    place-items: center;
    background: rgba(3, 2, 5, 0.82);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.feedback-focus-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.feedback-focus-card {
    --focus-tilt-x: 0deg;
    --focus-tilt-y: 0deg;
    --focus-light-x: 50%;
    --focus-light-y: 50%;
    width: min(760px, 92vw);
    max-height: 86vh;
    overflow: auto;
    background: linear-gradient(130deg, rgba(18, 8, 20, 0.96), rgba(8, 5, 12, 0.98));
    border: 1px solid rgba(255, 0, 127, 0.35);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68), 0 0 40px rgba(255, 0, 127, 0.2);
    transform: translateY(16px) scale(0.95) rotateX(var(--focus-tilt-x)) rotateY(var(--focus-tilt-y));
    transform-style: preserve-3d;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease;
    position: relative;
}

.feedback-focus-overlay.active .feedback-focus-card {
    transform: translateY(0) scale(1) rotateX(var(--focus-tilt-x)) rotateY(var(--focus-tilt-y));
}

.feedback-focus-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at var(--focus-light-x) var(--focus-light-y), rgba(255,255,255,0.13), transparent 45%);
    mix-blend-mode: screen;
}

.feedback-focus-card.card-vip {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 60px rgba(255, 215, 0, 0.22);
}

.feedback-focus-card.role-theme-owner {
    border-color: rgba(255, 215, 0, 0.72);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 72px rgba(255, 215, 0, 0.28);
}

.feedback-focus-card.role-theme-vip {
    border-color: rgba(255, 0, 127, 0.64);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 62px rgba(255, 0, 127, 0.24);
}

.feedback-focus-card.role-theme-client {
    border-color: rgba(0, 255, 255, 0.62);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 62px rgba(0, 255, 255, 0.2);
}

.feedback-focus-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feedback-focus-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rose, #ff007f);
    box-shadow: 0 0 22px rgba(255, 0, 127, 0.35);
}

.feedback-focus-meta {
    flex: 1;
}

.feedback-focus-name {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.55rem;
    margin-bottom: 8px;
}

.feedback-focus-roles {
    display: flex;
    gap: 8px;
}

.feedback-focus-rating {
    color: #ffd700;
    font-size: 1.06rem;
    letter-spacing: 2px;
}

.feedback-focus-text {
    margin-top: 18px;
    color: #f0f0f0;
    font-size: 1.08rem;
    line-height: 1.9;
    font-style: italic;
    background: rgba(0, 0, 0, 0.35);
    border-left: 4px solid var(--rose, #ff007f);
    border-radius: 14px;
    padding: 20px 22px;
}

.feedback-focus-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.16);
    display: flex;
    justify-content: flex-end;
}

.feedback-focus-open .marquee-track {
    animation-play-state: paused !important;
}

@keyframes auraPulseGold {
    0%, 100% { box-shadow: 0 0 22px rgba(255, 215, 0, 0.28); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.52); }
}

@keyframes auraPulsePink {
    0%, 100% { box-shadow: 0 0 18px rgba(255, 0, 127, 0.22); }
    50% { box-shadow: 0 0 36px rgba(255, 0, 127, 0.46); }
}

@keyframes auraPulseCyan {
    0%, 100% { box-shadow: 0 0 18px rgba(0, 255, 255, 0.18); }
    50% { box-shadow: 0 0 34px rgba(0, 255, 255, 0.42); }
}
