@charset "UTF-8";
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background: #f8faf5;
  color: #2d2d2d;
  line-height: 1.6;
}

.hero {
  text-align: center;
  padding: 10px 2rem;
  background: linear-gradient(135deg, #d9f99d, #fefce8);
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #15803d;
}
.hero p {
  font-size: 1.2rem;
  color: #333;
}
.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn.primary {
  background: #15803d;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn.primary:hover {
  background: #166534;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.btn.secondary {
  background: #facc15;
  color: #1a2e05;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn.secondary:hover {
  background: #fde047;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.api-calendar {
  display: grid;
  grid-template-columns: 1fr 3fr; /* Ліва панель (астро) і Календар */
  gap: 30px;
  margin: 40px auto;
  padding: 0 20px;
}

.astro-calendar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 25px;
}

.divider {
  height: 1px;
  background: #eee;
  margin: 15px 0;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}
.header .date-display {
  font-size: 0.9em;
  color: #666;
}
.header .day-num {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: #15803d;
}
.header .day-name {
  font-size: 1.2em;
  font-weight: 600;
  margin-top: -10px;
  color: #333;
}

#currentDayWeatherInfo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}
#currentDayWeatherInfo .weather-icon-main {
  width: 30px;
  height: 30px;
}
#currentDayWeatherInfo .temp-min-max {
  font-weight: 600;
  color: #1a2e05;
}

.astro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.astro-item {
  background: #f7fff7;
  padding: 5px 0px;
  border-radius: 6px;
  font-size: 0.95em;
}
.astro-item span {
  font-weight: 600;
  color: #333;
}

.icon {
  font-size: 2em;
  margin-bottom: 5px;
}

.sun-data {
  grid-column: 1/2;
  text-align: center;
}

.moon-data {
  grid-column: 2/3;
  text-align: center;
}

.data-row {
  margin-bottom: 20px;
}

.moon-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 0.9em;
  margin-top: 15px;
}

#moonDayText {
  grid-column: 1/-1;
  text-align: center;
  font-size: 0.9em;
  color: #555;
  font-style: italic;
  margin-top: 10px;
}

.calendar-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 25px;
  grid-column: 2/3;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.calendar-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #15803d;
  flex-grow: 1;
  text-align: center;
}

.nav-button {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding: 5px 10px;
}
.nav-button:hover {
  background: #e0e0e0;
  color: #15803d;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 500;
}

.day-name {
  padding: 10px 0;
  font-size: 0.9em;
  color: #666;
}
.day-name.sunday {
  color: #D32F2F; /* Red for Sunday */
}

.days-container {
  grid-column: 1/-1; /* Займає всю ширину під назвами днів */
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
}

.calendar-day {
  position: relative;
  height: 80px;
  padding: 5px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  font-size: 1em;
  color: #333;
  cursor: pointer; /* Додано, щоб вказувати на інтерактивність */
  transition: background-color 0.2s;
  /* --- СТИЛІ ВИБРАНОГО ДНЯ --- */
}
.calendar-day:hover {
  background: #f1f8e9; /* Light hover effect */
}
.calendar-day.weekend {
  color: #D32F2F; /* Red for weekends */
}
.calendar-day.selected-day {
  border: 3px solid #15803d; /* Товста зелена рамка */
  background: #e0f2f1; /* Світло-бірюзовий фон для виділення */
  border-radius: 4px;
  z-index: 2; /* Щоб виділення було помітним */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.calendar-day.current-day {
  border: 2px solid #4CAF50;
  border-radius: 4px;
  background: #e8f5e9;
}
.calendar-day.selected-day.current-day {
  border: 3px solid #00796b; /* Комбінований стиль */
  background: #c8e6c9;
}
.calendar-day.prev-month, .calendar-day.next-month, .calendar-day.day-offset {
  color: #aaa;
  background-color: #fcfcfc;
}
.calendar-day .day-number {
  font-weight: 600;
  position: absolute;
  bottom: 5px;
  right: 5px;
}
.calendar-day .moon-image {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 1.5em;
  line-height: 1;
}

.calendar-tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-width: 250px;
  pointer-events: none;
  text-align: left;
  display: none;
}
.calendar-tooltip .tooltip-header {
  font-weight: 700;
  margin-bottom: 5px;
  color: #15803d;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}
.calendar-tooltip .tooltip-detail {
  font-size: 0.9em;
  line-height: 1.4;
  margin-top: 3px;
}

.daily-advice {
  background-color: #f7fff7;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  grid-column: 1/-1; /* Займає всю ширину під календарем */
}

#selectedDateDisplay {
  font-size: 1.4rem;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 10px;
}

#adviceContent {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  min-height: 50px; /* Забезпечує мінімальну висоту */
}

.loading {
  color: transparent !important;
  background-color: #eee;
  border-radius: 4px;
  display: inline-block;
  min-height: 1em;
  min-width: 100px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    background-color: #eee;
  }
  50% {
    background-color: #f5f5f5;
  }
  100% {
    background-color: #eee;
  }
}
@media (max-width: 992px) {
  .api-calendar {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .calendar-section {
    grid-column: 1/-1;
  }
  .calendar-header h2 {
    font-size: 1.5rem;
  }
  .calendar-day {
    height: 70px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 15px 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero .buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  .astro-grid, .moon-details-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .calendar-day {
    height: 60px;
    font-size: 0.9em;
    padding: 3px;
  }
  .calendar-day .moon-image {
    font-size: 1.2em;
  }
  /* СТИЛЬ ПІДКАЗКИ ДЛЯ МОБІЛЬНИХ */
  .calendar-tooltip {
    width: 90%;
    max-width: 300px;
    left: 50% !important;
    transform: translateX(-50%);
    top: auto !important;
    bottom: 10px;
    position: fixed;
    pointer-events: all;
  }
  #selectedDateDisplay {
    font-size: 1.2rem;
  }
  #adviceContent {
    font-size: 1em;
  }
}
.benefits, .audience {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.benefits h2, .audience h2 {
  color: #15803d;
  font-size: 2rem;
  margin-bottom: 20px;
}
.benefits .grid, .audience .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefits .grid .card, .audience .grid .card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.benefits .grid .card h3, .audience .grid .card h3 {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #333;
}

.calendar-preview {
  text-align: center;
  padding: 40px 20px;
  background: #e8f5e9;
  margin-top: 40px;
}
.calendar-preview h2 {
  color: #15803d;
  font-size: 2rem;
}
.calendar-preview p {
  font-size: 1.2rem;
  margin: 15px 0 25px;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}
.tabs .tab {
  background: #cdd7c0;
  color: #2f2f2f;
  font-weight: 700;
  font-size: 20px;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tabs .tab.active {
  background: #7a9a5f;
  color: #fff;
  transform: scale(1.05);
}
.tabs .tab:hover {
  background: #8eb272;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
section.moon-calendar {
  width: 50%;
  padding-right: 25px;
}

section.advice-details-card {
  width: 50%;
}

.culture-grid-section {
  max-width: 1200px;
  text-align: center;
}
.culture-grid-section h2 {
  color: #15803d;
  font-size: 2rem;
  margin-bottom: 10px;
}
.culture-grid-section p {
  color: #555;
  margin-bottom: 30px;
  font-size: 1.1rem;
  text-align: left;
}

.culture-grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  padding: 10px 0;
}

.culture-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.culture-card .culture-emoji {
  font-size: 2.5rem;
  margin-bottom: 5px;
  font-family: "Arial", sans-serif;
}
.culture-card .culture-name {
  font-size: 1em;
  line-height: 1.2;
}
.culture-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: #4CAF50;
}

@media (max-width: 900px) {
  .culture-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .culture-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .culture-card {
    padding: 10px;
  }
  .culture-card .culture-emoji {
    font-size: 2rem;
  }
  .calendar__info {
    flex-direction: column;
  }
  section.moon-calendar, section.advice-details-card {
    width: 100%;
    padding: 0;
    margin-top: 20px;
  }
}
.benefits-grid, .audience-grid {
  overflow: scroll;
}

.hidden {
  display: none !important;
}

.details-area {
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: left;
}

.back-btn {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
}

.culture-details-pane {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}
.culture-details-pane .details-name {
  font-size: 2.2rem;
  color: #15803d;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.culture-details-pane .full-calendar-placeholder {
  margin-top: 20px;
  background: #e8f5e9;
  text-align: center;
  color: #15803d;
}

.culture-details-content .culture-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}
@media (max-width: 900px) {
  .culture-details-content .culture-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .culture-details-content .culture-details-grid {
    grid-template-columns: 1fr;
  }
}
.culture-details-content .detail-block {
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fdfdfd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: 100%;
}
.culture-details-content .detail-block h4 {
  font-size: 1.15rem;
  color: #15803d;
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eef;
  font-weight: 600;
}
.culture-details-content .detail-block ul {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0;
}
.culture-details-content .detail-block p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.culture-details-content .details-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 30px 0;
}

.link__culture {
  text-decoration: none;
  color: #15803d;
}

/* --- СТИЛІ ДЛЯ ГРАФІКА ПОСІВНОГО КАЛЕНДАРЯ --- */
.calendar-graph-container {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  font-size: 0.9rem;
}
.calendar-graph-container h3 {
  font-size: 1.4rem;
  color: #15803d;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e0e0e0;
}

.calendar-header-months {
  display: grid;
  grid-template-columns: 200px repeat(12, 1fr);
  padding-left: 10px;
  margin-bottom: 5px;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid #eee;
}

.phase-label-header {
  text-align: right;
  padding-right: 10px;
}

.month-name {
  text-align: center;
  padding-bottom: 5px;
}

.calendar-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  margin-bottom: 8px;
}

.phase-label {
  font-weight: 500;
  color: #333;
  padding-right: 10px;
  text-align: right;
}

.calendar-bar-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  height: 25px;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.month-cell {
  height: 100%;
  border-right: 1px solid #f9f9f9;
}
.month-cell:last-child {
  border-right: none;
}

/* --- КОЛІРНІ КЛАСИ (з planting.json) --- */
.phase-sow-indoor {
  background-color: #facc15; /* Жовтий */
}

.phase-plant-out {
  background-color: #84cc16; /* Світло-зелений */
}

.phase-care {
  background-color: #3b82f6; /* Синій */
}

.phase-harvest {
  background-color: #ef4444; /* Червоний */
}

/* Адаптація для мобільних */
@media (max-width: 768px) {
  .calendar-graph-container {
    padding: 10px;
    font-size: 0.8rem;
  }
  .calendar-header-months,
  .calendar-row {
    grid-template-columns: 100px repeat(12, 1fr);
  }
  .phase-label-header, .phase-label {
    padding-right: 5px;
    font-size: 0.75rem;
  }
  .month-name {
    font-size: 0.6rem;
  }
  .calendar-bar-row {
    height: 18px;
  }
}/*# sourceMappingURL=style.css.map */