/* EcoKraft Referral Page - Clean CSS */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #121317;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
  font-size: clamp(18px, 4vw, 30px);
  line-height: 1.27;
  font-weight: 400;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
}

p {
  max-width: 600px;
  font-size: clamp(16px, 3vw, 18px);
  line-height: 1.78;
  font-weight: 300;
  margin-bottom: 20px;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

small {
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

/* Layout */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navigation {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo {
  height: 28px;
  width: auto;
}

.main-section {
  min-height: 100vh;
  background-image: 
    linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
    url("../images/solar-background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.content-card {
  background: white;
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: clamp(30px, 6vw, 60px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #121317;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.header-text {
  width: 100%;
}

.description {
  width: 100%;
}

/* Referral section */
.referral {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.referral-section,
.share-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.input-container {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.referral-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #e0e4e7;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.27;
  color: #121317;
  background: white;
  transition: border-color 0.2s ease;
}

.referral-input:focus {
  outline: none;
  border-color: #aad15e;
  box-shadow: 0 0 0 3px rgba(170, 209, 94, 0.1);
}

.copy-btn {
  padding: 16px;
  background: #aad15e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}

.share-btn {
  padding: 16px 24px;
  background: #aad15e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover,
.share-btn:hover {
  background: #9bc555;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(170, 209, 94, 0.3);
}

.copy-btn:active,
.share-btn:active {
  transform: translateY(0);
}

.share-section {
  align-items: center;
}

.no-code-message {
  text-align: center;
  padding: 20px;
  color: #666;
}

.no-code-message h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.footer-text {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

/* Responsive design */

@media screen and (max-width: 767px) {
  .main-section {
    padding: 100px 15px 20px;
    background-attachment: scroll;
  }
  
  .content-card {
    border-radius: 16px;
  }
  
  .input-container {
    flex-direction: column;
  }
  
  .copy-btn {
    align-self: stretch;
  }
  
  .navigation {
    padding: 15px;
  }
  
  .logo {
    height: 32px;
  }
}

@media screen and (max-width: 480px) {
  .main-section {
    padding: 90px 10px 15px;
  }
  
  .content-card {
    padding: 25px 20px;
    border-radius: 12px;
  }
  
  .referral-input {
    font-size: 14px;
    padding: 14px 16px;
  }
  
  .copy-btn,
  .share-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* Dark mode support - Override to maintain white background */
@media (prefers-color-scheme: dark) {
  .content-card {
    background: white;
    color: #121317;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .referral-input {
    background: white;
    border-color: #e0e4e7;
    color: #121317;
  }
  
  .referral-input:focus {
    border-color: #aad15e;
    background: white;
  }
  
  .section-title {
    color: #666;
  }
  
  small {
    color: #666;
  }
}

/* Animation enhancements */
.content-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus styles for accessibility */
.copy-btn:focus-visible,
.share-btn:focus-visible,
.logo-link:focus-visible {
  outline: 2px solid #aad15e;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .content-card {
    border: 2px solid #000;
  }
  
  .copy-btn,
  .share-btn {
    border: 2px solid #000;
  }
}