/* ============================================
   Link in Bio — global styles (mobile-first)
   Düz CSS (Tailwind yok)
   ============================================ */

:root {
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --accent: #a78bfa;
  --overlay: rgba(8, 10, 20, 0.55);
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: #0a0a12;
  overflow-x: hidden;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-bg__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  pointer-events: none;
}

.page-root {
  opacity: 0;
  animation: pageFadeIn 1s ease forwards;
  animation-delay: 0.15s;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.glass-panel {
  width: 100%;
  max-width: 390px;
  padding: 1.35rem 1.1rem 1.15rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
 
  box-shadow: var(--glass-shadow);
  text-align: center;
}

.glass-panel__logo {
  display: block;
  margin: 0 auto 1rem;
  max-height: 88px;
  max-width: min(240px, 72vw);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.glass-panel__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.glass-panel__subtitle {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-item {
  margin: 0;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 52px;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  outline: none;
}

.link-card__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.link-card__icon i {
  font-size: 1.05rem;
}

.link-card__text {
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  padding: 0 2rem;
}

.footer-hint {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.footer-hint a {
  color: var(--accent);
  text-decoration: none;
}

.footer-hint a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .page-root {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .link-card {
    transition: none;
  }

  .link-card:hover {
    transform: none;
  }
}

/* ----- Admin + bildirimler ----- */

.admin-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: linear-gradient(145deg, #0f0f1a 0%, #1a1025 50%, #0a1628 100%);
  color: var(--text);
  padding: 1.5rem 1rem 3rem;
}

.admin-shell {
  max-width: 720px;
  margin: 0 auto;
}

.admin-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--glass-shadow);
}

.admin-card h1,
.admin-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.admin-card h2 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.admin-card h2:first-of-type {
  margin-top: 0;
}

.admin-card h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.form-row textarea {
  min-height: 72px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.btn {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid var(--glass-border);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.85);
  color: white;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
}

.link-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.link-table th,
.link-table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
  word-break: break-word;
}

.link-table th {
  color: var(--text-muted);
  font-weight: 500;
}

.link-table .actions {
  white-space: nowrap;
}

.link-table .btn-inline {
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  margin-right: 0.25rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.link-table .btn-inline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.link-table .btn-inline.btn-danger {
  background: rgba(239, 68, 68, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
}

.admin-login {
  max-width: 400px;
  margin: 4rem auto 0;
}

.quick-edit-grid {
  display: grid;
  gap: 1rem;
}

.quick-edit-item {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-edit-item strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.alert-success {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.field-error {
  color: #fecaca;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.icon-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.2rem 0 1rem;
}

.icon-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
}

.icon-chip:hover {
  background: rgba(255, 255, 255, 0.16);
}

.link-table tr[draggable="true"] {
  cursor: move;
}

.link-table tr.is-dragging {
  opacity: 0.5;
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 1rem;
}

.admin-modal.is-open {
  display: flex;
}

.admin-modal__card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(20, 20, 35, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--glass-shadow);
  padding: 1rem;
}

.admin-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
