@charset "utf-8";
/* CSS Document */

/* استایل‌های صفحه آگهی */
.advertisement-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.advertisement-content {
    flex: 1;
}

.advertisement-sidebar {
    width: 350px;
    flex: 0 0 350px;
}

.advertisement-single {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.advertisement-header {
    padding: 25px;
    border-bottom: 1px solid #eaeaea;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.advertisement-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.advertisement-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.meta-label {
    font-weight: 600;
    color: #555;
    margin-left: 8px;
    min-width: 80px;
}

.meta-value {
    color: #333;
}

.meta-value a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-value a:hover {
    color: #005a87;
    text-decoration: underline;
}

.ad-price {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.price-label {
    font-weight: 500;
}

.price-value {
    font-weight: 700;
    font-size: 16px;
}

.advertisement-body {
    padding: 25px;
    display: flex;
    gap: 25px;
}

.advertisement-image {
    flex: 0 0 400px;
}

.ad-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.no-image {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #888;
    font-size: 16px;
}

.advertisement-details {
    flex: 1;
}

.advertisement-description {
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

.advertisement-description p {
    margin-bottom: 15px;
}

.advertisement-description h2,
.advertisement-description h3,
.advertisement-description h4 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
}

.advertisement-description ul,
.advertisement-description ol {
    margin: 15px 0;
    padding-right: 20px;
}

.advertisement-description li {
    margin-bottom: 8px;
}

.advertiser-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 25px;
}

.advertiser-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.advertiser-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.info-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.info-value a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

.info-value a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* آگهی‌های مرتبط */
.related-advertisements {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 25px;
    margin-top: 30px;
}

.related-advertisements h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.related-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-ad {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.related-ad:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.related-ad-thumbnail {
    height: 180px;
    overflow: hidden;
}

.related-ad-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-ad:hover .related-ad-thumbnail img {
    transform: scale(1.05);
}

.related-ad-content {
    padding: 15px;
}

.related-ad-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-ad-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.related-ad-title a:hover {
    color: #0073aa;
}

.related-ad-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

.related-ad-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    background: #005a87;
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .advertisement-container {
        max-width: 960px;
    }
    
    .advertisement-sidebar {
        width: 300px;
        flex: 0 0 300px;
    }
    
    .related-ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .advertisement-container {
        flex-direction: column;
    }
    
    .advertisement-sidebar {
        width: 100%;
        flex: 0 0 auto;
        order: -1;
        margin-bottom: 30px;
    }
    
    .advertisement-body {
        flex-direction: column;
    }
    
    .advertisement-image {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    
    .related-ads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .advertisement-container {
        padding: 15px;
    }
    
    .advertisement-header {
        padding: 20px;
    }
    
    .advertisement-title {
        font-size: 24px;
    }
    
    .advertisement-meta {
        grid-template-columns: 1fr;
    }
    
    .advertisement-body {
        padding: 20px;
    }
    
    .advertiser-details {
        grid-template-columns: 1fr;
    }
    
    .related-advertisements {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .advertisement-header {
        padding: 15px;
    }
    
    .advertisement-title {
        font-size: 20px;
    }
    
    .advertisement-body {
        padding: 15px;
        gap: 15px;
    }
    
    .advertisement-image {
        width: 100%;
    }
    
    .advertiser-info {
        padding: 15px;
    }
    
    .related-advertisements {
        padding: 15px;
    }
    
    .related-ad-thumbnail {
        height: 150px;
    }
}