/* duyurular/ — site geneli popup stilleri */

.core-duyuru-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding:
    max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  background: rgba(22, 28, 36, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  box-sizing: border-box;
}

.core-duyuru-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.core-duyuru-overlay.is-closing {
  opacity: 0;
  visibility: hidden;
}

body.core-duyuru-open {
  overflow: hidden;
}

.core-duyuru-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
  flex-shrink: 0;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  background: linear-gradient(165deg, #ffffff 0%, #f6fbf9 55%, #eef8f5 100%);
  border-radius: 20px;
  border: 1px solid rgba(69, 184, 172, 0.25);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
  max-height: none;
  overflow: visible;
}

.core-duyuru-overlay.is-visible .core-duyuru-card {
  transform: translateY(0) scale(1);
}

.core-duyuru-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.core-duyuru-close:hover {
  background: rgba(69, 184, 172, 0.15);
  color: #2d8f84;
  transform: scale(1.05);
}

.core-duyuru-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a9b8f;
  background: rgba(69, 184, 172, 0.12);
  border-radius: 999px;
}

.core-duyuru-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  color: #45b8ac;
}

.core-duyuru-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(69, 184, 172, 0.45);
  animation: core-duyuru-spin 12s linear infinite;
}

@keyframes core-duyuru-spin {
  to { transform: rotate(360deg); }
}

.core-duyuru-logo {
  display: block;
  margin: 0 auto 0.75rem;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.core-duyuru-title {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1f2933;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
}

.core-duyuru-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5c6570;
}

.core-duyuru-tips {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.core-duyuru-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #f8faf9;
  border: 1px solid #e4ebe8;
  border-radius: 12px;
}

.core-duyuru-tip > .bi {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1.15rem;
  color: #45b8ac;
}

.core-duyuru-tip__body p {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4a5560;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.core-duyuru-tip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2d6b64;
  text-decoration: none;
}

.core-duyuru-tip__link:hover {
  text-decoration: underline;
}

.core-duyuru-brand {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #4a5560;
  background: rgba(136, 176, 75, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(136, 176, 75, 0.22);
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.core-duyuru-brand .bi {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #88b04b;
  font-size: 1.1rem;
}

.core-duyuru-brand a {
  color: #5a8f2e;
  font-weight: 600;
  text-decoration: none;
}

.core-duyuru-brand a:hover {
  text-decoration: underline;
}

.core-duyuru-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.core-duyuru-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.core-duyuru-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #45b8ac 0%, #3a9b8f 100%);
  box-shadow: 0 6px 16px rgba(69, 184, 172, 0.35);
}

.core-duyuru-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(69, 184, 172, 0.45);
}

.core-duyuru-btn-ghost {
  color: #3a9b8f;
  background: #fff;
  border: 2px solid rgba(69, 184, 172, 0.35);
}

.core-duyuru-btn-ghost:hover {
  color: #2d8f84;
  background: rgba(69, 184, 172, 0.08);
}

@media (max-width: 768px) {
  .core-duyuru-overlay {
    padding:
      max(0.5rem, env(safe-area-inset-top, 0px))
      max(0.5rem, env(safe-area-inset-right, 0px))
      max(0.5rem, env(safe-area-inset-bottom, 0px))
      max(0.5rem, env(safe-area-inset-left, 0px));
  }

  .core-duyuru-card {
    max-width: 100%;
    padding: 1.75rem 1.15rem 1.25rem;
    border-radius: 16px;
    max-height: calc(100dvh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .core-duyuru-close {
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
  }

  .core-duyuru-title {
    font-size: 1.25rem;
    padding-right: 1.75rem;
  }

  .core-duyuru-text {
    font-size: 0.9rem;
  }

  .core-duyuru-tip {
    padding: 0.75rem 0.85rem;
  }

  .core-duyuru-brand {
    font-size: 0.8125rem;
    padding: 0.65rem 0.85rem;
  }

  .core-duyuru-btn {
    min-height: 44px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .core-duyuru-card {
    padding: 1.5rem 1rem 1.15rem;
    border-radius: 14px;
  }

  .core-duyuru-badge {
    font-size: 0.68rem;
    margin-bottom: 0.75rem;
  }

  .core-duyuru-icon {
    width: 60px;
    height: 60px;
    font-size: 1.55rem;
    margin-bottom: 0.75rem;
  }

  .core-duyuru-logo {
    max-height: 36px;
  }

  .core-duyuru-title {
    font-size: 1.125rem;
  }

  .core-duyuru-text {
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
  }

  .core-duyuru-tips {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .core-duyuru-tip__body p {
    font-size: 0.8125rem;
  }

  .core-duyuru-actions {
    gap: 0.5rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .core-duyuru-card {
    padding: 1rem 1rem 0.85rem;
    max-height: calc(100dvh - 0.5rem);
  }

  .core-duyuru-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .core-duyuru-logo {
    max-height: 32px;
    margin-bottom: 0.5rem;
  }

  .core-duyuru-badge {
    margin-bottom: 0.5rem;
  }

  .core-duyuru-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }

  .core-duyuru-text {
    font-size: 0.8125rem;
    margin-bottom: 0.65rem;
  }

  .core-duyuru-tips {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .core-duyuru-tip {
    padding: 0.55rem 0.7rem;
  }

  .core-duyuru-brand {
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.7rem;
  }
}
