:root {
  --bg: #111111;
  --bg-2: #171717;
  --text: #e6e6e6;
  --muted: #b5b5b5;
  --accent: #f5f58a;
  --accent-2: #e2e26d;
  --border: #2a2a2a;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "Oxanium", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Links, text helpers */
a {
  color: inherit
}

.em {
  font-style: italic
}

.muted {
  color: var(--muted)
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0px;
  text-align: center; /* pokud chceš text na střed */
}

.container p {
  text-align: left; /* pokud chceš odstavce zarovnané doleva */
}


/* =========================
Header / Navbar
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0d0d0d, #111);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;      /* nebo flex */
  align-items: center;       /* vertikální vystředění vůči ikoně */
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-text {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .3px;
  line-height: 1;            /* kompaktnější box textu */
}

.brand-logo img,
.brand-logo svg {
  display: block;            /* odstraní baseline offset u inline obrázků */
  width: 36px;
  height: 36px;
  object-fit: contain;
}


.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: .2s;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

.nav-item {
  position: relative
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: .15s;
}

.nav-link:hover {
  background: var(--bg-2);
  border-color: var(--border);
}

.nav-link.active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent-2);
  font-weight: 600;
}

/* =========================
Dropdown (desktop hover, mobile hidden)
========================= */

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 260px;
  padding: 8px;
  margin-top: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .15s ease;
  z-index: 1001;
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 380px;
  overflow: auto;
}

.dropdown-link {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--bg-2);
  border-color: var(--border);
}

/* =========================
Content wrappers
========================= */

.content {
  flex: 1 0 auto;
  padding-top: 6px
}

.hero {
  padding: 48px 16px 16px;
  background: radial-gradient(1200px 300px at 50% -50%, rgba(245, 245, 138, .15), transparent);
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px 0;
  font-size: 38px;
  letter-spacing: .4px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* =========================
Cards / Buttons
========================= */

.cards {
  max-width: 1000px;  /* Zmenšeno pro lepší centrování */
  margin: 40px auto;  /* Větší horní a dolní margin */
  padding: 0 0px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* Pevně 3 sloupce */
  gap: 20px;  /* Větší mezery mezi kartami */
  justify-content: center;  /* Horizontální centrování */
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;  /* Více zaoblené rohy */
  padding: 24px;  /* Větší vnitřní prostor */
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;  /* Větší výška */
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);  /* Výraznější stín */
  transition: transform 0.2s ease, box-shadow 0.2s ease;  /* Animace */
  position: relative;
  overflow: hidden;
  text-align: center;  /* Centrování obsahu karty */
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);  /* Mírné nadzdvihnutí */
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  border-color: var(--accent-2);
}

.card:hover::before {
  opacity: 1;  /* Zobrazí horní accent linku */
}

.card h2 {  /* Změněno z h3 na h2 */
  margin: 0 0 8px 0;
  font-size: 20px;  /* Větší nadpis */
  font-weight: 700;
  color: var(--text);
  text-align: center;  /* Centrování nadpisu */
}

.card h3 {  /* Fallback pro případné h3 */
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;  /* Zabere dostupný prostor */
  text-align: center;  /* Centrování popisu */
}

.btn {
  margin-top: auto;
  display: inline-block;
  padding: 10px 20px;  /* Zvětšeno z 10px 16px na 10px 20px - širší */
  border-radius: 8px;
  text-decoration: none;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--accent-2);
  text-align: center;
  transition: all .2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  max-width: 160px;  /* Zvětšeno z 140px na 160px - širší */
  margin-left: auto;
  margin-right: auto;
}

.btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

/* =========================
Footer
========================= */

.site-footer {
  flex-shrink: 0; 
  border-top: 1px solid var(--border);
  background: #0e0e0e;
  margin-top: 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  gap: 12px;
}

.footer-inner strong {
  color: var(--text)
}


@media (max-width: 520px) {
  .brand-logo img {
    width: 32px;
    height: 32px;
  }
  .brand-text {
    font-size: 20px;
  }
}
.nav-toggle,
.brand-logo {
  touch-action: manipulation;
}

.outro-text ul {
  list-style-position: inside;   /* tečky budou uvnitř bloku, blíže k textu */
  text-align: justify;           /* zarovnání do bloku */
  display: inline-block;         /* aby šel seznam vystředit */
  text-align-last: left;         /* poslední řádek zarovná vlevo */
  margin: 1em auto;
  padding: 0;
}

.outro-text li {
  margin: 0.3em 0;
}

/* =========================
   Converter Styles (Enhanced)
   ========================= */

.error-section {
  margin: 24px 0;
  text-align: center;
  padding: 20px;
  background: rgba(211, 47, 47, 0.1);
  border-radius: 12px;
  border: 1px solid #d32f2f;
  color: #d32f2f;
}

.error-details-box {
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
  margin: 16px 0;
  font-family: monospace;
  font-size: 13px;
  color: #fff;
}

.converter-card {
  max-width: none;
  min-height: auto;
  padding: 24px;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  background: var(--bg);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--accent);
  background: rgba(245, 245, 138, .05);
}

.upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 22px 0;
  min-height: 76px;
}

.file-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  flex: 0 0 auto;
  font-size: 34px;
  line-height: 1;
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.file-name {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-size {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.file-badge {
  flex: 0 0 auto;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .35px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.file-badge[data-kind="document"] {
  color: #1f2937;
  background: #e5e7eb;
  border-color: #d1d5db;
}

.file-badge[data-kind="audio"] {
  color: #0b4a6f;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.file-badge[data-kind="video"] {
  color: #4c1d95;
  background: #ede9fe;
  border-color: #ddd6fe;
}

.file-badge[data-kind="image"] {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.file-badge[data-kind="archive"] {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fed7aa;
}

.file-badge[data-kind="hybrid"] {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fed7aa;
}

.btn-remove {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.btn-remove:hover {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #fff;
}

.format-selection {
  margin: 20px 0;
}

.format-selection label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.format-selection select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 16px;
}

.convert-section {
  margin: 24px 0;
  text-align: center;
}

.btn-convert {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border-color: var(--accent-2);
  font-size: 18px;
  padding: 14px 28px;
  min-width: 200px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-convert:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 245, 138, .4);
}

.btn-download {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: #fff;
  border: 1px solid #45a049;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  margin-right: 10px;
}

.btn-secondary {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
}

.progress-section {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width .3s ease;
}

.download-section {
  margin: 24px 0;
  text-align: center;
  padding: 20px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.download-success {
  margin-bottom: 20px;
  color: #4caf50;
  font-weight: 600;
  font-size: 25px;
}

/* Converter responsive styles */
@media (max-width: 560px) {
  .file-info { 
    gap: 12px; 
    padding: 16px 16px; 
    min-height: 70px; 
  }
  .file-icon { 
    font-size: 30px; 
  }
  .file-name { 
    font-size: 16px; 
  }
  .file-size { 
    font-size: 14px; 
  }
  .file-badge { 
    font-size: 12px; 
    padding: 5px 10px; 
  }
  .btn-remove { 
    padding: 7px 11px; 
    font-size: 15px; 
  }
}



/* =========================
Responsive
========================= */

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);  /* 2 sloupce na tabletu */
    max-width: 600px;
    gap: 18px;
  }
  
  .card {
    min-height: 180px;
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;  /* 1 sloupec na mobilu */
    max-width: 400px;
    gap: 16px;
    margin: 32px auto;
  }
  
  .card {
    min-height: 160px;
    padding: 18px;
  }
  
  .card h2 {  /* Responsive pro h2 */
    font-size: 18px;
  }
}

@media (max-width:900px) {
  .nav-toggle {
    display: block
  }

  .nav-links {
    position: fixed;
    top: 56px;
    right: 12px;
    left: 12px;
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    display: none;
  }

  .nav-links.open {
    display: flex
  }

  /* Na mobilu skryj dropdowny, zobraz jen hlavní kategorie */
  .nav-item .dropdown {
    display: none !important;
  }

  .dropdown-link {
    padding: 8px 10px
  }

}

@media (max-width:520px) {

  .hero h1 {
    font-size: 30px
  }
}
