/**
 * Text Enlarger Toggle Button Styles
 * Minimal CSS for the toggle button appearance
 */

.wcg-text-enlarger {
  position: fixed;
  top: 250px; /* Directly below dark mode toggle (no gap) */
  right: 0;
  z-index: 1000;
}

.wcg-text-enlarger__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 0 0 0 8px; /* Bottom-left rounded, other corners square */
  background-color: var(--c-primary, #001489);
  color: var(--c-text-inverse, white);
  border: 2px solid var(--c-accent, #4c4c4c);
  border-right: none; /* No border on wall side */
  border-top: none; /* No border where it joins top button */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.wcg-text-enlarger__button:hover {
  box-shadow: -4px 2px 12px rgba(0, 0, 0, 0.3);
}

.wcg-text-enlarger__button:focus {
  outline: none;
}

.wcg-text-enlarger__icon {
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  transition: opacity 0.3s ease;
}

/* Show small A in normal mode */
.wcg-text-enlarger[data-text-size='normal'] .wcg-text-enlarger__icon--normal {
  display: block;
  font-size: 1.2rem;
}

.wcg-text-enlarger[data-text-size='normal'] .wcg-text-enlarger__icon--enlarged {
  display: none;
}

/* Show large A in enlarged mode */
.wcg-text-enlarger[data-text-size='enlarged'] .wcg-text-enlarger__icon--normal {
  display: none;
}

.wcg-text-enlarger[data-text-size='enlarged'] .wcg-text-enlarger__icon--enlarged {
  display: block;
  font-size: 1.8rem;
}

/* Dark mode compatibility */
[data-theme='dark'] .wcg-text-enlarger__button {
  background-color: #5bb4e5;
  color: #1a1a1a;
  border-color: #7dc4eb;
}
