@font-face {
  font-family: 'Monocraft';
  src: url('/fonts/Monocraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: 'Monocraft', monospace;
  background: #fafafa;
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.header {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 2px solid #e0e0e0;
}

.header h1 {
  font-size: 24px;
  color: #111;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #666;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

button {
  padding: 8px 16px;
  background: white;
  color: #111;
  border: 2px solid #111;
  border-radius: 2px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background: #111;
  color: white;
}

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

.prompt-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  padding: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.prompt-loading {
  font-size: 14px;
  color: #888;
}

.prompt-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.prompt-day {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prompt-text {
  font-size: 36px;
  color: #111;
  font-weight: normal;
}

.prompt-actions {
  margin-top: 8px;
}

.btn-create {
  padding: 12px 24px;
  background: #111;
  color: white;
  border: 2px solid #111;
  font-size: 14px;
}

.btn-create:hover {
  background: #333;
  border-color: #333;
}

.gallery {
  margin-top: 32px;
}

.gallery h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #111;
}

.gallery-loading {
  text-align: center;
  padding: 48px;
  font-size: 14px;
  color: #888;
}

.day-section {
  margin-bottom: 48px;
}

.day-divider {
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 32px 0 24px 0;
  margin-bottom: 24px;
  font-weight: normal;
}

.day-divider::before {
  content: '───────── ';
  color: #999;
}

.day-divider::after {
  content: ' ─────────';
  color: #999;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.no-submissions {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  font-size: 14px;
  color: #888;
}

.submission-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.submission-card:hover {
  border-color: #111;
}

.submission-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.submission-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.submission-info {
  padding: 12px;
  border-top: 2px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.submission-meta {
  flex: 1;
  min-width: 0;
}

.submission-author {
  font-size: 13px;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.submission-author:hover {
  color: #666;
  text-decoration: underline;
}

.submission-time {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.streak-icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
}

.heart-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: #888;
}

.heart-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  transform: scale(1.1);
}

.heart-btn[data-hearted="true"] .heart-icon {
  color: #e74c3c;
}

.heart-icon {
  font-size: 16px;
  transition: all 0.2s ease;
}

.heart-btn[data-hearted="true"] .heart-icon {
  content: '♥';
}

.heart-count {
  font-size: 12px;
  font-family: 'Monocraft', monospace;
  color: #666;
}

/* Frosted overlay for locked submissions */
.submission-card.frosted .heart-btn {
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}

.submission-card.frosted .submission-image {
  position: relative;
}

.submission-card.frosted .submission-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
  pointer-events: none;
}

.submission-card.frosted .submission-image img {
  filter: blur(16px) saturate(10);
}

.submission-card.frosted:hover .submission-image::after {
  content: 'click to reveal';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}
