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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #FFFAF0 0%, #FFE4E1 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Floating Berries */
.floating-berry {
  position: fixed;
  font-size: 2rem;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-100px) rotate(90deg);
  }
  50% {
    transform: translateY(-50px) rotate(180deg);
  }
  75% {
    transform: translateY(-120px) rotate(270deg);
  }
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

/* Header */
.hero-header {
  background: linear-gradient(135deg, #FF69B4 0%, #9370DB 100%);
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.3);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Baloo 2', cursive;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
}

.section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.8rem;
  color: #DC143C;
  margin-bottom: 1.5rem;
}

/* Tweet Card */
.tweet-card {
  background: #f8f9fa;
  border: 2px solid #e1e8ed;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.tweet-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tweet-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF69B4, #DC143C);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.tweet-info {
  display: flex;
  flex-direction: column;
}

.tweet-name {
  font-weight: 700;
  color: #14171a;
}

.tweet-handle {
  color: #657786;
  font-size: 0.9rem;
}

.tweet-input {
  width: 100%;
  border: none;
  background: white;
  padding: 1rem;
  font-size: 1.1rem;
  font-family: inherit;
  resize: vertical;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.tweet-input:focus {
  outline: 2px solid #FF69B4;
}

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

.tweet-counter {
  font-weight: 600;
}

.tweet-counter.over-limit {
  color: #DC143C;
}

/* Live Detector */
.live-detector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
  border-radius: 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detector-label {
  font-weight: 600;
  color: white;
}

.app-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Generate Button */
.generate-button {
  width: 100%;
  padding: 1.2rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #FF69B4 0%, #DC143C 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.generate-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.4);
}

.generate-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Animation */
.loading-container {
  text-align: center;
  padding: 2rem;
}

.spinner-berry {
  font-size: 4rem;
  animation: spin 2s linear infinite;
  margin-bottom: 1rem;
}

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

.loading-text {
  font-size: 1.2rem;
  color: #DC143C;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF69B4 0%, #DC143C 100%);
  transition: width 0.3s ease;
  border-radius: 6px;
}

/* Result Grid */
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.result-panel {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.panel-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.3rem;
  color: #9370DB;
  margin-bottom: 1rem;
}

.tweet-display {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #FF69B4;
  font-style: italic;
  color: #14171a;
}

/* Demo App */
.demo-app {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
}

.demo-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #DC143C;
  margin-bottom: 1.5rem;
  text-align: center;
}

.demo-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-label {
  font-weight: 600;
  color: #14171a;
}

.coffee-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  appearance: none;
  background: linear-gradient(90deg, #FFB6C1 0%, #DC143C 100%);
  outline: none;
}

.coffee-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #DC143C;
  cursor: pointer;
}

.coffee-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #DC143C;
  cursor: pointer;
  border: none;
}

.points-display {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
  border-radius: 12px;
}

.points-number {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  font-family: 'Baloo 2', cursive;
}

.points-label {
  font-size: 1rem;
  color: white;
  margin-top: 0.5rem;
}

.warning-message {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  background: #98FF98;
  color: #2d5016;
  font-weight: 600;
  transition: all 0.3s ease;
}

.warning-message.danger {
  background: #ffcccb;
  color: #8b0000;
  animation: pulse 1s infinite;
}

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

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.share-button, .copy-button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-button {
  background: #1DA1F2;
  color: white;
}

.copy-button {
  background: #9370DB;
  color: white;
}

.share-button:hover, .copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Examples Grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.example-card {
  background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.example-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.4);
}

.example-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.example-title {
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.example-tweet {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}

/* How To Section */
.how-to {
  background: linear-gradient(135deg, #9370DB 0%, #FF69B4 100%);
  color: white;
}

.how-to .section-title {
  color: white;
}

.how-to-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.how-to-card {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.how-to-step {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.how-to-text h3 {
  font-family: 'Baloo 2', cursive;
  margin-bottom: 0.5rem;
}

/* Meta Section */
.meta-section {
  background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 100%);
  border: 3px dashed #DC143C;
}

.meta-card {
  text-align: center;
}

.meta-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 2rem;
  color: #DC143C;
  margin-bottom: 1rem;
}

.meta-card p {
  font-size: 1.1rem;
  color: #14171a;
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-weight: 700;
  color: #DC143C;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #DC143C 0%, #9370DB 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  margin-top: 3rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .result-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}