/* Media Showcase Styles (Steam-style) */

.media-showcase {
  width: 100%;
  min-height: 400px;
}

.showcase-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
}

.showcase-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #6c47a6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.showcase-loading p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Showcase Container */

.showcase-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Main Image */

.showcase-main {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.showcase-main:hover .main-image {
  transform: scale(1.05);
}

.main-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-main:hover .main-image-overlay {
  opacity: 1;
}

.image-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.image-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.image-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.image-info .uploader {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: capitalize;
}

.image-info .uploader i {
  color: #946fe3;
}

.view-full-btn {
  background: rgba(108, 71, 166, 0.9);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-full-btn:hover {
  background: #6c47a6;
  transform: translateY(-2px);
}

/* Thumbnails */

.showcase-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.showcase-thumbnails::-webkit-scrollbar {
  width: 6px;
}

.showcase-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.showcase-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(108, 71, 166, 0.5);
  border-radius: 3px;
}

.showcase-thumbnails::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 71, 166, 0.7);
}

.thumbnail-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
}

.thumbnail-item:hover {
  border-color: rgba(108, 71, 166, 0.8);
  transform: translateX(-4px);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
  transform: scale(1.1);
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(108, 71, 166, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
  opacity: 1;
}

.thumbnail-overlay i {
  color: white;
  font-size: 1.5rem;
}

/* Empty State */

.showcase-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.showcase-empty i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
}

.showcase-empty h3 {
  color: white;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.showcase-empty p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 2rem 0;
  font-size: 1rem;
}

/* View Gallery Button (in header) */

.view-gallery-button {
  padding: 0.75rem 1.5rem;
  background-color: #d4a84a; /* Gold accent */
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  align-self: center;
}

.view-gallery-button:hover {
  background-color: #c09840;
  transform: translateY(-2px);
}

/* Simple Gallery (for < 5 images) */

.showcase-simple-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.simple-gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  aspect-ratio: 16/9;
  width: 100%;
  transition: transform 0.3s ease;
}

.simple-gallery-item:hover {
  transform: translateY(-4px);
}

.simple-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.simple-gallery-item:hover img {
  transform: scale(1.05);
}

.simple-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.simple-gallery-item:hover .simple-gallery-overlay {
  opacity: 1;
}

.simple-gallery-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simple-gallery-info .uploader {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: capitalize;
}

.simple-gallery-info .uploader i {
  color: #946fe3;
}

.simple-gallery-info .view-full-btn {
  background: rgba(108, 71, 166, 0.9);
  border: none;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.simple-gallery-info .view-full-btn:hover {
  background: #6c47a6;
}

/* Mobile Responsive */

@media (max-width: 968px) {
  .showcase-container {
    flex-direction: column;
    height: auto;
  }
  
  .showcase-main {
    height: 300px;
  }
  
  .showcase-thumbnails {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
  }
  
  .thumbnail-item {
    min-width: 150px;
    height: 100px;
  }
  
  .thumbnail-item:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .showcase-container {
    gap: 0.75rem;
  }
  
  .showcase-main {
    height: 250px;
  }
  
  .showcase-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .thumbnail-item {
    min-width: 100px;
    height: 70px;
  }
  
  .main-image-overlay {
    padding: 1rem;
  }
  
  .image-info {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .image-title {
    font-size: 1.1rem;
  }
  
  .image-info .uploader {
    font-size: 0.9rem;
  }
  
  .view-full-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .showcase-footer {
    flex-direction: column;
  }
  
  .showcase-footer .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .simple-gallery-item {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .showcase-main {
    height: 200px;
  }
  
  .showcase-thumbnails {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .thumbnail-item {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .main-image-overlay {
    padding: 0.75rem;
  }
  
  .image-info {
    gap: 0.5rem;
  }
  
  .image-title {
    font-size: 1rem;
  }
  
  .image-info .uploader {
    font-size: 0.8rem;
  }
  
  .view-full-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .view-gallery-button {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
  
  .simple-gallery-item {
    margin-bottom: 0.75rem;
  }
}
