/* MESO AI Lab - Custom Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-orange: #F97316;
  --primary-orange-light: #FFF7ED;
  --primary-orange-hover: #EA580C;
  --text-dark: #1F2937;
  --text-gray: #6B7280;
  --text-light: #9CA3AF;
  --bg-light: #FEF7F3;
  --bg-white: #FFFFFF;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Dark mode */
.theme-dark {
  --bg-light: #111827;
  --bg-white: #1F2937;
  --text-dark: #F9FAFB;
  --text-gray: #D1D5DB;
  --text-light: #9CA3AF;
  --border-color: #374151;
  --primary-orange-light: #292524;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Profile Card */
.profile-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  background: var(--bg-light);
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.profile-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-orange);
  margin-bottom: 14px;
}

.profile-description {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* CTA Button */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 20px;
}

.cta-button:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.social-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-orange);
}

.social-card svg {
  width: 24px;
  height: 24px;
  fill: var(--text-dark);
  margin-bottom: 10px;
}

.social-card span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}

/* QR Code Section */
.qr-section {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.qr-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.qr-code {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  background: white;
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.qr-code img,
.qr-code svg {
  width: 100%;
  height: 100%;
}

.qr-url {
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary-orange);
  font-weight: 500;
}

/* Impact Section */
.impact-section {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.impact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.impact-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary-orange);
  flex-shrink: 0;
}

.impact-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.impact-list {
  list-style: none;
}

.impact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.impact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.impact-item:first-child {
  padding-top: 0;
}

.check-icon {
  width: 18px;
  height: 18px;
  fill: var(--primary-orange);
  flex-shrink: 0;
  margin-top: 1px;
}

.impact-text {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
}

.footer-text {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large phones */
@media (max-width: 480px) {
  .container {
    padding: 16px;
  }

  .profile-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .avatar-container {
    width: 100px;
    height: 100px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 22px;
  }

  .profile-title {
    font-size: 14px;
  }

  .profile-description {
    font-size: 13px;
  }

  .social-grid {
    gap: 8px;
  }

  .social-card {
    padding: 16px 12px;
  }

  .social-card svg {
    width: 22px;
    height: 22px;
  }

  .social-card span {
    font-size: 12px;
  }

  .qr-code {
    width: 120px;
    height: 120px;
  }

  .impact-section {
    padding: 20px;
  }

  .impact-text {
    font-size: 13px;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .container {
    padding: 12px;
  }

  .profile-card {
    padding: 24px 16px;
  }

  .avatar-container {
    width: 90px;
    height: 90px;
  }

  .avatar {
    width: 90px;
    height: 90px;
  }

  .profile-name {
    font-size: 20px;
  }

  .profile-title {
    font-size: 13px;
  }

  .cta-button {
    padding: 12px 20px;
    font-size: 14px;
  }

  .social-card {
    padding: 14px 10px;
  }

  .qr-code {
    width: 100px;
    height: 100px;
  }
}

/* Tablets and larger */
@media (min-width: 768px) {
  .container {
    padding: 32px 24px;
  }

  .profile-card {
    padding: 40px 32px;
  }

  .avatar-container {
    width: 140px;
    height: 140px;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .profile-name {
    font-size: 28px;
  }

  .profile-description {
    font-size: 15px;
    max-width: 360px;
  }

  .social-grid {
    gap: 12px;
  }

  .social-card {
    padding: 24px 20px;
  }

  .qr-code {
    width: 160px;
    height: 160px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container {
    min-height: auto;
    padding: 40px 24px;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .container {
    padding: 12px 20px;
  }

  .profile-card {
    padding: 20px;
  }

  .avatar-container {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .profile-title {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .profile-description {
    font-size: 12px;
  }

  .cta-button {
    margin-top: 12px;
    padding: 10px 20px;
  }

  .social-grid {
    margin-bottom: 8px;
  }

  .social-card {
    padding: 12px 10px;
  }

  .qr-section {
    padding: 16px;
  }

  .qr-code {
    width: 80px;
    height: 80px;
  }

  .impact-section {
    padding: 16px;
  }

  .footer {
    padding: 12px 0;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000;
  }

  .social-card {
    border-width: 2px;
  }
}
