:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --hover-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Roboto';font-size: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: white;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.auth-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-name {
    color: var(--text-color);
    font-weight: 500;
    margin-right: 1.5rem;
}

.auth-button {
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.recipes-page {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.search-section {
    margin-bottom: 3rem;
}

.search-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-bar {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-bar:focus {
    border-color: var(--primary-color);
    outline: none;
}

.category-select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    cursor: pointer;
    font-size: 1rem;
}

.selected-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.ingredient-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.ingredient-tag:hover {
    transform: translateY(-2px);
}

.remove-ingredient {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.3rem;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.recipe-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.recipe-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.recipe-content {
    padding: 1.5rem;
}

.recipe-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.recipe-category {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.pagination button:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #222;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.cookie-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#acceptCookies {
    background-color: #4CAF50;
    color: white;
}

#declineCookies {
    background-color: #f44336;
    color: white;
}

