/* === STYL ODŚWIEŻONY – MASZYNY === */

/* OGÓLNY RESET */
body {
    background: #fff;
    color: #000;
    font-family: "Inter", Arial, sans-serif;
}

/* === HEADER STRONY === */
.page-header {
    background: #00B0E8;
    color: #fff;
    padding: 70px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* === FILTRY === */
.machines-filters {
    background: #f9f9f9;
    padding: 30px 20px;
    margin-bottom: 50px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.filter-group label {
    color: #000;
}

.filter-group input[type="text"],
.filter-group select {
    border: 2px solid #ddd;
    background: #fff;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    border-color: #00B0E8;
    box-shadow: 0 0 0 3px rgba(0, 176, 232, 0.15);
}

/* === PRZYCISKI === */
.btn-filter.btn-cyan {
    background: #00B0E8;
    color: #fff;
    border: none;
}

.btn-filter.btn-cyan:hover {
    background: #0094c6;
    transform: translateY(-2px);
}

.btn-reset {
    border: 2px solid #ccc;
    color: #000;
}

.btn-reset:hover {
    background: #f0f0f0;
}

/* === KARTY MASZYN === */
.machines-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 50px;
    padding: 0 20px;
}

.machine-card-compact {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.machine-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #00B0E8;
}

/* === OBRAZEK MASZYNY === */
.machine-card-image {
    width: 100%;
    height: 380px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.machine-card-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.machine-card-compact:hover .machine-card-image img {
    transform: scale(1.05);
}

/* === ZAWARTOŚĆ KARTY === */
.machine-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.machine-producer {
    color: #00B0E8;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.machine-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    transition: color 0.3s ease;
}

.machine-card-compact:hover .machine-card-title {
    color: #00B0E8;
}

.machine-category {
    background: #00B0E8;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 6px 14px;
    width: fit-content;
    font-weight: 600;
    margin-top: 10px;
}

/* === PAGINACJA === */
.pagination a,
.pagination span {
    border-radius: 8px;
    background: #fff;
    border: 2px solid #ccc;
    color: #000;
}

.pagination a:hover,
.pagination .current {
    background: #00B0E8;
    color: #fff;
    border-color: #00B0E8;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
    .machines-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }
    .machine-card-image {
        height: 240px;
    }
}
