/**
 * Styles dla sekcji ogłoszeń
 */

/* Kontener główny */
.ogloszenia-section {
    margin: 30px 0;
    width: 100%;
}

/* Komunikat braku ogłoszeń */
.ogloszenia-section-empty {
    padding: 20px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 6px;
    color: #666;
    font-style: italic;
}

/* Siatka ogłoszeń */
.ogloszenia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Pojedyncze ogłoszenie */
.ogloszenie-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    height: 100%;
}

.ogloszenie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.ogloszenie-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Obrazek ogłoszenia */
.ogloszenie-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.ogloszenie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

.ogloszenie-item:hover .ogloszenie-image img {
    transform: scale(1.05);
}

/* Szczegóły ogłoszenia */
.ogloszenie-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ogloszenie-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
    text-align: left;
}

.ogloszenie-description {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 15px 0;
    flex-grow: 1;
    text-align: left;
}

/* Meta dane ogłoszenia */
.ogloszenie-meta {
    margin-top: auto;
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.ogloszenie-date {
    font-style: italic;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 767px) {
    .ogloszenia-grid {
        grid-template-columns: 1fr;
    }
    
    .ogloszenie-image {
        height: 160px;
    }
    
    .ogloszenie-details {
        padding: 15px;
    }
    
    .ogloszenie-title {
        font-size: 16px;
    }
}

/* Responsywność dla tabletów */
@media (min-width: 768px) and (max-width: 1024px) {
    .ogloszenia-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 