/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #f5f5f5;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --primary: #22c55e;
  --primary-foreground: #ffffff;
  --muted: #e5e5e5;
  --muted-foreground: #737373;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --success: #22c55e;
  --success-foreground: #ffffff;
  --border: #e5e5e5;
  --radius: 0.75rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: var(--background);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

.youtube-logo {
  height: 2.25rem;
  width: auto;
}

.balance-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 2px dashed rgba(34, 197, 94, 0.5);
  background-color: var(--card);
}

.wallet-icon {
  width: 1rem;
  height: 1rem;
  color: var(--success);
}

.balance-amount {
  color: var(--success);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Main Content */
.main-content {
  padding: 1rem;
  max-width: 28rem;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* Video Player */
.video-player-container {
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
}

/* Video Info */
.video-info {
  margin-top: 0.75rem;
  padding: 0 0;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.4;
}

.video-views {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.channel-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.channel-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.channel-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.partner-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #2563eb;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.check-icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* Interaction Card */
.interaction-card {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  padding: 1rem;
  margin-top: 1rem;
}

.reply-text {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.question-text {
  text-align: center;
  color: var(--foreground);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.buttons-container {
  display: flex;
  gap: 37px;
}

.btn-not-relevant,
.btn-relevant {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.75rem 0.25rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-not-relevant {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.btn-not-relevant:hover {
  background-color: #dc2626;
}

.btn-relevant {
  background-color: #22c55e;
  color: white;
}

.btn-relevant:hover {
  background-color: #16a34a;
}

.thumb-icon {
  width: 1rem;
  height: 1rem;
}

/* Blocked Content */
.blocked-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.blocked-image {
  width: 100%;
  border-radius: 0.5rem;
}

/* Completion Screen */
.completion-screen {
  text-align: center;
  padding: 1.5rem 0;
}

.congrats-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.congrats-subtitle {
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.won-container {
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.won-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.check-box {
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--primary);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon-small {
  width: 0.875rem;
  height: 0.875rem;
  color: white;
}

.won-text {
  color: var(--foreground);
  font-weight: 700;
  font-size: 1rem;
}

.surveys-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.cta-text {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.btn-withdraw {
  width: 100%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1rem;
}

.btn-withdraw:hover {
  background-color: #16a34a;
}

/* Withdrawal Screen */
.withdrawal-screen {
  padding: 1rem 0;
}

.withdrawal-headline {
  text-align: center;
  color: var(--foreground);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.withdrawal-video-container {
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
}

.sound-check {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Facebook Comments */
.facebook-comments {
  background-color: var(--card);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 1rem;
}

.fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
}

.fb-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fb-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.fb-title {
  font-weight: 500;
  color: var(--foreground);
  font-size: 0.875rem;
}

.fb-count {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.fb-progress-bar {
  height: 0.25rem;
  background-color: var(--muted);
  width: 100%;
}

.fb-progress-fill {
  height: 100%;
  background-color: #1877F2;
  width: 0%;
  transition: width 0.1s linear;
}

.fb-comment {
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  transition: opacity 0.3s;
}

.fb-comment.fade-out {
  opacity: 0;
}

.comment-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-name {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.875rem;
  display: block;
}

.comment-time {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  display: block;
}

.comment-text {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #000000;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.popup-content {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem;
  max-width: 24rem;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-checkmark {
  display: block;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1rem;
}

.popup-amount-container {
  background-color: #dcfce7;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.popup-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #15803d;
}

.popup-subtitle {
  font-size: 0.875rem;
  color: #16a34a;
  margin-top: 0.25rem;
}

.popup-keep-text {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Animations */
@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-pulse-scale {
  animation: pulse-scale 1.5s ease-in-out infinite;
}

/* Welcome Screen */
.welcome-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  padding: 1rem 0;
}

.welcome-logo {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  margin-bottom: 2rem;
}

.welcome-youtube-logo {
  height: 2.5rem;
  width: auto;
}

.welcome-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0 0.5rem;
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.welcome-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.welcome-cta {
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.6;
}

.welcome-button-container {
  padding: 1rem 0 2rem;
}

.btn-start-now {
  width: 100%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1.125rem;
}

.btn-start-now:hover {
  background-color: #16a34a;
}

/* Responsive */
@media (max-width: 480px) {
  .header-content,
  .main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
