/* Email CSS for Flexoki theme - will be inlined by premailer-rails */
@import url('https://fonts.googleapis.com/css2?family=Birthstone&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Flexoki Colors */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #100F0F;
  background-color: #FFFCF0;
  margin: 0;
  padding: 0;
}

.email-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  box-shadow: 0 4px 24px rgba(16, 15, 15, 0.08);
}

/* Company Header */
.company-header {
  background: #100F0F;
  padding: 24px 32px;
  text-align: center;
  border-bottom: 3px solid #66800B;
}

.company-header.upgrade {
  border-bottom: 3px solid #AD8301;
}

.company-logo {
  font-family: 'Birthstone', 'Dancing Script', 'Brush Script MT', cursive;
  font-size: 48px;
  font-weight: 300;
  color: #879A39;
  margin: 0;
  text-shadow: none;
  font-style: normal;
}

.company-tagline {
  font-size: 13px;
  color: #FFFCF0;
  margin: 8px 0 0 0;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* User Rank Section */
.rank-section {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid #DAD8CE;
}

.rank-label {
  font-size: 12px;
  color: #6F6E69;
  margin: 0 0 6px 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.user-rank {
  font-family: 'Birthstone', 'Dancing Script', 'Brush Script MT', cursive;
  font-size: 28px;
  font-weight: 300;
  margin: 0;
  text-shadow: none;
  font-style: normal;
}

.rank-description {
  font-size: 12px;
  color: #6F6E69;
  margin: 2px 0 0 0;
  font-style: italic;
}

/* Main Content */
.main-content {
  padding: 32px;
}

.greeting {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 20px 0;
  color: #100F0F;
}

.main-message {
  font-size: 16px;
  margin: 0 0 28px 0;
  color: #6F6E69;
  line-height: 1.7;
}

/* CTA Buttons */
.cta-section {
  text-align: center;
  margin: 32px 0;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #100F0F;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #100F0F;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upgrade-button {
  display: inline-block;
  background: white;
  color: #100F0F;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid #100F0F;
}

/* Premium Features Section */
.premium-features {
  background: #F2F0E5;
  padding: 24px;
  border-radius: 12px;
  margin: 32px 0;
  border: 1px solid #DAD8CE;
}

.upgrade-section {
  background: #F2F0E5;
  padding: 24px;
  border-radius: 12px;
  margin: 32px 0;
  border: 1px solid #DAD8CE;
}

.features-title, .upgrade-title {
  font-weight: 600;
  color: #100F0F;
  margin: 0 0 16px 0;
  font-size: 20px;
  text-align: center;
}

.upgrade-title {
  font-size: 18px;
  margin: 0 0 12px 0;
}

.upgrade-description {
  margin: 0 0 20px 0;
  color: #6F6E69;
  font-size: 15px;
  line-height: 1.6;
}

.features-list, .upgrade-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.features-list li {
  padding: 8px 0 8px 32px;
  color: #6F6E69;
  font-size: 15px;
  position: relative;
}

.upgrade-benefits li {
  padding: 6px 0 6px 24px;
  color: #6F6E69;
  font-size: 15px;
  position: relative;
}

.features-list li:before {
  content: "🚀";
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 16px;
}

.upgrade-benefits li:before {
  content: "✓";
  color: #66800B;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 6px;
}

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

/* Footer */
.email-footer {
  background: #E6E4D9;
  padding: 24px 32px;
  text-align: center;
  border-top: 1px solid #DAD8CE;
}

.unsubscribe-text {
  color: #878580;
  font-size: 13px;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.unsubscribe-text a {
  color: #6F6E69;
  text-decoration: none;
}

.company-footer {
  color: #878580;
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

/* Feature Card Table (email-safe layout) */
.feature-card-table { width: 100%; border-spacing: 6px; }
.feature-card-table td {
  width: 50%;
  background: #F2F0E5;
  border: 1px solid #DAD8CE;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  vertical-align: top;
}
.feature-card-table .fc-icon { width: 32px; height: 32px; margin-bottom: 8px; }
.feature-card-table h4 { font-size: 13px; font-weight: 600; color: #100F0F; margin: 0 0 4px; }
.feature-card-table p { font-size: 12px; color: #6F6E69; margin: 0; line-height: 1.4; }

/* Full-width feature row (for upgrade email) */
.feature-row-table { width: 100%; border-spacing: 0; margin-bottom: 12px; }
.feature-row-table td { padding: 16px; background: #F2F0E5; border: 1px solid #DAD8CE; border-radius: 10px; vertical-align: top; }
.feature-row-table .fr-icon { width: 36px; height: 36px; }
.feature-row-table h4 { font-size: 15px; font-weight: 600; color: #100F0F; margin: 0 0 4px; }
.feature-row-table p { font-size: 14px; color: #6F6E69; margin: 0; line-height: 1.5; }

/* Step cards (for onboarding) */
.step-table { width: 100%; border-spacing: 0; }
.step-table td { padding: 14px 16px; border-bottom: 1px solid #DAD8CE; vertical-align: top; }
.step-table td:first-child { width: 40px; text-align: center; }
.step-number { display: inline-block; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; background: #66800B; color: white; font-size: 14px; font-weight: 600; text-align: center; }
.step-table h4 { font-size: 14px; font-weight: 600; color: #100F0F; margin: 0 0 2px; }
.step-table p { font-size: 13px; color: #6F6E69; margin: 0; line-height: 1.4; }

/* Tier-specific hero box */
.tier-hero { padding: 20px; border-radius: 10px; border-left: 4px solid; margin-bottom: 24px; }

/* Mini feature strip (for announcements) */
.feature-strip-table { width: 100%; border-spacing: 0; margin: 24px 0; }
.feature-strip-table td { text-align: center; padding: 8px; }
.feature-strip-table .fs-label { font-size: 11px; color: #6F6E69; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Reassurance small text */
.reassurance { font-size: 13px; color: #878580; text-align: center; margin: 24px 0 0; line-height: 1.5; font-style: italic; }

/* Security notice box (for Devise transactional emails) */
.security-notice {
  background: #F2F0E5;
  border: 1px solid #DAD8CE;
  border-left: 4px solid #AF3029;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.security-notice p {
  font-size: 13px;
  color: #6F6E69;
  margin: 0;
  line-height: 1.6;
}
.security-notice a { color: #66800B; text-decoration: underline; }

/* Mobile responsiveness */
@media (max-width: 640px) {
  .email-container {
    margin: 0;
    box-shadow: none;
  }
  
  .main-content {
    padding: 24px 20px;
  }
  
  .company-header {
    padding: 20px;
  }
  
  .company-logo {
    font-size: 36px;
  }
  
  .user-rank {
    font-size: 28px;
  }

  .feature-card-table td { display: block; width: 100% !important; margin-bottom: 8px; }
  .feature-row-table td { padding: 12px; }
}