/* ── LINKTREE PAGE STYLES ───────────────────────────────────────────────────── */
/* Design Tokens (matching main site) */
:root {
  /* Brand Colors */
  --orange:       #F5921E;
  --orange-light: #FFAB47;
  --orange-dark:  #D4780F;
  --blue:         #1A5CB0;
  --blue-light:   #2472D4;
  --blue-dark:    #103F80;
  --yellow:       #FFD700;
  --yellow-dark:  #E6BE00;

  /* Aliases */
  --gold:        #F5921E;
  --gold-light:  #FFAB47;
  --gold-dark:   #D4780F;
  --amber:       #E87E0A;

  /* Dark backgrounds */
  --dark:        #0D1117;
  --dark-2:      #161B22;
  --dark-3:      #1E2530;
  --dark-4:      #252D3A;
  --surface:     #1A2030;

  /* Text colors */
  --text:        #ffffff;
  --text-muted:  #8B949E;
  --text-dim:    #6E7681;

  /* UI elements */
  --border:      #30363D;
  --border-light: #21262D;
  --shadow:      rgba(0, 0, 0, 0.4);
  --shadow-light: rgba(0, 0, 0, 0.1);

  /* Layout */
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container:   1200px;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Linktree specific styles */
.linktree-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.linktree-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(245,146,30,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(232,64,64,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.linktree-content {
  max-width: 400px;
  width: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.linktree-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  width: 100%;
}

.linktree-logo-link {
  display: block;
  text-decoration: none;
  margin: 0 auto 1rem auto;
  transition: transform var(--transition);
}

.linktree-logo-link:hover {
  transform: scale(1.05);
}

.linktree-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(245,146,30,0.3);
  display: block;
}

.linktree-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.linktree-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* Language Switcher Styles */
.linktree-lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 1px 3px var(--shadow-light);
}

.lang-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}

.lang-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--text);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Links */
.linktree-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.linktree-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.linktree-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  opacity: 0;
  transition: opacity var(--transition);
}

.linktree-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--shadow);
  border-color: var(--orange);
}

.linktree-link:hover::before {
  opacity: 0.1;
}

.linktree-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  z-index: 1;
}

.linktree-text {
  z-index: 1;
  flex: 1;
}

.linktree-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  z-index: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.linktree-link:hover .linktree-arrow {
  opacity: 1;
}

/* Footer */
.linktree-footer {
  margin-top: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.linktree-footer a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.linktree-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .linktree-content {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .linktree-container {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .linktree-content {
    max-width: 100%;
    gap: 1.5rem;
  }

  .linktree-logo {
    width: 100px;
    height: 100px;
  }

  .linktree-title {
    font-size: 1.8rem;
  }

  .linktree-subtitle {
    font-size: 1rem;
  }

  .linktree-link {
    padding: 0.9rem 1.2rem;
  }

  .linktree-lang-switcher {
    gap: 0.3rem;
  }

  .lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .linktree-container {
    padding: 1rem 0.5rem;
  }

  .linktree-logo {
    width: 80px;
    height: 80px;
  }

  .linktree-title {
    font-size: 1.6rem;
  }

  .linktree-link {
    padding: 0.8rem 1rem;
  }
}
