/* Advanced CSS for auctions.php */

/* Root variables for consistent theming */
:root {
    --primary-color: #2a9d8f;
    --secondary-color: #264653;
    --accent-color: #e76f51;
    --background-color: #f4f1de;
    --text-color: #1d3557;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Merriweather', serif;
}

/* Global styles */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.filter {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter h1 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin: 0;
}

.filter form {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter input, select, button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.filter input {
    flex: 1 1 auto;
    min-width: 200px;
}

.filter select {
    background: white;
    color: var(--text-color);
}

.filter button {
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.filter button:hover {
    background: #f28482;
}

main {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.auction {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auction:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.auction h3 {
    margin: 0 0 1rem;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.auction h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.auction h3 a:hover {
    color: var(--accent-color);
}

.auction p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .filter form {
        flex-direction: column;
        gap: 0.5rem;
    }

    main {
        padding: 1rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .filter {
        padding: 0.5rem 1rem;
    }

    .filter h1 {
        font-size: 1.5rem;
    }
}
