/*
Theme Name: Linku Mobile Profile
Theme URI: https://example.com/linku-mobile-profile
Author: Linku
Author URI: https://example.com
Description: A mobile-first WordPress profile link theme with uploadable header/profile images, repeater links, demo importer, and vCard contact saving.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: linku-mobile-profile
*/

:root {
  --linku-primary: #071326;
  --linku-accent: #0f2a4d;
  --linku-background: #ffffff;
  --linku-text: #102033;
  --linku-muted: #697586;
  --linku-line: rgba(7, 19, 38, 0.1);
  --linku-card: #ffffff;
  --linku-radius: 24px;
  --linku-shadow: 0 22px 70px rgba(7, 19, 38, 0.18);
  --linku-font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--linku-primary);
}

body.linku-profile-theme {
  min-height: 100vh;
  margin: 0;
  color: var(--linku-text);
  background:
    linear-gradient(180deg, rgba(7, 19, 38, 0.98), rgba(15, 42, 77, 0.92) 42%, #eef2f7 42%),
    var(--linku-primary);
  font-family: var(--linku-font-family);
  line-height: 1.65;
}

body.linku-profile-theme.admin-bar {
  min-height: calc(100vh - 32px);
}

a {
  color: inherit;
}

.linku-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 18px 12px 28px;
}

.linku-card {
  width: min(100%, 430px);
  min-height: calc(100vh - 46px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--linku-radius);
  background: var(--linku-card);
  box-shadow: var(--linku-shadow);
}

.linku-cover {
  position: relative;
  height: clamp(168px, 42vw, 220px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 42%),
    linear-gradient(145deg, var(--linku-primary), var(--linku-accent));
}

.linku-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.linku-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 38, 0) 15%, rgba(7, 19, 38, 0.34));
}

.linku-cover-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 15px;
}

.linku-content {
  position: relative;
  padding: 0 18px 22px;
}

.linku-avatar {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin: -54px auto 12px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 999px;
  background: #f3f6fa;
  color: var(--linku-primary);
  box-shadow: 0 14px 36px rgba(7, 19, 38, 0.2);
}

.linku-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linku-avatar svg {
  width: 44px;
  height: 44px;
}

.linku-identity {
  text-align: center;
}

.linku-company {
  margin: 0 0 3px;
  color: var(--linku-accent);
  font-size: 13px;
  font-weight: 800;
}

.linku-identity h1 {
  margin: 0;
  color: var(--linku-primary);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

.linku-headline {
  margin: 8px auto 0;
  max-width: 320px;
  color: var(--linku-muted);
  font-size: 14px;
}

.linku-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.linku-meta-item,
.linku-contact-link,
.linku-link {
  min-height: 48px;
  border: 1px solid var(--linku-line);
  border-radius: 16px;
  background: #fff;
}

.linku-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  color: #26364b;
  font-size: 13px;
  text-align: right;
}

.linku-icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--linku-accent);
}

.linku-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.linku-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 18px;
}

.linku-save-contact {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 17px;
  background: var(--linku-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(7, 19, 38, 0.24);
}

.linku-quick-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.linku-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--linku-primary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.linku-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.linku-link {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--linku-primary);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.linku-link:focus,
.linku-link:hover {
  border-color: rgba(15, 42, 77, 0.26);
  box-shadow: 0 12px 26px rgba(7, 19, 38, 0.1);
  transform: translateY(-1px);
}

.linku-link-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 42, 77, 0.08);
  color: var(--linku-accent);
}

.linku-link-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 850;
}

.linku-arrow {
  display: inline-flex;
  justify-content: center;
  color: #92a0b2;
}

.linku-addresses {
  margin-top: 18px;
}

.linku-section-title {
  margin: 0 0 10px;
  color: var(--linku-primary);
  font-size: 15px;
  font-weight: 900;
}

.linku-map {
  width: 100%;
  height: 230px;
  overflow: hidden;
  border: 1px solid var(--linku-line);
  border-radius: 18px;
  background: #eef2f7;
}

.linku-map + .linku-address-list {
  margin-top: 10px;
}

.linku-map-marker {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--linku-primary);
  color: #fff;
  font-family: "Vazirmatn", var(--linku-font-family);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(7, 19, 38, 0.24);
}

.mapboxgl-popup-content {
  min-width: 150px;
  border-radius: 12px;
  color: var(--linku-text);
  font-family: "Vazirmatn", var(--linku-font-family);
  text-align: right;
}

.mapboxgl-popup-content strong,
.mapboxgl-popup-content span {
  display: block;
}

.mapboxgl-popup-content span {
  margin-top: 4px;
  color: var(--linku-muted);
  font-size: 12px;
}

.linku-address-list {
  display: grid;
  gap: 9px;
}

.linku-address-card {
  padding: 14px;
  border: 1px solid var(--linku-line);
  border-radius: 18px;
  background: #f8fafc;
  color: #38495f;
  font-size: 13px;
  font-style: normal;
}

.linku-address-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--linku-primary);
  font-size: 13px;
}

.linku-address-card p {
  margin: 0;
}

.linku-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--linku-accent);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.linku-footer-note {
  margin: 18px 0 0;
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 480px) {
  body.linku-profile-theme {
    background: var(--linku-background);
  }

  .linku-shell {
    padding: 0;
  }

  .linku-card {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .linku-cover {
    height: 196px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .linku-link {
    transition: none;
  }
}
