/* Ubiquiti indirmeler — ui.com tarzı liste, Safir portal renkleri */

.ubnt-dl-page {
  padding-bottom: 3rem;
}

.ubnt-dl-hero {
  padding: 2rem 0 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.ubnt-dl-hero h1 {
  margin: 0.5rem 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.ubnt-dl-hero-lead {
  margin: 0;
  max-width: 42rem;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.ubnt-dl-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.ubnt-dl-back:hover {
  color: var(--primary, #2563eb);
}

.ubnt-dl-search {
  margin-top: 1.25rem;
  max-width: 36rem;
}

.ubnt-dl-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9375rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Cpath d='M16 16l-4-4'/%3E%3C/svg%3E") 0.85rem center no-repeat;
}

.ubnt-dl-search input:focus {
  outline: 2px solid color-mix(in srgb, var(--primary, #2563eb) 35%, transparent);
  border-color: var(--primary, #2563eb);
}

.ubnt-dl-section {
  padding: 2rem 0 0;
}

.ubnt-dl-section h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}

.ubnt-dl-section-head {
  margin-bottom: 1.35rem;
}

.ubnt-dl-section-head h2 {
  margin-bottom: 0.35rem;
}

.ubnt-dl-section-head p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.ubnt-dl-section--apps {
  padding-top: 2.5rem;
}

.ubnt-dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.ubnt-dl-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ubnt-dl-card:hover {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 40%, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ubnt-dl-card-icon,
.ubnt-dl-app-icon {
  display: block;
  margin-bottom: 0.85rem;
}

.ubnt-dl-card-icon {
  width: 3rem;
  height: 3rem;
}

.ubnt-dl-icon-wrap {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.ubnt-dl-icon-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ubnt-dl-icon-wrap--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
}

.ubnt-dl-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
}

.ubnt-dl-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.ubnt-dl-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.ubnt-dl-app {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid #e8edf3;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ubnt-dl-app:hover {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 28%, #e8edf3);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.ubnt-dl-app-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ubnt-dl-icon-wrap--app {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 24px rgba(15, 23, 42, 0.14);
}

.ubnt-dl-app-meta {
  min-width: 0;
}

.ubnt-dl-app-meta h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.ubnt-dl-app-meta p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.ubnt-dl-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.ubnt-dl-platform-group-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ubnt-dl-platform-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ubnt-dl-platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.125rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.ubnt-dl-platform-btn:hover {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 35%, #e2e8f0);
  background: #f8fafc;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ubnt-dl-platform-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #475569;
}

.ubnt-dl-platform-btn-icon svg {
  width: 100%;
  height: 100%;
}

.ubnt-dl-platform-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.ubnt-dl-platform-btn-label {
  font-size: 0.75rem;
  font-weight: 700;
}

.ubnt-dl-platform-btn-version {
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
}

.ubnt-dl-platform-btn--file {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 25%, #e2e8f0);
  background: color-mix(in srgb, var(--primary, #2563eb) 6%, #fff);
}

.ubnt-dl-platform-btn--file .ubnt-dl-platform-btn-icon {
  color: var(--primary, #2563eb);
}

.ubnt-dl-platform-btn--file:hover {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #fff;
}

.ubnt-dl-platform-btn--file:hover .ubnt-dl-platform-btn-icon,
.ubnt-dl-platform-btn--file:hover .ubnt-dl-platform-btn-version {
  color: rgba(255, 255, 255, 0.85);
}

.ubnt-dl-platform-btn--store .ubnt-dl-platform-btn-icon {
  color: #0f172a;
}

.ubnt-dl-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ubnt-dl-tab {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  text-decoration: none;
}

.ubnt-dl-tab.is-active,
.ubnt-dl-tab:hover {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #fff;
}

.ubnt-dl-list {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.ubnt-dl-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.ubnt-dl-row:last-child {
  border-bottom: none;
}

.ubnt-dl-row-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.ubnt-dl-row-date {
  font-size: 0.8125rem;
  color: #94a3b8;
  white-space: nowrap;
}

.ubnt-dl-version {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

.ubnt-dl-row-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ubnt-dl-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary, #2563eb);
  text-decoration: none;
  white-space: nowrap;
}

.ubnt-dl-link:hover {
  text-decoration: underline;
}

.ubnt-dl-link--dl {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ubnt-dl-group-title {
  margin: 2rem 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.ubnt-dl-footnote {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

.ubnt-dl-footnote a {
  color: var(--primary, #2563eb);
  font-weight: 600;
}

.ubnt-dl-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.ubnt-dl-pagination a,
.ubnt-dl-pagination span {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.ubnt-dl-pagination a:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
}

.ubnt-dl-pagination .is-current {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #fff;
}

.ubnt-dl-empty {
  padding: 2rem;
  text-align: center;
  color: #64748b;
}

.ubnt-dl-guide-body {
  max-width: 62rem;
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.ubnt-dl-guide-body p {
  margin: 0 0 0.9rem;
}

.ubnt-dl-guide-body ul {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

.ubnt-dl-guide-body li {
  margin-bottom: 0.5rem;
}

.ubnt-dl-guide-body code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: #f1f5f9;
  font-size: 0.875em;
  word-break: break-word;
}

.ubnt-dl-related {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ubnt-dl-related a {
  color: var(--primary, #2563eb);
  font-weight: 600;
  text-decoration: none;
}

.ubnt-dl-related a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .ubnt-dl-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ubnt-dl-row-actions {
    justify-content: flex-start;
  }

  .ubnt-dl-apps {
    grid-template-columns: 1fr;
  }
}
