@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
/* === Silvita Калкулатор – V9.5 Обединени стилове === */

/* Използване на CSS променливи за лесна поддръжка */
:root {
  --primary-green: #52b62c;
  --light-green: #cde3b0;
  --main-bg: #f8fff4;
  --main-border: #d6e9c6;
  --text-dark: #3b6e22;
  --padding-base: 20px;
  --border-radius-base: 12px;
  --box-shadow-base: 0 4px 12px rgba(0,0,0,0.05);
}

/* === Общи стилове за всички блокове === */
#plant-calculator,
#results,
#product-box {
  max-width: 420px; /* базова ширина за мобилно */
  margin: 0 auto;
  background: var(--main-bg);
  border: 1px solid var(--main-border);
  border-radius: var(--border-radius-base);
  box-shadow: var(--box-shadow-base);
  font-family: "Montserrat", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  font-size: 1.2em; /* ПРОМЯНА: Увеличаване на базовия размер на шрифта с 20% */
  padding: var(--padding-base);
  box-sizing: border-box;
}

/* Десктоп версия – 20% по-широка */
@media (min-width: 1024px) {
  #plant-calculator,
  #results,
  #product-box {
    max-width: 504px;
  }
}

/* === Part 1: Калкулатор === */
#plant-calculator {
 border-radius: 40px ;
  padding-bottom: 40px;
}

#plant-calculator h3 {
  margin-bottom: var(--padding-base);
  font-size: 1.4em;
  color: var(--primary-green);
  text-align: center;
}

#plant-calculator label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

/* Стил за стандартните полета за избор и въвеждане */
#plant-calculator select,
#plant-calculator input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid var(--primary-green); /* Променен бордюр на 1px */
  border-radius: 20px;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Лека сянка */
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Скрити блокове за въвеждане */
.hidden {
  display: none;
}

/* === Part 2: Резултати === */
#results {
  margin-top: 30px;
  border-radius: 40px ;
  padding-bottom: 40px;
}

#results h4 {
  text-align: center;
  margin-top: 0;
  color: var(--text-dark);
}

#results p {
  margin: 5px 0;
  line-height: 1.4;
}

#results strong {
  color: var(--text-dark);
}

/* Клас за централно подравняване, вместо инлайн стил */
.text-center {
  text-align: center;
}

#extra-output {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95em;
}

/* === Part 3: Препоръчан продукт === */
#product-box {
  margin-top: 30px;
  text-align: center;
}

#product-box img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
}

#product-box a.silvita-button {
  display: block;
  width: 100%;
  padding: 8px;
  margin-top: var(--padding-base);
  background-color: var(--primary-green);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#roduct-box a.silvita-button:hover {
  background-color: #449e25;
}

/* responsive image */
#product-box a img {
  width: 100%;
}

/* === Стилизиране на персонализираното падащо меню === */
.custom-select-container {
    position: relative;
    width: 100%;
    margin-top: 6px;
    border: 1px solid var(--primary-green); /* Променен бордюр на 1px */
    border-radius: 20px;
    box-sizing: border-box;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Лека сянка */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.select-display {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-display::after {
    content: '▼';
    font-size: 0.8em;
    color: var(--primary-green);
    margin-left: 10px;
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--primary-green); /* Променен бордюр на 1px */
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.select-category {
    background-color: var(--primary-green);
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    cursor: default;
    pointer-events: none; /* За да не може да се кликва */
    text-transform: uppercase; /* Това прави текста с главни букви */
    border-radius: 20px; /* <-- ДОБАВЕНО ЗА ЗАОБЛЯНЕ */
    margin: 10px;         /* <-- ДОБАВЕНО ЗА МАЛКО ОТСТОЯНИЕ */
}

.select-option {
    padding: 8px 20px;
    cursor: pointer;
}

.select-option:hover {
    background-color: #f0f0f0;
}

/* === Стил за снимката на растението и надписа === */
#plant-image-container {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#plant-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay-text {
  display: none; 
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
  padding: 25px 10px 5px 10px;
  font-weight: bold;
  font-size: 1.4em;
  letter-spacing: 1.5px;
  pointer-events: none;
  box-sizing: border-box;
  text-transform: uppercase;
}

#plant-image-container:has(img) .image-overlay-text {
  display: block;
}

/* === Стил за визуална рецепта === */
#visual-recipe {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  margin-top: 25px;
  background-color: #ffffff;
  padding: 10px;
  border-radius: var(--border-radius-base);
  border: 1px dashed var(--main-border);
}

.recipe-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recipe-icon {
  font-size: 2em;
}

.recipe-amount {
  font-weight: bold;
  font-size: 1em;
  color: var(--text-dark);
  margin-top: 3px;
}

.recipe-label {
  font-size: 0.8em;
  color: #666;
}

.recipe-operator {
  font-size: 2em;
  color: var(--primary-green);
  padding-bottom: 10px;
}

/* === Стил за иконата на продукта Silvita === */
#silvita-icon {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  min-width: 50px;
  min-height: 80px;
}

/* --- ПРОМЯНА: Обновени стилове за анимацията --- */

/* Контейнерът за анимацията - правим го кръг с "frosted glass" ефект */
#method-animation {
  position: absolute;
  top: 15px; /* Леко отместване отгоре */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: none;
  
  /* Стил на фона */
  width: 160px; /* Размер на кръга */
  height: 160px; /* Размер на кръга */
  background: rgba(255, 255, 255, 0.25); /* Полупрозрачен бял фон */
  border-radius: 50%; /* Прави го перфектен кръг */
  backdrop-filter: blur(5px); /* Ефект "матирано стъкло" */
  -webkit-backdrop-filter: blur(5px); /* За Safari браузъри */
  
  /* Центриране на lottie-player елемента вътре */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Самият lottie-player елемент */
#method-animation lottie-player {
  width: 150px; 
  height: 150px;
}
/* Добавен стил за новия бутон */
button.silvita-button {
  display: block;
  width: 100%;
  padding: 15px; /* Увеличено от 8px на 10px за по-добър вид */
  margin-top: calc(var(--padding-base) + 10px);
  background-color: var(--primary-green);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500; 
}

button.silvita-button:hover {
  background-color: #449e25;
}
.icon {
  /* Задаваме ширина от 24 пиксела */
  width: 24px; 
  
  /* Задаваме височина от 24 пиксела */
  height: 24px; 
  
  /* Тези стилове помагат за доброто подравняване с текста */
  vertical-align: middle;
  margin-right: 8px;
}
.icon1 {
  /* Задаваме ширина от 24 пиксела */
  width: 60px; 
  
  /* Задаваме височина от 24 пиксела */
  height: 60px; 
  
  /* Тези стилове помагат за доброто подравняване с текста */
  vertical-align: middle;
  margin-right: 8px;
}