:root {
  --tp-bg: #0f172a;
  --tp-bg-soft: #1e293b;
  --tp-accent: #ea580c;
  --tp-accent-hover: #c2410c;
  --tp-surface: #ffffff;
  --tp-muted: #64748b;
  --tp-border: #e2e8f0;
  --tp-font: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.tema-portal {
  margin: 0;
  min-height: 100vh;
  font-family: var(--tp-font);
  color: #0f172a;
  background: #f1f5f9;
}

/* —— Giriş —— */
.tema-portal-giris-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 991.98px) {
  .tema-portal-giris-wrap {
    grid-template-columns: 1fr;
  }
  .tema-portal-giris-marka {
    padding: 2rem 1.5rem !important;
  }
}

.tema-portal-giris-marka {
  background: linear-gradient(145deg, var(--tp-bg) 0%, #1a2744 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.tema-portal-giris-marka-ic {
  max-width: 380px;
}

.tema-portal-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
}

.tema-portal-giris-baslik {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.tema-portal-giris-lead {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.tema-portal-giris-ozellik {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tema-portal-giris-ozellik li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.tema-portal-giris-ozellik i {
  width: 1.25rem;
  color: var(--tp-accent);
}

.tema-portal-giris-ana {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #f8fafc;
}

.tema-portal-giris-kart {
  width: 100%;
  max-width: 420px;
  border-radius: 1rem !important;
}

.tema-portal-giris-ikon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(234, 88, 12, 0.12);
  color: var(--tp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.btn-tema-portal {
  background: var(--tp-accent);
  border: none;
  color: #fff;
  font-weight: 600;
}

.btn-tema-portal:hover,
.btn-tema-portal:focus {
  background: var(--tp-accent-hover);
  color: #fff;
}

.btn-tema-portal:disabled {
  opacity: 0.72;
}

/* —— Tema listesi (giriş sonrası) —— */
.tema-portal-liste-alan {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tema-portal-yazilim {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tema-portal-yazilim-baslik {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--tp-border);
}

.tema-portal-yazilim-ikon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.tema-portal-yazilim-ikon.is-portal {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.tema-portal-yazilim-ikon.is-eticaret {
  background: rgba(234, 88, 12, 0.12);
  color: var(--tp-accent);
}

.tema-portal-yazilim-sayi {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.45rem 0.75rem;
  align-self: center;
}

.tema-portal-bos {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--tp-muted);
}

.tema-portal-bos i {
  font-size: 2rem;
  opacity: 0.45;
  margin-bottom: 0.75rem;
  display: block;
}

.tema-portal-bos p {
  margin: 0;
  font-size: 0.95rem;
}

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

.tema-portal-tema-kart {
  border: 1px solid var(--tp-border);
  border-radius: 0.875rem;
  padding: 1.1rem;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tema-portal-tema-kart:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.tema-portal-tema-kart-ust {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.tema-portal-tema-logo-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--tp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.tema-portal-tema-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.tema-portal-tema-logo-yedek {
  color: var(--tp-muted);
  font-size: 1.25rem;
}

.tema-portal-tema-metin {
  min-width: 0;
}

.tema-portal-tema-ad {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.tema-portal-tema-slug {
  display: inline-block;
  font-size: 0.72rem;
  color: #64748b;
  background: #eef2f7;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
}

.tema-portal-tema-aksiyon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tema-portal-tema-aksiyon .btn {
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
}

.tema-portal-tema-aksiyon .btn.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.tema-portal-ust {
  background: var(--tp-surface);
  border-bottom: 1px solid var(--tp-border);
}

.tema-portal-logo-sm {
  max-height: 34px;
  width: auto;
}

@media (max-width: 575.98px) {
  .tema-portal-yazilim-baslik {
    flex-wrap: wrap;
  }
  .tema-portal-yazilim-sayi {
    margin-left: auto;
  }
}
