/* ==========================================================================
   Consolidated CSS — migrated from Vue component <style> blocks
   ========================================================================== */

/* --- Global (from App.vue) --- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@400;700&display=swap');

body {
  background-color: #000;
  color: #aaa;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin-top: 0;
}

h1 { font-size: 36px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

a {
  color: #48d1cc;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #20b2aa;
}

small, .small {
  font-size: 14px;
}

/* --- Navigation --- */

.menu {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.menu-item {
  text-decoration: none;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.menu-item:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* --- Home page (from HomePage.vue) --- */

.home {
  background-image: url('/static/img/sportech_bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-text {
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

.mail-link {
  color: #00eaff;
}

/* --- Form container (from JobApplicationForm.vue) --- */

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1em;
}

.form-container form {
  display: flex;
  flex-direction: column;
}

/* --- FormField styles (from FormField.vue) --- */

.form-field label {
  margin-top: 1em;
}

.form-field input[type='text'],
.form-field input[type='date'],
.form-field input[type='range'],
.form-field input[type='number'],
.form-field input[type='file'] {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
  box-sizing: border-box;
}

.form-field textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
  box-sizing: border-box;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 0;
  bottom: 0;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* --- Buttons --- */

button {
  background-color: #444;
  color: white;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  margin-top: 1em;
}

button[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
}

/* --- Server messages --- */

.server-message {
  margin-top: 1em;
}

/* --- Acknowledgement (from JobApplicationAcknowledgement.vue) --- */

.message-container {
  max-width: 600px;
  margin: 2px auto;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.message-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.message-body {
  font-size: 16px;
  margin-bottom: 20px;
}

/* --- Video upload (from VideoUpload.vue) --- */

.video-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-upload-container video {
  width: 80%;
  height: 90vh;
}

#recording-status {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 5px;
  color: red;
  display: flex;
  align-items: center;
}

.recording-icon {
  margin-right: 5px;
  font-size: 1.5em;
}

/* --- HTMX indicator --- */

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }
  h6 { font-size: 14px; }
  body { font-size: 14px; }
  small, .small { font-size: 12px; }

  .home {
    background-size: cover;
    min-height: auto;
    height: 100%;
  }

  .video-upload-container video {
    width: 100%;
    height: 80vh;
  }

  .message-container {
    max-width: 100%;
    padding: 10px;
  }

  .message-header {
    font-size: 16px;
  }

  .message-body {
    font-size: 14px;
  }
}
