/* ============================================
   QvaSolar — Solar Calculator PWA Styles
   Theme: Dark Solar (Black + Yellow + Electric Blue)
   ============================================ */

/* ── CSS Variables ── */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #1e1e2e;
  --border-focus: #fbbf24;
  --text-primary: #f0f0f5;
  --text-secondary: #8b8ba3;
  --text-muted: #5c5c77;
  --accent-yellow: #fbbf24;
  --accent-yellow-dim: rgba(251, 191, 36, 0.15);
  --accent-blue: #22d3ee;
  --accent-green: #34d399;
  --accent-purple: #a78bfa;
  --danger: #ef4444;
  --shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  --glow-yellow: 0 0 20px rgba(251, 191, 36, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Connection Status ── */
.connection-status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--danger);
  color: white;
  text-align: center;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transform: translateY(-100%);
  transition: transform var(--transition);
}

.connection-status.visible {
  transform: translateY(0);
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent-yellow-dim);
  color: var(--accent-yellow);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.install-btn:hover {
  background: rgba(251, 191, 36, 0.25);
}

.install-btn.hidden {
  display: none;
}

/* ── Main ── */
.main {
  padding: 20px 16px 40px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 24px 0 28px;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-title .accent {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 420px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-suffix {
  position: absolute;
  right: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

input[type="number"] {
  padding-right: 44px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b8ba3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 16px;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-yellow);
}

.btn-ghost {
  display: inline-flex;
  padding: 6px 14px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-ghost:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.btn-ghost.hidden {
  display: none;
}

/* ── Results Section ── */
.results-section {
  margin-top: 28px;
  animation: fadeUp 0.4s ease-out;
}

.results-section.hidden {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-divider.small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Results Grid ── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 380px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition);
}

.result-card.energy { border-left: 3px solid var(--accent-yellow); }
.result-card.battery { border-left: 3px solid var(--accent-blue); }
.result-card.panels  { border-left: 3px solid var(--accent-green); }
.result-card.inverter { border-left: 3px solid var(--accent-purple); }

.result-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.result-card.energy .result-icon { background: var(--accent-yellow-dim); }
.result-card.battery .result-icon { background: rgba(34, 211, 238, 0.1); }
.result-card.panels .result-icon  { background: rgba(52, 211, 153, 0.1); }
.result-card.inverter .result-icon { background: rgba(167, 139, 250, 0.1); }

.result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.result-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.result-value small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Recommendation Card ── */
.recommendation-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rec-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

.rec-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.rec-text strong {
  color: var(--text-primary);
}

.rec-text .highlight {
  color: var(--accent-yellow);
  font-weight: 700;
}

/* ── History ── */
.history-section {
  margin-bottom: 8px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.empty-history {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
}

.history-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeUp 0.3s ease-out;
  font-size: 0.8rem;
}

.history-item .history-meta {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.history-item .history-energy {
  color: var(--accent-yellow);
  font-weight: 700;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer .accent {
  color: var(--accent-yellow);
}

.footer-small {
  font-size: 0.7rem;
  margin-top: 4px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── Animations ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ==========================================================================
   Nuevos Estilos de Comunidad (Reddit-like)
   ========================================================================== */

body {
  padding-bottom: 100px; /* Evitar solapamiento con el dock flotante */
}

/* Centered floating bottom dock (iOS style) */
.bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(17, 17, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 8px 16px;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 999;
  width: 90%;
  max-width: 400px;
  justify-content: space-around;
  animation: dockSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dockSlideUp {
  from {
    transform: translate(-50%, 100px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 50px;
  transition: all 0.2s ease;
  min-width: 70px;
}

.nav-item svg {
  color: inherit;
  transition: transform 0.2s ease;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--accent-yellow);
  background: var(--accent-yellow-dim);
}

.nav-item.active svg {
  transform: scale(1.1);
}

/* Tabs */
.tab-pane.hidden {
  display: none !important;
}

/* Acciones del Foro */
.forum-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-box input {
  padding-left: 38px;
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.25);
}

/* Filtros por Categoría (Chips) */
.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

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

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #0a0a0f;
}

/* Feed de Publicaciones */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-status {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  font-size: 0.9rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.post-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.post-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges */
.badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  background: var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.badge.inverter { background: rgba(167, 139, 250, 0.15); color: var(--accent-purple); border: 1px solid rgba(167, 139, 250, 0.3); }
.badge.battery { background: rgba(34, 211, 238, 0.15); color: var(--accent-blue); border: 1px solid rgba(34, 211, 238, 0.3); }
.badge.controller { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.general { background: rgba(139, 139, 163, 0.15); color: var(--text-secondary); border: 1px solid rgba(139, 139, 163, 0.3); }

.post-body-snippet {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 8px;
}

.post-meta-info {
  display: flex;
  gap: 12px;
}

.comments-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-blue);
  font-weight: 600;
}

/* Modales */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  transition: opacity var(--transition);
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  text-align: left;
}

.modal-content.large {
  max-width: 600px;
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
  padding: 0;
}

.btn-close:hover {
  color: var(--danger);
}

.modal-body {
  padding: 24px;
}

textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

/* Detalle del Componente */
.post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 16px;
}

.accent-author {
  color: var(--accent-blue);
  font-weight: 600;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.specs-grid.hidden {
  display: none !important;
}

.spec-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.75rem;
}

.spec-key {
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.spec-value {
  color: var(--text-primary);
  font-weight: 700;
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  white-space: pre-wrap;
}

/* Comentarios */
.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.comments-section h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.comment-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

#comment-author {
  width: 90px;
  flex-shrink: 0;
}

#comment-content {
  flex: 1;
}

.btn-send {
  background: var(--accent-yellow-dim);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--accent-yellow);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-send:hover {
  background: rgba(251, 191, 36, 0.25);
  color: var(--text-primary);
}

.comment-offline-notice {
  font-size: 0.75rem;
  color: var(--accent-blue);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.comment-offline-notice.hidden {
  display: none !important;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.comment-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.comment-author-name {
  color: var(--accent-blue);
  font-weight: 600;
}

.comment-body {
  color: var(--text-primary);
  line-height: 1.45;
}

.comment-pending-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-blue);
  font-size: 0.65rem;
  font-weight: 600;
}

/* Cola de Sincronización */
.sync-section {
  margin-top: 24px;
  background: rgba(34, 211, 238, 0.04);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
}

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

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.pending-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.pending-meta {
  color: var(--text-muted);
}

.spin-icon {
  animation: spin 2s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
