/* ===== Arama Motoru Frontend ===== */

.am-wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 14px;
  box-sizing: border-box;
}

/* ===== Search bar ===== */
.am-form{
  display:flex;
  gap:10px;
  align-items:center;
}

.am-form input[type="search"]{
  flex:1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
  outline: none;
  background:#fff;
}

.am-form input[type="search"]:focus{
  border-color:#111;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.am-submit{
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background:#111;
  color:#fff;
  cursor:pointer;
  font-size: 14px;
}

.am-submit:hover{ opacity:.92; }

/* ===== Meta badges ===== */
.am-serp-meta{
  margin: 10px 0 14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.am-badge{
  background:#f2f2f2;
  color:#111;
  border-radius:999px;
  padding: 4px 10px;
  font-size: 13px;
}

/* ===== Results list ===== */
.am-results{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* =========================================================
   NEW HTML (class-am-shortcode.php)
   .am-result-row
     .am-result-item   (CARD)
       .am-result-grid
         .am-result-main
     .am-result-actions (OUTSIDE buttons)
========================================================= */
.am-result-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.am-result-item{
  flex: 1 1 auto;
  position: relative;
}

/* artan uyumluluk için: eskiden grid vardı; artık içeride tek kolon var */
.am-result-grid{
  display:block;
}

/* ===== The actual card (left) ===== */
.am-result-main{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:18px;
  padding:16px 16px 14px 22px; /* ✅ soldan ekstra padding */
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

/* ===== Title/meta/snippet ===== */
.am-result-title a{
  color:#111;
  text-decoration:none;
  font-weight:700;
  font-size: 18px;
}

.am-result-title a:hover{ text-decoration:underline; }

.am-result-meta{
  margin-top:4px;
  color:#777;
  font-size: 13px;
}

.am-result-snippet{
  margin-top:10px;
  color:#222;
  font-size: 15px;
  line-height: 1.45;
}

/* ===== Right side (outside the card) ===== */
.am-result-actions{
  flex: 0 0 auto;
  padding-top: 6px;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
}

/* ===== Feedback: outside, vertical ===== */
.am-feedback{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:0;
}

.am-btn{
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

/* Icon buttons (like / dislike default) */
.am-btn--icon{
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid #111;
  background:#111;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.am-btn--icon:hover{ opacity:.92; }

.am-btn--icon:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

.am-btn--icon .dashicons{
  color:#fff;
  font-size:18px;
  width:18px;
  height:18px;
  line-height:18px;
}

/* ✅ Report button is now "!" (HTML: .am-fb-report has am-btn--icon too)
   Override the dark icon-button style to a lighter alert style */
.am-fb-report.am-btn--icon{
  border:1px solid #d6d6d6;
  background:#fff;
  color:#111;
  font-size:18px;
  font-weight:800;
  line-height:1;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.am-fb-report.am-btn--icon:hover{
  background:#f7f7f7;
  opacity:1;
}

.am-fb-report.am-btn--icon:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

/* ===== Accordion (same-domain hidden results) ===== */
.am-acc{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #ececec;
  position: relative;
}

/* ✅ Summary text is visible now ("Aynı siteden daha fazla sonuç göster") */
.am-acc-summary{
  display:inline-flex;
  align-items:center;
  gap:8px;

  cursor:pointer;
  user-select:none;

  font-size:14px;
  line-height:1.2;
  font-weight:600;
  color:#111;

  background:transparent;
  border:0;
  padding:0;
}

.am-acc-summary::-webkit-details-marker{ display:none; }
.am-acc-summary::marker{ content:""; }

/* chevron */
.am-acc-summary::after{
  content:"⌄";
  font-size:16px;
  line-height:1;
  display:inline-block;
  transform: rotate(0deg);
  transition: transform .15s ease, opacity .15s ease;
  opacity:.85;
}

.am-acc[open] .am-acc-summary::after{
  transform: rotate(180deg);
  opacity:1;
}

/* accordion body */
.am-acc-body{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  position: relative;
  z-index: 1;
}

.am-acc-item{
  border:1px solid #eeeeee;
  background:#fafafa;
  border-radius:14px;
  padding:10px 12px;
}

.am-acc-title a{
  color:#111;
  text-decoration:none;
  font-weight:700;
  font-size: 14px;
}

.am-acc-title a:hover{ text-decoration:underline; }

.am-acc-snippet{
  margin-top:6px;
  color:#333;
  font-size: 13px;
  line-height: 1.45;
}

/* (shortcode içinde artık kullanılmıyor ama kalsın) */
.am-acc-morehint{
  margin-top: 8px;
  font-size: 12px;
  color:#777;
}

/* ===== Debug (admin only) ===== */
.am-debug{
  margin-top:10px;
  font-size:12px;
  color:#666;
}

/* ===== Pagination ===== */
.am-pagination{
  margin-top: 14px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
}

.am-page{
  font-size: 14px;
  color:#111;
  text-decoration:none;
  background:#f2f2f2;
  padding: 8px 12px;
  border-radius: 999px;
}

.am-page:hover{ background:#eaeaea; }

.am-page--current{
  background:#111;
  color:#fff;
}

.am-empty{
  margin-top: 12px;
  color:#555;
}

/* ===== Responsive ===== */
@media (max-width: 680px){
  .am-result-row{
    flex-direction:column;
    gap:10px;
  }

  /* mobilde butonlar kartın altında dışarıda, yan yana */
  .am-result-actions{
    justify-content:flex-start;
    padding-top: 0;
  }

  .am-feedback{
    flex-direction: row;
    gap:10px;
  }

  .am-btn--icon{
    width:40px;
    height:40px;
    border-radius:14px;
  }
}

@media (max-width: 520px){
  .am-wrap{ padding: 10px 10px; }
  .am-form{ gap:8px; }
  .am-submit{ padding: 12px 14px; }
  .am-result-title a{ font-size: 17px; }
}
