/* صفحه جزئیات پیشرفته */
.detail-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.detail-header {
    background: var(--gradient-bg);
    color: white;
    padding: 50px 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.detail-header-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.detail-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.detail-main-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail-main-image:hover img {
    transform: scale(1.05);
}

.detail-image-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.detail-thumbnail {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.detail-thumbnail:hover, .detail-thumbnail.active {
    opacity: 1;
    transform: scale(1.1);
}

.detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.detail-info-card:hover {
    transform: translateY(-5px);
}

.detail-title {
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
}

.detail-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-btn);
    border-radius: 3px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f1f1f1;
    transform: translateY(-3px);
}

.info-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.info-label i {
    margin-left: 8px;
    color: var(--primary-purple);
}

.info-value {
    color: #6c757d;
    font-size: 1.1rem;
}

.detail-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 15px;
}

.detail-stars {
    color: var(--star-color);
    font-size: 2rem;
    margin-left: 15px;
}

.detail-rating-count {
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 600;
}

.detail-actions {
    text-align: center;
    margin: 50px 0;
}

.btn-register {
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(255, 78, 141, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-register:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 78, 141, 0.4);
}

.btn-register::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.btn-register:hover::after {
    transform: rotate(30deg) translate(10%, 10%);
}

/* کامنت‌های پیشرفته */
.comments-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}

.comments-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.comments-toggle:hover {
    background: #f1f1f1;
}

.comments-toggle h4 {
    margin: 0;
    color: var(--primary-purple);
    font-size: 1.3rem;
}

.comments-count {
    background: var(--secondary-pink);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.comments-container {
    display: none;
}

.comment {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f1f1;
    animation: fadeIn 0.5s ease;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 20px;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.comment-name {
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-left: 10px;
    margin-bottom: 0;
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-rating {
    color: var(--star-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.comment-text {
    color: #444;
    line-height: 1.7;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    border-right: 3px solid var(--secondary-pink);
}

/* کیس‌های مشابه */
.similar-cases {
    margin-top: 50px;
}

.similar-cases-title {
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.similar-cases-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-btn);
    border-radius: 3px;
}