/* TICKET-07: Slideshow CSS (style.css) */

/* === CSS Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}

/* === Slideshow Background === */
.slideshow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

/* === Fade Transition === */
.fade-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  transition: opacity 500ms ease-in-out;
}

.fade-image.active {
  opacity: 1;
}

/* === Upload Container === */
.upload-container {
     z-index: 99;
    color: white; 
	position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: calc(100% - 32px);
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 24px;
  margin-left: auto;
  margin-right: auto;
}

/* === Upload Form === */
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.file-input-wrapper {
  position: relative;
}

.file-input-label {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: #333;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.file-input-label:hover {
  background-color: #444;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-submit {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: #2196f3;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.upload-submit:hover {
  background-color: #1976d2;
}

/* === Upload Status Messages === */
.upload-loading {
  color: #ff9800;
  padding: 8px 0;
  font-size: 16px;
  text-align: center;
}

.upload-success {
  color: #4caf50;
  padding: 8px 0;
  font-size: 16px;
  text-align: center;
}

.upload-error {
  color: #f44336;
  padding: 8px 0;
  font-size: 16px;
  text-align: center;
}

/* === Slideshow-Only Mode Modifier === */
.slideshow-only .upload-container {
  display: none !important;
}
