/* ============================================
   ENNEAGRAM INTERACTIVE CARDS - MAIN STYLES
   Singapore Market | Mobile-First Design
   ============================================ */

/* CSS Variables - Type Colors */
:root {
  /* Type 1 - The Reformer */
  --type1-primary: #1a1a1a;
  --type1-accent: #d4af37;
  
  /* Type 2 - The Helper */
  --type2-primary: #6b2c3e;
  --type2-accent: #f5e6d3;
  
  /* Type 3 - The Achiever */
  --type3-primary: #1a4d3e;
  --type3-accent: #b87333;
  
  /* Type 4 - The Individualist */
  --type4-primary: #2c3e50;
  --type4-accent: #708090;
  
  /* Type 5 - The Investigator */
  --type5-primary: #0d4a5c;
  --type5-accent: #c0c0c0;
  
  /* Type 6 - The Loyalist */
  --type6-primary: #3d5a73;
  --type6-accent: #a8a9ad;
  
  /* Type 7 - The Enthusiast */
  --type7-primary: #c85a17;
  --type7-accent: #1a1a1a;
  
  /* Type 8 - The Challenger */
  --type8-primary: #4a1919;
  --type8-accent: #2a2a2a;
  
  /* Type 9 - The Peacemaker */
  --type9-primary: #556b3a;
  --type9-accent: #b5a89c;
  
  /* Common */
  --white: #ffffff;
  --black: #1a1a1a;
  --gray-light: #f5f5f5;
  --gray-medium: #888888;
  --gray-dark: #333333;
  
  /* Typography */
  --font-heading: 'Montserrat', 'Outfit', 'Poppins', sans-serif;
  --font-body: 'Inter', 'Roboto', 'Lato', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   LANDING PAGE STYLES
   ============================================ */

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--type1-primary) 0%, #2d2d2d 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--type1-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 220px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--type1-accent) 0%, #c9a227 100%);
  color: var(--type1-primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}

.btn-small {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  min-width: auto;
}

/* Preview Cards Section */
.preview-section {
  padding: 3rem 1.5rem;
  background: var(--gray-light);
}

.preview-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--black);
}

.preview-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.preview-cards::-webkit-scrollbar {
  height: 4px;
}

.preview-cards::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.preview-cards::-webkit-scrollbar-thumb {
  background: var(--type1-accent);
  border-radius: 2px;
}

.preview-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.preview-card-image {
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-card-content {
  padding: 1.25rem;
}

.preview-card-type {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-bottom: 0.25rem;
}

.preview-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.preview-card-traits {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

/* About Section */
.about-section {
  padding: 3rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.about-section p {
  color: var(--gray-dark);
  margin-bottom: 1rem;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--type1-primary);
  color: var(--white);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--type1-accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copyright {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ============================================
   TYPE CARD PAGE STYLES
   ============================================ */

.type-page {
  min-height: 100vh;
}

/* Type Header */
.type-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.type-header-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.header-spacer {
  width: 40px;
}

/* Type Hero */
.type-hero {
  padding: 1.5rem;
  padding-top: 0.5rem;
  text-align: center;
  color: var(--white);
}

.type-character-image {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.type-character-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.type-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  letter-spacing: 2px;
}

.type-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.type-traits {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Type Content */
.type-content {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  margin-top: -1rem;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 10;
}

.content-section {
  margin-bottom: 2rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.section-title {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Strengths List */
.strengths-list {
  list-style: none;
}

.strengths-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.9375rem;
  color: var(--gray-dark);
}

.strengths-list li:last-child {
  border-bottom: none;
}

.strengths-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Shadow Section */
.shadow-section {
  background: var(--gray-light);
  border-radius: 16px;
  padding: 1.5rem;
}

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

.shadow-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--gray-dark);
}

.shadow-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: currentColor;
}

/* Growth Tip */
.growth-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 4px solid;
}

.growth-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-dark);
  font-style: italic;
}

/* Works Best With */
.compatibility-section {
  text-align: center;
}

.compatibility-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.compatibility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

/* Action Buttons */
.type-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.action-btn {
  width: 100%;
}

/* Navigation Buttons */
.type-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: var(--gray-light);
  color: var(--gray-dark);
}

.nav-btn:hover {
  background: var(--gray-medium);
  color: var(--white);
}

.nav-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================
   ALL TYPES GRID PAGE
   ============================================ */

.all-types-page {
  min-height: 100vh;
  background: var(--gray-light);
}

.all-types-header {
  background: var(--type1-primary);
  color: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
}

.all-types-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.all-types-header p {
  opacity: 0.8;
  font-size: 0.9375rem;
}

.types-grid {
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.type-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.type-card-image {
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.type-card:hover .type-card-image img {
  transform: scale(1.02);
}

.type-card-content {
  padding: 1.25rem;
}

.type-card-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.type-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.type-card-traits {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

/* ============================================
   SHARE MODAL
   ============================================ */

.share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.share-modal.active {
  display: flex;
}

.share-modal-content {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  border-radius: 24px 24px 0 0;
  padding: 1.5rem;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.share-modal-title {
  font-size: 1.25rem;
}

.share-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-modal-close:hover {
  background: var(--gray-medium);
  color: var(--white);
}

.share-modal-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--gray-light);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.share-option:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.share-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-option-icon.whatsapp {
  background: #25d366;
}

.share-option-icon.facebook {
  background: #1877f2;
}

.share-option-icon.tiktok {
  background: #000000;
}

.share-option-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-option-icon.copy {
  background: var(--gray-medium);
}

.share-option-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.share-option-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-dark);
}

.copy-link-section {
  display: flex;
  gap: 0.5rem;
}

.copy-link-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 0.875rem;
  background: var(--gray-light);
}

.copy-link-btn {
  padding: 0.875rem 1.25rem;
  background: var(--type1-primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-link-btn:hover {
  background: #333;
}

.copy-link-btn.copied {
  background: #28a745;
}

/* ============================================
   TYPE-SPECIFIC STYLES
   ============================================ */

/* Type 1 - The Reformer */
.type1-page .type-header,
.type1-page .type-hero {
  background: var(--type1-primary);
  color: var(--white);
}

.type1-page .section-icon {
  background: rgba(212, 175, 55, 0.2);
}

.type1-page .strengths-list li::before {
  color: var(--type1-accent);
}

.type1-page .growth-section {
  border-left-color: var(--type1-accent);
}

.type1-page .compatibility-link {
  background: rgba(212, 175, 55, 0.15);
  color: var(--type1-primary);
}

.type1-page .compatibility-link:hover {
  background: var(--type1-accent);
  color: var(--type1-primary);
}

.type1-page .btn-primary {
  background: var(--type1-accent);
  color: var(--type1-primary);
}

/* Type 2 - The Helper */
.type2-page .type-header,
.type2-page .type-hero {
  background: var(--type2-primary);
  color: var(--type2-accent);
}

.type2-page .section-icon {
  background: rgba(245, 230, 211, 0.2);
}

.type2-page .strengths-list li::before {
  color: var(--type2-primary);
}

.type2-page .growth-section {
  border-left-color: var(--type2-primary);
}

.type2-page .compatibility-link {
  background: rgba(107, 44, 62, 0.15);
  color: var(--type2-primary);
}

.type2-page .compatibility-link:hover {
  background: var(--type2-primary);
  color: var(--type2-accent);
}

.type2-page .btn-primary {
  background: var(--type2-primary);
  color: var(--type2-accent);
}

/* Type 3 - The Achiever */
.type3-page .type-header,
.type3-page .type-hero {
  background: var(--type3-primary);
  color: var(--white);
}

.type3-page .section-icon {
  background: rgba(184, 115, 51, 0.2);
}

.type3-page .strengths-list li::before {
  color: var(--type3-accent);
}

.type3-page .growth-section {
  border-left-color: var(--type3-accent);
}

.type3-page .compatibility-link {
  background: rgba(26, 77, 62, 0.15);
  color: var(--type3-primary);
}

.type3-page .compatibility-link:hover {
  background: var(--type3-primary);
  color: var(--white);
}

.type3-page .btn-primary {
  background: var(--type3-accent);
  color: var(--white);
}

/* Type 4 - The Individualist */
.type4-page .type-header,
.type4-page .type-hero {
  background: var(--type4-primary);
  color: var(--white);
}

.type4-page .section-icon {
  background: rgba(112, 128, 144, 0.2);
}

.type4-page .strengths-list li::before {
  color: var(--type4-accent);
}

.type4-page .growth-section {
  border-left-color: var(--type4-accent);
}

.type4-page .compatibility-link {
  background: rgba(44, 62, 80, 0.15);
  color: var(--type4-primary);
}

.type4-page .compatibility-link:hover {
  background: var(--type4-primary);
  color: var(--white);
}

.type4-page .btn-primary {
  background: var(--type4-accent);
  color: var(--white);
}

/* Type 5 - The Investigator */
.type5-page .type-header,
.type5-page .type-hero {
  background: var(--type5-primary);
  color: var(--white);
}

.type5-page .section-icon {
  background: rgba(192, 192, 192, 0.2);
}

.type5-page .strengths-list li::before {
  color: var(--type5-accent);
}

.type5-page .growth-section {
  border-left-color: var(--type5-accent);
}

.type5-page .compatibility-link {
  background: rgba(13, 74, 92, 0.15);
  color: var(--type5-primary);
}

.type5-page .compatibility-link:hover {
  background: var(--type5-primary);
  color: var(--white);
}

.type5-page .btn-primary {
  background: var(--type5-accent);
  color: var(--type5-primary);
}

/* Type 6 - The Loyalist */
.type6-page .type-header,
.type6-page .type-hero {
  background: var(--type6-primary);
  color: var(--white);
}

.type6-page .section-icon {
  background: rgba(168, 169, 173, 0.2);
}

.type6-page .strengths-list li::before {
  color: var(--type6-accent);
}

.type6-page .growth-section {
  border-left-color: var(--type6-accent);
}

.type6-page .compatibility-link {
  background: rgba(61, 90, 115, 0.15);
  color: var(--type6-primary);
}

.type6-page .compatibility-link:hover {
  background: var(--type6-primary);
  color: var(--white);
}

.type6-page .btn-primary {
  background: var(--type6-accent);
  color: var(--type6-primary);
}

/* Type 7 - The Enthusiast */
.type7-page .type-header,
.type7-page .type-hero {
  background: var(--type7-primary);
  color: var(--white);
}

.type7-page .section-icon {
  background: rgba(26, 26, 26, 0.2);
}

.type7-page .strengths-list li::before {
  color: var(--type7-primary);
}

.type7-page .growth-section {
  border-left-color: var(--type7-primary);
}

.type7-page .compatibility-link {
  background: rgba(200, 90, 23, 0.15);
  color: var(--type7-primary);
}

.type7-page .compatibility-link:hover {
  background: var(--type7-primary);
  color: var(--white);
}

.type7-page .btn-primary {
  background: var(--type7-primary);
  color: var(--white);
}

/* Type 8 - The Challenger */
.type8-page .type-header,
.type8-page .type-hero {
  background: var(--type8-primary);
  color: var(--white);
}

.type8-page .section-icon {
  background: rgba(42, 42, 42, 0.3);
}

.type8-page .strengths-list li::before {
  color: var(--type8-accent);
}

.type8-page .growth-section {
  border-left-color: var(--type8-accent);
}

.type8-page .compatibility-link {
  background: rgba(74, 25, 25, 0.15);
  color: var(--type8-primary);
}

.type8-page .compatibility-link:hover {
  background: var(--type8-primary);
  color: var(--white);
}

.type8-page .btn-primary {
  background: var(--type8-accent);
  color: var(--white);
}

/* Type 9 - The Peacemaker */
.type9-page .type-header,
.type9-page .type-hero {
  background: var(--type9-primary);
  color: var(--white);
}

.type9-page .section-icon {
  background: rgba(181, 168, 156, 0.2);
}

.type9-page .strengths-list li::before {
  color: var(--type9-accent);
}

.type9-page .growth-section {
  border-left-color: var(--type9-accent);
}

.type9-page .compatibility-link {
  background: rgba(85, 107, 58, 0.15);
  color: var(--type9-primary);
}

.type9-page .compatibility-link:hover {
  background: var(--type9-primary);
  color: var(--white);
}

.type9-page .btn-primary {
  background: var(--type9-accent);
  color: var(--type9-primary);
}

/* Type Card Colors for Grid */
.type-card.type1 .type-card-number { color: var(--type1-accent); }
.type-card.type2 .type-card-number { color: var(--type2-primary); }
.type-card.type3 .type-card-number { color: var(--type3-primary); }
.type-card.type4 .type-card-number { color: var(--type4-primary); }
.type-card.type5 .type-card-number { color: var(--type5-primary); }
.type-card.type6 .type-card-number { color: var(--type6-primary); }
.type-card.type7 .type-card-number { color: var(--type7-primary); }
.type-card.type8 .type-card-number { color: var(--type8-primary); }
.type-card.type9 .type-card-number { color: var(--type9-primary); }

/* ============================================
   TABLET STYLES (481px - 768px)
   ============================================ */

@media (min-width: 481px) {
  .hero {
    padding: 4rem 2rem;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .preview-cards {
    justify-content: center;
  }
  
  .type-character-image {
    max-width: 380px;
  }
  
  .type-name {
    font-size: 3rem;
  }
  
  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   DESKTOP STYLES (769px+)
   ============================================ */

@media (min-width: 769px) {
  .hero {
    padding: 5rem 2rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .preview-section {
    padding: 4rem 2rem;
  }
  
  .preview-cards {
    justify-content: center;
    gap: 2rem;
  }
  
  .preview-card {
    flex: 0 0 320px;
  }
  
  .about-section {
    padding: 4rem 2rem;
  }
  
  .type-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    text-align: left;
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .type-character-image {
    max-width: 350px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .type-hero-content {
    flex: 1;
  }
  
  .type-name {
    font-size: 3.5rem;
  }
  
  .type-content {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 24px;
    margin-top: -2rem;
    padding: 3rem;
  }
  
  .types-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 2rem;
  }
  
  .type-card-image {
    height: 240px;
  }
  
  .share-modal {
    align-items: center;
  }
  
  .share-modal-content {
    border-radius: 24px;
    padding: 2rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Print styles */
@media print {
  .type-header,
  .type-actions,
  .type-navigation,
  .footer {
    display: none;
  }
  
  .type-hero {
    page-break-after: avoid;
  }
  
  .type-content {
    margin-top: 0;
  }
}
