/* -------------------------
   LINKTREE - Layout A (Updated)
   ------------------------- */

.linktree-body {
  background: #fafafa;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #222;
  margin: 0;
  padding: 0;
}

/* Full-width banner with fade overlay */
.lt-banner {
  width: 100vw;
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.lt-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #FAFAFA 100%);
}

/* -------------------------
   Profile Header Card
   ------------------------- */
.lt-header-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -90px;
  margin-bottom: 50px;
  background: #fff;
  padding: 60px 20px 40px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Profile image centered above username */
.lt-avatar {
  width: 140px;
  height: 140px;
  border: 6px solid #fff;
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: #eee;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  object-fit: contain;
  border-radius: 50%;
    
}

.lt-id {
  margin-top: 80px;
}

.lt-username {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
}

.lt-location {
  color: #777;
  font-size: 15px;
  margin: 6px 0 10px;
}

.lt-slogan {
  color: #444;
  font-size: 15px;
  margin: 4px 0 10px;
}

/* Contact box styling */
.lt-contact {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 20px;
  max-width: 300px;
  text-align: left;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  margin-top: 30px;
}

.lt-contact h3 {
  margin-top: 0;
  font-size: 18px;
}

.lt-contact p {
  font-size: 15px;
  line-height: 1.4;
  color: #444;
}

.lt-btn {
  display: inline-block;
  background: #7063ff;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(112, 99, 255, 0.3);
}
.lt-btn:hover {
  background: #5b4fff;
  box-shadow: 0 6px 18px rgba(112, 99, 255, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.lt-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(112, 99, 255, 0.25);
  color: #fff;
}

/* Desktop layout: profile left, contact right */
@media (min-width: 992px) {
  .lt-header-card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 0px;
  }

  .lt-id {
    margin-top: 0;
  }

  .lt-avatar {
    position: static;
    transform: none;
    margin-right: 30px;
    margin-bottom: 0;
  }

  .lt-header-card > div {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .lt-contact {
    margin-top: 0;
  }
}

/* -------------------------
   General Sections
   ------------------------- */
.lt-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.lt-section {
  max-width: 880px;
  margin: 20px auto;
}

.lt-section h3 {
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
  padding-bottom: 4px;
}

.lt-about {
  line-height: 1.6;
  font-size: 16px;
  color: #333;
}

/* Business section */
.lt-business {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: #333;
}

.lt-brand-logo {
  max-height: 60px;
}

/* Link buttons */
.lt-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 30px 0 50px;
}

.lt-link {
  display: block;
  width: 85%;
  max-width: 520px;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}
.lt-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Gallery & Files */
.lt-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lt-gallery img {
  width: 220px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.lt-files {
  padding-left: 18px;
  list-style: disc;
}

.lt-files a {
  color: #0066cc;
  text-decoration: none;
}
.lt-files a:hover {
  text-decoration: underline;
}

/* Legal notice */
.lt-legal {
  font-size: 13px;
  color: #777;
  text-align: center;
  margin-top: 40px;
}

/* Dashboard / Auth (for consistency) */
.lt-dashboard {
  max-width: 980px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.lt-dashboard fieldset {
  border: 1px solid #eee;
  padding: 14px;
  border-radius: 10px;
  margin: 16px 0;
}
.lt-dashboard legend {
  padding: 0 6px;
  color: #444;
}
.lt-success {
  background: #e6ffed;
  border: 1px solid #b5f0c6;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}
.lt-error {
  background: #ffe6e6;
  border: 1px solid #f0b5b5;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .lt-banner {
    height: 240px;
  }

  .lt-avatar {
    width: 120px;
    height: 120px;
    top: -60px;
  }

  .lt-header-card {
    padding: 0px;
  }

  .lt-links .lt-link {
    width: 100%;
  }

  .lt-contact {
    text-align: center;
  }
}

/* -------------------------
   Business Card Section
   ------------------------- */
.lt-business-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  max-width: 700px;
  margin: 0px;
  min-width: 100%;
}

.lt-business-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lt-business-logo img {
  width: 100%;
  height: 100%;
  
    
  object-fit: contain;
  background: #fff; /* keeps round border visible */
}

.lt-business-info {
  flex: 1;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.lt-business-info strong {
  font-size: 16px;
  color: #000;
}

.lt-business-info a {
  color: #0066cc;
  text-decoration: none;
}

.lt-business-info a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .lt-business-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .lt-business-logo {
    width: 100%;
    height: 120px;
    border-radius: 12px;
  }
}
.button.button-secondary {
  background: #f3f3f3;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
}
.button.button-secondary:hover {
  background: #e7e7e7;
}

/* Image wrapper with remove icon */
.lt-img-wrap {
  position: relative;
  display: inline-block;
  margin: 8px;
  border-radius: 10px;
  overflow: hidden;
}
/* .lt-preview {
  display: block;
  max-width: 120px;
  border-radius: 10px;
  transition: opacity 0.2s ease;
} */

.lt-preview {
  display: block;
  max-width: 120px;
  max-height: 120px;       /* prevents stretching tall images */
  border-radius: 10px;
  object-fit: contain !important;   /* full image, no cropping */
  width: 100%;
  height: auto;
  background: #fff;         /* optional: prevents grey background */
  transition: opacity 0.2s ease;
}
.lt-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 22px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
}
.lt-remove:hover {
  background: rgba(255,0,0,0.8);
  opacity: 1;
}
.lt-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Adjust header spacing when banner image is removed */
.lt-page:not(:has(.lt-banner)) .lt-header-card {
  margin-top: 60px; /* adds spacing from top when no banner */
}

/* -------------------------
   LINKTREE SECTION HEADER & FOOTER
   ------------------------- */

/* Global wrapper for linktree pages */
.linktree-body {
  background: #fafafa;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #222;
}

/* Header */
.lt-site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.lt-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.lt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lt-logo img {
  height: 38px;
  width: auto;
}

.lt-logo span {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.3px;
}

/* Dashboard user info */
.lt-user-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: #444;
}

.lt-user-name {
  font-weight: 600;
}

.lt-logout {
  color: #333;
  text-decoration: none;
  background: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lt-logout:hover {
  background: #eaeaea;
  border-color: #ccc;
}

/* Main wrapper spacing */
.lt-main {
  min-height: 55vh;
  
}

/* Footer */
.lt-site-footer {
  background: #f8f8f8;
  border-top: 1px solid #e1e1e1;
  text-align: center;
  padding: 25px 0;
  margin-top: 60px;
  color: #777;
  font-size: 14px;
}

.lt-site-footer p {
  margin: 0;
}

/* -------------------------
   Responsive adjustments
   ------------------------- */

@media (max-width: 768px) {
  .lt-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .lt-user-meta {
    flex-direction: column;
    gap: 6px;
  }

  .lt-logout {
    padding: 5px 10px;
    font-size: 13px;
  }
}



/* -------------------------
   AUTH FORMS (Register & Login)
   ------------------------- */

.lt-auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: #f9f9f9;
  padding: 40px 16px;
}

.lt-auth-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  padding: 40px 50px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.lt-auth-box h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.lt-auth-box p.desc {
  color: #666;
  font-size: 15px;
  margin-bottom: 25px;
}

.lt-auth-box form input[type="text"],
.lt-auth-box form input[type="email"],
.lt-auth-box form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}
.lt-auth-box form input:focus {
  outline: none;
  border-color: #6b63ff;
}

.lt-auth-box .lt-btn {
  background: #6b63ff;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  margin-top: 5px;
  width: 100%;
  transition: all 0.25s ease;
}

.lt-auth-box .lt-btn:hover {
  background: #574ce3;
  transform: translateY(-1px);
}

.lt-auth-links {
  margin-top: 18px;
  font-size: 14px;
  color: #666;
}
.lt-auth-links a {
  color: #6b63ff;
  text-decoration: none;
  font-weight: 500;
}
.lt-auth-links a:hover {
  text-decoration: underline;
}

.lt-home-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  padding: 60px 20px;
}

.lt-home-options .lt-auth-box {
  flex: 1 1 320px;
  max-width: 420px;
}
/* --- Dashboard Top Bar --- */
.lt-dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 980px;
  margin: 20px auto;
}

.lt-dashboard-topbar h2 {
  margin: 0;
  font-size: 20px;
  color: #222;
}

.lt-topbar-right {
  display: flex;
  gap: 12px;
}

.lt-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7f7f7;
  color: #333;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lt-top-link:hover {
  background: #eaeaea;
}

.lt-top-link.logout {
  background: #ffefef;
  color: #a00;
}
.lt-top-link.logout:hover {
  background: #ffdede;
}

.lt-change-pass-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 10px;
}

.lt-change-pass-form button {
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
}

/* Share Button */
.lt-share {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
}

.lt-share-btn {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.lt-share-btn:hover {
  background: #f7f7f7;
  color: #333;
}

.lt-share-menu {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background: #fff;
  border: 1px solid #eee;

  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-width: 160px;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

.lt-share-menu a,
.lt-share-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.lt-share-menu a:hover,
.lt-share-menu button:hover {
  background: #f3f3f3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Linktree Landing Grid */
.lt-auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.lt-auth-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lt-auth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.lt-auth-card h2 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #222;
}

.lt-auth-card p {
  font-size: 15px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.lt-auth-grid .lt-auth-box .lt-btn {
  background: #6b63ff;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  margin-top: 5px;
  width: 100%;
  transition: all 0.25s ease;
}

.lt-auth-grid .lt-auth-box .lt-btn:hover {
  background: #574ce3;
  transform: translateY(-1px);
}




/* Lightbox Viewer */
.lt-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lt-lightbox.active {
  display: flex;
}

.lt-lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(255,255,255,0.2);
}

.lt-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.lt-close:hover { color: #ccc; }

.lt-nav {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  color: #fff;
  font-size: 48px;
  user-select: none;
}

.lt-prev, .lt-next {
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}
.lt-prev:hover, .lt-next:hover {
  color: #bbb;
}

/* Gallery hover fix */
.lt-gallery img {
  width: 220px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer; /* 👈 makes pointer icon appear */
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  @media(max-width: 464px){
    width: 48%;
  }
}

.lt-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}












/* Social list (iOS style) */
.lt-social-list {
    margin: 18px 0;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.lt-social-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.2s ease;
}

.lt-social-item label{
  width: 30% !important;
  margin-left: 5px;
}

.lt-social-item input{
  width: 70% !important;
}

.lt-social-item:last-child {
    border-bottom: none;
}

.lt-social-item:hover {
    background: #f7f7f7;
}

.lt-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 20px;
}

.lt-social-item span {
    font-size: 16px;
    font-weight: 500;
}

/* Mobile optimization */
@media (max-width: 600px) {
    .lt-social-item {
        padding: 16px;
    }
    .lt-social-item span {
        font-size: 17px;
    }
    .lt-social-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}



/* Hover effect using brand color */
.lt-social-item:hover {
    background: rgba(0,0,0,0.03);
}

.lt-social-item:hover .lt-social-icon {
    background: var(--brand-color);
    color: #fff;
}

.lt-map-section iframe {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}













.lt-links-list {
    /* display: flex;
    flex-direction: column;
    gap: 12px; */

        margin: 18px 0;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.lt-link-item {

        display: flex;
    align-items: center;
    padding: 14px 18px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.2s ease;
}

.lt-link-item i{
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  font-size: 20px;
}


.lt-link-item:hover {
    background: rgba(0,0,0,0.03);
    color: var(--brand-color);
}

.lt-link-item:hover .lt-link-icon {
    background-color: var(--brand-color);
    color: #222222;
}

.lt-no-icon{
  opacity: 0;
}