/* ============================================
   SIMPLIFIED UI - WEEK 2
   ============================================
   Philosophy: Content First, Features Second
   Meme takes 70%+ of viewport
   ============================================ */

/* Content-first layout */
.simplified-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
}

.simplified-mode .meme-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Meme takes center stage - 70% viewport */
.simplified-mode .meme-display {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.simplified-mode .meme-display img,
.simplified-mode .meme-display video {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* Minimal action bar - floats over meme */
.simplified-action-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.simplified-action-bar button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.simplified-action-bar button:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.simplified-action-bar button.active {
  background: rgba(59, 130, 246, 0.8);
}

/* Keyboard shortcut hints */
.shortcut-hint {
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  margin-left: 4px;
}

/* Collapsible gamification section */
.gamification-collapsed {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 12px;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s;
}

.gamification-collapsed:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gamification-collapsed .stats-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.gamification-expanded {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  z-index: 1001;
  overflow-y: auto;
  padding: 20px;
  animation: slideInRight 0.3s;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.gamification-expanded .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

/* Progressive disclosure - show after 5 memes */
.feature-unlock {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  text-align: center;
  z-index: 1002;
  animation: fadeIn 0.3s;
  max-width: 400px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.feature-unlock h3 {
  margin: 0 0 12px 0;
  font-size: 24px;
}

.feature-unlock p {
  margin: 0 0 20px 0;
  color: #666;
}

.feature-unlock button {
  background: #3B82F6;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

/* Minimal header */
.simplified-header {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 999;
}

.simplified-header .logo {
  font-size: 20px;
  font-weight: 700;
  color: #1F2937;
  text-decoration: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .simplified-mode .meme-display {
    background: #1F2937;
  }
  
  .gamification-collapsed,
  .gamification-expanded,
  .feature-unlock {
    background: #1F2937;
    color: white;
  }
  
  .simplified-header .logo {
    color: white;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .simplified-action-bar {
    bottom: 10px;
    padding: 10px 16px;
    gap: 12px;
  }
  
  .shortcut-hint {
    display: none;
  }
  
  .gamification-expanded {
    width: 100%;
  }
  
  .simplified-mode .meme-display {
    min-height: 60vh;
  }
  
  .simplified-mode .meme-display img,
  .simplified-mode .meme-display video {
    max-height: 60vh;
  }
}

/* Accessibility */
.simplified-action-bar button:focus,
.gamification-collapsed:focus {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* Loading state */
.simplified-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
}
