/* Estilos para el blog de SatoshiLab */

/* Layout general */
.blog-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Artículo */
article {
  background: rgba(30, 30, 40, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.article-header {
  margin-bottom: 40px;
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reading-time::before {
  content: "•";
  margin-right: 20px;
}

.article-header h1 {
  font-size: 2.8rem;
  margin: 0 0 30px;
  line-height: 1.2;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.author-info {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 15px;
  margin-top: 30px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.author-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.author-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.author-role {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contenido del artículo */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  color: var(--gold);
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: white;
}

.article-content ul, 
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 2rem 0;
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
}

.article-content pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: monospace;
}

.article-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

.article-content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.article-content a:hover {
  border-color: var(--gold);
}

/* Footer del artículo */
.article-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.2s ease;
}

.article-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-share span {
  color: var(--muted);
  font-size: 0.9rem;
}

.share-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s ease;
}

.share-button svg {
  width: 18px;
  height: 18px;
}

.share-button:hover {
  transform: translateY(-2px);
}

.share-button.twitter:hover {
  background: rgba(29, 161, 242, 0.1);
  border-color: rgba(29, 161, 242, 0.3);
  color: #1DA1F2;
}

.share-button.facebook:hover {
  background: rgba(66, 103, 178, 0.1);
  border-color: rgba(66, 103, 178, 0.3);
  color: #4267B2;
}

.share-button.whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25D366;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.related-posts {
  background: rgba(30, 30, 40, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
}

.related-posts h3 {
  font-size: 1.3rem;
  margin: 0 0 20px;
  color: white;
}

.related-post {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.related-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-post-image {
  width: 80px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-post-content {
  display: flex;
  flex-direction: column;
}

.related-post-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px;
  line-height: 1.4;
}

.related-post-title a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-post-title a:hover {
  color: var(--gold);
}

.related-post-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.cta-box {
  background: linear-gradient(135deg, rgba(255, 192, 53, 0.2), rgba(255, 140, 50, 0.2));
  border-radius: 20px;
  border: 1px solid rgba(255, 192, 53, 0.2);
  padding: 30px;
  text-align: center;
}

.cta-box h4 {
  font-size: 1.3rem;
  margin: 0 0 15px;
  color: var(--gold);
}

.cta-box p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.cta-button {
  display: inline-block;
  background: var(--gradient-primary);
  color: #1a0f26;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 var(--primary-end), 0 10px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--primary-end), 0 12px 20px rgba(0, 0, 0, 0.25);
}

/* Listado de artículos */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: rgba(30, 30, 40, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 25px;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.blog-card-title {
  font-size: 1.3rem;
  margin: 0 0 15px;
  line-height: 1.4;
}

.blog-card-title a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--gold);
}

.blog-card-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* Paginación */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.page-link.active {
  background: var(--gold);
  color: #1a0f26;
  font-weight: 600;
  border-color: var(--gold);
}

/* Responsive */
@media (max-width: 992px) {
  .blog-content {
    grid-template-columns: 1fr;
  }
  
  .article-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  article {
    padding: 30px 20px;
  }
  
  .article-header h1 {
    font-size: 1.8rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .article-footer {
    flex-direction: column;
    gap: 20px;
  }
  
  .article-tags {
    justify-content: center;
  }
  
  .article-share {
    justify-content: center;
  }
}
