/* MEDIA PAGE STYLES */

/* Login Section */
.media-login-section {
  background-color: #fffdf4;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.login-card {
  background: white;
  border-radius: 12px;
  padding: 50px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  max-width: 500px;
  width: calc(100% - 40px);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #848678, #a3a67c);
  border-radius: 12px 12px 0 0;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-icon {
  font-size: 3rem;
  color: #848678;
  margin-bottom: 20px;
}

.login-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: #665848;
  margin-bottom: 15px;
  font-weight: 500;
}

.login-description {
  font-size: 1rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.5;
}

.login-form {
  margin-bottom: 30px;
}

.login-input-group {
  margin-bottom: 25px;
}

.login-input-group label {
  display: block;
  font-size: 1rem;
  color: #665848;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-input-group input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  background-color: white;
  color: #4a4a4a;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.login-input-group input:focus {
  outline: none;
  border-color: #848678;
  box-shadow: 0 4px 20px rgba(132, 134, 120, 0.15);
}

.login-button {
  width: 100%;
  background: linear-gradient(135deg, #848678, #a3a67c);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(132, 134, 120, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

.login-info {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

.login-info i {
  color: #848678;
  margin-right: 5px;
}

@media (max-width: 768px) {
  .media-login-section {
    padding: 60px 0;
    min-height: 400px;
  }
  
  .login-card {
    padding: 40px 30px;
    width: calc(100% - 20px);
    margin: 0 auto;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
  
  .login-description {
    font-size: 0.9rem;
  }
}

/* Hero Section */
.media-hero-section {
  background-color: rgb(132, 134, 120);
  padding: 60px 0;
  color: white;
  margin: 0;
}

.media-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.media-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.media-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: white;
  margin-bottom: 30px;
  font-weight: 600;
}

.media-intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: white;
  margin: 0;
}

/* Container */
.media-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Album CTA Section */
.album-cta-section {
  background-color: #fffdf4;
  padding: 80px 0;
}

.album-card {
  background: white;
  border-radius: 12px;
  padding: 50px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.album-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #848678, #a3a67c);
  border-radius: 12px 12px 0 0;
}

.album-card-header {
  margin-bottom: 40px;
}

.album-icon {
  font-size: 3rem;
  color: #848678;
  margin-bottom: 20px;
}

.album-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: #665848;
  margin-bottom: 15px;
  font-weight: 500;
}

.album-description {
  font-size: 1rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.5;
}

.album-button {
  width: 100%;
  max-width: 350px;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, #848678, #a3a67c);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.album-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(132, 134, 120, 0.3);
}

.album-tips {
  text-align: left;
  font-size: 0.9rem;
  color: #777;
  max-width: 450px;
  margin: 0 auto;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.album-tips p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.album-tips i {
  color: #848678;
  margin-top: 3px;
  width: 16px;
  text-align: center;
}

/* Shake animation for login card */
.login-card.shake {
  animation: shake 0.5s;
  animation-iteration-count: 1;
}

@keyframes shake {
  0% { transform: translateX(0); }
  10% { transform: translateX(-10px); }
  20% { transform: translateX(10px); }
  30% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  50% { transform: translateX(-10px); }
  60% { transform: translateX(10px); }
  70% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  90% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

/* Toast Messages */
.media-toaster {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.media-toaster.visible {
  opacity: 1;
  visibility: visible;
}

.media-toaster .toaster-content {
  background-color: #665848;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  max-width: 400px;
}

.media-toaster.success .toaster-content {
  background-color: #28a745;
}

.media-toaster.error .toaster-content {
  background-color: #dc3545;
}

.media-toaster .toaster-content:hover {
  opacity: 0.9;
}

#closeToaster {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  line-height: 1;
}

/* Mobile Optimization */
.mobile-device {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

.mobile-device .upload-dropzone {
  -webkit-tap-highlight-color: transparent;
}

.mobile-device .gallery-item {
  -webkit-tap-highlight-color: transparent;
}

/* iOS specific styles */
@supports (-webkit-touch-callout: none) {
  .gallery-item img,
  .gallery-item video {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
  }
}

/* Android specific styles */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-device-width: 320px) {
  .upload-button,
  .gallery-filter,
  .gallery-download {
    touch-action: manipulation;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .media-title {
    font-size: 2.2rem;
  }
  
  .media-intro-text {
    font-size: 1rem;
  }
  
  .media-hero-section {
    padding: 60px 0;
  }
  
  .upload-card {
    padding: 30px 20px;
  }
  
  .upload-dropzone {
    padding: 40px 20px;
  }
  
  .gallery-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .gallery-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .lightbox-container {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-info {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  /* Better touch targets for mobile */
  .upload-button,
  .gallery-filter,
  .gallery-download,
  .gallery-logout,
  .lightbox-download,
  .lightbox-select,
  .lightbox-close {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
  }

  /* Improved mobile gallery layout */
  .gallery-item {
    border-radius: 12px;
    overflow: hidden;
  }

  /* Mobile-friendly lightbox */
  .lightbox-container {
    margin: 10px;
    border-radius: 12px;
  }

  .lightbox-actions {
    gap: 15px;
  }

  .lightbox-actions button {
    flex: 1;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .gallery-actions {
    width: 100%;
    justify-content: center;
  }
  
  .gallery-filter,
  .gallery-download,
  .gallery-logout {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .media-toaster {
    top: 10px;
    right: 10px;
    left: 10px;
  }
} 