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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  color: white;
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 30px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h2 {
  color: #333;
  margin-bottom: 20px;
}

h3 {
  color: #667eea;
  margin: 20px 0 10px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 15px;
  border: 2px solid #e8ecf4;
  border-radius: 16px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
  background: #f8f9fc;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

button {
  width: 100%;
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #5568d3;
}

#qrResult {
  text-align: center;
  margin-top: 20px;
}

#qrImage {
  max-width: 300px;
  margin: 20px auto;
  display: block;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
}

.url {
  color: #666;
  font-size: 14px;
  word-break: break-all;
  margin: 15px 0;
}

.sighting {
  background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
  border-left: 5px solid #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.sighting:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.15);
}

.sighting-name {
  font-weight: 700;
  color: #2c3e50;
  font-size: 19px;
  margin-bottom: 8px;
}

.sighting-location {
  color: #555;
  margin: 6px 0;
  font-size: 15px;
  font-weight: 500;
}

.sighting-time {
  color: #888;
  font-size: 14px;
  margin-top: 8px;
  font-style: italic;
}

#successMessage {
  text-align: center;
  padding: 20px;
  background: #e8f5e9;
  border-radius: 8px;
  margin-top: 20px;
}

#successMessage h3 {
  color: #2e7d32;
}

.empty-state {
  text-align: center;
  color: #999;
  padding: 20px;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 25px;
}

.logo {
  height: 80px;
  margin-bottom: 10px;
}

/* Celebration Card */
.celebration-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 0;
  margin-bottom: 25px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.celebration-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

.celebration-content {
  position: relative;
  z-index: 1;
  padding: 35px 25px;
}

.celebration-emoji {
  font-size: 3em;
  margin: 5px 0;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

.celebration-logo {
  height: 80px;
  width: 80px;
  margin: 20px auto 0;
  display: block;
  animation: bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

.celebration-title {
  color: white;
  font-size: 2.2em;
  margin: 15px 0 10px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.celebration-text {
  font-size: 1.3em;
  font-weight: 500;
  margin: 15px auto;
  max-width: 500px;
  line-height: 1.5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Card Enhancements */
.card-icon {
  font-size: 3em;
  margin-bottom: 15px;
  text-align: center;
}

.track-card {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e8ecff;
}

.card-description {
  color: #666;
  margin-bottom: 20px;
  font-size: 1.05em;
}

.primary-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 1.1em;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.error-message {
  display: none;
  color: #f44336;
  background: #ffebee;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
  border-left: 4px solid #f44336;
}

.info-card {
  background: #ffffff;
}

.info-section {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9ff;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.info-section h3 {
  margin-top: 0;
  color: #667eea;
  font-size: 1.2em;
}

.steps-list {
  margin: 15px 0;
  padding-left: 25px;
  color: #333;
}

.steps-list li {
  margin: 10px 0;
  line-height: 1.6;
}

.inline-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #667eea;
  transition: all 0.3s;
}

.inline-link:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .container {
    max-width: 100%;
  }
  
  h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
  }
  
  .subtitle {
    font-size: 0.9em;
    margin-bottom: 20px;
  }
  
  .logo {
    height: 60px;
  }
  
  .celebration-content {
    padding: 25px 20px;
  }
  
  .celebration-emoji {
    font-size: 2.2em;
  }
  
  .celebration-title {
    font-size: 1.9em;
    margin: 12px 0 8px;
  }
  
  .celebration-text {
    font-size: 1.05em;
    margin: 12px 0;
  }
  
  .card-icon {
    font-size: 2.5em;
  }
  
  .info-section {
    padding: 12px;
  }
  
  .card {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
  }
  
  h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="email"],
  select,
  textarea {
    padding: 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  button {
    padding: 14px;
    font-size: 16px;
  }
  
  #qrImage {
    max-width: 100%;
    width: 280px;
  }
  
  .sighting {
    padding: 12px;
  }
  
  .sighting-name {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5em;
  }
  
  .card {
    padding: 15px;
  }
  
  #qrImage {
    width: 240px;
  }
  
  .logo {
    height: 50px;
  }
  
  .celebration-content {
    padding: 20px 15px;
  }
  
  .celebration-emoji {
    font-size: 1.8em;
  }
  
  .celebration-title {
    font-size: 1.6em;
    margin: 10px 0 5px;
  }
  
  .celebration-text {
    font-size: 0.95em;
    margin: 10px 0;
  }
  
  .card-icon {
    font-size: 2em;
  }
  
  .primary-button {
    font-size: 1em;
    padding: 14px;
  }
}


/* Newsletter Banner */
.newsletter-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.newsletter-content {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.newsletter-icon {
  font-size: 2.5em;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.newsletter-text h3 {
  margin: 0 0 5px 0;
  font-size: 1.3em;
  color: white;
}

.newsletter-text p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.95em;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

.newsletter-form input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, #357ABD 0%, #2868A8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.newsletter-success {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-top: 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-text h3 {
    font-size: 1.1em;
  }
  
  .newsletter-text p {
    font-size: 0.9em;
  }
  
  .newsletter-form {
    max-width: 100%;
  }
}
