﻿.ad-details-page {
    padding: 40px 20px;
    min-height: calc(100vh - 120px);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #4a9fe3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .back-btn:hover {
        background-color: #3a8fd3;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(74, 159, 227, 0.3);
    }

.ad-details-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    position: relative;
}

    .ad-details-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, #4a9fe3, #1c2a3a);
        border-radius: 12px 12px 0 0;
    }

    .ad-details-card.urgent::before {
        background: linear-gradient(to right, #ff4757, #ff6b81);
    }

.ad-details-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.ad-details-content {
    padding: 30px;
}

.ad-type {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.job-type {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.event-type {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.offer-type {
    background-color: #fff3e0;
    color: #ef6c00;
}

.ad-title {
    color: #1c2a3a;
    margin: 15px 0;
    font-size: 2rem;
}

.ad-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    color: #6c757d;
    font-size: 1.1rem;
}

.ad-date, .ad-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-full-description {
    color: #444;
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

    .ad-full-description p {
        margin-bottom: 20px;
    }

.ad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.ad-tag {
    padding: 6px 15px;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
}

.ad-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: #4a9fe3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #3a8fd3;
}

    .action-btn:hover {
        background: #3a8fd3;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(74, 159, 227, 0.3);
    }

    .action-btn.secondary {
        background: white;
        color: #4a9fe3;
        border: 1px solid #4a9fe3;
    }

        .action-btn.secondary:hover {
            background: #e3f2fd;
        }

.urgent-tag-large {
    position: absolute;
    top: 20px;
    right: -35px;
    width: 150px;
    text-align: center;
    transform: rotate(45deg);
    background: #ff4757;
    color: white;
    font-weight: bold;
    padding: 8px;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    z-index: 10;
}



/* التكيف مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .ad-details-page {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .ad-title {
        font-size: 1.8rem;
    }

    .ad-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .ad-details-content {
        padding: 20px;
    }

    .ad-title {
        font-size: 1.5rem;
    }

    .ad-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}
