﻿/* ==============================
   WYSZUKIWARKA – PREMIUM STYLE
============================== */

.search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-form {
    width: 100%;
    max-width: 700px;
    font-family: 'Poppins', sans-serif;
}

.search-input-group {
    display: flex;
    background: linear-gradient(135deg, #7D669C, #6F5497);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(111, 84, 151, 0.25);
    transition: box-shadow 0.3s ease;
}

    .search-input-group:focus-within {
        box-shadow: 0 8px 25px rgba(125, 102, 156, 0.45);
    }

.search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 0.95rem;
    outline: none;
    border-radius: 0;
    background: #fff;
}

    .search-input::placeholder {
        color: #aaa;
    }

.search-button {
    padding: 0 25px;
    background: linear-gradient(135deg, #7D669C, #6F5497); /* gradient od początku */
    color: #fff;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(111, 84, 151, 0.3);
}

    .search-button:hover {
        background: linear-gradient(135deg, #6f4d96, #5e3f80); /* ciemniejszy gradient po hover */
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(111, 84, 151, 0.45);
    }

@media (max-width: 600px) {
    .search-input-group {
        flex-direction: column;
    }

    .search-button {
        padding: 12px;
        width: 100%;
    }
}

/* =========================
   WYNIKI WYSZUKIWANIA
========================= */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.results-count {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.no-results {
    font-size: 1.2rem;
    color: #b00;
    text-align: center;
}

/* =========================
   KARTY ZAJĘĆ
========================= */
.card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    align-items: stretch;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    }

.card-img {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #F7F7F7;
}

    .card-img img {
        max-width: 100%;
        max-height: 250px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        border-radius: 10px;
        margin: 0 auto;
    }

.card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-content p {
    margin: 2px 0;
    font-size: 0.95rem;
    color: #555;
}

.card-content a {
    color: white;
    text-decoration: none;
}

.club a {
    color: #7D669C;
    text-decoration: none;
}

.btn-more {
    margin-top: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #7D669C, #6F5497);
    color: #fff;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(111, 84, 151, 0.3);
    transition: all 0.25s ease;
}

    .btn-more:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(111, 84, 151, 0.45);
    }

/* =========================
   PAGINACJA
========================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

    .pagination-container a,
    .pagination-container button,
    .btn-small {
        padding: 6px 12px;
        background: linear-gradient(135deg, #7D669C, #6F5497);
        color: #fff;
        border-radius: 10px;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 6px 15px rgba(111,84,151,0.3);
        transition: all 0.25s ease;
        border: none;
    }

        .pagination-container a:hover,
        .pagination-container button:hover,
        .btn-small:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(111,84,151,0.45);
        }

    .pagination-container input[type="number"] {
        width: 60px;
        padding: 6px 8px;
        border-radius: 10px;
        border: 1px solid #ccc;
        font-size: 0.95rem;
        margin-left: 8px;
    }
