/* --------------------------------------------------
   NEJDENET.CZ – STYLES.CSS (Finální Drzá Revize)
   --------------------------------------------------
   * Diagnostika (Kenny) = #F26F03 (Orange) + #673C1C (Brown) + #FFDFB0 (NavajoWhite) + #020107 (RichBlack)
   * Edukace (Stan) = #4D7DBD (Azure) + #EE324B (Amaranth) + #FFEBC0 (Blond) + #DF8A7A (MiddleRed) + #4E4648 (Quartz)
   * Diskuze (Cartman) = #00B8C4 + #EE3253 + ...
   * Kontakt (Kyle) = #00AC51 + #55B949 + ...
   * Home (Chef / Cartmanova máma)
   * Retro / Win95 / MS-DOS / Matrix vibe
   * Animace / glitch / 3D / swipe / pulse ...
-------------------------------------------------- */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
  font-family: 'Courier New', monospace;
  background-color: #000; /* MS-DOS / Matrix vibe */
  color: #FDFFFF;         /* text */
  overflow-x: hidden;
}

/* --------------------------
   Animace / glitch / swipe
--------------------------- */

/* fadeIn pro sekce */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Glow pro Matrix logo */
@keyframes glow {
  0%   { text-shadow: 0 0 10px #00FF41; }
  100% { text-shadow: 0 0 20px #00FF41; }
}

/* Pulse pro spouštěcí tlačítko */
@keyframes pulse {
  0%, 100% { transform: scale(1.0); box-shadow: 0 0 8px #F26F03; }
  50%      { transform: scale(1.05); box-shadow: 0 0 15px #EE324B; }
}

/* Blink (pokud někde chceme) - teď nepotřebujeme, ale ponecháme */
@keyframes blink-animation {
  0%, 50% { visibility: visible; }
  51%, 100% { visibility: hidden; }
}
.blink {
  animation: blink-animation 1s infinite;
}

/* Terminál psací stroj */
@keyframes terminalLineAnim {
  0%   { opacity: 0; transform: translateY(-10px); }
  50%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
.terminal-line-animate {
  animation: terminalLineAnim 0.7s ease-in-out;
}

/* Glitch text */
@keyframes glitch {
  0%   { text-shadow: 2px 0 red; }
  20%  { text-shadow: -2px 0 lime; }
  40%  { text-shadow: 2px 0 red; }
  60%  { text-shadow: -2px 0 lime; }
  80%  { text-shadow: 2px 0 red; }
  100% { text-shadow: 0 0 #00FF41; }
}
.glitch-text {
  animation: glitch 1.5s infinite;
}

/* Swipe hint (můžeme třeba přidat swipe-anim) */
@keyframes swipeHint {
  0%   { transform: translateX(0);   opacity: 1; }
  50%  { transform: translateX(10px); opacity: 0.7; }
  100% { transform: translateX(0);   opacity: 1; }
}

/* --------------------------
   Tlačítka: action vs monet
--------------------------- */

/* "action-button" – rudé, pro akce */
.action-button {
  background-color: #EE324B; /* červenorůžová (Amaranth) */
  color: #FFEBC0;           /* blond text */
  border: 2px solid #000;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s ease;
  margin: 5px;
  box-shadow: 0 0 8px #EE324B;
}
.action-button:hover {
  filter: brightness(110%);
  transform: scale(1.05) translateZ(0);
}

/* "monet-button" – unifikovaná barva pro monetizaci */
.monet-button {
  background-color: #FFE11D;  /* žlutá (BananaYellow) */
  color: #000;
  border: 2px solid #FFF;
  padding: 10px 25px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  margin: 5px;
  box-shadow: 0 0 10px #FFE11D;
}
.monet-button:hover {
  background-color: #EE3253; /* desire */
  color: #FFF;
  transform: scale(1.1) translateZ(0);
}

/* Win95 styl, např. pro VIP, atd. */
.win95-button {
  background-color: #F26F03; /* Orange */
  border: 2px solid #000;
  color: #FFDFB0;            /* NavajoWhite */
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  margin-top: 10px;
  transition: 0.3s;
  animation: pulse 2s infinite; /* Jemný puls */
}
.win95-button:hover {
  filter: brightness(110%);
  transform: scale(1.05);
}

/* --------------------------
   BURGER MENU
--------------------------- */
#burger-menu {
  width: 100%;
  background-color: #7F402F; /* Bole */
  text-align: center;
  padding: 5px;
  position: relative;
  z-index: 50;
}
#burger {
  background-color: #EC2644; /* Crayola's Red */
  color: #FEFEFE;           /* White */
  border: 3px solid #FEFEFE;
  padding: 10px 25px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 15px;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}
#burger:hover {
  background-color: #55609E; /* Liberty */
  color: #34272F;           /* Black Coffee */
  transform: scale(1.1);
}
.menu-links {
  display: none;
  background-color: #7F402F;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 15px #FDFFFF;
  text-align: center;
  margin-top: 5px;
  animation: fadeIn 0.5s ease-in-out;
}
.menu-item {
  display: block;
  width: 100%;
  margin: 8px auto;
  padding: 12px 0;
  background-color: #EC2644;
  color: #FEFEFE;
  border: 3px solid #FEFEFE;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: bold;
}
.menu-item:hover {
  background-color: #55609E;
  color: #34272F;
  transform: scale(1.05);
}

/* --------------------------
   HLAVIČKA – MATRIX LOGO
--------------------------- */
.header {
  position: relative;
  height: 250px;
  background: #000;
  overflow: hidden;
  text-align: center;
}
#matrixCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}
#logo-text {
  font-size: 40px;
  color: #00FF41;
  text-shadow: 0 0 10px #00FF41;
  animation: glow 2s infinite alternate;
}
.header-subtitle {
  font-size: 18px;
  color: #FFF;
  margin-top: 10px;
}

/* --------------------------
   OBECNÉ SEKCE
--------------------------- */
.section {
  padding: 20px;
  margin: 10px auto;
  background: #111;
  color: #FDFFFF;
  border-radius: 10px;
  box-shadow: 0 0 15px #46B4BB;
  animation: fadeIn 0.5s ease-in-out;
  max-width: 1200px;
  position: relative;
  min-height: 200px;
}

/* --------------------------
   HOME
--------------------------- */
#home {
  background: #FCD8B2; /* LightOrange */
  color: #000;
  box-shadow: 0 0 20px #7F402F; /* Bole */
  text-align: center;
}
#home h2 {
  color: #A91F28; /* Upsdell Red */
  text-shadow: 0 0 5px #673C1C;
}
#home p {
  color: #7F402F;
  margin: 10px auto;
  max-width: 600px;
}
.quick-links {
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.home-button {
  background-color: #A91F28;
  color: #FFF;
  border: 2px solid #673C1C;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  box-shadow: 0 0 8px #A91F28;
}
.home-button:hover {
  background-color: #FFC107;
  color: #000;
  transform: scale(1.1);
}

/* --------------------------
   DIAGNOSTIKA (KENNY)
--------------------------- */
.diagnostics-kenny {
  background-color: #020107; /* RichBlack */
  box-shadow: 0 0 15px #673C1C; /* Brown stín */
}
#diagnostika-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.terminal {
  background-color: rgba(0,0,0,0.3);
  padding: 20px;
  margin: 20px 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #FFDFB0;
  text-align: left;
}
#terminal-input {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
#terminal-input input {
  flex: 1;
  padding: 8px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  border: 2px solid #00FF41;
  background: #000;
  color: #00FF41;
}
#terminal-input button {
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  background-color: #F26F03;
  border: 2px solid #000;
  color: #FFDFB0;
  cursor: pointer;
  transition: 0.3s ease;
}
#terminal-input button:hover {
  filter: brightness(110%);
  transform: scale(1.05);
}
#terminal-shortcuts {
  margin-top: 10px;
}
.win95-error-box {
  background-color: #C0C0C0;
  border: 2px solid #000;
  width: 250px;
  margin: 10px auto;
  text-align: left;
  padding: 10px;
  position: relative;
}
.win95-error-box h4 {
  background-color: #00008B;
  color: #FFD700;
  padding: 5px;
  margin-bottom: 5px;
}

/* --------------------------
   EDUKACE (STAN)
--------------------------- */
.stan-edu {
  background-color: #4D7DBD; /* Azure */
  color: #FFEBC0;           /* Blond */
  box-shadow: 0 0 15px #4E4648; /* Quartz stín */
}
.stan-edu h2 {
  color: #EE324B; /* Amaranth */
}
.stan-edu p {
  color: #FFEBC0;
}

/* TIPY – nyní každý tip na vlastní "kartě" */
.tips-grid {
  position: relative;
  overflow: hidden;
  /* Můžeme nastavit fixní výšku, at se to neláme při swipování */
  min-height: 120px;
}
.tip {
  background-color: #DF8A7A; /* MiddleRed */
  padding: 15px;
  border-radius: 8px;
  margin: 0 auto;
  color: #4E4648; /* dark text */
  /* Default hidden => skript to řídí. */
}

/* Matrix Fakta */
.matrix-facts {
  margin-top: 30px;
  text-align: center;
}
.fact-page {
  margin: 10px 0;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}
.fact {
  margin: 10px auto;
  max-width: 600px;
  background: #222;
  padding: 10px;
  border-radius: 8px;
  color: #FDFFFF;
  /* default hidden => only one visible => scripts */
}

/* Navigace (tlačítka) */
.fact-navigation {
  margin-top: 10px;
  text-align: center;
}
.faq {
  margin-top: 30px;
  text-align: left;
}
.faq-item {
  background-color: #222;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
}
.faq-item h3 {
  cursor: pointer;
  margin-bottom: 5px;
  color: #FFE11D;
}
.faq-answer {
  margin-top: 5px;
  color: #FFF;
}

/* Kvíz */
.quiz {
  margin-top: 30px;
  text-align: center;
}
#quiz-container {
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
}
.quiz-option {
  display: block;
  margin: 10px auto;
  padding: 10px;
  background-color: #444;
  color: #FFF;
  border: 1px solid #666;
  border-radius: 5px;
  width: 100%;
  max-width: 300px;
  cursor: pointer;
  transition: 0.3s;
}
.quiz-option:hover {
  background-color: #777;
}

/* --------------------------
   DISKUZE (Cartman)
--------------------------- */
#discussion {
  background-color: #00B8C4;
  color: #FFF;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px #302E3C;
  margin: 20px auto;
  max-width: 1100px;
  animation: fadeIn 0.5s ease-in-out;
  position: relative;
}
.isp-rating {
  background-color: #EE3253;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #844D38;
  margin-bottom: 20px;
}
.isp-list {
  display: flex;
  flex-direction: column; /* Jedno ISP na řádek – pro přehled */
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}
.isp-badge {
  width: 80%;
  border: 2px dashed #FFF;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.isp-badge:hover {
  transform: scale(1.04);
  background-color: #FFEBC0;
  color: #000;
}
.hidden-isp {
  display: none !important;
}
#show-less-isp {
  margin-top: 10px;
  display: none; /* default je hidden, zobrazíme script */
}
.comments-section {
  background-color: #FFEEC3;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #EE3253;
  margin-bottom: 20px;
  position: relative;
}
#comments-list {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
  background-color: #FFF;
  border-radius: 10px;
  box-shadow: 0 0 10px #844D38;
  margin-top: 20px;
}

/* Komentář */
.comment {
  background-color: #FFF;
  border-left: 5px solid #EE3253;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 5px #302E3C;
  transition: transform 0.3s ease;
  position: relative;
}
.comment:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px #EE3253;
}
.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.comment-author {
  font-weight: bold;
  color: #00B8C4;
}
.comment-isp {
  margin-left: 5px;
  font-weight: bold;
  border-radius: 5px;
  padding: 2px 4px;
  /* Barvy definované pro ISP => doplníme níže */
}
.comment-body {
  margin-top: 5px;
  color: #302E3C;
}
.comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.comment-actions {
  display: flex;
  gap: 8px;
}
/* Zde nahrazujeme "like/dislike" -> hearts/poops */
.comment-actions button {
  background-color: #EE6325;
  border: none;
  color: #FFF;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}
.comment-actions button:hover {
  background-color: #00AC51;
  transform: scale(1.1);
}
.reply-button {
  background-color: #46B4BB !important;
}

/* Reakce formular */
.reply-form {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: #00B8C4;
  border-radius: 8px;
  box-shadow: 0 0 8px #302E3C;
}
.reply-form.active {
  display: block;
}

/* Formulář přidání komentáře */
.comment-form {
  background-color: #00B8C4;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #302E3C;
  margin-top: 20px;
}
.comment-form label {
  display: block;
  margin: 10px 0 5px;
  color: #FFF;
  font-weight: bold;
}
.comment-form input,
.comment-form select,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #EE3253;
  background-color: #FFEEC3;
  color: #000;
  font-size: 16px;
  margin-bottom: 10px;
  box-shadow: 0 0 5px #844D38;
}
.comment-form button {
  background-color: #A91F28;
  color: #FFF;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  font-size: 16px;
}
.comment-form button:hover {
  background-color: #EE3253;
  box-shadow: 0 0 10px #EE3253;
  transform: scale(1.05);
}
.monetization-buttons {
  text-align: center;
  margin-top: 20px;
}

/* ISP barvy (frontend definice) */
.O2 {
  background-color: #0A80D1; /* modrá */
  color: #FFF;
}
.Vodafone {
  background-color: #E60000; /* červená */
  color: #FFF;
}
.T-Mobile {
  background-color: #FF0090; /* růžová */
  color: #FFF;
}
.CETIN {
  background-color: #7F7F7F; /* šedá */
  color: #FFF;
}
.Nordic {
  background-color: #7070C2; /* fialková? */
  color: #FFF;
}
.Starlink {
  background-color: #282846; /* tmavě modro-šedá */
  color: #FFF;
}
.WISP {
  background-color: #77B977; /* greenish */
  color: #FFF;
}

/* --------------------------
   KONTAKT (Kyle)
--------------------------- */
#contact {
  background-color: #00AC51;
  color: #FFF;
  box-shadow: 0 0 15px #55B949;
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}
#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #55B949;
  border-radius: 10px;
  background-color: #FDE9C4;
  color: #000;
  font-size: 16px;
  box-shadow: 0 0 5px #55B949;
  transition: 0.3s ease;
}
#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: #F26F03;
  box-shadow: 0 0 10px #F26F03;
}
.contact-monetization {
  margin-top: 20px;
  text-align: center;
}
.kyle-quote {
  color: #000 !important;
  font-size: 18px;
  margin-bottom: 10px;
  text-shadow: none;
}
.btn-kyle-orange {
  background-color: #EE6325;
  color: #FFF;
  border: 2px solid #FDE9C4;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  box-shadow: 0 0 10px #EE6325;
  transition: 0.3s;
  margin: 5px;
  text-transform: uppercase;
  display: inline-block;
  width: auto;
}
.btn-kyle-orange:hover {
  background-color: #00AC51;
  border-color: #55B949;
  color: #000;
  box-shadow: 0 0 15px #00AC51;
  transform: scale(1.1);
}
.btn-kyle-orange:active {
  background-color: #297B78;
  border-color: #48464B;
  box-shadow: 0 0 10px #297B78;
}

/* --------------------------
   FOOTER
--------------------------- */
footer {
  text-align: center;
  padding: 10px;
  background-color: #222;
  color: #FFF;
  font-size: 14px;
}

/* --------------------------
   RESPONSIVITA
--------------------------- */
@media (max-width: 768px) {
  .menu-item {
    font-size: 16px;
  }
  .comment-actions button {
    font-size: 14px;
    padding: 5px 10px;
  }
  .quick-links {
    flex-direction: column;
  }
  #terminal-input input,
  #terminal-input button {
    font-size: 14px;
    padding: 6px;
  }
  #comments-list {
    max-height: 300px;
  }
  .isp-list {
    width: 100%;
  }
  .isp-badge {
    width: 90%;
  }
}
