/* ===== HIMMET & CENNET – PREMIUM CSS ===== */

:root {
  --bg: #fffafb;
  --card: #ffffff;
  --pink1: #fce4ec;
  --pink2: #f8bbd9;
  --pink3: #ec407a;
  --text: #4a3f44;
  --muted: #8d7a82;
  --shadow: 0 10px 35px rgba(236, 64, 122, 0.18);
  --radius: 18px;
  --pill: 999px;
  --font: "Segoe UI", system-ui, sans-serif;
}

/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ===== ARKA PLAN MOZAIK ===== */

.bg-grid {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 180px;
  gap: 10px;
  padding: 10px;
  z-index: -2;
}

.bg-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;

  opacity: 0;
  transform: scale(1.1);

  filter: brightness(1.1) contrast(1.2) saturate(1.25);

  animation:
    fadeIn 1s ease forwards,
    glow 10s ease-in-out infinite;

  transition: transform 8s ease;
}

.bg-tile:hover {
  transform: scale(1.2);
}

/* Overlay (okunabilirlik) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.55);
  z-index: -1;
}

/* ANİMASYON */
@keyframes fadeIn {
  to {
    opacity: 0.5;
    transform: scale(1);
  }
}

@keyframes glow {
  0%,100% { opacity: 0.4; }
  50% { opacity: 0.65; }
}

/* ===== LAYOUT ===== */

.wrap {
  max-width: 520px;
  margin: auto;
  padding: 2rem 1rem 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ===== HERO ===== */

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ===== CARD ===== */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* ===== INPUT ===== */

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--pink2);
  background: var(--pink1);
  border-radius: var(--pill);
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
}

input[type="file"] {
  display: none;
}

/* ===== BUTTON ===== */

.btn {
  margin-top: 1rem;
  width: 100%;
  border: none;
  border-radius: var(--pill);
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink3), #d81b60);
  color: white;
  box-shadow: 0 5px 20px rgba(236,64,122,0.4);
}

.btn-primary:hover {
  transform: scale(1.02);
}

/* ===== ALERT ===== */

.alert {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
}

/* ===== LINK ===== */

.hint-link a {
  color: var(--pink3);
  font-weight: 600;
  text-decoration: none;
}

/* ===== GALERİ ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (min-width: 500px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  background: var(--pink1);
}

/* FOTO + VIDEO */
.media {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

video.media {
  background: black;
}

/* ===== EMPTY ===== */

.empty-gallery {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted);
}