/* ─── Atlas Call — Modern çağrı listesi & detay ─── */

.calls-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.calls-toolbar .search-box {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}
.calls-toolbar .search-box .form-control {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1.1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calls-toolbar .search-box .form-control:focus {
  border-color: #0b72cf;
  box-shadow: 0 0 0 4px rgba(11, 114, 207, 0.12);
  outline: none;
}

.calls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ─── Kartlar ─── */
.call-card-eu {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s;
  position: relative;
  min-height: 300px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}
.call-card-eu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0b72cf, #3b9de8, #ff9f1c);
  opacity: 0;
  transition: opacity 0.3s;
}
.call-card-eu:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 114, 207, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
  border-color: rgba(11, 114, 207, 0.2);
}
.call-card-eu:hover::before { opacity: 1; }

.call-card-eu > *:not(.call-card-accent) {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}
.call-card-top {
  padding-top: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.call-card-eu .call-badges {
  padding-bottom: 0;
  margin: 0 1.35rem;
}
.call-card-eu h3 {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0.5rem 1.35rem 0;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.call-card-eu h3 a {
  color: inherit;
  transition: color 0.2s;
  text-decoration: none;
}
.call-card-clickable h3 a:hover { color: #0b72cf; }

.call-amount {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  margin: 0.35rem 1.35rem 0;
}
.call-partners {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.85rem 1.35rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
}
.call-partners-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #e8f2ff, #dceaff);
  color: #0754a8;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  font-size: 0.8rem;
}
.call-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 1.6rem;
  margin: 0 1.35rem;
  padding-bottom: 0.5rem;
}
.call-tag {
  background: #fff;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}
.call-tag-more { background: #f1f5f9; border-color: transparent; }

.call-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding: 1rem 1.35rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.9));
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  color: #94a3b8;
}
.call-card-foot .btn {
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
  border-radius: 11px;
  font-weight: 600;
}
.call-card-foot .btn-group { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.call-prog {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  background: #f8fafc;
  border-radius: 10px;
}
.call-flag {
  width: 30px;
  height: 21px;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-block;
  background-size: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.call-flag-tr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Crect fill='%23E30A17' width='36' height='24'/%3E%3Ccircle fill='%23fff' cx='13' cy='12' r='5'/%3E%3Ccircle fill='%23E30A17' cx='14.2' cy='12' r='4'/%3E%3Cpolygon fill='%23fff' points='18.5,12 22.8,10.2 21.2,13.8 24.5,16.2 20.2,15.2 18.8,19 18.2,14.5 14,16 16.5,13 13.2,11.2'/%3E%3C/svg%3E");
}
.call-flag-eu {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Crect fill='%23003399' width='36' height='24'/%3E%3Cg fill='%23FFCC00'%3E%3Ccircle cx='18' cy='5' r='1.1'/%3E%3Ccircle cx='21.2' cy='6.1' r='1.1'/%3E%3Ccircle cx='23.5' cy='8.8' r='1.1'/%3E%3Ccircle cx='24.5' cy='12' r='1.1'/%3E%3Ccircle cx='23.5' cy='15.2' r='1.1'/%3E%3Ccircle cx='21.2' cy='17.9' r='1.1'/%3E%3Ccircle cx='18' cy='19' r='1.1'/%3E%3Ccircle cx='14.8' cy='17.9' r='1.1'/%3E%3Ccircle cx='12.5' cy='15.2' r='1.1'/%3E%3Ccircle cx='11.5' cy='12' r='1.1'/%3E%3Ccircle cx='12.5' cy='8.8' r='1.1'/%3E%3Ccircle cx='14.8' cy='6.1' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
}

.call-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding-top: 0.5rem;
}
.call-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.call-badge-new { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.call-badge-exp { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #9d174d; }
.call-deadline-text {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}
.call-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-left: auto;
}
.call-pill-ok { background: #dcfce7; color: #166534; }
.call-pill-warn { background: #fef3c7; color: #92400e; }
.call-pill-danger { background: #fee2e2; color: #991b1b; }
.call-pill-neutral { background: #f1f5f9; color: #475569; }

.calls-page-bg {
  background: linear-gradient(165deg, #f0f7ff 0%, #f8fafc 40%, #fff 100%);
  min-height: 60vh;
  padding: 2.5rem 0 4rem;
}
.calls-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 20px;
  border: 2px dashed #e2e8f0;
}

/* ─── Detay sayfası ─── */
.call-detail-page {
  max-width: 1140px;
  margin: 0 auto;
}

.call-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0b72cf;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.9rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  text-decoration: none;
}
.call-detail-back:hover {
  background: #e8f2ff;
  border-color: #b9dbff;
  transform: translateX(-2px);
}

.call-detail-hero {
  position: relative;
  background: linear-gradient(135deg, #0754a8 0%, #0b72cf 45%, #1890ff 100%);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  color: #fff;
  margin-bottom: 1.75rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(7, 84, 168, 0.28);
}
.call-detail-hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -120px;
  right: -80px;
  pointer-events: none;
}
.call-detail-hero::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 159, 28, 0.12);
  bottom: -80px;
  left: -40px;
  pointer-events: none;
}
.call-detail-hero > * { position: relative; z-index: 1; }
.call-detail-hero .call-prog {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
}
.call-detail-hero .call-badge-new { background: rgba(255, 255, 255, 0.95); color: #1d4ed8; }
.call-detail-hero .call-badge-exp { background: rgba(255, 255, 255, 0.9); color: #be185d; }
.call-detail-hero .call-pill-ok,
.call-detail-hero .call-pill-warn,
.call-detail-hero .call-pill-danger,
.call-detail-hero .call-pill-neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(4px);
}
.call-detail-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 1rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.call-detail-hero .call-detail-budget {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0;
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
  opacity: 0.95;
}

.call-detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.call-stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  border: 1px solid #e8edf3;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.call-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.call-stat-card .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.call-stat-card .stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.call-stat-card .stat-value small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.2rem;
}
.call-stat-card.accent { border-color: #b9dbff; background: linear-gradient(160deg, #fff 0%, #f0f7ff 100%); }

.call-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.call-detail-side { display: flex; flex-direction: column; gap: 1.25rem; }
.call-detail-main { display: flex; flex-direction: column; gap: 1.25rem; }

.call-detail-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.call-detail-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.call-detail-card h3::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: linear-gradient(180deg, #0b72cf, #ff9f1c);
  border-radius: 4px;
}

.call-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f8fafc;
}
.call-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.call-info-row .info-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  flex-shrink: 0;
}
.call-info-row .info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
  line-height: 1.45;
}
.call-info-row .info-value small {
  display: block;
  font-weight: 500;
  color: #64748b;
  font-size: 0.82rem;
}

.call-detail-text {
  color: #475569;
  line-height: 1.8;
  margin: 0;
  font-size: 1rem;
}
.call-detail-html {
  color: #475569;
  line-height: 1.8;
  font-size: 0.98rem;
}
.call-detail-html p { margin-bottom: 0.85rem; }
.call-detail-html a { color: #0b72cf; font-weight: 600; }

.call-detail-tags .call-tag {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.call-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e8edf3;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
  position: sticky;
  bottom: 1rem;
  z-index: 10;
}
.call-detail-actions .btn-lg {
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  font-weight: 700;
}

/* Panel içi liste arka planı */
.panel-main .calls-grid-wrap {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 120px);
  margin: -0.5rem -0.5rem 0;
  padding: 0.5rem 0.5rem 2rem;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .call-detail-grid { grid-template-columns: 1fr; }
  .call-detail-hero { padding: 1.5rem; }
}
@media (max-width: 768px) {
  .calls-grid { grid-template-columns: 1fr; }
  .call-detail-actions { position: static; }
}
