@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.main-header {
  margin-bottom: 2rem;
}

.main-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quote-card {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  max-width: 700px;
  width: 100%;
  padding: 2rem 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.quote-icon {
  font-size: 2rem;
  color: #667eea;
  opacity: 0.5;
  position: absolute;
}

.quote-icon.top {
  top: 1.5rem;
  left: 2rem;
}

.quote-icon.bottom {
  bottom: 5rem;
  right: 2rem;
}

.quote {
  font-size: 1.5rem;
  font-weight: 600;
  min-height: 100px;
  line-height: 1.6;
  margin: 2rem 0;
}

hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0)
  );
  margin: 1rem 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #777;
}

#share-btn {
  background: #764ba2;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

#share-btn:hover {
  background: #603a8b;
}

.main-footer-bottom {
  font-size: 0.9rem;
  opacity: 0.8;
}

.fa-heart {
  color: #ff9a9e;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .main-header h1 {
    font-size: 2rem;
  }

  .main-header p {
    font-size: 1rem;
  }

  .quote-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .quote {
    font-size: 1.2rem;
    min-height: 80px;
    margin: 1.5rem 0;
  }

  .quote-icon.top {
    top: 1rem;
    left: 1rem;
  }

  .quote-icon.bottom {
    bottom: 4.5rem;
    right: 1rem;
  }

  .card-footer {
    flex-direction: column;
    gap: 0.8rem;
  }
}
