.post-show-page {
    min-height: 100vh;
}

.post-hero {
    position: relative;
    height: 40vh;
    background: url("../uploads/bg.jpg") center/cover;
    margin-bottom: 3rem;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(85, 130, 139, 0.85) 0%, rgba(58, 90, 99, 0.85) 100%);
}

.post-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

.post-type {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-type.offer {
    background: #55828B;
    color: white;
}

.post-type.need {
    background: #f8f9fa;
    color: #55828B;
    border: 2px solid #55828B;
}

.post-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.image-gallery {
    margin-bottom: 3rem;
}

.main-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 10px;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail-container {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thumbnail-container.active {
    border: 2px solid #55828B;
    transform: scale(1.05);
}

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

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-details {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* RTL Support for Arabic */
body.rtl .post-meta {
    flex-direction: row-reverse;
}

body.rtl .post-description {
    text-align: right;
    direction: rtl;
}

@media (max-width: 768px) {
    .post-hero {
        height: 30vh;
    }
    .post-title {
        font-size: 2rem;
    }
    .main-image {
        max-height: 60vh;
    }
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 576px) {
    .post-hero {
        height: 25vh;
    }
    .post-title {
        font-size: 1.75rem;
    }
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .post-type {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    .main-image {
        max-height: 50vh;
    }
}


