/* ==========================================================================
   CANNABUS CLUB - LINKTREE STYLES (PERFECTLY BALANCED LAYOUT - ZERO SCROLL)
   ========================================================================== */

/* Design System & Variables */
:root {
  --bg-page: #0c0d0e;
  --bg-card: #151618;
  --btn-bg: #f8f5ee;
  --btn-bg-hover: #ffffff;
  --btn-text: #17181a;
  --text-white: #ffffff;
  --text-cream: #ece5d8;
  --text-muted: #a0a5ad;
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow-main: 0 15px 35px rgba(0, 0, 0, 0.65);
  --shadow-btn: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-btn-hover: 0 6px 20px rgba(248, 245, 238, 0.3);
  --font-serif: 'Cinzel', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-card: 24px;
  --radius-btn: 50px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Resets & Mobile Fixed Viewport Lock */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

body {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100svh;
  margin: 0;
  padding: 8px;
  background-color: var(--bg-page);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden !important;
  touch-action: none;
}

/* Background Ambient Glow */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(60, 90, 65, 0.12) 0%, rgba(12, 13, 14, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Main Linktree Card Container (Even Vertical Distribution) */
.linktree-card {
  position: relative;
  z-index: 1;
  width: calc(100% - 16px);
  max-width: 385px;
  height: 80%;
  max-height: calc(100svh - 16px);
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 10px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden !important;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header Section with Image & Overlay */
.card-header {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 160px;
  max-height: 290px;
  background-image: url('../images/hero.jpg?v=2.0.3');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 12px 10px 14px 10px;
}

/* Dark Vignette Overlay for Readability */
.card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 16, 18, 0.02) 0%,
    rgba(15, 16, 18, 0.45) 55%,
    rgba(15, 16, 18, 0.95) 100%
  );
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand Title & Single Divider Line */
.brand-title-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.brand-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  margin: 3px 0 6px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.brand-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.62rem, 2vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--text-cream);
  text-transform: uppercase;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

/* Body / Links Section */
.card-body {
  padding: 12px 4px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
  flex: 0 0 auto;
}

/* Link Buttons */
.link-btn {
  position: relative;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 2.3vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-btn);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
  touch-action: manipulation;
}

.link-btn:hover, .link-btn:focus-visible {
  background-color: var(--btn-bg-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-btn-hover);
}

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

/* Footer & Logo Area */
.card-footer {
  margin-top: 8px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.logo-wrap {
  position: relative;
  width: clamp(80px, 14vh, 105px);
  max-height: 58px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.92;
  transition: var(--transition-smooth);
}

.logo-wrap:hover {
  opacity: 1;
  transform: scale(1.04);
}

.logo-img {
  width: 100%;
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

/* Toast notification */
.toast-msg {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(26, 27, 30, 0.95);
  border: 1px solid var(--card-border);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 100;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: none;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
