/* add-artist.css (updated) */

/* ===== Theme ===== */
:root{
  --bg1:#5b6bff;
  --bg2:#22c1dc;
  --bg3:#10b8c7;

  --text:#0b1220;
  --muted:#5b6472;

  --card: rgba(255,255,255,0.78);
  --card-strong: rgba(255,255,255,0.88);
  --stroke: rgba(11,18,32,0.10);

  --shadow: 0 18px 50px rgba(0,0,0,0.16);
  --shadow-sm: 0 8px 22px rgba(0,0,0,0.10);

  --radius: 18px;
  --radius-sm: 14px;
  --radius-full: 9999px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%);
  overflow-x:hidden;
}

a{ color: inherit; }
.container{ width: min(1100px, 96vw); margin: 0 auto; padding: 0 12px; }

/* ===== Topbar ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 12px;
}
.brand{
  text-decoration:none;
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}
.brand__title{ font-weight: 900; font-size: 1.15rem; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.brand__subtitle{ color: rgba(11,18,32,0.70); font-size: 0.95rem; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }

.page-head{ padding: 16px 0 10px; }
.page-head h1{ margin: 0; font-size: 2.0rem; font-weight: 900; letter-spacing: -0.01em; color: #ffffff; text-align:center; }
.page-head .muted{
  margin: 10px auto 0;
  max-width: 70ch;
  color: rgba(255,255,255,0.92);
  text-align:center;
}

/* ===== Cards ===== */
.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(14px);
}

/* ===== Info accordions ===== */
.info-section{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin: 10px 0 14px;
}

details.accordion-item{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}

details.accordion-item[open]{
  background: rgba(255,255,255,0.70);
}

summary.section-title{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  cursor:pointer;
  font-weight: 850;
  user-select:none;
}

summary.section-title::-webkit-details-marker{ display:none; }

.section-icon{
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(11,18,32,0.08);
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
  flex: 0 0 auto;
  font-size: 1.25rem;
}

.chev{
  margin-left:auto;
  opacity: 0.55;
  font-weight: 900;
}

details[open] .chev{ transform: rotate(180deg); }

.liste-small{
  padding: 0 16px 14px;
  color: rgba(11,18,32,0.88);
}
.liste-small p{
  margin: 10px 0;
  line-height: 1.55;
}

/* ===== Form ===== */
.form{ display:block; }

.grid{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 12px;
}
.grid > *{ min-width: 0; }

.field{ display:flex; flex-direction:column; gap: 6px; }
.field--full{ grid-column: 1 / -1; }

label{ font-weight: 750; }

.req{ color: rgba(11,18,32,0.70); }

input, select, textarea{
  font: inherit;
  color: var(--text);
  border: 1px solid rgba(11,18,32,0.12);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  background: rgba(255,255,255,0.96);
  max-width: 100%;
}

textarea{ resize: vertical; }

.field__hint{
  font-size: 0.85rem;
  color: rgba(11,18,32,0.60);
  margin-top: 2px;
}

.help{
  font-size: 0.9rem;
  color: rgba(11,18,32,0.62);
  margin-top: 6px;
}

/* ===== Artist Categories (like add-place) ===== */
.cats-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.cats-title{ font-weight: 900; }
.cats-hint{ font-size: 0.85rem; color: rgba(11,18,32,0.62); }

.category-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.category-option{ position: relative; }
.category-checkbox{ display:none; }

.category-label{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
  padding: 14px 12px;
  border: 1px solid rgba(11,18,32,0.12);
  border-radius: 16px;
  cursor:pointer;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  text-align:center;
  user-select:none;
}
.category-label:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.10);
}
.category-checkbox:checked + .category-label{
  border-color: rgba(16,185,129,0.55);
  background: rgba(16,185,129,0.10);
}

.category-icon{ font-size: 1.35rem; }
.category-name{ font-weight: 800; font-size: 0.92rem; }

.cat-error{
  margin-top: 8px;
  font-weight: 800;
  color: #EE4444;
}

@media (max-width: 640px){
  .category-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-label{ padding: 12px 10px; }
  .category-name{ font-size: 0.88rem; }
}

/* ===== Inner form boxes ===== */
.form-box{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.form-box__head{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(11,18,32,0.08);
  font-weight: 900;
  margin-bottom: 12px;
}

.form-ico{
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(11,18,32,0.08);
}

/* ===== Buttons ===== */
.actions{ display:flex; gap: 12px; flex-wrap:wrap; margin-top: 8px; }
.actions--stack{ flex-direction:column; }

.btn{
  border: 0;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.btn--wide{
  width: 100%;
  padding: 16px 16px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  color: #fff;
}

.btn--preview{
  background: linear-gradient(90deg, #06b6d4 0%, #6d28d9 100%);
}

.btn--submit{
  background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
}

.btn:active{ transform: translateY(1px); }

.form-footnote{
  text-align:center;
  margin: 10px 0 2px;
  font-size: 0.92rem;
  color: rgba(11,18,32,0.78);
}

/* ===== Submit message ===== */
.submit-msg{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.82);
  line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
  .page-head h1{ font-size: 1.6rem; }
}

/* --- File upload (nicer than default browser control) --- */
.file-upload{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.file-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.file-input{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.file-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.08);
  background: #fff;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 10px 15px -10px rgba(0,0,0,.25);
  user-select:none;
}
.file-btn:hover{
  transform: translateY(-1px);
}
.file-names{
  font-weight:600;
  color: rgba(0,0,0,0.65);
  max-width: 100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.file-feedback{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.file-summary{
  font-weight:700;
  color: rgba(0,0,0,0.78);
}
.file-list{
  font-weight:600;
  color: rgba(0,0,0,0.65);
  font-size: 0.9rem;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
}
.form-error{
  margin-top: 4px;
  color: #ef4444;
  font-weight:700;
  line-height:1.35;
}





/* Add-place ile aynı: başarı mesajı + form gizleme */
.success-message {
      display: none;
      background: rgba(16, 185, 129, 0.1);
      border: 2px solid var(--primary-green);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      text-align: center;
      margin-bottom: 2rem;
    }

    .success-message.show {
      display: block;
      animation: slideDown 0.5s ease;
    }

    .success-icon {
      font-size: 3rem;
      margin-bottom: 0.5rem;
    }

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

    @media (max-width: 640px) {
      .form-row { grid-template-columns: 1fr; }
      .category-grid { grid-template-columns: repeat(2, 1fr); }

      /* Mobilde daralma: toplam yatay padding'i azalt */
      body { padding: 0; }
      .page-wrap { padding: 1.25rem 0.75rem; }

      .form-header { padding: 1.5rem; }
      .form-header h1 { font-size: 1.45rem; }

      .form-body { padding: 0.1rem; }
      .form-section { padding: 0.6rem 0; }
    }

.form.is-hidden{
  display: none !important;
}

.build-note{
  text-align:center;
  margin: 10px 0 2px;
  font-size: 0.75rem;
  color: rgba(11,18,32,0.78);
}

/* Mevcut add-artist.css kullanılıyor. Burada sadece sayfaya özel minik ayarlar var. */

.feedback-grid {
  grid-template-columns: 1fr;
}

.success-message[hidden] {
  display: none;
}

/* textarea biraz daha rahat */
#message {
  min-height: 220px;
  resize: vertical;
}

/* Buton genişliği mobilde daha iyi dursun */
.actions .btn {
  width: 100%;
}
