/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

.app-container {
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, #22be0d, #1a9c0a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.upload-btn,
.back-btn {
  background: linear-gradient(45deg, #22be0d, #1a9c0a);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(34, 190, 13, 0.3);
}

.upload-btn:hover,
.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 190, 13, 0.4);
}

/* Reels container */
.reels-container {
  padding-top: 80px;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reels-container::-webkit-scrollbar {
  display: none;
}

.reel-item {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 9/16;
  max-width: 100%;
  margin: 0 auto;
  background: #000;
}

.video-container {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.video-container:hover video {
  transform: scale(1);
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.video-info {
  max-width: 90%;
}

.video-info h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-info p {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.9;
  line-height: 1.6;
}

.message-btn {
  display: inline-block;
  background: linear-gradient(45deg, #22be0d, #1a9c0a);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(34, 190, 13, 0.3);
}

.message-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 190, 13, 0.4);
}

.no-videos {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(45deg, #1a1a1a, #000);
}

.no-videos p {
  font-size: 1.2rem;
  color: #888;
}

/* Upload form styles */
.upload-container {
  padding: 100px 20px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #fff;
}

input[type="text"],
input[type="url"],
textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
  outline: none;
  border-color: #22be0d;
  box-shadow: 0 0 0 3px rgba(34, 190, 13, 0.1);
}

textarea {
  height: 120px;
  resize: vertical;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  background: linear-gradient(45deg, #22be0d, #1a9c0a);
  color: white;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(34, 190, 13, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 190, 13, 0.4);
}

/* Upload form specific styles */
.upload-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-upload-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.file-upload-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 2px dashed rgba(34, 190, 13, 0.3);
  border-radius: 12px;
  background: rgba(34, 190, 13, 0.05);
  transition: all 0.3s ease;
}

.file-upload-placeholder:hover {
  border-color: #22be0d;
  background: rgba(34, 190, 13, 0.1);
}

.file-upload-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #22be0d;
}

.file-upload-placeholder span {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.file-upload-placeholder small {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.upload-icon {
  width: 20px;
  height: 20px;
}

/* Form input animations */
input[type="text"],
input[type="url"],
textarea {
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 190, 13, 0.2);
  border-color: #22be0d;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .reels-container {
    max-width: 414px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .upload-container {
    padding: 120px 40px 40px;
  }
}

/* Responsive adjustments for upload page */
@media (min-width: 768px) {
  .upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 120px 20px 40px;
  }
  
  .upload-form {
    padding: 40px;
  }
}
