/* ============================================
   Romantic Stars - Additional Styles
   ============================================ */

/* Floating Hearts Animation */
.floating-heart {
  position: fixed;
  font-size: 1.5rem;
  animation: floatUp 15s linear infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Shimmer Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

/* Glow Effect */
.glow {
  box-shadow: 0 0 20px rgba(255, 111, 125, 0.4);
}

/* Card Hover Effects */
.tool-card {
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 111, 125, 0.1) 0%,
    transparent 70%
  );
  transform: scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.tool-card:hover::before {
  transform: scale(1);
}

/* Sparkle Effect */
.sparkle {
  position: relative;
  display: inline-block;
}

.sparkle::after {
  content: '✨';
  position: absolute;
  top: -8px;
  right: -12px;
  font-size: 0.75rem;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Gradient Border */
.gradient-border {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #FF8E9E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-20px); }
  60% { transform: translateX(-50%) translateY(-10px); }
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-secondary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(255, 111, 125, 0.3);
  color: var(--color-accent);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FF5A6A;
}

/* ============================================
   About Page Styles
   ============================================ */

.about-page {
  padding: 120px 24px 80px;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-story {
  text-align: center;
  padding: 40px;
  margin-bottom: 40px;
}

.story-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.about-founder {
  padding: 40px;
  margin-bottom: 40px;
}

.about-founder blockquote {
  font-style: italic;
  border-left: 4px solid var(--color-primary);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--color-text-light);
}

.founder-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.founder-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB6C1, #FF69B4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.about-mission {
  margin-bottom: 40px;
}

.mission-card {
  text-align: center;
  padding: 40px;
}

.mission-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.about-values h2 {
  text-align: center;
  margin-bottom: 40px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 32px;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* ============================================
   Tool Page Styles
   ============================================ */

.tool-page {
  padding: 120px 24px 80px;
}

.breadcrumb {
  margin-bottom: 40px;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  margin: 0 8px;
}

.tool-header {
  text-align: center;
  margin-bottom: 60px;
}

.tool-emoji-large {
  font-size: 5rem;
  margin-bottom: 20px;
}

.tool-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.tool-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.tool-content {
  max-width: 800px;
  margin: 0 auto;
}

.tool-info {
  padding: 32px;
  margin-bottom: 32px;
}

.tool-info h2 {
  margin-bottom: 16px;
}

.tool-interface {
  padding: 32px;
}

.tool-interface h2 {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-accent);
}

.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: white;
  transition: var(--transition);
}

.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 111, 125, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-full {
  width: 100%;
}

.result-area {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
}

.result-area h3 {
  margin-bottom: 16px;
}

.result-content {
  white-space: pre-wrap;
  line-height: 1.8;
  margin-bottom: 20px;
}

.result-content.poem {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.125rem;
}

.result-actions {
  display: flex;
  gap: 12px;
}

/* ============================================
   Page Styles
   ============================================ */

.page-section {
  padding: 120px 24px 80px;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.page-description {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Card Component */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
