/**
 * Community Theme Variation CSS
 * Design focado em engajamento e interação com leitores.
 * As cores são aplicadas via PHP usando as opções do tema.
 */

/* Variáveis são definidas inline via PHP nos arquivos de template */

/* Base Layout */
.home-community {
  min-height: 100vh;
}

/* Typography */
.home-community h1,
.home-community h2,
.home-community h3,
.home-community h4,
.home-community h5,
.home-community h6 {
  font-weight: 700;
}

/* Cards */
.ddmp-variation-community .archive .card,
.ddmp-variation-community .category .card,
.ddmp-variation-community .search .card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.ddmp-variation-community .archive .card:hover,
.ddmp-variation-community .category .card:hover,
.ddmp-variation-community .search .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Single post - clean style */
.ddmp-variation-community .single .card {
  background: none;
  border: none;
  box-shadow: none;
}

/* Form Elements */
.ddmp-variation-community .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  transition: all 0.3s ease;
}

.ddmp-variation-community .form-control:focus {
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.2);
}

/* Content Area */
.ddmp-variation-community .content {
  line-height: 1.9;
}

.ddmp-variation-community .content p {
  margin-bottom: 1.5em;
}

.ddmp-variation-community .content blockquote {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 16px 16px 0;
  padding: 25px 30px;
  margin: 30px 0;
}

/* Animations */
@keyframes communityFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ddmp-variation-community .animate-in {
  animation: communityFadeIn 0.6s ease forwards;
}

/* Swiper Overrides */
.ddmp-variation-community .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: 0.4;
}

.ddmp-variation-community .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Related Posts - Mantém estilo consistente do tema padrão */
.ddmp-variation-community .section-more {
  padding: 44px 0 14px;
  background: #F8F9FA;
}

.ddmp-variation-community .section-more h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111827;
}

.ddmp-variation-community .section-more img {
  border-radius: 8px;
  margin-bottom: 10px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ddmp-variation-community .section-more .crp_related ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .ddmp-variation-community .section-more .crp_related ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ddmp-variation-community .section-more .crp_related li {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ddmp-variation-community .section-more .crp_related li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ddmp-variation-community .section-more .crp_title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  padding: 12px;
  margin: 0;
}

.ddmp-variation-community .section-more .crp_title:hover {
  color: var(--accent, #6366f1);
}

.ddmp-variation-community .section-more .crp_excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  padding: 0 12px 12px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .ddmp-variation-community .section-blog {
    padding: 60px 0;
  }
}
