/* ===== Memory Upload Section ===== */
.dml-upload-section {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  padding: 40px;
  margin: 50px auto;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,115,170,0.2);
  transition: box-shadow 0.3s ease;
}
.dml-upload-section:hover {
  box-shadow: 0 12px 30px rgba(0,115,170,0.25);
}

/* ===== Upload Form Header ===== */
.dml-upload-container h3 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #0a3d62;
  position: relative;
}
.dml-upload-container h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #0073aa, #00a8ff);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== Upload Form Fields ===== */
#dml-upload-form label {
  font-weight: 600;
  margin-top: 15px;
  display: block;
  color: #444;
}

#dml-upload-form input,
#dml-upload-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

#dml-upload-form input:focus,
#dml-upload-form textarea:focus {
  border-color: #0073aa;
  outline: none;
}

/* ===== Upload Button ===== */
#dml-upload-form button {
  margin-top: 20px;
  background: linear-gradient(90deg, #0073aa, #00a8ff);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
#dml-upload-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,115,170,0.3);
}

/* ===== Masonry Gallery ===== */
.dml-masonry {
  column-count: 3;
  column-gap: 1em;
  margin: 40px auto;
  max-width: 1000px;
}

.dml-masonry .dml-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s;
}
.dml-masonry .dml-item:hover {
  transform: translateY(-4px);
}

/* ===== Gallery Hover Overlay ===== */
.dml-masonry .dml-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,115,170,0.8);
  color: #fff;
  padding: 8px;
  font-size: 0.9em;
  opacity: 0;
  transition: opacity 0.3s;
}
.dml-masonry .dml-item:hover::after {
  opacity: 1;
}

.dml-masonry img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #eee;
}

.dml-masonry h4 {
  margin: 10px;
  font-size: 1.1em;
  color: #333;
}

.dml-masonry p {
  margin: 0 10px 10px;
  font-size: 0.9em;
  color: #555;
}

.dml-masonry small {
  display: block;
  margin: 0 10px 10px;
  font-size: 0.8em;
  color: #888;
}

/* ===== Footer Layer Fix ===== */
.site-footer {
  position: relative;
  z-index: 1;
}

/* ===== Success Message Animation ===== */
.dml-success-message {
  background: #00a8ff;
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 6px;
  animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
