/* gallery.css - Clean, modern, consistent with site theme */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #000;
  color: #f5f5f5;
  min-height: 100vh;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #181818;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f805a7;
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: #0bd0f3;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #fff;
}
.nav-toggle {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.header {
  text-align: center;
  margin-top: 100px;
  color: #fff;
}

#upload-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 30px 0;
}
.upload-area {
  background: #fff;
  color: #181818 !important;
  border-radius: 16px;
  border: 2px solid #0bd0f3;
  box-shadow: 0 4px 24px rgba(11, 208, 243, 0.10), 0 2px 8px rgba(248, 5, 167, 0.08);
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
}
.upload-area * {
  color: #181818 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
}
.upload-area .upload-text {
  color: #181818 !important;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 1em;
}
#image-preview {
  border: 2px solid #0bd0f3;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
  margin-top: 10px;
}
.upload-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 24px;
  background: linear-gradient(90deg, #0bd0f3 0%, #f805a7 100%);
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 10px;
  box-shadow: 0 2px 8px #0bd0f3, 0 1px 4px #f805a7;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(.4,2,.3,1);
}
.upload-btn:hover {
  background: linear-gradient(90deg, #f805a7 0%, #0bd0f3 100%);
  color: #181818;
}
.progress-bar {
  width: 100%;
  background: #eee;
  border-radius: 8px;
  margin-top: 10px;
  height: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px #0bd0f3, 0 1px 4px #f805a7;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0bd0f3 0%, #f805a7 100%);
  width: 0;
  transition: width 0.4s ease;
  border-radius: 8px;
}
.status {
  margin-top: 10px;
  font-size: 1rem;
  color: #0bd0f3;
  font-weight: bold;
  text-shadow: 0 1px 4px #f805a7;
}

.gallery-grid {
  margin-top: 20px;
}
.mosaic-grid {
  column-count: 3;
  column-gap: 20px;
}
@media (max-width: 900px) {
  .mosaic-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .mosaic-grid { column-count: 1; }
}
.gallery-item {
  position: relative;
  background: #181818;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  margin-bottom: 20px;
  width: 100%;
  display: inline-block;
  transition: all 0.3s;
}
.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-meta {
  padding: 12px;
  background: #222;
  color: #f5f5f5;
}
.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f805a7;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 10;
  transition: all 0.2s;
}
.gallery-item:hover .delete-btn {
  opacity: 1;
}
.delete-btn:hover {
  background: #0bd0f3;
  color: #181818;
}

.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}
.lightbox-overlay[style*="display:none"] {
  opacity: 0;
  pointer-events: none;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f805a7;
  z-index: 10001;
  transition: all 0.2s;
}
.lightbox-close:hover {
  background: #f805a7;
  color: #fff;
}
.lightbox-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.lightbox-nav-btn {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  color: #0bd0f3;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: all 0.2s;
}
.lightbox-nav-btn:hover {
  background: #0bd0f3;
  color: #fff;
}

.site-footer {
  background: linear-gradient(135deg, #f805a7 0%, #0bd0f3 100%);
  color: #fff;
  padding: 20px 0;
  margin-top: 40px;
}
.footer-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-left p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
.footer-right {
  display: flex;
  gap: 20px;
}
.footer-link {
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
  color: #f805a7;
}
