{"id":1362,"date":"2024-04-10T08:00:00","date_gmt":"2024-04-10T08:00:00","guid":{"rendered":"https:\/\/agnusvita.com\/?p=1362"},"modified":"2024-04-10T08:00:00","modified_gmt":"2024-04-10T08:00:00","slug":"explore-our-teas","status":"publish","type":"post","link":"https:\/\/agnusvita.gr\/?p=1362","title":{"rendered":"Explore our teas"},"content":{"rendered":"\n<div class=\"wp-block-uagb-container uagb-block-d49241c3 alignfull uagb-is-root-container\"><div class=\"uagb-container-inner-blocks-wrap\">\n<div class=\"wp-block-uagb-container uagb-block-8d54b749\">\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Herbal Healing Advisor<\/title>\n    <!-- Tailwind CSS for styling -->\n    <script src=\"https:\/\/cdn.tailwindcss.com\"><\/script>\n    <!-- Google Fonts: Inter & Lora -->\n    <link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n    <link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n    <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Lora:ital,wght@0,400;0,500;1,400&#038;display=swap\" rel=\"stylesheet\">\n    <style>\n        \/* Custom styles for a natural, calming theme *\/\n        body {\n            font-family: 'Inter', sans-serif;\n        }\n        .lora-font {\n            font-family: 'Lora', serif;\n        }\n        .symptom-input:focus {\n            box-shadow: 0 0 0 2px #A3B18A; \/* A soft green focus ring *\/\n            border-color: #A3B18A;\n        }\n        \/* Style for the dropdown arrow *\/\n        select {\n            background-image: url(\"data:image\/svg+xml,%3csvg xmlns='http:\/\/www.w3.org\/2000\/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'\/%3e%3c\/svg%3e\");\n            background-position: right 0.5rem center;\n            background-repeat: no-repeat;\n            background-size: 1.5em 1.5em;\n            -webkit-appearance: none;\n            -moz-appearance: none;\n            appearance: none;\n        }\n    <\/style>\n<\/head>\n<body class=\"bg-[#F1F5F2] text-gray-800\">\n\n    <div class=\"container mx-auto p-4 md:p-8 max-w-4xl\">\n        \n        <!-- Header -->\n        <header class=\"text-center mb-8\">\n            <h1 class=\"text-4xl md:text-5xl font-bold text-[#3A5A40] lora-font\">Herbal Healing Advisor<\/h1>\n            <p class=\"mt-2 text-lg text-gray-600\">Select a symptom to find a supportive tea.<\/p>\n        <\/header>\n\n        <!-- Symptom Input Section -->\n        <div class=\"bg-white p-6 rounded-xl shadow-md\">\n            <label for=\"symptom-select\" class=\"block text-xl font-semibold text-gray-700 mb-3\">Choose your primary symptom<\/label>\n            <select id=\"symptom-select\" class=\"w-full p-4 border border-gray-300 rounded-lg text-base symptom-input transition-all duration-300 bg-white\">\n                <!-- Options will be populated by JavaScript -->\n            <\/select>\n            <button id=\"getRecommendationBtn\" class=\"mt-4 w-full bg-[#588157] text-white py-3 px-6 rounded-lg font-semibold text-lg hover:bg-[#3A5A40] transition-colors duration-300 shadow-sm\">\n                Get Recommendation\n            <\/button>\n        <\/div>\n\n        <!-- Results Section -->\n        <div id=\"results\" class=\"mt-8\">\n            <!-- Recommendations will be dynamically inserted here -->\n        <\/div>\n\n    <\/div>\n\n    <script>\n        document.addEventListener('DOMContentLoaded', function() {\n            \n            \/\/ --- HERB DATABASE ---\n            const herbDatabase = [\n                { name: 'Cistus Incanus', properties: ['immune', 'cold', 'flu', 'virus', 'antiviral', 'sore throat', 'cough', 'antioxidant', 'detox'], synergies: ['Olive Leaves', 'Spearmint', 'Thyme'], description: 'A powerful antioxidant and immune system supporter, often used to combat colds and flu.', productLink: '\/shop\/cistus-incanus' },\n                { name: 'Olive Leaves', properties: ['immune', 'blood pressure', 'antiviral', 'antibacterial', 'cholesterol', 'inflammation'], synergies: ['Cistus Incanus', 'Hawthorn'], description: 'Known for its immune-boosting and cardiovascular benefits, helping to maintain healthy blood pressure.', productLink: '\/shop\/olive-leaves' },\n                { name: 'Spearmint', properties: ['digestion', 'stomach', 'nausea', 'gas', 'bloating', 'focus', 'refresh', 'breath'], synergies: ['Lemon Balm', 'Ziziphora Taurica (Blue Mint)'], description: 'Soothes digestive issues and provides a refreshing, calming effect that can aid focus.', productLink: '\/shop\/spearmint' },\n                { name: 'Ziziphora Taurica (Blue Mint)', properties: ['calm', 'anxiety', 'stress', 'heart', 'palpitations', 'sedative', 'relax'], synergies: ['Lemon Balm', 'Hawthorn'], description: 'A traditional herb used to calm the nervous system and support heart health during times of stress.', productLink: '\/shop\/ziziphora-taurica' },\n                { name: 'Lemon Balm', properties: ['stress', 'anxiety', 'sleep', 'insomnia', 'calm', 'relax', 'digestion', 'focus'], synergies: ['Ziziphora Taurica (Blue Mint)', 'Spearmint', 'Hawthorn'], description: 'A calming herb that reduces stress and anxiety, promotes restful sleep, and supports digestion.', productLink: '\/shop\/lemon-balm' },\n                { name: 'Hawthorn', properties: ['heart', 'circulation', 'blood pressure', 'chest', 'anxiety', 'digestion'], synergies: ['Olive Leaves', 'Ziziphora Taurica (Blue Mint)', 'Lemon Balm'], description: 'Renowned for supporting heart health, improving circulation, and calming heart-related anxiety.', productLink: '\/shop\/hawthorn' },\n                { name: 'Hypericum (St. John\\'s Wort)', properties: ['mood', 'depression', 'anxiety', 'sadness', 'nerve', 'wound'], synergies: ['Lemon Balm', 'Ginkgo Biloba'], description: 'Commonly used to support a positive mood and emotional balance, especially for mild depression.', productLink: '\/shop\/hypericum' },\n                { name: 'Tribulus Terrestris', properties: ['libido', 'energy', 'stamina', 'vitality', 'hormone', 'testosterone', 'athletic'], synergies: ['Ginkgo Biloba'], description: 'An energizing herb known to support vitality, libido, and athletic performance.', productLink: '\/shop\/tribulus-terrestris' },\n                { name: 'Ginkgo Biloba', properties: ['memory', 'focus', 'brain', 'circulation', 'concentration', 'cognition', 'tinnitus'], synergies: ['Rosemary', 'Hypericum'], description: 'Enhances cognitive function by improving blood flow to the brain, boosting memory and focus.', productLink: '\/shop\/ginkgo-biloba' },\n                { name: 'Rosemary', properties: ['memory', 'focus', 'concentration', 'antioxidant', 'digestion', 'alertness'], synergies: ['Ginkgo Biloba', 'Spearmint', 'Thyme', 'Sage'], description: 'A stimulating herb that can improve alertness, memory, and concentration while also aiding digestion.', productLink: '\/shop\/rosemary' },\n                { name: 'Thyme', properties: ['cough', 'bronchitis', 'respiratory', 'sore throat', 'cold', 'flu', 'antibacterial', 'congestion', 'expectorant'], synergies: ['Rosemary', 'Sage', 'Cistus Incanus'], description: 'A powerful antiseptic and expectorant, excellent for coughs, congestion, and sore throats.', productLink: '\/shop\/thyme' },\n                { name: 'Sage', properties: ['sore throat', 'mouth sores', 'antibacterial', 'memory', 'focus', 'hot flashes', 'menopause', 'digestion', 'antioxidant'], synergies: ['Thyme', 'Rosemary', 'Lemon Balm'], description: 'Traditionally used for sore throats due to its antiseptic properties. Also known to support cognitive function.', productLink: '\/shop\/sage' }\n            ];\n\n            const getRecommendationBtn = document.getElementById('getRecommendationBtn');\n            const symptomSelect = document.getElementById('symptom-select');\n            const resultsDiv = document.getElementById('results');\n\n            \/\/ --- POPULATE DROPDOWN MENU ---\n            function populateSymptomDropdown() {\n                const allProperties = new Set();\n                herbDatabase.forEach(herb => {\n                    herb.properties.forEach(prop => {\n                        \/\/ Capitalize the first letter for better display\n                        const formattedProp = prop.charAt(0).toUpperCase() + prop.slice(1);\n                        allProperties.add(formattedProp);\n                    });\n                });\n                \n                const uniqueSymptoms = Array.from(allProperties).sort();\n                \n                symptomSelect.innerHTML = `<option value=\"\">-- Please select a symptom --<\/option>`; \/\/ Default option\n                uniqueSymptoms.forEach(symptom => {\n                    const option = document.createElement('option');\n                    option.value = symptom.toLowerCase();\n                    option.textContent = symptom;\n                    symptomSelect.appendChild(option);\n                });\n            }\n\n            \/\/ Initial population of the dropdown\n            populateSymptomDropdown();\n\n            \/\/ --- EVENT LISTENER ---\n            getRecommendationBtn.addEventListener('click', () => {\n                const selectedSymptom = symptomSelect.value;\n                if (selectedSymptom === '') {\n                    displayNoInputMessage();\n                    return;\n                }\n                \n                \/\/ The keyword is now the single selected symptom\n                const symptomKeywords = [selectedSymptom];\n                \n                \/\/ Find matching herbs\n                let recommendations = findMatchingHerbs(symptomKeywords);\n                \n                \/\/ Display the results\n                displayResults(recommendations);\n            });\n            \n            \/\/ --- RECOMMENDATION LOGIC ---\n            function findMatchingHerbs(keywords) {\n                const matchedHerbs = new Map();\n\n                herbDatabase.forEach(herb => {\n                    let score = 0;\n                    herb.properties.forEach(prop => {\n                        \/\/ We check if any of the keywords are present in the property\n                        if (keywords.some(keyword => prop.includes(keyword))) {\n                            score++;\n                        }\n                    });\n                    if (score > 0) {\n                        matchedHerbs.set(herb.name, { ...herb, score });\n                    }\n                });\n\n                \/\/ Convert map to array and sort by score (highest first)\n                return Array.from(matchedHerbs.values()).sort((a, b) => b.score - a.score);\n            }\n            \n            function displayNoInputMessage() {\n                resultsDiv.innerHTML = `\n                    <div class=\"bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700 p-4 rounded-lg shadow-md\" role=\"alert\">\n                        <p class=\"font-bold\">Please select a symptom<\/p>\n                        <p>Choose an option from the dropdown menu to get a recommendation.<\/p>\n                    <\/div>\n                `;\n            }\n\n            \/\/ --- DISPLAY RESULTS LOGIC ---\n            function displayResults(recommendations) {\n                resultsDiv.innerHTML = ''; \/\/ Clear previous results\n\n                if (recommendations.length === 0) {\n                    resultsDiv.innerHTML = `\n                        <div class=\"bg-white p-6 rounded-xl shadow-md text-center\">\n                            <h3 class=\"text-xl font-bold text-[#3A5A40]\">No specific matches found.<\/h3>\n                            <p class=\"mt-2 text-gray-600\">Please try another symptom. For complex health concerns, we recommend consulting a healthcare professional.<\/p>\n                        <\/div>\n                    `;\n                    return;\n                }\n\n                let synergyBlends = findSynergisticBlends(recommendations);\n\n                let resultsHTML = `<h2 class=\"text-3xl font-bold text-center mb-6 text-[#3A5A40] lora-font\">Your Herbal Recommendations<\/h2>`;\n\n                \/\/ Display synergy blends first if any exist\n                if (synergyBlends.length > 0) {\n                    resultsHTML += `\n                    <div class=\"bg-green-50 border-2 border-green-200 p-6 rounded-xl shadow-lg mb-8\">\n                        <h3 class=\"text-2xl font-bold text-[#3A5A40] mb-3\">Synergistic Blends<\/h3>\n                        <p class=\"text-gray-700 mb-4\">The following herbs from your recommendations work especially well together to enhance their supportive effects:<\/p>\n                        <ul class=\"list-disc list-inside space-y-2\">\n                    `;\n                    synergyBlends.forEach(blend => {\n                         resultsHTML += `<li class=\"text-lg font-medium text-gray-800\">${blend.join(' + ')}<\/li>`;\n                    });\n                    resultsHTML += `<\/ul><\/div>`;\n                }\n\n                \/\/ Display individual herb cards\n                resultsHTML += `<div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6\">`;\n                recommendations.forEach(herb => {\n                    resultsHTML += `\n                        <div class=\"bg-white rounded-xl shadow-lg overflow-hidden flex flex-col transition-transform transform hover:-translate-y-1\">\n                            <div class=\"p-6 flex-grow\">\n                                <h4 class=\"text-2xl font-bold text-[#3A5A40] lora-font\">${herb.name}<\/h4>\n                                <p class=\"mt-2 text-gray-600\">${herb.description}<\/p>\n                            <\/div>\n                            <div class=\"p-6 bg-gray-50\">\n                                <a href=\"${herb.productLink}\" target=\"_blank\" class=\"block w-full text-center bg-[#A3B18A] text-white py-2 px-4 rounded-md font-semibold hover:bg-[#869473] transition-colors duration-300\">\n                                    View Product\n                                <\/a>\n                            <\/div>\n                        <\/div>\n                    `;\n                });\n                resultsHTML += `<\/div>`;\n                \n                resultsDiv.innerHTML = resultsHTML;\n            }\n            \n            \/\/ --- SYNERGY LOGIC ---\n            function findSynergisticBlends(recommendations) {\n                const recommendedNames = recommendations.map(r => r.name);\n                const blends = new Set();\n                \n                recommendations.forEach(herb => {\n                    herb.synergies.forEach(synergyPartner => {\n                        if (recommendedNames.includes(synergyPartner)) {\n                            const blend = [herb.name, synergyPartner].sort().join(',');\n                            blends.add(blend);\n                        }\n                    });\n                });\n\n                return Array.from(blends).map(b => b.split(','));\n            }\n\n        });\n    <\/script>\n\n<\/body>\n<\/html>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is an attempt to provide information what our teas might support your health<\/p>\n","protected":false},"author":1,"featured_media":2179,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/agnusvita.gr\/index.php?rest_route=\/wp\/v2\/posts\/1362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agnusvita.gr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agnusvita.gr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agnusvita.gr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agnusvita.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1362"}],"version-history":[{"count":0,"href":"https:\/\/agnusvita.gr\/index.php?rest_route=\/wp\/v2\/posts\/1362\/revisions"}],"wp:attachment":[{"href":"https:\/\/agnusvita.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agnusvita.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agnusvita.gr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}