/* =========================================
   BLOG OLUŞTUR – GENEL
========================================= */

.blog-add-section {
  width: 100%;
  padding: 90px 120px;
  font-family: "Cardo", serif;
}

.blog-add-form {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  padding: 44px 64px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* Başlık */
.blog-add-title {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(to right, #731919, #e52b2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 36px;
}

/* =================================================
   FORM ÜST SATIR
================================================= */

.form-top {
  display: flex;
  gap: 28px;
  margin-bottom: 26px;
}

/* Başlık input */
.input-field {
  flex: 1;
  padding: 14px 22px;
  font-size: 19px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(to bottom, #e2dfdb, #8c877a);
  color: #000;
  font-family: "Cardo", serif;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

.input-field::placeholder {
  color: #555;
}

/* =================================================
   GÖRSEL YÜKLEME BLOĞU
================================================= */

.upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 190px;
}

.file-input {
  display: none;
}

.upload-label {
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(to bottom, #dedad5, #8a867c);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  font-family: "Cardo", serif;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.upload-label:hover {
  transform: translateY(-1px);
  background: linear-gradient(to bottom, #d4d0cb, #757066);
}

.file-count {
  font-size: 14px;
  color: #444;
  padding-left: 4px;
}

/* =================================================
   BİLGİ METNİ
================================================= */

.img-hint {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  opacity: 0.95;
  margin-top: 6px;
  max-width: 520px;
}

.img-hint strong {
  display: block;
  margin-top: 4px;
  color: #731919;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* =================================================
   ÖNİZLEME
================================================= */

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0;
}

.preview-item {
  width: 150px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28);
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================================================
   METİN ALANI
================================================= */

.textarea-field {
  width: 100%;
  font-size: 18px;
  padding: 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(to bottom, #dedad5, #8a867c);
  font-family: "Cardo", serif;
  resize: vertical;
  outline: none;
  color: #000;
  margin-bottom: 28px;
  min-height: 190px;
}

.textarea-field::placeholder {
  color: #555;
}

/* =================================================
   UYARI
================================================= */

.warning-box {
  font-size: 15px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.75);
  padding: 20px 24px;
  border-radius: 12px;
  color: #000;
  margin-bottom: 34px;
  border-left: 5px solid #731919;
}

/* =================================================
   SUBMIT
================================================= */

.submit-btn {
  display: block;
  margin-left: auto;
  padding: 14px 44px;
  border: none;
  border-radius: 42px;
  font-size: 20px;
  font-family: "Cardo", serif;
  font-weight: 700;
  background: linear-gradient(to right, #c62828, #ff914d);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* =================================================
   LOADING
================================================= */

.blog-upload-loader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999999;
}

.blog-loader-box {
  background: #ffffff;
  padding: 26px 30px;
  border-radius: 18px;
  box-shadow: 0 6px 26px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.blog-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e3e3e3;
  border-top-color: #731919;
  border-radius: 50%;
  animation: blogSpin .75s linear infinite;
}

@keyframes blogSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =================================================
   RESPONSIVE
================================================= */

@media (max-width: 992px) {
  .blog-add-section {
    padding: 70px 20px;
  }

  .blog-add-form {
    padding: 32px 22px;
  }

  .form-top {
    flex-direction: column;
  }

  .upload-wrapper {
    width: 100%;
  }

  .upload-label {
    width: 100%;
  }
}

/* PC hizalama */
@media (min-width: 993px) {
  .form-top {
    align-items: flex-end;
  }
}
