/* Program Widget Styles */

/* Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.program-loader,
.program-error,
.program-empty {
  text-align: center;
  padding: 40px 20px;
  color: #fff;
  font-size: 16px;
}

.program-error {
  color: #ff4d4f;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 8px;
}

/* Детальное описание секции */
.program-section-detail {
  background: #1A1A1A;
  padding: 40px;
  border-radius: 16px;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.section-detail-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-detail-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #FF6B9D 0%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  flex: 1;
  min-width: 300px;
}

.section-detail-organizer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.organizer-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.organizer-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.organizer-name {
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
}

.section-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #3a3b44;
  margin-bottom: 32px;
}

.section-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 15px;
}

.section-meta-stream {
  padding: 8px 16px;
  border-radius: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* Кнопка "Добавить в календарь" */
.calendar-dropdown {
  position: relative;
  display: inline-block;
}

.calendar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #A855F7;
  border-radius: 50px;
  color: #A855F7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.calendar-btn:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #FF6B9D;
  color: #FF6B9D;
}

.calendar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #2a2b33;
  border: 1px solid #3a3b44;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.calendar-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.calendar-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid #3a3b44;
}

.calendar-menu-item:last-child {
  border-bottom: none;
}

.calendar-menu-item:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #A855F7;
}

.calendar-menu-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Блоки информации */
.detail-block {
  background: rgba(58, 59, 68, 0.3);
  border: 1px solid #3a3b44;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.detail-block:hover {
  border-color: #555;
  background: rgba(58, 59, 68, 0.4);
}

.detail-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-icon {
  color: #A855F7;
  flex-shrink: 0;
}

.detail-block-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.detail-block-content {
  font-size: 15px;
  line-height: 1.7;
  color: #ccc;
}

/* Нумерованный список */
.numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: item;
}

.numbered-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.list-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #A855F7;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #A855F7;
  flex-shrink: 0;
}

.list-text {
  flex: 1;
  padding-top: 8px;
}

/* Маркированный список */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.bullet-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #A855F7;
  font-size: 20px;
  line-height: 1.7;
}

/* Спикеры */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.speaker-card-detail {
  display: flex;
  gap: 16px;
  background: rgba(58, 59, 68, 0.3);
  border: 1px solid #3a3b44;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.speaker-card-detail:hover {
  border-color: #A855F7;
  background: rgba(58, 59, 68, 0.5);
}

.speaker-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #3a3b44;
}

.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.speaker-name-detail {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.speaker-position-detail {
  font-size: 14px;
  color: #A855F7;
  margin: 0;
  font-weight: 500;
}

.speaker-company-detail {
  font-size: 13px;
  color: #999;
  margin: 0;
}

.speaker-bio-detail {
  font-size: 14px;
  color: #ccc;
  margin: 8px 0 0 0;
  line-height: 1.6;
}

.speaker-topic-detail {
  font-size: 13px;
  color: #bbb;
  margin: 4px 0 0 0;
  font-style: italic;
}

/* Старые стили для совместимости */
.program-section {
  border: 1px solid #3a3b44;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  background: #22232B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
  color: #fff;
}

.program-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.section-title {
  margin: 0 0 12px 0;
  color: #1890ff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.section-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.section-time,
.section-day {
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-time svg {
  flex-shrink: 0;
}

.section-stream {
  padding: 6px 14px;
  border-radius: 30px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-description {
  margin: 20px 0;
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 15px;
}

.section-moderator,
.section-company {
  margin: 12px 0;
  padding: 12px;
  background: #2a2b34;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-moderator strong,
.section-company strong {
  color: #fff;
}

.company-logo {
  max-width: 150px;
  max-height: 60px;
  object-fit: contain;
  background: white;
  padding: 8px;
  border-radius: 6px;
}

.section-speakers {
  margin-top: 24px;
}

.section-speakers h3 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.speakers-list {
  display: grid;
  gap: 16px;
}

.speaker-card {
  padding: 16px;
  background: #2a2b34;
  border-radius: 8px;
  border-left: 3px solid #1890ff;
}

.speaker-header {
  margin-bottom: 12px;
}

.speaker-name {
  margin: 0 0 4px 0;
  color: #1890ff;
  font-size: 16px;
  font-weight: 600;
}

.speaker-position {
  color: #b0b0b0;
  font-size: 13px;
  margin: 0;
}

.speaker-bio,
.speaker-topic,
.speaker-company {
  margin: 8px 0;
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.6;
}

.speaker-topic strong,
.speaker-company strong {
  color: #fff;
}

.program-grid {
  display: grid;
  gap: 24px;
}

/* Стили для расписания с блоками времени */
.program-schedule {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow: visible;
}


.time-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-x: visible;
  overflow-y: visible;
}

.time-block-header {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
}

.time-block-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.time-block-sections {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 10px 100vw;
  margin: 0 -100vw;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.time-block-sections::-webkit-scrollbar {
  display: none;
}

/* Карточка секции в списке программы */
.program-section-card {
  background: #22232B;
  border: 1px solid #3a3b44;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
}

.program-section-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: #1890ff;
}

/* Пустой слот */
.program-section-empty {
  background: transparent;
  border: none;
  cursor: default;
  padding: 20px;
  min-height: 200px;
}

.program-section-empty:hover {
  box-shadow: none;
  transform: none;
  border-color: transparent;
}

.section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-track {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-hall {
  padding: 6px 12px;
  background: #3a3b44;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.section-card-time {
  color: #1890ff;
  font-size: 14px;
  font-weight: 600;
}

.section-card-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  flex-grow: 1;
}

.section-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}

.section-card-org {
  color: #b0b0b0;
  font-size: 13px;
  font-weight: 500;
}

.section-card-logo {
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
}

.section-card-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.section-card-btn:hover {
  opacity: 0.9;
}

/* Mobile styles - оптимизация для маленьких экранов */
@media (max-width: 768px) {
  /* Детальное описание - мобильная версия */
  .program-section-detail {
    padding: 20px;
  }

  .section-detail-title {
    font-size: 24px;
  }

  .section-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-detail-organizer {
    align-items: flex-start;
    width: 100%;
  }

  .organizer-logo {
    max-width: 100px;
  }

  .section-detail-meta {
    gap: 12px;
  }

  .calendar-btn {
    font-size: 12px;
    padding: 6px 12px;
    width: 100%;
    justify-content: center;
  }

  .calendar-menu {
    left: 0;
    right: auto;
    min-width: 100%;
  }

  .detail-block {
    padding: 16px;
  }

  .detail-block-title {
    font-size: 18px;
  }

  .detail-block-content {
    font-size: 14px;
  }

  .list-number {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .speakers-grid {
    grid-template-columns: 1fr;
  }

  .speaker-card-detail {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .speaker-photo {
    width: 100px;
    height: 100px;
  }

  /* Отступы сетки Tilda для мобильных */
  .program-schedule {
    padding: 0 20px;
  }

  /* Основная секция - компактнее */
  .program-section {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .section-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .section-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .section-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .section-time,
  .section-day {
    font-size: 11px;
  }

  .section-time svg {
    width: 12px;
    height: 12px;
  }

  .section-stream {
    font-size: 10px;
    padding: 3px 8px;
  }

  .section-description {
    font-size: 13px;
    line-height: 1.4;
    margin: 10px 0;
  }

  .section-moderator,
  .section-company {
    font-size: 11px;
    padding: 8px;
    margin: 8px 0;
  }

  /* Спикеры - компактнее */
  .section-speakers {
    margin-top: 16px;
  }

  .section-speakers h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .speaker-card {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
  }

  .speaker-name {
    font-size: 13px;
  }

  .speaker-position {
    font-size: 11px;
  }

  .speaker-bio,
  .speaker-topic,
  .speaker-company {
    font-size: 11px;
    line-height: 1.4;
    margin: 4px 0;
  }

  /* Расписание - оптимизация */
  .program-schedule {
    gap: 16px;
  }

  .time-block {
    gap: 10px;
    overflow-x: hidden;
  }

  .time-block-header {
    padding: 8px 12px;
    margin: 0;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .time-block-title {
    font-size: 14px;
  }

  /* Карточки секций - компактные */
  .program-section-card {
    min-width: 216px;
    max-width: 216px;
    padding: 16px;
    gap: 10px;
  }

  .program-section-empty {
    min-width: 216px;
    max-width: 216px;
    min-height: 180px;
  }

  .section-card-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .section-track {
    font-size: 10px;
    padding: 4px 8px;
  }

  .section-hall {
    font-size: 10px;
    padding: 4px 8px;
  }

  .section-card-time {
    font-size: 12px;
  }

  .section-card-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .section-card-org {
    font-size: 11px;
  }

  .section-card-btn {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Очень маленькие экраны - максимальная компактность */
@media (max-width: 480px) {
  /* Отступы сетки Tilda для мобильных */
  .program-schedule {
    padding: 0 20px;
  }

  .program-section {
    padding: 10px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 15px;
  }

  .time-block-title {
    font-size: 13px;
  }

  .time-block {
    overflow-x: hidden;
  }

  .time-block-header {
    padding: 6px 10px;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .program-section-card {
    min-width: 208px;
    max-width: 208px;
  }

  .program-section-empty {
    min-width: 208px;
    max-width: 208px;
    min-height: 160px;
  }

  .section-card-title {
    font-size: 13px;
  }

  .speaker-name {
    font-size: 12px;
  }

  .section-track,
  .section-hall {
    font-size: 9px;
    padding: 3px 6px;
  }

  .section-card-time {
    font-size: 11px;
  }

  .section-card-org {
    font-size: 10px;
  }

  .section-card-btn {
    display: block;
    padding: 6px 12px;
    font-size: 12px;
  }

  .section-description {
    font-size: 12px;
  }

  .speaker-bio,
  .speaker-topic {
    font-size: 10px;
  }

  .section-moderator,
  .section-company {
    font-size: 10px;
    padding: 6px;
  }
}

/* Print styles */
@media print {
  .program-section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

