/* ================================
   DIARIO DE VIDA - MINIMAL STYLE
   ================================ */

.diary-section {
  width: 100%;
  padding: 4rem 2rem;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.diary-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.diary-header {
  text-align: left;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
}

.diary-title {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.diary-subtitle {
  color: #999999;
  font-size: 0.95rem;
  font-weight: 400;
}

.diary-feed {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.diary-post {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease-out;
  position: relative;
}

.diary-post:hover {
  border-color: #3a3a3a;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

.diary-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.diary-post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.diary-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
}

.diary-author-info h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.diary-post-time {
  color: #666666;
  font-size: 0.85rem;
}

.diary-post-content {
  margin-bottom: 1rem;
}

.diary-post-text {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.diary-post-image {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid #2a2a2a;
}

.diary-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.diary-post-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #1a1a1a;
}

.diary-post-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #666666;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.diary-post-action:hover {
  color: #ffffff;
}

.diary-post-action svg {
  width: 18px;
  height: 18px;
}

.diary-loading {
  text-align: center;
  padding: 3rem;
  color: #666666;
}

.diary-loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid #2a2a2a;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.diary-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #666666;
}

.diary-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.diary-new-post-indicator {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  color: #000000;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 1000;
  font-weight: 500;
  font-size: 0.9rem;
  display: none;
  transition: all 0.2s ease;
}

.diary-new-post-indicator:hover {
  background: #e0e0e0;
}

.diary-new-post-indicator.show {
  display: block;
}

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

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


/* Responsive */
@media (max-width: 768px) {
  .diary-section {
    padding: 2rem 1rem;
  }

  .diary-title {
    font-size: 2rem;
  }

  .diary-subtitle {
    font-size: 1rem;
  }

  .diary-post {
    padding: 1.5rem;
  }

  .diary-post-text {
    font-size: 1rem;
  }

  .diary-new-post-indicator {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}
