/* ==========================================================================
   تنسيقات صفحة تفاصيل الإعلان - نادي الصقور
   ========================================================================== */

:root {
    /* الألوان الأساسية */
    --primary-color: #0a2463;
    --secondary-color: #d00000;
    --accent-color: #ff9500;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-color: #333;
    --text-light: #6c757d;
    --text-muted: #8e9aaf;
    
    /* ظلال */
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* حواف مستديرة */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    
    /* انتقالات */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ==========================================================================
   قسم الهيدر - تفاصيل الإعلان
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9) 0%, rgba(10, 36, 99, 0.8) 100%), url('../images/pattern.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.3) 0%, rgba(255, 149, 0, 0) 70%);
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(208, 0, 0, 0.2) 0%, rgba(208, 0, 0, 0) 70%);
    z-index: 1;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    font-weight: 700;
    text-shadow: var(--text-shadow);
    margin-bottom: 1rem;
}

.breadcrumb {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   قسم المحتوى الرئيسي
   ========================================================================== */
.news-content {
    background-color: white;
    padding: 60px 0;
}

/* عنوان الإعلان */
.ad-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ad-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* معلومات التاريخ */
.meta-info {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.date-badge i {
    margin-left: 0.5rem;
    color: var(--accent-color);
}

.registration-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(25, 135, 84, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: #198754;
    font-size: 0.9rem;
    font-weight: 500;
}

.registration-badge i {
    margin-left: 0.5rem;
}

/* صورة الإعلان */
.news-content-wrapper {
    position: relative;
}

.news-float-image {
    display: block;
    width: 100%;
    height: 450px; /* ارتفاع ثابت للصورة */
    margin: 0 0 2rem 0;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
    object-fit: cover; /* لضمان تغطية الصورة للمساحة المحددة بدون تشوه */
    object-position: center; /* لضمان تمركز الصورة */
}

.news-float-image:hover {
    transform: scale(1.01);
    box-shadow: var(--hover-shadow);
}

/* ملخص الإعلان */
.news-summary {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--primary-color);
    border-right: 4px solid var(--accent-color);
}

/* تفاصيل الإعلان */
.news-details {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.news-details p {
    margin-bottom: 1.5rem;
}

.news-details h3, 
.news-details h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-details ul, 
.news-details ol {
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-details li {
    margin-bottom: 0.5rem;
}

/* قسم معلومات الاتصال */
.contact-section {
    background-color: var(--light-bg);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--card-shadow);
}

.contact-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-section h4 i {
    color: var(--accent-color);
}

.contact-list {
    margin-bottom: 0;
}

.contact-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-list li i {
    color: var(--accent-color);
    margin-top: 0.3rem;
}

.contact-list li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-list li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.social-list li {
    margin-bottom: 0.8rem;
}

.social-list li i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    margin-left: 0.5rem;
}

/* أزرار المشاركة والإعجاب */
.social-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* تنسيقات أزرار الإجراءات الاجتماعية */
.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffb700 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb700 0%, var(--accent-color) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-medium);
}

.action-button:hover::before {
    opacity: 1;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.action-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 149, 0, 0.3);
}

.action-button i {
    font-size: 1.2rem;
    transition: var(--transition-medium);
}

.action-button:hover i {
    transform: scale(1.2);
}

.action-count {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.85rem;
    margin-right: 0.3rem;
    transition: var(--transition-medium);
}

.action-button:hover .action-count {
    background-color: rgba(255, 255, 255, 0.4);
}

/* قائمة المشاركة المنسدلة */
.share-dropdown {
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    border: none;
    padding: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 0.7rem 1rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
}

.dropdown-item i {
    margin-left: 0.75rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   قسم الإعلانات ذات الصلة
   ========================================================================== */
.related-services-section {
    background-color: var(--light-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.related-services-section h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.related-services-section h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.related-service-card {
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.related-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.related-service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-service-content {
    display: flex;
    padding: 1rem;
    gap: 1rem;
}

.related-service-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.related-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.related-service-card:hover .related-service-image img {
    transform: scale(1.1);
}

.related-service-text {
    flex: 1;
    min-width: 0;
}

.related-service-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-service-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-service-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.related-service-date i {
    margin-left: 0.3rem;
    color: var(--accent-color);
}

/* ==========================================================================
   قسم التسجيل في الإعلان
   ========================================================================== */
.registration-section {
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.05) 0%, rgba(10, 36, 99, 0.1) 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(10, 36, 99, 0.1);
}

.registration-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.registration-section h3 i {
    color: var(--accent-color);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 149, 0, 0.25);
    border-color: var(--accent-color);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-register {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffb700 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-medium);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
    background: linear-gradient(135deg, #ffb700 0%, var(--accent-color) 100%);
}

.btn-register:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 149, 0, 0.3);
}

/* إحصائيات الإعلان */
.ad-stats {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.05) 0%, rgba(255, 149, 0, 0.1) 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.ad-stats h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-stats h3 i {
    color: var(--accent-color);
}

.stat-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.stat-item i {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.stat-item p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-item h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0;
}

/* تنسيقات الأزرار */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffb700 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-medium);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
    background: linear-gradient(135deg, #ffb700 0%, var(--accent-color) 100%);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 149, 0, 0.3);
}

/* تنسيقات التنبيهات */
.alert {
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: var(--card-shadow);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.alert i {
    margin-left: 0.5rem;
}

/* ==========================================================================
   تنسيقات التجاوب
   ========================================================================== */
@media (max-width: 992px) {
    .ad-title {
        font-size: 1.8rem;
    }
    
    .news-float-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .ad-title {
        font-size: 1.6rem;
    }
    
    .news-float-image {
        height: 350px;
    }
    
    .news-summary {
        font-size: 1rem;
    }
    
    .news-details {
        font-size: 1rem;
    }
    
    .related-services-section {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .ad-title {
        font-size: 1.4rem;
    }
    
    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .social-actions {
        flex-wrap: wrap;
    }
    
    .news-float-image {
        height: 250px;
    }
}
