/* Design System - Miam ! */
:root {
    --bg-color: #fdfaf6;
    --text-color: #2d2d2d;
    --accent-color: #d35400;
    /* Terre cuite */
    --secondary-color: #7f8c8d;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 50px;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 60px 0;
    text-align: center;
}

.logo {
    font-size: 3rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
}

/* Home Search */
.search-container {
    margin-bottom: 60px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 30px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(211, 84, 0, 0.1);
}

/* Category Menu */
.category-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.category-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.category-chip {
    padding: 10px 25px;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-chip.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.3);
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.recipe-card {
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.recipe-card:hover {
    transform: translateY(-10px);
}

.recipe-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.recipe-card h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 1;
    font-size: 1.5rem;
}

/* Buttons */
.btn-add {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-add:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Wake Lock Button */
.btn-wake {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 900;
}

.btn-wake.active {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

/* Recipe Meta Info */
.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: #fdfaf6;
    border-radius: var(--radius);
    border: 1px solid #eee;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.meta-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Ingredients List */
.ingredients-list {
    list-style: none;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ingredients-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.ingredients-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Print Styles */
@media print {

    .btn-add,
    .btn-wake,
    .save-bar,
    header,
    .search-container,
    .admin-actions,
    .status-banner {
        display: none !important;
    }

    body {
        background: white;
        padding: 0;
    }

    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .recipe-content {
        box-shadow: none;
        padding: 0;
    }

    .recipe-header {
        height: 300px;
        box-shadow: none;
    }
}

/* Quill Customization */
.ql-container.ql-snow {
    border: none !important;
    font-family: inherit !important;
    font-size: 1.1rem !important;
}

.ql-editor {
    padding: 0 !important;
    min-height: 200px;
}

.ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid #eee !important;
    padding: 8px 0 !important;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}