/* Стили для страницы разлоков TON */

.chart-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: flex-end;
}

.chart-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-control-btn:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.chart-control-btn:active {
  transform: scale(0.95);
}

.chart-container {
  width: 100%;
  height: 400px;
  margin-bottom: 1rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.chart-hint {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

.chart-hint p {
  margin-bottom: 0.5rem;
}

.chart-hint p:last-child {
  margin-bottom: 0;
}

.chart-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow-color);
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-color);
}

.info-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: var(--text-primary);
}

.info-value {
  font-weight: 600;
  color: var(--accent-color);
}

/* Стили для графика */
#unlocksChart {
  width: 100%;
  height: 100%;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .chart-container {
    height: 350px;
  }
  
  .chart-info {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .chart-container {
    height: 300px;
    padding: 1.25rem;
  }
  
  .chart-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .chart-controls {
    justify-content: center;
  }
  
  .chart-hint {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }
  
  .section h2 {
    font-size: 1.5rem;
  }
  
  .section p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .chart-container {
    height: 250px;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .chart-controls {
    gap: 0.25rem;
  }
  
  .chart-control-btn {
    width: 32px;
    height: 32px;
  }
  
  .chart-hint {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .info-card {
    padding: 1rem;
    border-radius: 8px;
  }
  
  .info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .info-row {
    flex-direction: column;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .info-label {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
  }
  
  .info-value {
    font-size: 0.9rem;
  }
  
  .section {
    margin-top: 1.5rem;
  }
  
  .section h2 {
    font-size: 1.3rem;
  }
  
  .section p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
}

/* Стили для очень маленьких экранов */
@media (max-width: 360px) {
  .chart-container {
    height: 220px;
    padding: 0.75rem;
  }
  
  .chart-control-btn {
    width: 28px;
    height: 28px;
  }
  
  .chart-hint {
    font-size: 0.75rem;
  }
  
  .info-card {
    padding: 0.75rem;
  }
  
  .info-card h3 {
    font-size: 1rem;
  }
  
  .info-label, .info-value {
    font-size: 0.85rem;
  }
}

.section {
  margin-top: 2rem;
}

.section p{
  margin-bottom: 1rem;
}

/* Стили для списка */
.section ul {
  list-style-type: none;
  padding-left: 0;
  margin: 20px 0;
}

.section ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.5;
  color: var(--text-primary, #333);
  font-size: 16px;
}

.section ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--accent-color, #5e583b);
  border-radius: 50%;
  opacity: 0.8;
}

.section ul li:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color-light, #dcd793);
  border-radius: 50%;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .section ul li {
    padding-left: 25px;
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .section ul li:before {
    width: 14px;
    height: 14px;
    top: 5px;
  }
  
  .section ul li:after {
    width: 5px;
    height: 5px;
    top: 9px;
    left: 4.5px;
  }
}

@media (max-width: 480px) {
  .section ul li {
    padding-left: 22px;
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .section ul li:before {
    width: 12px;
    height: 12px;
    top: 4px;
  }
  
  .section ul li:after {
    width: 4px;
    height: 4px;
    top: 8px;
    left: 4px;
  }
}