/* --- استایل‌های اختصاصی صفحه جزئیات تست --- */
/* استفاده از همان ساختار صفحه لیست تست‌ها */

body {
    background-color: var(--dark-bg) !important;
    background: var(--dark-bg) !important;
}

.detail-page {
    min-height: 100vh;
    background-color: var(--dark-bg);
    color: var(--text-main);
    padding: 2rem 2% 3rem;
}

/* Header Section - ساده و هماهنگ با لیست تست‌ها */
.detail-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: 0.3s;
}

.breadcrumb a:hover { 
    color: var(--accent); 
}

.breadcrumb span {
    color: var(--text-main);
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.detail-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--text-main);
    font-weight: 700;
}

.detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-tag {
    background: var(--card-bg);
    padding: 8px 18px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    transition: 0.3s;
}

.meta-tag:hover {
    border-color: var(--accent);
    background: rgba(76, 201, 240, 0.1);
}

.meta-tag i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Container اصلی - مشابه tests-page-container */
.detail-container {
    display: flex;
    gap: 2rem;
}

.main-detail-col { 
    flex: 1; 
    min-width: 0; 
}

.sidebar-detail-col { 
    width: 380px; 
    flex-shrink: 0; 
}

/* کارت محتوا - مشابه test-card */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-box-hover-border, #62b6ff);
    box-shadow: 0 10px 30px rgba(98, 182, 255, 0.12);
    z-index: 2;
}

html[data-theme="dark"] .content-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.section-subtitle i {
    font-size: 1.1rem;
}

.text-para {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-list li strong {
    color: var(--text-main);
}

.feature-list i { 
    color: var(--success); 
    margin-top: 5px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* کارت خرید - مشابه test-card */
.purchase-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    transition: 0.3s;
}

.purchase-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-box-hover-border, #62b6ff);
    box-shadow: 0 10px 30px rgba(98, 182, 255, 0.12);
}

html[data-theme="dark"] .purchase-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.purchase-card h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.main-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--success);
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.main-price small.price-unit {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.8;
}

.price-icon {
    font-size: 2.2rem;
    color: var(--accent);
    opacity: 0.6;
}

.test-price__report {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
}

.test-price__report .product-old-price,
.test-price__report .product-current-price {
    margin-inline: 0.15rem;
}

.price-box .product-old-price {
    font-size: 1rem;
}

.price-box .product-current-price.main-price,
.price-box .main-price.product-current-price {
    color: #dc3545;
}

.guarantee-box {
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guarantee-box i {
    font-size: 1.1rem;
}

.purchase-info {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.purchase-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.purchase-info i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Alert Boxes */
.alert-warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 1rem;
    border-radius: 5px;
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.alert-info-box {
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.3);
    padding: 1rem;
    border-radius: 5px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* دکمه‌ها */
.btn-full-width {
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    display: block;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-full-width.margin-bottom {
    margin-bottom: 10px;
}

/* انیمیشن reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو - مشابه tests-page-container */
@media (max-width: 992px) {
    .detail-container { 
        flex-direction: column-reverse; 
    }
    
    .sidebar-detail-col { 
        width: 100%; 
        position: static; 
        margin-bottom: 2rem; 
    }
    
    .detail-title { 
        font-size: 1.8rem; 
    }
    
    .purchase-card {
        position: static;
    }
    
    .detail-page {
        padding: 5rem 5% 3rem;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-meta {
        gap: 10px;
    }
    
    .meta-tag {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .content-card,
    .purchase-card {
        padding: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .detail-page {
        padding: 4rem 3% 2rem;
    }
}

.marketer-share-box {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.marketer-share-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.marketer-share-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.marketer-share-url {
    font-size: 0.8rem;
    word-break: break-all;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.marketer-share-url code {
    color: var(--accent);
    background: transparent;
}
