.textarea-fullscreen-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.textarea-fullscreen-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--cream, #FAF8F4);
  border: 1px solid var(--card-border, #EFECE6);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark, #1A1D24);
  transition: all 0.2s;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.textarea-fullscreen-btn:hover {
  background: var(--gold-soft, #FDF9EE);
  color: var(--gold-dark, #B68D40);
  border-color: var(--gold, #D4AF37);
}

.textarea-fullscreen-wrapper.is-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #fff;
  padding: 40px;
  box-sizing: border-box;
  animation: fullscreenIn 0.2s ease-out;
}

.textarea-fullscreen-wrapper.is-fullscreen textarea {
  width: 100% !important;
  height: 100% !important;
  resize: none !important;
  font-size: 16px;
  line-height: 1.6;
  padding: 24px;
  border: 1px solid var(--card-border, #EFECE6);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.textarea-fullscreen-wrapper.is-fullscreen .textarea-fullscreen-btn {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  border-radius: 50%;
  background: var(--dark, #1A1D24);
  color: #fff;
  border: none;
}

.textarea-fullscreen-wrapper.is-fullscreen .textarea-fullscreen-btn:hover {
  background: var(--gold-dark, #B68D40);
}

body.has-fullscreen-textarea {
  overflow: hidden !important;
}

@keyframes fullscreenIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .textarea-fullscreen-wrapper.is-fullscreen {
    padding: 16px;
    padding-top: 60px;
  }
  .textarea-fullscreen-wrapper.is-fullscreen textarea {
    padding: 16px;
  }
}
