.pensamientos-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-top: 2rem;
}

/* Layout */
.pensamientos-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

/* Sidebar */
.pensamientos-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

/* Counter */
.counter-ring {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(88, 28, 135, 0.15), transparent 70%);
  border: 2px solid var(--neon-violet-dim);
  box-shadow: 0 0 30px var(--neon-violet-dim), inset 0 0 30px rgba(88, 28, 135, 0.1);
  animation: counter-pulse 4s ease-in-out infinite;
}

@keyframes counter-pulse {
  0%, 100% { box-shadow: 0 0 30px var(--neon-violet-dim), inset 0 0 30px rgba(88, 28, 135, 0.1); }
  50% { box-shadow: 0 0 50px var(--neon-violet), inset 0 0 40px rgba(88, 28, 135, 0.2); }
}

.counter-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--neon-violet);
  text-shadow: 0 0 30px var(--neon-violet-dim);
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.counter-number.bump {
  animation: counter-bump 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes counter-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); color: #fff; text-shadow: 0 0 40px var(--neon-violet); }
  100% { transform: scale(1); }
}

.counter-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  text-align: center;
}

.btn-add-thought {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--neon-violet-dim);
  background: rgba(88, 28, 135, 0.1);
  color: var(--neon-violet);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-thought:hover {
  background: var(--neon-violet-dim);
  border-color: var(--neon-violet);
  box-shadow: 0 0 25px var(--neon-violet-dim);
  transform: scale(1.1);
}

.btn-add-thought:active {
  transform: scale(0.95);
}

.btn-add-icon {
  line-height: 1;
  margin-top: -2px;
}

/* Thought Form */
.thought-form-section {
  width: 100%;
  animation: form-enter 0.3s ease forwards;
}

@keyframes form-enter {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.thought-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem;
}

.thought-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease;
}

.thought-input:focus {
  border-color: var(--neon-violet-dim);
}

.thought-input::placeholder {
  color: var(--text-muted);
}

.thought-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.btn-save-thought {
  position: relative;
}

/* History */
.history-section {
  min-width: 0;
}

.history-date-group {
  margin-bottom: 1.5rem;
}

.history-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.6rem;
  text-align: center;
}

.history-thought {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.3s ease;
  animation: thought-enter 0.3s ease backwards;
}

.history-thought:hover {
  border-color: var(--neon-violet-dim);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes thought-enter {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.history-thought-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

.history-thought-empty {
  font-style: italic;
  color: var(--text-muted);
}

.history-thought-time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.history-thought-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.15rem;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.history-thought-delete:hover {
  color: #ff4757;
}

.thoughts-history {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.thoughts-history::-webkit-scrollbar {
  width: 4px;
}

.thoughts-history::-webkit-scrollbar-thumb {
  background: var(--neon-violet-dim);
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 700px) {
  .pensamientos-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pensamientos-sidebar {
    position: static;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .counter-ring {
    width: 140px;
    height: 140px;
  }

  .counter-number {
    font-size: 2.8rem;
  }

  .btn-add-thought {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}
