/* ============================================
   MOBILE STYLE
   ============================================ */

/* ============================================
   ГЛОБАЛЬНІ ФІКСИ
   ============================================ */

/* Fix для Safari (запобігає зуму при фокусі) */
input[type="text"] {
  font-size: 16px;
  min-height: 48px;
  box-sizing: border-box;
}


/* ============================================
   ГЛОБАЛЬНІ УТИЛІТИ
   ============================================ */

/* Посилання */
a {
  color: inherit;
}

a:visited {
  color: inherit;
}

/* Glass ефект */
.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #ffffffbd;
}

/* Індикатори поза екраном */
.indicator {
    pointer-events: none;
}

/* Іконки */
.icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}


/* ============================================
   DONATION BOX
   ============================================ */

.donation-box {
  position: fixed;
  top: 16px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content; 
  max-width: calc(100vw - 32px); 
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #1A244D;
  z-index: 10;
  box-sizing: border-box;
  text-align: center;
  pointer-events: auto;
  font-weight: 400;
}

.donation-box a {
  text-decoration: none;
  color: #0033FF;
}


/* ============================================
   MOBILE UI (головний контейнер)
   ============================================ */

#mobile-ui {
    position: fixed;
    bottom: 0;
    box-sizing: border-box;
    padding: 16px;
    padding-bottom: 32px;
    width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    pointer-events: none;
}

/* Контейнер кнопки вибору дня */
#buttom-container {
    height: 64px;
    box-sizing: border-box;
    padding: 4px;
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Логотип */
.logo {
    font-size: 20px;
    padding: 0 20px;
    pointer-events: auto;
    height: 100%;
}

.logo-mark {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Кнопка вибору дня */
.select-button {
    background: #fff;
    border-radius: 8px;
    border: none;
    padding: 12px 12px 12px 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #1A244D;
    pointer-events: auto;
    touch-action: none;
}

.select-button:active {
    background: #F2F2F3;
}

#current-day .icon {
    transition: transform 0.3s ease-out;
    transform: rotate(0deg);
}
  
#current-day.expanded .icon {
    transform: rotate(180deg);
}

.main-button {
   min-height: 48px;
}

/* ============================================
   ПАНЕЛЬ ВИБОРУ ДНЯ ТИЖНЯ
   ============================================ */

.weekday-panel {
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
    transform: translateY(10%);
    opacity: 0;
    pointer-events: auto;
    touch-action: none;
    transition: transform 0.3s ease-out, opacity 0.2s ease-out, max-height 0.3s ease-out; 
    max-height: 0;
}

#weekday-panel.open {
    transform: translateY(0%);
    opacity: 100%;
    pointer-events: all;
    max-height: 1000px;
    transition: transform 0.3s ease-out, opacity 0.2s ease-out, max-height 0.3s ease-out; 
}

.weekday-button,
.weekday-today {
    width: auto;       
}


/* ============================================
   КНОПКА ВІДГУКУ
   ============================================ */

.feedback-btn {
  position: fixed;
  background: #0033FF;
  color: white;
  border-radius: 12px;
  left: 16px;
  bottom: calc(64px + 32px + 16px);
  height: 48px;
  width: auto;
  padding: 0 20px;
  z-index: 100;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.donate-btn .btn-icon {
  font-size: 20px;
}

.donate-btn .btn-text {
  font-size: 15px;
  font-weight: 500;
}

/* ============================================
   МОДАЛЬНІ ВІКНА
   ============================================ */

.modal-overlay {
    padding: 8px;
}

.modal-body {
    padding: 20px;
}

.about-footer {
    padding-top: 16px;
}

.modal-body a {
    color: #0033FF;
    text-decoration: none;
}

.about-illustration {
    margin: 16px auto 0 auto;
}

.about-footer a {
    color: #686E8D;
    text-decoration: underline 1.4px;
}

/* ============================================
   МОБІЛЬНІ ПОПАПИ
   ============================================ */

/* Обгортка попапу */
.mobile-popup {
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 100%;
  padding: 0 16px;
  bottom: 112px;
  z-index: 1000;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  opacity: 0;
  box-sizing: border-box;  
}

/* Контент попапу */
.mobile-popup-card {  
  width: 100%;  
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 2px #1A244D20, 0 4px 16px #1A244D15;
  padding: 16px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Стан показу */
.mobile-popup.visible {
  transform: translateY(0);
  opacity: 1;
  max-height: 1000px;
  height: auto;
  pointer-events: auto;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

/* Кнопка закриття */
.mobile-popup-close {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 20px;
  background: none;
  border: none;
  color: #1A244D70;
  cursor: pointer;
  font-weight: 300;
  display: none;
}