/* تنسيقات عصرية لصفحة عرض الإعلان */
:root {
    --primary-color: #2563eb;
    --secondary-color: #475569;
    --success-color: #22c55e;
    --background-color: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--background-color);
}

/* تنسيقات معرض الصور */
.gallery-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.carousel {
    position: relative;
    background: #000;
}

.carousel-item img {
    height: 600px;
    object-fit: contain;
    opacity: 0.95;
}

.carousel-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    background: white;
    scrollbar-width: none;
}

.carousel-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

/* تنسيقات تفاصيل الإعلان */
.ad-details {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.ad-title {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.price-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
}

.meta-info {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.meta-text {
    font-size: 1rem;
    color: var(--secondary-color);
}

.meta-label {
    font-weight: 600;
    color: #1e293b;
    display: block;
}

/* تنسيقات أزرار الاتصال */
.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.contact-btn,
.contact-btn:link,
.contact-btn:visited,
.contact-btn:hover,
.contact-btn:active {
    text-decoration: none !important;
}

a.contact-btn {
    text-decoration: none !important;
}

.contact-buttons a {
    text-decoration: none !important;
}

.contact-btn {
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn i {
    font-size: 1.4rem;
}

.btn-call {
    background: var(--primary-color);
    color: white;
}

.btn-call:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--success-color);
    color: white;
}

.btn-whatsapp:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.whatsapp-share-btn {
    background-color: #25D366 !important;
    color: white !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-share-btn svg {
    margin-left: 5px;
}

.whatsapp-share-btn:hover {
    background-color: #128C7E !important;
    transform: scale(1.05);
}

/* تنسيقات الكلمات المفتاحية */
.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.keyword {
    background: #e2e8f0;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.keyword:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

/* تنسيقات معلومات المعلن */
.advertiser-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.advertiser-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.advertiser-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.advertiser-info h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.member-since {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* تنسيقات الإعلانات المشابهة */
.similar-ads {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}

.similar-ads h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.similar-ad-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.similar-ad-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.similar-ad-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.similar-ad-info h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.similar-ad-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* تنسيقات متجاوبة */
@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }

    .ad-title {
        font-size: 1.5rem;
    }

    .price-badge {
        font-size: 1.2rem;
        padding: 0.5rem 1.5rem;
    }

    .meta-info {
        gap: 1rem;
    }

    .meta-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }

    .similar-ad-card {
        flex-direction: column;
    }

    .similar-ad-image {
        width: 100%;
        height: 200px;
    }
}

/* تنسيقات الوصف */
.description {
    margin: 2rem 0;
    line-height: 1.8;
    color: #475569;
}

.description-title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

/* تأثيرات حركية */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}
