/* ===== Upload Page - Pastel Cat Cafe ===== */
.upload-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.upload-page h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: 'Mali', sans-serif;
  background: linear-gradient(135deg, var(--primary-dark), var(--text-cute));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upload-page > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-family: 'Nunito', sans-serif;
}

/* ===== Upload Form ===== */
.upload-form {
  background: var(--bg-card);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(255, 181, 186, 0.15);
  background: white;
  box-shadow:
    0 10px 30px rgba(255, 181, 186, 0.18),
    0 6px 18px rgba(255, 204, 188, 0.14);
}

.upload-dropzone {
  display: block;
  border: 4px dashed rgba(255, 171, 145, 0.65);
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-bounce);
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 205, 210, 0.18));
  position: relative;
  overflow: hidden;
}

.upload-dropzone::before {
  content: '🐾';
  position: absolute;
  font-size: 4rem;
  opacity: 0.08;
  top: 10px;
  right: 20px;
  transform: rotate(15deg);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--primary);
  background: linear-gradient(145deg, rgba(255, 205, 210, 0.25), rgba(200, 247, 220, 0.15));
  transform: scale(1.01);
}

.upload-dropzone-icon {
  font-size: 3.25rem;
  margin-bottom: 1rem;
}

.upload-dropzone h3 {
  margin-bottom: 0.5rem;
  font-family: 'Mali', sans-serif;
  color: var(--error);
}

.upload-dropzone input[type="file"] {
  display: none;
}

.upload-dropzone p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.input-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(255, 248, 240, 0.9);
  border: 2px solid rgba(255, 181, 186, 0.22);
  transition: all var(--transition-bounce);
}

.input-pill:focus-within {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 181, 186, 0.15);
}

.input-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 181, 186, 0.18);
  color: #6B5B5B;
  flex: 0 0 44px;
  font-size: 1.1rem;
}

/* ===== Captcha ===== */
.captcha-box {
  background: rgba(255, 250, 245, 0.95);
  border: 2px solid rgba(255, 181, 186, 0.2);
  border-radius: 28px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 181, 186, 0.12);
}

.captcha-question {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--error);
  font-family: 'Mali', sans-serif;
}

.captcha-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.captcha-option {
  padding: 0.9rem 1rem;
  background: white;
  border: 2px solid rgba(255, 181, 186, 0.25);
  border-radius: 22px;
  cursor: pointer;
  transition: all var(--transition-bounce);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 3px 0 rgba(93, 78, 78, 0.08);
  font-family: 'Mali', sans-serif;
}

.captcha-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(93, 78, 78, 0.08), 0 12px 20px rgba(255, 181, 186, 0.15);
}

.captcha-option.selected {
  border-color: var(--primary);
  background: linear-gradient(145deg, rgba(255, 205, 210, 0.35), rgba(200, 247, 220, 0.25));
  color: #111;
  box-shadow: 0 2px 0 rgba(93, 78, 78, 0.08), 0 10px 25px rgba(255, 181, 186, 0.18);
}

/* ===== Captcha Mini-Game Grid ===== */
.captcha-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.captcha-game-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 3px solid rgba(255, 181, 186, 0.25);
  border-radius: 18px;
  cursor: pointer;
  transition: all var(--transition-bounce);
  box-shadow: 0 4px 0 rgba(93, 78, 78, 0.08);
  position: relative;
}

.captcha-game-cell:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 6px 0 rgba(93, 78, 78, 0.08), 0 12px 20px rgba(255, 181, 186, 0.2);
}

.captcha-game-cell:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 0 rgba(93, 78, 78, 0.08);
}

.captcha-game-cell.selected {
  background: linear-gradient(145deg, rgba(168, 230, 207, 0.4), rgba(255, 205, 210, 0.3));
  border-color: var(--secondary);
  box-shadow: 0 3px 0 rgba(136, 216, 176, 0.3), 0 8px 20px rgba(168, 230, 207, 0.25);
}

.captcha-game-cell.selected::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(136, 216, 176, 0.4);
}

.captcha-game-cell.bounce {
  animation: cell-bounce 0.3s ease;
}

@keyframes cell-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.captcha-game-emoji {
  font-size: 2rem;
  line-height: 1;
  transition: transform var(--transition-bounce);
}

.captcha-game-cell:hover .captcha-game-emoji {
  transform: scale(1.1);
}

.captcha-game-cell.selected .captcha-game-emoji {
  transform: scale(1.05);
}

.captcha-refresh {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid rgba(168, 230, 207, 0.5);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.captcha-refresh:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.upload-submit {
  position: relative;
  overflow: hidden;
}

.upload-submit::before,
.upload-submit::after {
  content: '';
  position: absolute;
  top: -14px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  transform: rotate(45deg);
  opacity: 0;
  transition: all var(--transition-bounce);
}

.upload-submit::before {
  left: 18px;
}

.upload-submit::after {
  right: 18px;
}

.upload-submit:hover::before,
.upload-submit:hover::after {
  opacity: 1;
  top: -10px;
}

.upload-preview {
  display: none;
  margin-bottom: 1.5rem;
}

.upload-preview.active {
  display: block;
}

.upload-preview-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f0f0f0;
}

.upload-preview img,
.upload-preview video {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.upload-preview-remove {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.upload-preview-remove:hover {
  background: var(--error);
  transform: scale(1.1);
}

/* ===== Form Fields - Pastel Cat Cafe ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: 'Mali', sans-serif;
}

.form-label[data-i18n="cat_location"] {
  color: var(--error);
}

.form-label span {
  color: var(--error);
}

.form-input {
  width: 100%;
  padding: 0.95rem 0.75rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: all var(--transition-bounce);
  background: transparent;
}

.form-input:focus {
  outline: none;
  box-shadow: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== Upload Progress ===== */
.upload-progress {
  display: none;
  margin-bottom: 1.5rem;
}

.upload-progress.active {
  display: block;
}

.progress-bar {
  height: 8px;
  background: #eee;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
  width: 0%;
}

.progress-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ===== Post Detail ===== */
.post-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

.post-detail-media {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  margin-bottom: 1.5rem;
  padding: 12px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.post-detail-media img,
.post-detail-media video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.post-detail-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.post-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.post-detail-info h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-detail-address {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-detail-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-detail-snack {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.post-detail-snack .snack-btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

.post-detail-snack .snack-btn.already-snacked {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
  cursor: default;
}

.snack-btn.already-snacked:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* ===== About Page - Pastel Cat Cafe Style ===== */
.about-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.about-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  background: linear-gradient(145deg, rgba(255, 205, 210, 0.3), rgba(200, 247, 220, 0.2));
  padding: 2.5rem 2rem;
  border-radius: 30px;
  border: 2px solid rgba(255, 181, 186, 0.2);
  box-shadow: 0 12px 40px rgba(255, 181, 186, 0.15);
}

.about-hero-logo {
  width: 110px;
  height: 110px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: white;
  border: 4px solid rgba(255, 181, 186, 0.25);
  box-shadow: 0 10px 30px rgba(255, 181, 186, 0.18);
  object-fit: cover;
  animation: float 3s ease-in-out infinite;
}

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

.about-hero h1 {
  margin-bottom: 0.5rem;
  font-family: 'Mali', sans-serif;
  font-size: 2.25rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.about-section {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 
    0 8px 32px rgba(255, 181, 186, 0.12),
    0 2px 8px rgba(93, 78, 78, 0.04);
  border: 2px solid rgba(255, 181, 186, 0.15);
  transition: all var(--transition-bounce);
}

.about-section:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 16px 48px rgba(255, 181, 186, 0.18),
    0 4px 12px rgba(93, 78, 78, 0.06);
}

.about-section h2 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Mali', sans-serif;
  color: var(--error);
}

.about-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(93, 78, 78, 0.1);
}

.about-footer p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
  font-family: 'Nunito', sans-serif;
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-section ul {
  list-style: none;
  margin-top: 1rem;
}

.about-section li {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 248, 240, 0.6);
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  transition: all var(--transition-fast);
}

.about-section li:hover {
  background: rgba(255, 205, 210, 0.2);
  transform: translateX(4px);
}

.about-section li span {
  font-size: 1.25rem;
}

/* ===== Share Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: #f0f0f0;
  color: var(--text-primary);
}

/* ===== Floating Elements - Cookie Burst Effect ===== */
.floating-snacks {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0;
  left: 0;
}

.floating-snack {
  position: fixed;
  font-size: 1.5rem;
  animation: float-burst 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes float-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(var(--float-x, 0), var(--float-y, -50px)) scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--float-x, 0) * 1.5), calc(var(--float-y, -50px) * 1.5)) scale(0.8) rotate(360deg);
  }
}

/* ===== Back Link ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--primary);
}
