/* Heart Font Generator - World Class Design */

/* Hero Section */
.generator-hero {
  min-height: 70vh;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.generator-hero::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 30% 70%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  animation: float-bg 20s ease-in-out infinite;
}

@keyframes float-bg {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-20px, -20px) rotate(120deg); }
  66% { transform: translate(20px, -10px) rotate(240deg); }
}

.generator-hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.generator-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 50%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.generator-hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Main Generator Container */
.generator-main {
  background: linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 100%);
  min-height: 100vh;
  padding: 4rem 0;
  position: relative;
}

.generator-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Input Section */
.input-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.input-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #DC143C, #FFD700, #DC143C);
  background-size: 200% 100%;
  animation: gradient-slide 3s linear infinite;
}

@keyframes gradient-slide {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.input-label {
  display: block;
  position: static;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 1rem;
  transform: none;
}

.input-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.text-input {
  width: 100%;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  resize: vertical;
  min-height: 120px;
}

.text-input:focus {
  outline: none;
  border-color: #DC143C;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1), 
              0 10px 40px rgba(220, 20, 60, 0.2);
  transform: translateY(-2px);
}

.text-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.char-counter {
  position: absolute;
  bottom: -1.5rem;
  right: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Generate Button */
.generate-section {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.btn-generate-premium {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 3rem;
  background: linear-gradient(135deg, #DC143C, #8B0000);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 40px rgba(220, 20, 60, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-generate-premium::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-generate-premium:hover::before {
  width: 400px;
  height: 400px;
}

.btn-generate-premium:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 50px rgba(220, 20, 60, 0.5);
}

.btn-generate-premium:active {
  transform: translateY(-2px) scale(1.02);
}

/* Output Section */
.output-section {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  border-radius: 2rem;
  padding: 3rem;
  margin: 3rem 0;
  min-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFD700;
}

.output-actions {
  display: flex;
  gap: 1rem;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-action:hover {
  background: rgba(220, 20, 60, 0.2);
  border-color: rgba(220, 20, 60, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.output-grid {
  display: grid;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 1rem;
}

.output-grid::-webkit-scrollbar {
  width: 8px;
}

.output-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.output-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #DC143C, #FFD700);
  border-radius: 4px;
}

.output-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.output-card:hover {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(255, 215, 0, 0.05));
  border-color: rgba(220, 20, 60, 0.3);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.output-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(255, 215, 0, 0.1));
  border-radius: 0.75rem;
}

.output-card-text {
  font-size: 1.3rem;
  color: #fff;
  word-break: break-all;
  line-height: 1.5;
}

.output-card-style {
  font-size: 0.85rem;
  color: rgba(255, 215, 0, 0.8);
  margin-top: 0.5rem;
}

.output-card-copy {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #DC143C, #8B0000);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
}

.output-card:hover .output-card-copy {
  opacity: 1;
}

.output-card-copy:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(220, 20, 60, 0.4);
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card-premium {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card-premium:hover::before {
  opacity: 1;
}

.feature-card-premium:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(220, 20, 60, 0.3);
  border-color: rgba(220, 20, 60, 0.3);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(255, 215, 0, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.feature-card-premium:hover .feature-icon-wrapper {
  transform: rotate(360deg) scale(1.1);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(255, 215, 0, 0.2));
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 1rem;
}

.feature-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .generator-hero {
    min-height: 50vh;
    padding: 4rem 1rem 2rem;
  }
  
  .generator-hero-title {
    font-size: 2.5rem;
  }
  
  .input-section {
    padding: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .output-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .output-card-copy {
    opacity: 1;
    margin-top: 1rem;
  }
}