/* =========================================
   tunatercanligil.com.tr — Link Page
   Premium Dark Theme with Glassmorphism
   ========================================= */

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

:root {
  --bg-deep: #08090f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text-primary: #f0f2ff;
  --text-secondary: rgba(240, 242, 255, 0.55);
  --accent-1: #6c63ff;
  --accent-2: #ff6584;
  --accent-3: #43e8c8;
  --featured: linear-gradient(135deg, #6c63ff 0%, #43e8c8 100%);
  --soon-bg: rgba(255, 200, 80, 0.08);
  --soon-border: rgba(255, 200, 80, 0.3);
  --soon-text: #ffc850;
  --radius-card: 28px;
  --radius-btn: 16px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  overflow-x: hidden;
  position: relative;
}

/* ── Background Orbs ─────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #6c63ff, transparent 70%);
  top: -120px;
  left: -160px;
  animation-duration: 16s;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #ff6584, transparent 70%);
  bottom: -80px;
  right: -100px;
  animation-duration: 12s;
  animation-delay: -4s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #43e8c8, transparent 70%);
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation-duration: 20s;
  animation-delay: -8s;
  opacity: 0.2;
}

@keyframes floatOrb {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-15px, 30px) scale(0.95); }
}

/* ── Layout ──────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.card {
  background: rgba(18, 18, 32, 0.75);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 28px 32px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Profile ─────────────────────────────── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 4px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6c63ff, #43e8c8, #ff6584, #6c63ff);
  z-index: 0;
  animation: spinRing 5s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), black calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), black calc(100% - 3px));
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: center;
}

.tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Link Buttons ────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 15px 18px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  animation: linkIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.link-btn:nth-child(1) { animation-delay: 0.08s; }
.link-btn:nth-child(2) { animation-delay: 0.14s; }
.link-btn:nth-child(3) { animation-delay: 0.20s; }
.link-btn:nth-child(4) { animation-delay: 0.26s; }
.link-btn:nth-child(5) { animation-delay: 0.32s; }
.link-btn:nth-child(6) { animation-delay: 0.38s; }

@keyframes linkIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.12) 0%, rgba(67,232,200,0.06) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.link-btn:hover::before { opacity: 1; }

.link-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 36px rgba(108, 99, 255, 0.18);
}

.link-btn:active {
  transform: translateY(0) scale(0.99);
}

/* Featured button — TercanSoft */
.link-btn.link-featured {
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(67,232,200,0.1) 100%);
  border-color: rgba(108, 99, 255, 0.4);
}

.link-btn.link-featured:hover {
  border-color: rgba(108, 99, 255, 0.7);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.3), 0 0 0 1px rgba(108,99,255,0.3);
}

/* Soon button */
.link-btn.link-soon {
  background: var(--soon-bg);
  border-color: var(--soon-border);
  pointer-events: none;
  opacity: 0.8;
}

.link-btn.link-soon .link-arrow {
  display: none;
}

.link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 100%;
  height: 100%;
}

.link-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sub-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.link-arrow {
  font-size: 1rem;
  opacity: 0.4;
  transition: opacity var(--transition), transform var(--transition);
}

.link-btn:hover .link-arrow {
  opacity: 0.9;
  transform: translateX(3px);
}

.soon-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soon-text);
  background: rgba(255, 200, 80, 0.15);
  border: 1px solid rgba(255, 200, 80, 0.35);
  border-radius: 40px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── Social Icons ────────────────────────── */
.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.5);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.1);
}

/* ── Visitor Counter ─────────────────────── */
.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s 0.5s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.visitor-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.visitor-text {
  font-size: 0.75rem;
  color: rgba(240, 242, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.02em;
}

#visitor-count {
  color: rgba(240, 242, 255, 0.7);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
}

/* ── Footer ──────────────────────────────── */
.footer-text {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(240, 242, 255, 0.25);
  letter-spacing: 0.05em;
  font-weight: 400;
}

/* ── Ripple Effect ───────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 480px) {
  body {
    padding: 16px 12px 40px;
    align-items: flex-start;
    padding-top: 36px;
  }

  .container {
    max-width: 100%;
  }

  .card {
    padding: 32px 20px 28px;
    border-radius: 22px;
  }

  .name {
    font-size: 1.2rem;
  }

  .avatar-wrapper,
  .avatar {
    width: 84px;
    height: 84px;
  }
}

@media (min-width: 800px) {
  body {
    padding: 48px 24px;
  }

  .container {
    max-width: 460px;
  }
}
