/* Leffat - Elokuvalista sovellus - v1.0.1 */

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

body {
  font-family: 'Courier New', monospace;
  background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23000" width="100" height="100"/><text x="10" y="20" font-size="12" fill="%23001100" opacity="0.1">01001010</text><text x="10" y="40" font-size="12" fill="%23001100" opacity="0.1">10101100</text><text x="10" y="60" font-size="12" fill="%23001100" opacity="0.1">01001010</text><text x="10" y="80" font-size="12" fill="%23001100" opacity="0.1">10110101</text></svg>');
  color: #0f0;
  line-height: 1.6;
  min-height: 100vh;
}

.modal {
  display: flex;
  position: fixed;
  z-index: 999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #000;
  border: 2px solid #0f0;
  padding: 2em 2.5em;
  border-radius: 0;
  box-shadow: 0 0 20px rgba(0,255,0,0.5);
  text-align: center;
}

.modal-content h2 {
  color: #0f0;
  text-shadow: 0 0 10px #0f0;
  font-size: 2em;
  margin-bottom: 0.5em;
}

.modal-content p {
  color: #0f0;
  margin-bottom: 1.5em;
}

.google-btn {
  margin-top: 1.5em;
  background: #0f0;
  color: #000;
  border: 2px solid #0f0;
  border-radius: 0;
  padding: 0.75em 2em;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s;
  font-family: 'Courier New', monospace;
}

.google-btn:hover {
  box-shadow: 0 0 15px rgba(0,255,0,0.8);
  text-shadow: 0 0 5px #0f0;
}

#jwt-info, #movies-section {
  max-width: 800px;
  margin: 2em auto;
  padding: 1.5em;
  background: rgba(0,20,0,0.8);
  border: 2px solid #0f0;
  border-radius: 0;
  box-shadow: 0 0 15px rgba(0,255,0,0.3);
  display: none;
}

#jwt-info.success {
  color: #0f0;
}

h2, h3 {
  color: #0f0;
  text-shadow: 0 0 10px #0f0;
  margin-bottom: 1em;
}

#movies-list {
  list-style: none;
  background: rgba(0,10,0,0.6);
  padding: 1em;
  margin-bottom: 2em;
}

#movies-list li {
  padding: 0.8em;
  border-bottom: 1px solid rgba(0,255,0,0.2);
  color: #0f0;
}

#movies-list li:last-child {
  border-bottom: none;
}

#movies-list b {
  color: #0f0;
  text-shadow: 0 0 5px #0f0;
}

#movies-list a {
  color: #0f0;
  text-decoration: none;
  border-bottom: 1px dashed #0f0;
}

#movies-list a:hover {
  text-shadow: 0 0 10px #0f0;
}

.time-info {
  font-size: 0.85em;
  color: #0a0;
  opacity: 0.7;
  margin-left: 1em;
}

#admin-form {
  background: rgba(0,30,0,0.7);
  border: 1px solid #0f0;
  padding: 1.5em;
  margin-top: 2em;
  display: none;
}

input[type="text"],
input[type="url"] {
  background: #000;
  border: 1px solid #0f0;
  color: #0f0;
  padding: 0.7em;
  font-family: 'Courier New', monospace;
  margin-bottom: 0.5em;
}

input[type="text"]::placeholder,
input[type="url"]::placeholder {
  color: #0a0;
  opacity: 0.5;
}

input[type="checkbox"] {
  accent-color: #0f0;
  margin-right: 0.5em;
}

label {
  color: #0f0;
}

button[type="submit"] {
  background: #0f0;
  color: #000;
  border: 2px solid #0f0;
  padding: 0.7em 1.5em;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1em;
  border-radius: 0;
  font-family: 'Courier New', monospace;
  transition: all 0.3s;
}

button[type="submit"]:hover {
  box-shadow: 0 0 15px rgba(0,255,0,0.8);
}

#add-movie-msg {
  margin-top: 1em;
  font-weight: bold;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.5em;
    max-width: 90vw;
  }

  .modal-content h2 {
    font-size: 1.5em;
  }

  #jwt-info, #movies-section {
    max-width: 95vw;
    margin: 1em auto;
    padding: 1em;
  }

  #admin-form {
    padding: 1em;
  }

  h2, h3 {
    font-size: 1.1em;
  }

  #search-movies-input {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .modal-content {
    padding: 1em 1.2em;
    box-shadow: 0 0 10px rgba(0,255,0,0.3);
  }

  .modal-content h2 {
    font-size: 1.3em;
    margin-bottom: 0.8em;
  }

  .modal-content p {
    margin-bottom: 1em;
  }

  #jwt-info, #movies-section {
    max-width: 100%;
    margin: 0.5em auto;
    padding: 0.8em;
  }

  h2, h3 {
    font-size: 1em;
    margin-bottom: 0.7em;
  }

  #movies-list li {
    display: block !important;
    gap: 0 !important;
  }

  #movies-list img {
    max-width: 100% !important;
    min-width: auto !important;
    width: auto !important;
    max-height: 200px;
    margin-bottom: 1em;
  }

  #search-movies-input {
    padding: 0.5em;
    font-size: 14px;
  }

  #admin-form {
    padding: 0.8em;
  }
}
