/* YouFlix popup styles */

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

body {
  width: 320px;
  background-color: #141414;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  overflow: hidden;
}

.popup-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header */
.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #E50914;
  letter-spacing: 1.5px;
}

.badge-tag {
  background: rgba(229, 9, 20, 0.2);
  color: #E50914;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(229, 9, 20, 0.4);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #A3A3A3;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #46D369;
  box-shadow: 0 0 8px rgba(70, 211, 105, 0.8);
}

.status-indicator.disabled .status-dot {
  background-color: #737373;
  box-shadow: none;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Master Switch */
.master-switch-box {
  background: #1F1F1F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.switch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
}

.switch-desc {
  font-size: 11px;
  color: #8C8C8C;
}

/* Toggle Switches */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #383838;
  transition: 0.3s cubic-bezier(0.2, 0.85, 0.4, 1.2);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.2, 0.85, 0.4, 1.2);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked + .slider {
  background-color: #E50914;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.toggle-switch.small {
  width: 36px;
  height: 20px;
}

.toggle-switch.small .slider:before {
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
}

.toggle-switch.small input:checked + .slider:before {
  transform: translateX(16px);
}

/* Settings Section */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  color: #6E6E6E;
  letter-spacing: 1px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-title {
  font-size: 12px;
  font-weight: 600;
  color: #E0E0E0;
}

.item-desc {
  font-size: 10px;
  color: #737373;
}

/* Support card */
.donate-box {
  background: #1c1c1c;
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donate-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.donate-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.donate-desc {
  font-size: 10px;
  color: #888;
}

.donate-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.donate-chip {
  flex: 1;
  background: #2b2b2b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.donate-chip:hover {
  background: #383838;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.donate-chip.popular {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(229, 9, 20, 0.15);
  color: #fff;
}

.btn-donate-link {
  flex: 1.4;
  background: #E50914;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-align: center;
}

.btn-donate-link:hover {
  background: #f40612;
  transform: translateY(-1px);
}

/* Actions */
.actions-box {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #E50914;
  color: #FFF;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background-color: #F40612;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #262626;
  color: #E5E5E5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #333333;
}

/* Footer */
.popup-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: #666666;
  margin-top: 4px;
}

.footer-link {
  color: #888888;
  text-decoration: none;
}

.footer-link:hover {
  color: #E50914;
}
