/* Base Styles and Variables */
:root {
  --primary-bg: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.7);
  --primary-color: #333;
  --accent-color: #3a86ff;
  --border-radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-bg: #2b3a55;
  --footer-bg: #2b3a55;
  --header-text: white;
  --about-bg: #1a1f2c;
  --about-text: #f5f5f5;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--primary-bg);
  background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
  color: var(--primary-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  line-height: 1.6;
}

/* Header Styles */
.site-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Footer Styles */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--header-text);
  padding: 15px 0;
  margin-top: auto;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-size: 0.9rem;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Glass Card Styling */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 20px 0;
  transition: var(--transition);
  max-width: 450px;
  width: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 0.5em;
  color: var(--primary-color);
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.8em;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.7rem;
  letter-spacing: -0.3px;
}

.subtitle {
  display: block;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-bottom: 2em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
}

.btn:hover {
  background-color: #2b6bff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #555;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

.form-text {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: #666;
}

/* Wallet List */
.wallet-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin: 25px 0;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Add scrollbar styling for the wallet list */
.wallet-list::-webkit-scrollbar {
  width: 6px;
}

.wallet-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.wallet-list::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.wallet-list::-webkit-scrollbar-thumb:hover {
  background: #2b6bff;
}

.wallet-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #eee;
}

.wallet-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-color);
}

.wallet-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.wallet-name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Badge/Chip */
.badge {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(58, 134, 255, 0.1);
  color: var(--accent-color);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 10px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

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

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

/* Screen Sections */
#wallet-select-section,
#recovery-phrase-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

#wallet-select-section.active,
#recovery-phrase-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* For small screens */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  .card {
    padding: 20px;
  }

  .wallet-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .btn {
    padding: 10px 20px;
  }
}

/* What If Section */
#what-if-section {
  background-color: var(--primary-bg);
  padding: 40px 20px;
  text-align: center;
  width: 100%;
}

.what-if-container {
  max-width: 800px;
  margin: 0 auto;
}

#what-if-section h2 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

#what-if-section p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--primary-color);
}

/* About Section */
#about-section {
  background-color: var(--about-bg);
  color: var(--about-text);
  padding: 60px 20px;
  width: 100%;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-content h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

.about-content h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.about-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.newsletter-form {
  flex: 1;
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.newsletter-form p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input-group {
  display: flex;
  margin-bottom: 20px;
}

.newsletter-input-group input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  background-color: rgba(255, 255, 255, 0.9);
}

.newsletter-input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

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

.social-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-input-group input {
    border-right: 1px solid #ddd;
    border-bottom-right-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    margin-bottom: 10px;
  }

  .newsletter-input-group .btn {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
  }
}

