/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body a základní font */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header + navigace */
header {
  background: rgb(31,186,156);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav .logo img {
  height: 40px;
  cursor: pointer;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.15));
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

nav ul li a:hover,
nav ul li a.active {
  color: #004d40;
  font-weight: 700;
}

nav ul li img.flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 3px;
}

/* Živý ticker pod navigací */
#live-ticker {
  background-color: rgba(31,186,156,0.9);
  color: white;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid #004d40;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0;
  user-select: none;
  position: relative;
  z-index: 1050;
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 25s linear infinite;
}

.ticker-item {
  display: inline-block;
  margin-right: 3rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Hlavní obsah */
main {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

/* Rámečky sekcí */
section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 12px rgb(31 186 156 / 0.15);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

h1, h2 {
  color: rgb(31,186,156);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
  text-align: center;
}

h2 {
  font-size: 2rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Tlačítka */
.btn {
  background-color: rgb(31,186,156);
  color: white;
  padding: 0.85rem 1.7rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.btn:hover {
  background-color: #1eab91;
}

.btn.audit {
  background-color: #007acc;
}

.btn.audit:hover {
  background-color: #005f99;
}

/* Modré tlačítko pro Gecko a audit */
.btn.gecko {
  background-color: #007acc;
}

.btn.gecko:hover {
  background-color: #005f99;
}

/* Flex box pro tlačítka */
.button-group {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Flexbox pro tabulku a kalkulačku */
.flex-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Tabulka */
table {
  border-collapse: collapse;
  width: 100%;
  max-width: 400px;
}

table th, table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

table th {
  background-color: rgb(31,186,156);
  color: white;
  font-weight: 600;
}

table tbody tr:hover {
  background-color: #e0f2f1;
}

/* Kalkulačka */
.calculator {
  background: #f4f9f8;
  padding: 1.6rem 2rem;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgb(31 186 156 / 0.1);
  max-width: 480px;
  flex: 1;
}

.calculator label {
  font-weight: 600;
  margin-top: 1rem;
  display: block;
}

.calculator input, .calculator select {
  width: 100%;
  padding: 0.5rem 0.7rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.calculator output {
  display: block;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: rgb(31,186,156);
}

/* Grafy */
canvas {
  max-width: 100%;
  margin-top: 1rem;
}

/* Sekce Nakup & Prodej */
#buy-sell {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 12px rgb(31 186 156 / 0.15);
  padding: 2rem 2.5rem;
  text-align: center;
}

#buy-sell h2 {
  color: rgb(31,186,156);
  margin-bottom: 1rem;
}

#buy-sell p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

#buy-sell .btn-buy,
#buy-sell .btn-sell {
  background-color: rgb(31,186,156);
  color: white;
  border: none;
  padding: 0.85rem 1.7rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0.7rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  min-width: 120px;
}

#buy-sell .btn-buy:hover {
  background-color: #1eab91;
}

#buy-sell .btn-sell:hover {
  background-color: #187b70;
}

/* Sekce Dokumentace */
#docs {
  text-align: center;
}

#docs h2 {
  margin-bottom: 1rem;
}

#docs .button-group {
  justify-content: center;
}

/* Rámeček s logem a odkazy (footer-like) */
#token-links {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 1.5rem 2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 12px rgb(31 186 156 / 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  flex-wrap: wrap;
}

#token-links div.left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#token-links div.left img {
  height: 50px;
  object-fit: contain;
}

#token-links div.left span {
  font-weight: 600;
  font-size: 1.2rem;
  color: rgb(31,186,156);
}

#token-links div.right {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#token-links div.right a {
  white-space: nowrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 1.5rem;
  background: #f1f3f4;
  font-size: 0.9rem;
  color: #555;
}

/* Responsivita */
@media (max-width: 960px) {
  .flex-row {
    flex-direction: column;
    gap: 2rem;
  }
  table {
    max-width: 100%;
  }
  .calculator {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  nav .logo {
    margin-bottom: 0.75rem;
  }
  #token-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  #token-links div.left,
  #token-links div.right {
    justify-content: center;
  }
}

/* Online podpora plovoucí box */
#online-support {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(31 186 156 / 0.4);
  padding: 1rem 1.5rem;
  width: 250px;
  font-size: 0.95rem;
  color: #222;
  z-index: 1200;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

#online-support:hover {
  box-shadow: 0 0 25px rgb(31 186 156 / 0.7);
}

#online-support a {
  color: rgb(31,186,156);
  text-decoration: none;
  font-weight: 700;
}
