:root {
  --primary-color: #556B2F; /* Zeytin yeşili tonu, şık ve ağır */
  --secondary-color: #D4AF37; /* Altın rengi tonu */
  --text-main: #333333;
  --text-light: #666666;
  --bg-color: #FAFAF7; /* Çok hafif krem/kırık beyaz */
  --glass-bg: rgba(255, 255, 255, 0.85);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  /* Hafif hareketli, zarif bir arka plan deseni veya degrade */
  background-image: radial-gradient(circle at top right, #f3efe6, transparent 40%),
                    radial-gradient(circle at bottom left, #e9ece4, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.glass-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  max-width: 600px;
  width: 100%;
  padding: 40px 30px;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ornament {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.couple-names {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 30px;
  line-height: 1.2;
}

.couple-names span {
  font-size: 2.5rem;
  color: var(--secondary-color);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  display: inline-block;
  margin: 0 10px;
}

.photo-frame {
  margin: 0 auto 30px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  box-shadow: 0 10px 20px rgba(85, 107, 47, 0.2);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
}

.details-section {
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 25px 0;
  margin-bottom: 30px;
}

.families {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.families strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.heart-icon {
  color: var(--secondary-color);
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.event-info p {
  margin-bottom: 8px;
  line-height: 1.5;
}

.event-info .date {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
}

.event-info .venue {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.event-info .address {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Upload Section */
.upload-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
}

.upload-section h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.upload-section p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

form input[type="text"] {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.file-drop-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 100%;
  padding: 30px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  transition: 0.2s;
  background-color: white;
  cursor: pointer;
}

.file-drop-area.is-active {
  background-color: rgba(85, 107, 47, 0.05);
  border-color: var(--primary-color);
}

.fake-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.file-msg {
  font-size: 0.85rem;
  color: var(--text-light);
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}

.upload-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.upload-btn:hover {
  background-color: #bfa136;
  transform: translateY(-2px);
}

.upload-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

/* Yükleme animasyonları */
.hidden {
  display: none !important;
}

#loading, #successMessage, #errorMessage {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-left-color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#successMessage {
  background-color: #e8f5e9;
  color: #2e7d32;
}

#errorMessage {
  background-color: #ffebee;
  color: #c62828;
}

.check-icon {
  font-size: 2rem;
  margin-bottom: 5px;
}

/* Mobil Uyum */
@media (max-width: 480px) {
  .couple-names {
    font-size: 2.8rem;
  }
  .couple-names span {
    font-size: 2rem;
  }
  .photo-frame {
    width: 200px;
    height: 200px;
  }
  .families {
    flex-direction: column;
    gap: 10px;
  }
  .heart-icon {
    display: none;
  }
}
