/**
 * Universal Components - Structure Only
 * Used across all pages: theme toggle, icons, empty states, logo
 * Colors are defined in colors.css
 */

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* ===== ICON SYSTEM ===== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  font-size: inherit;
  line-height: 1;
}

.icon-sun,
.icon-moon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

/* Default state: dark mode (show moon icon) */
.icon-sun {
  opacity: 0;
  position: absolute;
}

.icon-moon {
  opacity: 1;
}

/* When light mode is active, show sun icon */
.light-mode .icon-sun {
  opacity: 1;
}

.light-mode .icon-moon {
  opacity: 0;
}

/* ===== PLACEHOLDER ICON ===== */
.placeholder-icon {
  font-size: 3rem;
  line-height: 1;
  opacity: 0.6;
  user-select: none;
}

/* ===== EMPTY STATES ===== */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  max-width: 500px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: var(--space-6);
  opacity: 0.5;
}

.empty-state-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.empty-state-text {
  font-size: var(--text-base);
  line-height: 1.6;
  opacity: 0.7;
}

/* ===== LOGO TEXT ===== */
.logo-text {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-base);
}

.logo-text:hover {
  opacity: 0.8;
}

/* ===== NEWSLETTER MESSAGE ===== */
.newsletter-message {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
  border: 1px solid transparent;
}

.newsletter-message.success {
  border-color: transparent;
}

.newsletter-message.error {
  border-color: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .theme-toggle {
    width: 48px;
    height: 48px;
  }

  .empty-state {
    padding: var(--space-12) var(--space-6);
  }

  .empty-state-icon {
    font-size: 3rem;
  }

  .empty-state-title {
    font-size: var(--text-xl);
  }
}
