/* Стили для информационного блока на главной странице */
.info-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.info-bar-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.info-bar-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-height: 44px;
}

/* Стили для активных событий */
.info-item.active-events {
  gap: 0.5rem;
}

.info-item.active-events .badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* Специальные стили для архива - все в одну строку */
.archive-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.archive-item i {
  flex-shrink: 0;
}

.archive-item .small {
  flex-shrink: 0;
}

.archive-btn {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 32px;
}

.telegram-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* Десктопная версия - все в одну ровную строку */
@media (min-width: 768px) {
  .info-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
    min-height: 48px;
  }
  
  .info-bar-left {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 450px); /* Ограничиваем, чтобы не наезжало на правую часть */
  }
  
  .info-bar-right {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
  }
  
  .info-item {
    flex-wrap: nowrap;
    white-space: nowrap;
    min-height: auto;
  }
  
  .archive-item {
    flex-wrap: nowrap; /* Все в одну строку на десктопе */
  }
  
  .telegram-buttons {
    flex-direction: row;
    gap: 0.5rem;
    width: auto;
  }
}

/* На больших экранах - больше пространства */
@media (min-width: 1200px) {
  .info-bar {
    gap: 3rem;
  }
  
  .info-bar-left {
    gap: 3rem;
  }
  
  .info-bar-right {
    gap: 2rem;
  }
}

/* Стили для компонента серверов внутри info-bar */
.info-bar .server-status-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.info-bar .server-status-list {
  position: relative;
  overflow: visible;
}

.info-bar .server-status-item {
  position: relative;
  overflow: visible;
}

.info-bar .server-status-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.info-bar .server-status-title {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* Улучшения для мобильной версии */
@media (max-width: 767px) {
  .info-bar {
    padding: 0.5rem;
  }
  
  .info-bar-left,
  .info-bar-right {
    gap: 0.5rem;
  }
  
  .info-item {
    min-height: 40px;
    font-size: 0.875rem;
  }
  
  .info-item i {
    font-size: 1rem;
  }
  
  .archive-item .small {
    font-size: 0.8125rem;
  }
  
  .archive-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
  }
  
  .telegram-buttons .btn {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
  }
}
