/* ==============================================
   LINKTREE FANS - ESTILOS PRINCIPAIS
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --primary: #fe754f;
  --primary-light: #ff9f5a;
  --primary-dark: #ff6b3f;
  --bg-light: #f5f5f5;
  --bg-dark: #efefef;
  --text-dark: #344258;
  --text-light: #888;
  --border-color: #e8e8e8;
  --white: #ffffff;
  
  /* Typography */
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Spacing */
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

/* ==============================================
   BASE STYLES
   ============================================== */

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ==============================================
   HEADER / TOPBAR
   ============================================== */

.topbar {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.top-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.top-icon {
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.top-icon:hover {
  transform: scale(1.1) rotate(10deg);
}

/* ==============================================
   MAIN LAYOUT
   ============================================== */

.wrapper {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  padding: 20px 16px;
  min-height: calc(100vh - 60px);
}

.card {
  background: var(--white);
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: slideUp 0.5s ease-out;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================================
   BANNER
   ============================================== */

.banner {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}

/* ==============================================
   CONTENT SECTION
   ============================================== */

.content {
  padding: 0;
}

/* ==============================================
   AVATAR
   ============================================== */

.avatar {
  display: flex;
  justify-content: center;
  margin-top: -60px;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}

.avatar svg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.avatar svg:hover {
  transform: scale(1.05);
}

/* ==============================================
   PROFILE INFO
   ============================================== */

.info {
  padding: 0 24px;
  text-align: center;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 50%;
  position: relative;
}

.verified-badge:hover {
  transform: scale(1.1);
  background: transparent;
}

.verified-badge:focus {
  outline: 6px solid var(--primary);
  outline-offset: 6px;
}

.verified-badge svg {
  width: 28px;
  height: 28px;
}

.username {
  font-size: 14px;
  color: #000;
  margin-bottom: 12px;
  font-weight: 500;
}

.bio {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 12px;
  word-wrap: break-word;
}

.read-more {
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease;
  text-decoration: underline;
  padding: 2px 4px;
  border-radius: 2px;
  display: inline-block;
}

.read-more:hover {
  color: var(--primary-dark);
  background: rgba(254, 117, 79, 0.1);
}

.read-more:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.location {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.location::before {
  content: '📍';
  font-size: 14px;
}

/* ==============================================
   LINKS SECTION
   ============================================== */

.links-section {
  padding: 0 24px 24px;
}

.links-section h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==============================================
   BUTTONS
   ============================================== */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-body);
  color: #000;
}

.btn-icon {
  font-size: 18px;
}

.btn-vip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(254, 117, 79, 0.2);
}

.btn-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(254, 117, 79, 0.3);
}

.btn-vip:active {
  transform: translateY(0);
}

.btn-preview {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(254, 117, 79, 0.2);
}

.btn-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(254, 117, 79, 0.3);
}

.btn-preview:active {
  transform: translateY(0);
}

.btn-telegram {
  background: #f5f5f5;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.btn-telegram:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ==============================================
   MODALS
   ============================================== */

.modal {
  display: none;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  visibility: visible;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  animation: slideDown 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #000;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-box h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text-dark);
}

.modal-box p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn-no, .btn-yes {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: var(--font-body);
}

.btn-no {
  background: var(--border-color);
  color: var(--text-dark);
}

.btn-no:hover {
  background: #d0d0d0;
  transform: translateY(-1px);
}

.btn-yes {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(254, 117, 79, 0.2);
}

.btn-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(254, 117, 79, 0.3);
}

/* Modal Verificação */
.modal-verify {
  text-align: center;
  padding: 40px 24px;
}

.verify-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.verify-content svg {
  margin-bottom: 20px;
}

.verify-content h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.verify-content p {
  margin-bottom: 0;
  font-size: 14px;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
  .wrapper {
    padding: 16px 12px;
  }

  .card {
    max-width: 100%;
  }

  .banner {
    height: 160px;
  }

  .avatar svg {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 24px;
  }

  .info {
    padding: 0 20px;
  }

  .links-section {
    padding: 0 20px 20px;
  }

  .modal-box {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0 12px;
  }

  .top-title {
    font-size: 16px;
  }

  .banner {
    height: 140px;
  }

  .avatar svg {
    width: 90px;
    height: 90px;
    margin-top: -45px;
  }

  .profile-name {
    font-size: 20px;
  }

  .info {
    padding: 0 16px;
  }

  .links-section {
    padding: 0 16px 16px;
  }

  .links-section h3 {
    font-size: 14px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 10px;
  }

  .modal-box {
    padding: 24px 16px;
  }

  .modal-box h2 {
    font-size: 20px;
  }

  .modal-box p {
    font-size: 14px;
  }
}
