/* Import Inter Font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* Color Variables and Reset */
:root {
  --primary: #294d84;
  --primary-dark: #1e3962;
  --primary-light: #f0f4fa;
  --secondary: #eb5b28;
  --secondary-dark: #d0491b;
  --secondary-light: #fdf2ee;
  --site-bg: #eff2f1;
  --text-dark: #2f2f2f;
  --text-gray: #6a6a6a;
  --text-light: #9ca3af;
  --white: #ffffff;
  --card-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --hover-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius-lg: 1.25rem;
  --border-radius-md: 0.75rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--site-bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background decorations for premium feel */
body::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -20%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(41, 77, 132, 0.05) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(235, 91, 40, 0.04) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

/* App Container */
.linktree-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 10;
}

/* Profile Card / Header */
.profile-card {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px border-solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.profile-logo-container {
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.profile-logo-container:hover {
  border-color: var(--secondary);
}

.profile-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.profile-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-title span {
  color: var(--secondary);
  font-weight: 900;
}

.profile-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Section Title */
.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-gray);
  margin-bottom: -0.5rem;
  padding-left: 0.5rem;
}

/* Card Component (Stores & Contacts) */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(235, 242, 241, 0.6);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(41, 77, 132, 0.15);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.card-icon-container {
  width: 44px;
  height: 44px;
  background-color: var(--secondary-light);
  color: var(--secondary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(235, 91, 40, 0.1);
  transition: var(--transition);
}

.card:hover .card-icon-container {
  background-color: var(--secondary);
  color: var(--white);
  transform: scale(1.05);
}

.card-header-text {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.card-address {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Actions Section */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.875rem 1.25rem;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
}

.btn i {
  font-size: 1.1rem;
}

/* Primary CTA WhatsApp */
.btn-whatsapp {
  background-color: #25d366; /* WhatsApp Green */
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Secondary CTA (E-mail or custom links) */
.btn-email {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(41, 77, 132, 0.2);
}

.btn-email:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 77, 132, 0.3);
}

/* Button Group (Horizontal buttons) */
.btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Outline Buttons */
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid rgba(41, 77, 132, 0.3);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
}

.btn-outline:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-secondary-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(106, 106, 106, 0.2);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
}

.btn-secondary-outline:hover {
  background-color: #f3f4f6;
  border-color: rgba(106, 106, 106, 0.4);
}

/* Email Card Specific icon style */
.card-icon-email {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(41, 77, 132, 0.1);
}

.card:hover .card-icon-email {
  background-color: var(--primary);
  color: var(--white);
}

/* Social Media Container */
.social-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.social-link {
  width: 46px;
  height: 46px;
  background-color: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(235, 242, 241, 0.6);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--hover-shadow);
}

.social-link.social-whatsapp:hover {
  background-color: #25d366;
}

.social-link.social-instagram:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.social-link.social-facebook:hover {
  background-color: #1877f2;
}

/* Toast Notification (Copy address feedback) */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--text-dark);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.toast i {
  color: #25d366;
  font-size: 1.1rem;
}

/* Footer style */
.footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.footer-text a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Responsiveness animations and tweaks */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 0.75rem;
  }

  .profile-card {
    padding: 1.75rem 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .btn-group {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}
