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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo-text {
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(90deg, #e94560, #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header nav {
  display: flex;
  gap: 6px;
}

header nav a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

header nav a:hover,
header nav a.active {
  color: #fff;
  background: rgba(233, 69, 96, 0.2);
}

header .links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.lang-toggle:hover {
  color: #fff;
  border-color: rgba(233, 69, 96, 0.5);
  background: rgba(233, 69, 96, 0.12);
}

header .links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  transition: all 0.2s;
}

header .links a:hover {
  color: #fff;
  border-color: rgba(233, 69, 96, 0.5);
  background: rgba(233, 69, 96, 0.12);
}

header .links a svg {
  height: 16px;
  fill: currentColor;
}

header .links a svg.npm-logo {
  height: 14px;
  width: auto;
}

main {
  flex: 1;
}

.container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.container.wide {
  max-width: 900px;
}

main.center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #e94560, #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 120px;
  height: auto;
}

.subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.converter-section {
  margin-bottom: 24px;
}

.converter-section:last-of-type {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.input-group {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
  border-color: #e94560;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

button {
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #e94560, #c23152);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

button:active {
  transform: translateY(0);
}

.result {
  margin-top: 10px;
  padding: 14px 16px;
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f39c12;
  transition: all 0.3s;
}

.result:empty::before {
  content: "Eredmény itt jelenik meg";
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  font-weight: 400;
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 24px 0;
}

.info {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

footer {
  margin-top: auto;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 26, 46, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.75rem;
  transition: all 0.2s;
}

footer a:hover {
  color: #fff;
  border-color: #e94560;
  background: rgba(233, 69, 96, 0.15);
}

h2 {
  font-size: 1.3rem;
  margin: 30px 0 14px;
  color: #f39c12;
}

p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 12px;
}

pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #e0e0e0;
}

code {
  font-family: "Fira Code", "Cascadia Code", "Consolas", monospace;
}

.inline-code {
  background: rgba(233, 69, 96, 0.15);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88rem;
  color: #f39c12;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  background: rgba(233, 69, 96, 0.15);
  color: #f39c12;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  background: rgba(233, 69, 96, 0.2);
  color: #e94560;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  header {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  header nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .container {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .container.wide {
    padding: 24px 16px;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
  }

  .input-group {
    flex-direction: column;
    gap: 8px;
  }

  button {
    width: 100%;
  }

  .info {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 14px 16px;
  }

  pre {
    font-size: 0.8rem;
    padding: 14px 12px;
  }

  table {
    font-size: 0.82rem;
  }

  th, td {
    padding: 10px 10px;
  }
}
