/* ============================================================
   STUDIIT — NEON-BRUTALISM v4.0 PREMIUM - RESPONSIVE
   Mobile-first · Adaptable a desktop · Cuadrado + Bordes Neón
   ============================================================ */

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

:root {
  /* Fondo oscuro premium */
  --bg-root: #0d0d14;
  --bg-card: #13131f;
  --bg-subtle: #1a1a2a;
  --bg-input: #1e1e30;
  --bg-overlay: rgba(0, 0, 0, 0.72);

  /* Texto */
  --text-primary: #f0f0ff;
  --text-secondary: #b0b0cc;
  --text-muted: #6a6a88;

  /* Colores Neón Puros */
  --neon-purple: #7c3aed;
  --neon-cyan: #06b6d4;
  --neon-pink: #ec4899;
  --neon-amber: #f59e0b;
  --neon-green: #10b981;

  /* Tipografía */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Easing */
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --top-bar-h: 58px;
  --bottom-nav-h: 66px;
  --app-max-w: 480px;

  /* Bordes */
  --border-dim: 1px solid rgba(255, 255, 255, 0.07);
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-body);
  background-color: #080810;
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
}

/* GRID BACKGROUND */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* APP SHELL */
.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--app-max-w);
  min-height: 100vh;
  background: var(--bg-root);
  border-left: var(--border-dim);
  border-right: var(--border-dim);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* TOP BAR */
.top-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-w);
  height: var(--top-bar-h);
  background: rgba(13, 13, 20, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: var(--border-dim);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.top-bar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.top-bar__logo-icon {
  width: 30px;
  height: 30px;
  background: var(--neon-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
  flex-shrink: 0;
}

.top-bar__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.top-bar__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: var(--border-dim);
  padding: 9px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.top-bar__search:focus-within {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.top-bar__search i {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.top-bar__search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: var(--text-primary);
  min-width: 0;
}

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

/* CONTENT */
.app-content {
  flex: 1;
  margin-top: var(--top-bar-h);
  margin-bottom: var(--bottom-nav-h);
  overflow-y: auto;
  overflow-x: hidden;
}

.section--hidden {
  display: none !important;
}

.section-header {
  padding: 20px 16px 12px;
  border-bottom: var(--border-dim);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-header__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.section-fab-space {
  height: 80px;
}

/* FILTERS */
.section-filters {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: var(--border-dim);
  scrollbar-width: none;
}

.section-filters::-webkit-scrollbar {
  display: none;
}

.filter-pill,
.feed__filter {
  flex-shrink: 0;
  padding: 7px 14px;
  background: var(--bg-subtle);
  border: var(--border-dim);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.filter-pill--active,
.feed__filter--active {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.6);
  color: #c4b5fd;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

/* POST CARD */
.post-card,
.apunte-card,
.metodo-card,
.foro-card {
  background: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.22);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.12);
  padding: 16px;
  margin: 10px 12px 0;
  transition: border-color 0.25s var(--ease-smooth),
    box-shadow 0.25s var(--ease-smooth),
    transform 0.25s var(--ease-smooth);
  cursor: pointer;
}

.post-card:hover,
.post-card:active,
.apunte-card:hover,
.apunte-card:active,
.metodo-card:hover,
.metodo-card:active,
.foro-card:hover,
.foro-card:active {
  border-color: rgba(124, 58, 237, 0.75);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.5),
    0 0 24px rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}

.post-card--question {
  border-color: rgba(6, 182, 212, 0.22);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.12);
}

.post-card--question:hover,
.post-card--question:active {
  border-color: rgba(6, 182, 212, 0.75);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.5),
    0 0 24px rgba(6, 182, 212, 0.35);
}

.post-card--notes {
  border-color: rgba(245, 158, 11, 0.22);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
}

.post-card--notes:hover,
.post-card--notes:active {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.5),
    0 0 24px rgba(245, 158, 11, 0.35);
}

.post-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* SUBJECT TAGS */
.subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid;
  letter-spacing: 0.01em;
}

.subject-tag--violet {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border-color: rgba(124, 58, 237, 0.4);
}

.subject-tag--cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.4);
}

.subject-tag--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
}

.subject-tag--pink {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
  border-color: rgba(236, 72, 153, 0.4);
}

.subject-tag--green {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

/* AUTHOR AVATAR */
.author-avatar {
  width: 22px;
  height: 22px;
  font-size: 0.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.author-avatar--violet {
  background: rgba(124, 58, 237, 0.25);
  color: #c4b5fd;
}

.author-avatar--cyan {
  background: rgba(6, 182, 212, 0.25);
  color: #67e8f9;
}

.author-avatar--amber {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.author-avatar--pink {
  background: rgba(236, 72, 153, 0.25);
  color: #f9a8d4;
}

.author-avatar--green {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-card__excerpt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-card__bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* VOTE GROUP */
.vote-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-subtle);
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vote-btn {
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  position: relative;
  flex-shrink: 0;
}

.vote-btn--up {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.vote-btn:active {
  background: rgba(124, 58, 237, 0.2);
  box-shadow: inset 0 0 12px rgba(124, 58, 237, 0.4);
}

.vote-btn:hover {
  color: var(--text-primary);
}

.vote-btn--voted {
  background: rgba(124, 58, 237, 0.25) !important;
  color: #c4b5fd !important;
  box-shadow: inset 0 0 10px rgba(124, 58, 237, 0.35) !important;
}

.vote-btn__count {
  min-width: 36px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0 4px;
  color: var(--text-secondary);
}

/* COMMENT BUTTON */
.comment-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.comment-btn:hover {
  border-color: rgba(6, 182, 212, 0.4);
  color: #67e8f9;
}

.comment-btn i {
  font-size: 15px;
  flex-shrink: 0;
}

/* SOLVED BADGE */
.solved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 8px;
  flex-shrink: 0;
}

/* FAB */
.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 14px);
  right: 14px;
  width: 52px;
  height: 52px;
  background: var(--neon-purple);
  color: #fff;
  border: none;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.55),
    0 0 40px rgba(124, 58, 237, 0.2);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  transition: transform 0.2s var(--ease-snap), box-shadow 0.2s;
}

.fab:hover,
.fab:active {
  transform: scale(1.08) rotate(45deg);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.8),
    0 0 60px rgba(124, 58, 237, 0.35);
}

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-w);
  height: var(--bottom-nav-h);
  background: rgba(13, 13, 20, 0.95);
  backdrop-filter: blur(20px);
  border-top: var(--border-dim);
  display: flex;
  align-items: stretch;
  z-index: 900;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.18s;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.bottom-nav__item:last-child {
  border-right: none;
}

.bottom-nav__item i {
  font-size: 22px;
  line-height: 1;
  transition: text-shadow 0.18s;
}

.bottom-nav__item--active {
  color: #c4b5fd !important;
}

.bottom-nav__item--active i {
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.8);
}

.bottom-nav__item--active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--neon-purple);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.9);
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 1100;
  backdrop-filter: blur(6px);
}

.modal-overlay--open {
  display: block;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--bg-root);
  flex-direction: column;
}

.modal--open {
  display: flex;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: var(--border-dim);
}

.modal__close {
  width: 36px;
  height: 36px;
  background: var(--bg-subtle);
  border: var(--border-dim);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.modal__form {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.5px;
}

.modal__input,
.modal__select,
.modal__textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal__input:focus,
.modal__select:focus,
.modal__textarea:focus {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.modal__type-chips {
  display: flex;
  gap: 8px;
}

.type-chip {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.type-chip--active {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--neon-purple);
  color: #c4b5fd;
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.modal__cancel-btn {
  flex: 1;
  padding: 12px;
  background: var(--bg-subtle);
  border: var(--border-dim);
  color: var(--text-muted);
  font-weight: 700;
}

.modal__submit-btn {
  flex: 2;
  padding: 12px;
  background: var(--neon-purple);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: box-shadow 0.2s;
}

.modal__submit-btn:hover {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* TOAST */
.s-toast {
  position: fixed;
  top: calc(var(--top-bar-h) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-subtle);
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  color: var(--text-primary);
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.3s var(--ease-snap);
  z-index: 2000;
}

.s-toast--in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* LIGHT THEME */
body.light-theme {
  --bg-root: #f4f4f8;
  --bg-card: #ffffff;
  --bg-subtle: #eef0f6;
  --bg-input: #e2e6f0;
  --text-primary: #1e1e2f;
  --text-secondary: #4a4a68;
  --text-muted: #7c7c98;
  --border-dim: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #f0f2f8;
}

/* BUTTONS */
.btn {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  background: var(--neon-purple);
  color: white;
}

.btn--primary:hover {
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.btn--ghost {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: var(--border-dim);
}

.btn--ghost:hover {
  border-color: var(--neon-purple);
  color: var(--text-primary);
}

.btn--sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* GRIDS */
.apuntes-grid,
.metodos-grid {
  display: flex;
  flex-direction: column;
}

/* PROFILE */
.profile-hero {
  display: flex;
  gap: 16px;
  padding: 24px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%,
      rgba(6, 182, 212, 0.05) 100%);
  border-bottom: var(--border-dim);
}

.profile-hero__avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: white;
  flex-shrink: 0;
}

.profile-hero__info {
  flex: 1;
  min-width: 0;
}

.profile-hero__name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.profile-hero__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.profile-xp-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-xp-bar-wrapper {
  height: 6px;
  background: rgba(26, 26, 42, 0.8);
  overflow: hidden;
}

.profile-xp-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  width: 0%;
  transition: width 0.3s ease;
}

.profile-xp-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-block {
  padding: 24px 16px;
  border-bottom: var(--border-dim);
}

.profile-block__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-edit-row {
  display: flex;
  gap: 8px;
}

.profile-save-btn {
  padding: 8px 16px;
  background: var(--neon-purple);
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.color-picker,
.theme-picker,
.lang-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.color-swatch:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.color-swatch--violet {
  background: rgba(124, 58, 237, 0.4);
}

.color-swatch--cyan {
  background: rgba(6, 182, 212, 0.4);
}

.color-swatch--amber {
  background: rgba(245, 158, 11, 0.4);
}

.color-swatch--pink {
  background: rgba(236, 72, 153, 0.4);
}

.color-swatch--green {
  background: rgba(16, 185, 129, 0.4);
}

.color-swatch--dark {
  background: rgba(100, 100, 120, 0.4);
}

.color-swatch--active {
  border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.theme-btn,
.lang-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg-subtle);
  border: var(--border-dim);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.theme-btn:hover,
.lang-btn:hover {
  border-color: var(--neon-purple);
}

.theme-btn--active,
.lang-btn--active {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  border-color: var(--neon-purple);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--bg-subtle);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 12px;
  text-align: center;
}

.stat-card__num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #c4b5fd;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pomodoro-timer-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.pomodoro-timer__time {
  font-size: 3rem;
  font-weight: 800;
  color: var(--neon-purple);
  font-family: var(--font-display);
}

/* FEED LIST */
.feed-list {
  display: flex;
  flex-direction: column;
}

/* FORO LIST */
.foro-list {
  display: flex;
  flex-direction: column;
}

.foro-card {
  background: var(--bg-card);
  border: 1px solid rgba(236, 72, 153, 0.22);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.08);
  padding: 16px;
  margin: 10px 12px 0;
  transition: border-color 0.25s var(--ease-smooth),
    box-shadow 0.25s var(--ease-smooth),
    transform 0.25s var(--ease-smooth);
}

.foro-card:hover,
.foro-card:active {
  border-color: rgba(236, 72, 153, 0.75);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.5),
    0 0 24px rgba(236, 72, 153, 0.35);
  transform: translateY(-2px);
}

/* LOAD MORE */
.load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 24px);
  margin: 14px 12px;
  padding: 14px;
  background: var(--bg-subtle);
  border: 1px solid rgba(124, 58, 237, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.load-more-btn:hover {
  border-color: rgba(124, 58, 237, 0.6);
  color: #c4b5fd;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.15);
}

/* FAV BUTTON */
.fav-btn {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-dim) !important;
  padding: 6px 10px !important;
  color: var(--text-muted) !important;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
}

.fav-btn:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (min-width: 600px) {
  :root {
    --app-max-w: 768px;
  }
  
  .section-header {
    padding: 24px 24px 16px;
  }
  
  .post-card,
  .apunte-card,
  .metodo-card,
  .foro-card {
    margin: 12px 16px 0;
  }
  
  .profile-hero {
    padding: 32px 24px;
    gap: 20px;
  }
  
  .profile-block {
    padding: 32px 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP
   ======================================== */
@media (min-width: 1024px) {
  body {
    align-items: center;
  }
  
  .app-shell {
    max-width: 100%;
    min-height: auto;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.1);
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
  }
  
  .top-bar {
    position: static;
    transform: none;
    left: auto;
    width: 100%;
    max-width: none;
    height: 70px;
    grid-column: 1 / 3;
    border-right: var(--border-dim);
    padding: 0 24px;
    gap: 24px;
  }
  
  .top-bar__search {
    max-width: 400px;
  }
  
  .bottom-nav {
    position: static;
    transform: none;
    left: auto;
    width: auto;
    max-width: none;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    border-top: none;
    border-right: var(--border-dim);
    gap: 0;
  }
  
  .bottom-nav__item {
    flex: none;
    height: 50px;
    width: 100%;
    flex-direction: row;
    gap: 12px;
    padding-left: 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
  }
  
  .bottom-nav__item:last-child {
    border-bottom: none;
  }
  
  .bottom-nav__item i {
    font-size: 20px;
  }
  
  .bottom-nav__item--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    height: auto;
    background: var(--neon-purple);
    box-shadow: -2px 0 8px rgba(124, 58, 237, 0.9);
  }
  
  .app-content {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 1200px;
    padding: 30px 40px 30px 24px;
    overflow-x: auto;
  }
  
  .fab {
    bottom: 30px;
    right: 30px;
  }
  
  .apuntes-grid,
  .metodos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
  }
  
  .post-card,
  .apunte-card,
  .metodo-card,
  .foro-card {
    margin: 0;
  }
  
  .profile-hero {
    grid-column: 2;
    grid-row: 2;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
  }
  
  .profile-hero__avatar {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
  }
  
  .profile-block {
    max-width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section-filters {
    gap: 12px;
  }
  
  .filter-pill,
  .feed__filter {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .top-bar,
  .bottom-nav,
  .fab,
  .modal-overlay,
  .modal {
    display: none !important;
  }
  
  .app-content {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* ========================================
   DARK MODE PREFERENCES
   ======================================== */
@media (prefers-color-scheme: light) {
  body:not(.light-theme) {
    --bg-root: #f4f4f8;
    --bg-card: #ffffff;
    --bg-subtle: #eef0f6;
    --bg-input: #e2e6f0;
    --text-primary: #1e1e2f;
    --text-secondary: #4a4a68;
    --text-muted: #7c7c98;
    --border-dim: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
