/* Estilos Tailwind */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Variáveis globais de cores */
:root {
  --color-lotepro-blue: #013567;
  --color-lotepro-green: #097e32;
}

/* Estilos para o conteúdo dos artigos */
.article-content {
  @apply text-gray-800 leading-relaxed;
}

.article-content h1 {
  @apply text-3xl font-bold text-lotepro-blue mt-8 mb-4;
}

.article-content h2 {
  @apply text-2xl font-bold text-lotepro-blue mt-8 mb-4;
}

.article-content h3 {
  @apply text-xl font-bold text-lotepro-blue mt-6 mb-3;
}

.article-content h4 {
  @apply text-lg font-bold text-lotepro-blue mt-5 mb-2;
}

.article-content p {
  @apply mb-4;
}

.article-content a {
  @apply text-lotepro-green hover:text-lotepro-blue underline;
}

.article-content ul {
  @apply list-disc pl-6 mb-4;
}

.article-content ol {
  @apply list-decimal pl-6 mb-4;
}

.article-content li {
  @apply mb-2;
}

.article-content blockquote {
  @apply pl-4 border-l-4 border-lotepro-green italic my-4;
}

.article-content pre {
  @apply bg-gray-100 p-4 rounded-lg overflow-x-auto mb-4;
}

.article-content code {
  @apply bg-gray-100 px-1 py-0.5 rounded text-sm;
}

.article-content table {
  @apply w-full border-collapse mb-6;
}

.article-content th {
  @apply bg-gray-100 text-left p-2 border;
}

.article-content td {
  @apply p-2 border;
}

.article-content img {
  @apply max-w-full h-auto rounded-lg my-6;
}

/* Estilos para dicas, avisos e alertas */
.tip, .info, .warning, .danger {
  @apply p-4 mb-4 rounded-lg;
}

.tip {
  @apply bg-green-50 text-green-800 border-l-4 border-green-500;
}

.info {
  @apply bg-blue-50 text-blue-800 border-l-4 border-blue-500;
}

.warning {
  @apply bg-yellow-50 text-yellow-800 border-l-4 border-yellow-500;
}

.danger {
  @apply bg-red-50 text-red-800 border-l-4 border-red-500;
}

/* Classes de utilidade personalizadas */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}