/* Amorecipes Public Styles - Basic */

.amore-filters {
    background: #f9f9f9;
    padding: 24px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.amore-filter-group.search-group {
    margin-bottom: 20px;
}

.search-wrapper {
    display: flex;
    gap: 10px;
}

.amore-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.amore-filter-group {
    flex: 1 1 160px;
    min-width: 140px;
}

.amore-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.amore-filter-actions {
    flex: 0 0 auto;
    align-self: flex-end;
}

@media (max-width: 600px) {
    .amore-filter-group {
        flex: 1 1 100%;
    }
}

.amore-search {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.amore-search:focus {
    outline: none;
    border-color: #e74c3c;
}

.amore-search-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.amore-search-btn:hover {
    background: #c0392b;
}

.amore-filter-actions {
    padding-top: 20px;
}

.amore-filter-reset {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.amore-filter-reset:hover {
    background: #555;
}

/* Results */
.amore-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.amore-results.loading {
    opacity: 0.5;
    pointer-events: none;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Recipe Card */
.amore-recipe-card {
    background: #fff;
    overflow: hidden;
}

.amore-recipe-card:hover .recipe-title a {
    text-decoration: underline;
}

.recipe-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.recipe-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.recipe-content {
    padding: 20px;
}

.recipe-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.recipe-title a {
    color: #333;
    text-decoration: none;
}

.recipe-title a:hover {
    color: #e74c3c;
}

.recipe-cuisine {
    margin-bottom: 10px;
}

.cuisine-tag {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-right: 5px;
}

.recipe-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-excerpt {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}

/* Select2 overrides */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    border-color: #ddd;
    min-height: 40px;
}

/* Single Recipe Page */
.amore-single-recipe {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.recipe-header h1 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
}

.recipe-cuisines {
    margin-bottom: 20px;
}

.cuisine-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-right: 8px;
}

.recipe-featured-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.recipe-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.recipe-meta-bar {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.recipe-meta-bar .meta-item {
    font-size: 0.95em;
}

.recipe-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
}

/* Ingredients Section */
.recipe-ingredients {
    background: #fff;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.ingredients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.ingredients-header h2 {
    margin: 0;
    color: #e74c3c;
}

.serving-adjuster {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 4px;
}

.serving-adjuster label {
    font-weight: 600;
    margin: 0;
}

.serving-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
}

.serving-btn:hover {
    background: #c0392b;
}

#serving-count,
#amore-serving-count {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    font-size: 1em;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    background: #fff !important;
    -webkit-appearance: none;
    appearance: none;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.ingredient-item:last-child {
    border-bottom: none;
}

.ingredient-quantity {
    min-width: 120px;
    font-weight: 600;
    color: #e74c3c;
}

.ingredient-name {
    color: #333;
}

/* Instructions Section */
.recipe-instructions {
    margin-bottom: 40px;
}

.recipe-instructions h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.instructions-list li {
    counter-increment: step-counter;
    position: relative;
    padding: 20px 0 20px 60px;
    border-bottom: 1px solid #eee;
}

.instructions-list li:last-child {
    border-bottom: none;
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 15px;
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
}

.instructions-list li p {
    margin: 0;
}


/* ── Single Recipe Template ── */

.amore-single-recipe { max-width: 800px; margin: 0 auto; padding: 0 20px 60px; }

.recipe-featured-image { margin-bottom: 16px; }
.recipe-featured-image img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; display: block; }

.jump-to-recipe-wrap { margin-bottom: 24px; }
.jump-to-recipe {
    display: inline-block; color: #fff; text-decoration: none;
    padding: 10px 22px; border-radius: 4px; font-size: 0.9em; font-weight: 600;
    transition: opacity 0.2s;
}

.recipe-header { margin-bottom: 32px; }
.recipe-header h1 { font-size: 2em; margin: 0 0 12px; }

.recipe-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cuisine-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.82em; font-weight: 600; }

.recipe-meta-bar { display: flex; flex-wrap: wrap; gap: 20px; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.meta-item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 80px; }
.meta-icon { font-size: 1.3em; }
.meta-label { font-size: 0.75em; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.meta-value { font-size: 1em; }

.recipe-content-body { margin: 32px 0; line-height: 1.8; }
.recipe-content-body h2 { font-size: 1.4em; margin: 28px 0 12px; }
.recipe-content-body p { margin: 0 0 16px; }

.recipe-card { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 28px; margin: 32px 0; }

.recipe-section-title { font-size: 1.3em; margin: 0 0 20px; }

.ingredients-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ingredients-header .recipe-section-title { margin: 0; border: none; }

.serving-adjuster { display: flex; align-items: center; gap: 8px; }
.serving-label { font-size: 0.9em; color: #555; }
.serving-btn {
    width: 32px; height: 32px; border: 2px solid; background: transparent;
    border-radius: 4px; font-size: 1.1em; cursor: pointer; font-weight: bold;
    transition: background 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center;
}
#serving-count,
#amore-serving-count { width: 52px; text-align: center; border: 1px solid #ddd; border-radius: 4px; padding: 6px; font-size: 1em; color: #333 !important; -webkit-text-fill-color: #333 !important; background: #fff !important; }

.ingredients-list { list-style: none; margin: 0; padding: 0; }
.ingredient-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
.ingredient-item:last-child { border-bottom: none; }
.ingredient-amount { min-width: 80px; font-size: 0.95em; }
.ingredient-name { flex: 1; }

.recipe-instructions { margin-top: 28px; }
.instructions-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.instruction-step { display: flex; gap: 16px; align-items: flex-start; }
.step-number {
    min-width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700;
    font-size: 0.9em; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.step-text { line-height: 1.7; padding-top: 6px; }

/* FAQ */
.recipe-faq { margin: 40px 0; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-item details { padding: 14px 0; }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; font-size: 1em; padding-right: 24px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.2em; transition: transform 0.2s; }
.faq-item details[open] summary::after { content: '−'; }
.faq-answer { padding: 12px 0 4px; color: #444; line-height: 1.7; }

/* Related recipes */
.related-recipes { margin: 40px 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.related-recipe-card {
    display: block; text-decoration: none; color: inherit;
    border: 2px solid #eee; border-radius: 8px; overflow: hidden; transition: border-color 0.2s;
}
.related-thumb img { width: 100%; height: 150px; object-fit: cover; display: block; }
.related-info { padding: 12px; }
.related-info h3 { margin: 0 0 8px; font-size: 0.95em; line-height: 1.4; }
.related-meta { display: flex; gap: 12px; font-size: 0.8em; color: #777; }

/* Comments */
.recipe-comments { margin-top: 40px; }

/* ── FAQ Accordion ── */
.amore-faq-section { margin: 40px 0; }
.amore-faq-title { font-size: 1.3em; margin: 0 0 20px; padding-bottom: 8px; }
.amore-faq-item { border-bottom: 1px solid #eee; }
.amore-faq-q {
    width: 100%; background: none; border: none; padding: 16px 0;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; text-align: left; font-size: 1em; font-weight: 600;
    color: var(--accent, #333); gap: 12px;
}
.amore-faq-q:hover { opacity: 0.8; }
.amore-faq-icon { font-size: 1.3em; flex-shrink: 0; transition: transform 0.2s; }
.amore-faq-item.active .amore-faq-icon { transform: rotate(45deg); }
.amore-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #444; line-height: 1.7; font-size: 0.95em;
}
.amore-faq-a.open { max-height: 600px; padding-bottom: 16px; }

/* ── Force geen dubbele nummers ── */
.ar-steps,
.ar-steps li,
.instructions-list,
.instructions-list li,
.amore-single-recipe ol,
.amore-single-recipe ul.instructions-list {
    list-style: none !important;
    list-style-type: none !important;
    counter-reset: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.ar-steps li::before,
.instructions-list li::before {
    content: none !important;
}

/* ===== Boekreviews Grid + Filterbar ===== */

.amore-boekreviews {
    max-width: 1100px;
    margin: 0 auto;
}

/* Filterbar */
.amore-boekreviews .amore-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    background: none;
    padding: 0;
}

/* Dropdown wrapper */
.amore-filter-dropdown {
    position: relative;
}

/* Toggle knop */
.amore-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s;
}

.amore-filter-toggle:hover,
.amore-filter-dropdown.is-open .amore-filter-toggle {
    border-color: #AC2B34;
    color: #AC2B34;
}

.amore-filter-arrow {
    font-size: 0.65rem;
    transition: transform 0.15s;
}

.amore-filter-dropdown.is-open .amore-filter-arrow {
    transform: rotate(180deg);
}

.amore-filter-count {
    font-weight: 700;
    color: #AC2B34;
}

/* Dropdown panel */
.amore-filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    padding: 10px 14px;
    min-width: 180px;
    z-index: 100;
}

.amore-filter-dropdown.is-open .amore-filter-panel {
    display: block;
}

/* Checkbox rij */
.amore-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 1px solid #f4f4f4;
}

.amore-checkbox-item:last-child {
    border-bottom: none;
}

.amore-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #AC2B34;
    flex-shrink: 0;
}

/* Zoekbalk */
.amore-filter-search {
    flex: 1;
    min-width: 200px;
}

#amore-book-search {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.88rem;
    outline: none;
    box-sizing: border-box;
}

#amore-book-search:focus {
    border-color: #AC2B34;
}

/* Grid — altijd 4 kolommen */
.amore-book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    transition: opacity 0.2s ease;
}

@media (max-width: 800px) {
    .amore-book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .amore-book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Kaart */
.amore-book-card {
    display: block;
}

.amore-book-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.amore-book-card__img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.amore-book-card__no-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #f0f0f0;
    border-radius: 4px;
}

.amore-book-card__info {
    padding: 10px 2px 0;
}

.amore-book-card__title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 3px;
}

.amore-book-card__author {
    display: block;
    font-size: 0.8rem;
    color: #777;
}

.amore-book-card__year {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 2px;
}

.amore-boekreviews .no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 40px 0;
}
