/* lost_and_found_details_styles.css */

/* General container for the page content */
.container {
    padding: 2rem;
}

/* Header for the detail page with back button and title */
.ad-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This pushes elements to the far ends */
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ad-view-header .page-title {
    font-size: 2rem;
    color: #333;
    flex-grow: 1;
    text-align: center;
    margin: 0 1rem; /* Added horizontal margin to center the title better */
    line-height: 1.2;
}

/* Back button style */
.btn-secondary-modern {
    background: #f0f2f5;
    color: #555;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary-modern:hover {
    background-color: #e0e2e5;
    color: #333;
}

/* Main ad detail card */
.ad-detail-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 2rem;
}

/* Information sections */
.ad-info-section {
    padding-bottom: 2rem;
}

.ad-detail-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ad-meta-info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
}

.ad-meta-info i {
    color: #3b82f6;
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.ad-description-full {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.ad-description-full h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.ad-description-full p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* New subtle delete button/link */
.delete-btn-header {
    color: #e74c3c;
    font-size: 1.5rem;
    transition: color 0.2s ease;
    padding: 0.5rem; /* Add padding for a larger clickable area */
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn-header:hover {
    color: #c0392b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .ad-view-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .ad-view-header .page-title {
        font-size: 1.5rem;
        text-align: left;
        margin-top: 1rem;
    }
    .delete-btn-header {
        position: absolute; /* Revert to absolute positioning on mobile */
        top: 20px;
        right: 20px;
    }
}