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

.chart-controls {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  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 img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(43%) sepia(78%) saturate(1333%) hue-rotate(163deg) brightness(88%) contrast(101%);
}

.chart-control-btn:hover img {
  filter: brightness(0) invert(1);
}

.unlock-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--border-color);
}

.unlock-summary-item {
  display: flex;
  min-width: 0;
  min-height: 86px;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.15rem;
  background: var(--bg-secondary);
}

.unlock-summary-label,
.unlock-summary-meta {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.35;
}

.unlock-summary-value {
  margin-top: 0.2rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.25;
}

.unlock-summary-meta {
  margin-top: 0.15rem;
}

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

.chart-container {
  width: 100%;
  height: 430px;
  margin-bottom: 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: none;
}

.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: 1.25rem;
}

.info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: none;
}

.info-card:hover {
  transform: none;
  box-shadow: none;
}

.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: 390px;
  }
  
  .chart-info {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .unlock-summary {
    grid-template-columns: 1fr;
  }

  .unlock-summary-item {
    min-height: 68px;
    padding: 0.75rem 0.9rem;
  }

  .chart-container {
    height: 350px;
    padding: 0.75rem;
  }
  
  .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: 340px;
    padding: 0.5rem;
    border-radius: 8px;
  }
  
  .chart-controls {
    gap: 0.25rem;
  }
  
  .chart-control-btn {
    width: 44px;
    height: 44px;
  }
  
  .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: 300px;
    padding: 0.75rem;
  }
  
  .chart-control-btn {
    width: 44px;
    height: 44px;
  }
  
  .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;
}

.unlocks-seo-section {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.unlocks-seo-section h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.unlocks-seo-section h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.unlocks-seo-section h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.unlocks-seo-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.unlocks-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.unlocks-seo-grid article {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-primary);
}

.unlocks-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.unlocks-related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--accent-color);
  text-decoration: none;
  background-color: var(--bg-primary);
}

.unlocks-related-links a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .unlocks-seo-section {
    padding: 1.1rem;
  }

  .unlocks-seo-section h2 {
    font-size: 1.45rem;
  }
}

/* Стили для списка */
.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;
  }
}
