/* ============================================================
   VIBELINKS — PUBLIC PROFILE PAGE STYLES
   ============================================================ */

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

:root {
  --teal: #00C4B4;
  --orange: #FF6B2C;
  --dark: #08090d;
  --surface: #13151f;
  --surface2: #1c1f2e;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f5;
  --text-muted: #7a7d9a;
  --accent: #00C4B4;
  --font-head: 'Syne', Arial, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.2s ease;
}

html { height: 100%; }

body.profile-body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background layer */
.profile-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  transition: background 0.4s ease;
  pointer-events: none;
}

/* Container */
.profile-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Profile Header */
.profile-header {
  text-align: center;
  margin-bottom: 8px;
  width: 100%;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(0,196,180,0.25), 0 8px 32px rgba(0,0,0,0.4);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-name {
  font-family: var(--font-head);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.15;
}

.profile-bio {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 8px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.profile-url {
  font-size: 13px;
  color: var(--accent);
  font-family: monospace;
  opacity: 0.7;
}

/* Blocks */
.profile-blocks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Link block */
.profile-link-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.profile-link-block:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.profile-link-block.style-teal { background: var(--teal); }
.profile-link-block.style-orange { background: var(--orange); }
.profile-link-block.style-glass {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.profile-link-block.style-dark {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}
.profile-link-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.profile-link-label { flex: 1; }
.profile-link-arrow { opacity: 0.5; font-size: 13px; }

/* Products section */
.profile-products {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-products:empty { display: none; }

.profile-product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.profile-product-card:hover {
  border-color: rgba(0,196,180,0.3);
  transform: translateY(-2px);
}
.profile-product-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255,107,44,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-product-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.profile-product-info { flex: 1; min-width: 0; }
.profile-product-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.profile-product-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-product-price {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--teal);
  flex-shrink: 0;
}
.profile-buy-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.profile-buy-btn:hover { opacity: 0.85; }

/* Email capture */
.email-capture-block {
  width: 100%;
}
.email-capture-block.hidden { display: none; }
.email-capture-inner {
  background: linear-gradient(135deg, rgba(0,196,180,0.1), rgba(255,107,44,0.06));
  border: 1px solid rgba(0,196,180,0.25);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.email-capture-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.email-capture-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.email-capture-form {
  display: flex;
  gap: 8px;
  max-width: 340px;
  margin: 0 auto;
}
.email-capture-form input {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}
.email-capture-form input:focus { outline: none; border-color: var(--teal); }
.email-capture-form input::placeholder { color: var(--text-muted); }
.capture-feedback { font-size: 13px; color: var(--teal); margin-top: 10px; min-height: 18px; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--teal), #00a89a);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-primary:hover { transform: scale(1.04); }
.btn-primary.btn-sm { padding: 9px 18px; font-size: 13px; }

/* Powered by */
.powered-by {
  margin-top: 24px;
  text-align: center;
}
.powered-by a {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.powered-by a:hover { opacity: 0.8; }

/* Loading */
.profile-loading {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Background styles */
body.bg-solid-dark { background: #08090d; }
body.bg-gradient-teal { background: linear-gradient(160deg, #003c38 0%, #08090d 60%); }
body.bg-gradient-orange { background: linear-gradient(160deg, #3a1800 0%, #08090d 60%); }
body.bg-pattern-dots {
  background-color: #08090d;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
body.bg-pattern-grid {
  background-color: #08090d;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

@media (max-width: 480px) {
  .profile-container { padding: 36px 16px 64px; }
  .email-capture-form { flex-direction: column; }
  .email-capture-form input { border-radius: 12px; }
}
