/* =========================================================
   DOMAIN MODULE
   ========================================================= */

/* ---------- HOME / INDEX DOMAIN AREA ---------- */

.domain-search-section {
  position: relative;
  padding: 28px 0 14px;
  margin: 36px 0 42px;
}

.domain-search-shell {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 265px) minmax(0, 1fr) minmax(210px, 265px);
  gap: 28px;
  align-items: center;
}

.domain-promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(12, 20, 33, 0.16);
  padding: 24px 20px;
  min-height: 210px;
  height: 210px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  isolation: isolate;
}

.domain-promo-card:first-child {
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0) 32%),
    radial-gradient(circle at 84% 86%, rgba(255,255,255,0.16), rgba(255,255,255,0) 24%),
    linear-gradient(145deg, #0f4c81, #1d72b8 52%, #2596d8);
}

.domain-promo-card:last-child {
  background:
    radial-gradient(circle at 16% 16%, rgba(255,255,255,0.18), rgba(255,255,255,0) 30%),
    radial-gradient(circle at 84% 84%, rgba(255,255,255,0.16), rgba(255,255,255,0) 24%),
    linear-gradient(145deg, #32145f, #6b1fb1 54%, #c326a8);
}

.domain-promo-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.22), rgba(255,255,255,0));
  z-index: -1;
}

.domain-promo-card::after {
  content: "";
  position: absolute;
  inset: -30px auto auto -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.11), rgba(255,255,255,0));
  z-index: -1;
}

.domain-promo-kicker,
.domain-promo-card p {
  display: none !important;
}

.domain-promo-card h3 {
  margin: 0;
  max-width: 220px;
  font-size: 1.52rem;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 0 0 rgba(255,255,255,0);
  animation: domainFlashText 5s ease-in-out infinite;
}

.domain-search-card {
  position: relative;
  overflow: visible;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,255,0.99));
  border: 1px solid rgba(22, 40, 64, 0.08);
  box-shadow: 0 28px 70px rgba(12, 20, 33, 0.12);
  padding: 58px 28px 20px;
}

.domain-badges {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  width: max-content;
  max-width: calc(100% - 30px);
  pointer-events: none;
  z-index: 4;
}

.domain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 16px 24px;
  border-radius: 22px;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  transform: rotate(-45deg);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.domain-badge-com { background: linear-gradient(135deg, #ff7f00, #ff9d3b); }
.domain-badge-net { background: linear-gradient(135deg, #169dd3, #44b7e7); }
.domain-badge-org { background: linear-gradient(135deg, #6d3df2, #8a63ff); }
.domain-badge-comtr { background: linear-gradient(135deg, #16a34a, #35c76e); }
.domain-badge-tr { background: linear-gradient(135deg, #e11d48, #fb4770); }

.domain-search-head {
  text-align: center;
  margin-bottom: 14px;
}

.domain-search-title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #121a24;
}

.domain-search-subtitle {
  margin: 0;
  color: #5a6777;
  font-size: 0.92rem;
  line-height: 1.72;
  max-width: 720px;
  margin-inline: auto;
}

.domain-search-form {
  width: 100%;
}

.domain-search-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.domain-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 60px;
  padding: 0 26px;
  border-radius: 24px;
  border: 1px solid rgba(18, 26, 36, 0.12);
  outline: none;
  background: #ffffff;
  color: #121a24;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
}

.domain-search-input::placeholder {
  color: #8a95a4;
  font-weight: 600;
}

.domain-search-submit {
  border: 0;
  min-width: 188px;
  height: 60px;
  padding: 0 30px;
  border-radius: 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff7f00, #ff4f7b 55%, #6d3df2);
  box-shadow: 0 16px 30px rgba(194, 66, 96, 0.24);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.domain-search-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 20px 34px rgba(194, 66, 96, 0.30);
}

.domain-search-submit:active {
  transform: scale(0.985);
}

.domain-search-error {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.14);
  color: #b42340;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.domain-search-error.is-visible {
  display: block;
}

/* ---------- RESULT PAGE ---------- */

.domain-result-page {
  padding: 128px 0 46px !important;
}

.domain-search-top-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.domain-result-search-box {
  width: 420px;
  margin: 0 auto;
  text-align: center;
}

.domain-result-search-label {
  margin-bottom: 12px;
  text-align: center;
  color: #5f6b7a;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.domain-search-input-group--result {
  gap: 12px;
}

.domain-search-input--result {
  flex: 0 1 260px;
  max-width: 260px;
  height: 56px;
  border-radius: 20px;
}

.domain-search-submit--result {
  flex: 0 0 132px;
  min-width: 132px;
  height: 56px;
  border-radius: 20px;
}

.domain-results-wrap {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.domain-result-container {
  width: 640px;
  margin-left: 140px;
  margin-right: 0;
}

.domain-result-head {
  width: 100%;
  margin: 0 0 16px;
  text-align: left;
}

.domain-result-title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  color: #121a24;
}

.domain-result-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.domain-result-item {
  width: 100%;
  min-height: 86px;
  border-radius: 22px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.55fr 0.95fr;
  align-items: center;
  gap: 12px;
}

.domain-result-item--available {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.domain-result-item--taken {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}

.domain-result-item--warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.domain-col {
  display: flex;
  align-items: center;
}

.domain-col-domain {
  justify-content: flex-start;
}

.domain-col-status,
.domain-col-price,
.domain-col-action {
  justify-content: center;
}

.domain-name {
  color: #ffffff;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.domain-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.17);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
  text-align: center;
}

.domain-price {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.domain-action {
  display: flex;
}

.add-cart-btn {
  min-width: 122px;
  height: 42px;
  border-radius: 14px;
  border: 0;
  padding: 0 16px;
  background: linear-gradient(135deg, #121a24, #24364d);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.domain-more-results-note {
  margin-top: 16px;
  text-align: left;
  color: #5f6b7a;
  font-size: 1rem;
  font-weight: 800;
}

/* ---------- RIGHT PANEL ---------- */

.domain-right-panel {
  width: 320px;
  margin-top: 48px;
}

.brand-protect-card {
  position: sticky;
  top: 148px;
  background: linear-gradient(145deg, #991987, #7b166d 48%, #4d0f4b);
  border-radius: 28px;
  padding: 24px 22px 22px;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(74, 15, 73, 0.30);
}

.brand-badge {
  position: absolute;
  top: -10px;
  right: -8px;
  background: linear-gradient(135deg, #ff7f00, #ff4f7b);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255, 94, 120, 0.32);
}

.brand-protect-card h3 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.15;
  color: #ffffff;
}

.brand-description {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.brand-description strong {
  color: #ffffff;
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-item {
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px 14px;
}

.brand-item-domain {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 4px;
}

.brand-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.brand-item-price {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-item-note {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
}

.brand-total {
  margin-bottom: 14px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
}

.brand-total strong {
  font-size: 1.34rem;
  color: #ffffff;
}

.brand-btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff7f00, #ff4f7b);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(255, 100, 116, 0.28);
}

/* ---------- ANIMATION ---------- */

@keyframes domainFlashText {
  0%, 78%, 100% {
    text-shadow: 0 0 0 rgba(255,255,255,0);
    opacity: 1;
  }
  82% {
    text-shadow: 0 0 18px rgba(255,255,255,0.85), 0 0 34px rgba(255,255,255,0.35);
    opacity: 1;
  }
  86% {
    text-shadow: 0 0 8px rgba(255,255,255,0.55);
    opacity: 0.98;
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1480px) {
  .domain-results-wrap {
    gap: 36px;
  }

  .domain-result-container {
    margin-left: 90px;
  }
}

@media (max-width: 1280px) {
  .domain-results-wrap {
    flex-direction: column;
    gap: 28px;
  }

  .domain-result-container {
    margin-left: 80px;
  }

  .domain-right-panel {
    width: 640px;
    margin-left: 80px;
    margin-top: 0;
  }

  .brand-protect-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 1180px) {
  .domain-search-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .domain-search-card {
    order: -1;
  }

  .domain-promo-card {
    min-height: auto;
    height: auto;
  }
}

@media (max-width: 900px) {
  .domain-result-container,
  .domain-right-panel {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  .domain-result-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .domain-col-domain,
  .domain-col-status,
  .domain-col-price,
  .domain-col-action {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .domain-search-shell {
    width: min(100%, calc(100% - 24px));
  }

  .domain-search-card {
    padding: 90px 18px 20px;
    border-radius: 24px;
  }

  .domain-badges {
    top: -34px;
    gap: 12px;
    max-width: calc(100% - 14px);
  }

  .domain-badge {
    min-width: 86px;
    padding: 12px 16px;
    font-size: 0.96rem;
    border-radius: 16px;
  }

  .domain-search-input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .domain-search-input,
  .domain-search-submit,
  .domain-search-input--result,
  .domain-search-submit--result {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 56px;
    border-radius: 18px;
    flex: none;
  }

  .domain-promo-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .domain-promo-card h3 {
    font-size: 1.22rem;
  }

  .domain-result-page {
    padding-top: 108px !important;
  }
}

@media (max-width: 560px) {
  .domain-search-card {
    padding-top: 92px;
    position: relative;
    overflow: visible;
  }

  .domain-badges {
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-30%);
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: calc(100% - 18px);
    max-width: calc(100% - 18px);
  }

  .domain-badge {
    min-width: 58px;
    padding: 10px 12px;
    font-size: 0.72rem;
    line-height: 1;
    border-radius: 16px;
    transform: rotate(-45deg);
    transform-origin: center center;
    margin: 0;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .domain-badge-com {
    min-width: 58px;
  }

  .domain-badge-net,
  .domain-badge-org {
    min-width: 58px;
  }

  .domain-badge-comtr {
    min-width: 72px;
    padding: 10px 14px;
    font-size: 0.68rem;
  }

  .domain-badge-tr {
    min-width: 46px;
  }

  .domain-search-title,
  .domain-result-title {
    font-size: 1.35rem;
  }

  .brand-protect-card h3 {
    font-size: 1.6rem;
  }
}

/* UZUN DOMAIN ADLARI İÇİN KORUMA */

.domain-result-item {
  grid-template-columns: minmax(0, 1.45fr) minmax(110px, 1fr) minmax(60px, 0.55fr) minmax(120px, 0.95fr) !important;
}

.domain-col {
  min-width: 0;
}

.domain-col-domain {
  min-width: 0;
  overflow: hidden;
}

.domain-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-col-status,
.domain-col-price,
.domain-col-action {
  min-width: 0;
}

.domain-status-pill {
  max-width: 100%;
  white-space: nowrap;
}

.add-cart-btn {
  white-space: nowrap;
}

/* MARKANI KORU PANELİ UZUN DOMAIN KORUMASI */

.brand-item {
  min-width: 0;
  overflow: hidden;
}

.brand-item-domain {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-item-meta {
  min-width: 0;
  flex-wrap: wrap;
}

.brand-item-price,
.brand-item-note {
  white-space: nowrap;
}

/* PANEL GENİŞLİĞİNİ BİRAZ GÜÇLENDİR */

.domain-right-panel {
  width: 360px !important;
}

.brand-protect-card {
  width: 100%;
  box-sizing: border-box;
}

/* ORTA EKRANLARDA DAĞILMAYI ENGELLE */

@media (max-width: 1480px) {
  .domain-result-item {
    grid-template-columns: minmax(0, 1.25fr) minmax(110px, 0.95fr) minmax(60px, 0.5fr) minmax(120px, 0.8fr) !important;
  }

  .domain-right-panel {
    width: 340px !important;
  }
}

/* MOBİLDE TEK SATIRA ZORLAMA YAPMA */

@media (max-width: 900px) {
  .domain-name,
  .brand-item-domain {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }
}

/* RESULT CARD SHADOW (PREMIUM EFFECT) */

.domain-result-item {
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

/* HOVER EFFECT */

.domain-result-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.12);
}

/* RENKLİ GLOW (STATUS’A GÖRE) */

.domain-result-item--available:hover {
  box-shadow:
    0 18px 40px rgba(22, 163, 74, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.12);
}

.domain-result-item--taken:hover {
  box-shadow:
    0 18px 40px rgba(225, 29, 72, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.12);
}

.domain-result-item--warning:hover {
  box-shadow:
    0 18px 40px rgba(245, 158, 11, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.12);
}


.domain-name,
.result-domain,
.domain-card .name {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .domain-result-item,
  .domain-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .domain-result-item .right,
  .domain-card .right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 6px;
  }

  .domain-result-item .price {
    font-size: 14px;
    font-weight: 600;
  }

  .domain-result-item .add-cart-btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

.domain-name {
  max-width: 100%;
  display: block;
}

@media (max-width: 560px) {
  .domain-badges {
    align-items: center;
  }

  .domain-badge {
    width: 60px;
    min-width: 60px;
    height: 38px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
  }

  .domain-badge-comtr {
    width: 60px;
    min-width: 60px;
    height: 38px;
    padding: 0 6px;
    font-size: 0.62rem;
  }

  .domain-badge-tr {
    width: 60px;
    min-width: 60px;
    height: 38px;
  }
}



