/* استایل اصلی */
.purchase-experiences-wrapper {
    width: 100%;
    padding: 20px 0;
    font-family: inherit;
}

/* حالت خالی */
.purchase-experiences-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    margin: 0 auto 24px;
    display: block;
    opacity: 0.6;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #424242;
    margin: 0 0 12px;
    line-height: 1.4;
}

.empty-description {
    font-size: 14px;
    color: #757575;
    margin: 0;
    line-height: 1.6;
}

/* لیست تجربه ها */
.purchase-experiences-list {
    display: flex;
    flex-direction: column;
}

/* آیتم تجربه */
.experience-item {
    background: #FFFFFF;
    padding: 20px 15px;
    border-bottom: 1px solid #E0E0E0;
    transition: all 0.3s ease;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item:hover {
    background: #FAFAFA;
}

/* هدر تجربه */
.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

/* اطلاعات کاربر */
.user-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar svg {
    display: block;
}

.user-details {
    flex: 1;
}

.user-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    margin: 0;
    line-height: 1.4;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #aaefa7;
    color: #566c4b;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    line-height: 1;
}

.experience-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* امتیاز */
.experience-rating {
    flex-shrink: 0;
}

.experience-date-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.experience-date {
    display: inline-flex;
    align-items: start;
    gap: 6px;
    font-size: 13px;
    color: #757575;
    direction: ltr;
}

.experience-date svg {
    flex-shrink: 0;
}

.stars-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    direction: ltr;
}

.stars-rating .star {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.stars-rating .star.filled path {
    fill: #FFB300;
    stroke: #FF8F00;
    stroke-width: 0.8;
}

.stars-rating .star.empty path {
    fill: #E0E0E0;
    stroke: #BDBDBD;
    stroke-width: 0.5;
}

/* محتوای تجربه */
.experience-content {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #F5F5F5;
}

.experience-text {
    font-size: 14px;
    line-height: 1.8;
    color: #424242;
    margin: 0 0 12px;
    text-align: justify;
}

.experience-text .text-short {
    display: inline;
}

.experience-text .text-full {
    display: none;
}

.experience-text.expanded .text-short {
    display: none;
}

.experience-text.expanded .text-full {
    display: inline;
}

.read-more-btn {
    background: none;
    border: none;
    color: #1976D2;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more-btn:hover {
    color: #1565C0;
    text-decoration: underline;
}

.read-more-btn:focus {
    outline: 2px solid #1976D2;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ریسپانسیو - تبلت */
@media (max-width: 768px) {
    .purchase-experiences-wrapper {
        padding: 16px 0;
    }

    .experience-item {
        padding: 16px 10px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .user-info {
        width: 100%;
    }

    .experience-rating {
        align-self: flex-start;
    }

    .empty-state {
        padding: 40px 20px;
    }

    .empty-icon {
        width: 60px;
        height: 60px;
    }

    .empty-title {
        font-size: 16px;
    }

    .empty-description {
        font-size: 13px;
    }
}

/* ریسپانسیو - موبایل */
@media (max-width: 480px) {
    .purchase-experiences-wrapper {
        padding: 12px 0;
    }

    .experience-item {
        padding: 14px 8px;
    }

    .user-info {
        gap: 10px;
    }

    .user-avatar svg {
        width: 36px;
        height: 36px;
    }

    .user-name {
        font-size: 15px;
    }

    .user-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .experience-date {
        font-size: 12px;
    }

    .experience-date svg {
        width: 12px;
        height: 12px;
    }

    .stars-rating .star {
        width: 18px;
        height: 18px;
    }

    .read-more-btn {
        font-size: 12px;
    }

    .experience-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .empty-state {
        padding: 30px 15px;
    }

    .empty-icon {
        width: 50px;
        height: 50px;
    }

    .empty-title {
        font-size: 16px;
    }

    .empty-description {
        font-size: 12px;
    }
}

/* حالت RTL */
.purchase-experiences-wrapper {
    direction: rtl;
    text-align: right;
}

.stars-rating {
    direction: ltr;
}

/* انیمیشن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.experience-item {
    animation: fadeIn 0.4s ease-out;
}

/* بهبود دسترسی */
.experience-item:focus-within {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* حالت پرینت */
@media print {
    .experience-item {
        break-inside: avoid;
        border: 1px solid #E0E0E0;
    }
}