/**
 * DDMP Theme - Tech Variation CSS
 * 
 * Visual tecnológico e futurista com elementos modernos e animações suaves.
 */

:root {
  --tech-primary: #0a0e27;
  --tech-secondary: #1a1f3a;
  --tech-accent: #0099cc;
  --tech-accent-alt: #7c3aed;
  --tech-text: #1e293b;
  --tech-text-muted: #475569;
  --tech-bg-light: #f8fafc;
  --tech-white: #ffffff;
  --tech-border: #e2e8f0;
  --tech-glow: 0 0 20px rgba(0, 153, 204, 0.2);
  --tech-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --tech-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --tech-radius: 12px;
}

/* Variações afetam APENAS: header, footer e home (não afetam conteúdo de posts/single). */

/* Base - apenas fundo da página */
.ddmp-variation-tech body {
  background-color: var(--tech-bg-light);
  color: var(--tech-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ddmp-variation-tech .page {
  background-color: var(--tech-bg-light);
}

/* Typography - apenas dentro de header, footer e home */
.ddmp-variation-tech .header-tech h1,
.ddmp-variation-tech .header-tech h2,
.ddmp-variation-tech .header-tech h3,
.ddmp-variation-tech .header-tech h4,
.ddmp-variation-tech .header-tech h5,
.ddmp-variation-tech .header-tech h6,
.ddmp-variation-tech .footer-tech h1,
.ddmp-variation-tech .footer-tech h2,
.ddmp-variation-tech .footer-tech h3,
.ddmp-variation-tech .footer-tech h4,
.ddmp-variation-tech .footer-tech h5,
.ddmp-variation-tech .footer-tech h6,
.ddmp-variation-tech .inner.home-tech h1,
.ddmp-variation-tech .inner.home-tech h2,
.ddmp-variation-tech .inner.home-tech h3,
.ddmp-variation-tech .inner.home-tech h4,
.ddmp-variation-tech .inner.home-tech h5,
.ddmp-variation-tech .inner.home-tech h6 {
  color: var(--tech-text);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.ddmp-variation-tech .inner.home-tech h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--tech-accent), var(--tech-accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ddmp-variation-tech .inner.home-tech h2 {
  font-size: 2.5rem;
}

/* Links - apenas header, footer e home */
.ddmp-variation-tech .header-tech a,
.ddmp-variation-tech .footer-tech a,
.ddmp-variation-tech .inner.home-tech a {
  color: var(--tech-accent);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.ddmp-variation-tech .header-tech a:hover,
.ddmp-variation-tech .footer-tech a:hover,
.ddmp-variation-tech .inner.home-tech a:hover {
  color: var(--tech-accent-alt);
}

/* Buttons - apenas header, footer e home */
.ddmp-variation-tech .header-tech .btn-primary,
.ddmp-variation-tech .footer-tech .btn-primary,
.ddmp-variation-tech .inner.home-tech .btn-primary {
  background: linear-gradient(135deg, var(--tech-accent), var(--tech-accent-alt));
  border: none;
  border-radius: var(--tech-radius);
  font-weight: 600;
  padding: 14px 32px;
  transition: all 0.3s ease;
  box-shadow: var(--tech-glow);
  position: relative;
  overflow: hidden;
}

.ddmp-variation-tech .inner.home-tech .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.ddmp-variation-tech .inner.home-tech .btn-primary:hover::before {
  left: 100%;
}

.ddmp-variation-tech .header-tech .btn-primary:hover,
.ddmp-variation-tech .footer-tech .btn-primary:hover,
.ddmp-variation-tech .inner.home-tech .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--tech-shadow-lg);
}

/* Cards - apenas na home */
.ddmp-variation-tech .inner.home-tech .archive .card,
.ddmp-variation-tech .inner.home-tech .category .card,
.ddmp-variation-tech .inner.home-tech .search .card {
  background: var(--tech-white);
  border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius);
  box-shadow: var(--tech-shadow);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.ddmp-variation-tech .inner.home-tech .archive .card::before,
.ddmp-variation-tech .inner.home-tech .category .card::before,
.ddmp-variation-tech .inner.home-tech .search .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-alt));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ddmp-variation-tech .inner.home-tech .archive .card:hover::before,
.ddmp-variation-tech .inner.home-tech .category .card:hover::before,
.ddmp-variation-tech .inner.home-tech .search .card:hover::before {
  opacity: 1;
}

.ddmp-variation-tech .inner.home-tech .archive .card:hover,
.ddmp-variation-tech .inner.home-tech .category .card:hover,
.ddmp-variation-tech .inner.home-tech .search .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tech-shadow-lg);
  border-color: var(--tech-accent);
}

.ddmp-variation-tech .inner.home-tech .archive .card-pic,
.ddmp-variation-tech .inner.home-tech .category .card-pic,
.ddmp-variation-tech .inner.home-tech .search .card-pic {
  border-radius: var(--tech-radius) var(--tech-radius) 0 0;
}

.ddmp-variation-tech .inner.home-tech .card-title {
  color: var(--tech-text);
  font-weight: 700;
  font-size: 1.3rem;
}

.ddmp-variation-tech .inner.home-tech .card-text {
  color: var(--tech-text-muted);
  line-height: 1.7;
}

/* Section styles - apenas home */
.ddmp-variation-tech .inner.home-tech .section-blog {
  background: var(--tech-bg-light);
  padding: 80px 0;
  color: var(--tech-text);
}

.ddmp-variation-tech .inner.home-tech .section-title {
  color: var(--tech-text);
  font-weight: 700;
}

/* Form elements - apenas header (busca) */
.ddmp-variation-tech .header-tech .form-control {
  border-radius: var(--tech-radius);
  border: 1px solid var(--tech-border);
  background: var(--tech-white);
  color: var(--tech-text);
  padding: 14px 20px;
  transition: all 0.3s ease;
}

.ddmp-variation-tech .header-tech .form-control:focus {
  border-color: var(--tech-accent);
  box-shadow: 0 0 0 4px rgba(0, 153, 204, 0.15);
  outline: none;
  background: var(--tech-white);
}

.ddmp-variation-tech .header-tech .form-control::placeholder {
  color: var(--tech-text-muted);
}

/* Pagination - apenas na home */
.ddmp-variation-tech .inner.home-tech .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 18px;
  border-radius: var(--tech-radius);
  font-weight: 600;
  color: var(--tech-text);
  background: var(--tech-white);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--tech-border);
}

.ddmp-variation-tech .inner.home-tech .page-numbers:hover,
.ddmp-variation-tech .inner.home-tech .page-numbers.current {
  background: var(--tech-accent);
  color: var(--tech-white);
  border-color: var(--tech-accent);
  box-shadow: var(--tech-glow);
}

/* Selection color */
.ddmp-variation-tech ::selection {
  background: var(--tech-accent);
  color: var(--tech-white);
}

/* Related Posts - apenas na home */
.ddmp-variation-tech .inner.home-tech .section-more {
  padding: 44px 0 14px;
  background: var(--tech-bg-light);
}

.ddmp-variation-tech .inner.home-tech .section-more h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--tech-text);
}

.ddmp-variation-tech .inner.home-tech .section-more .crp_related ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .ddmp-variation-tech .inner.home-tech .section-more .crp_related ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ddmp-variation-tech .inner.home-tech .section-more .crp_related li {
  background: var(--tech-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tech-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ddmp-variation-tech .inner.home-tech .section-more .crp_related li:hover {
  transform: translateY(-4px);
  border-color: var(--tech-accent);
  box-shadow: var(--tech-shadow-lg);
}

.ddmp-variation-tech .inner.home-tech .section-more .crp_title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--tech-text);
  line-height: 1.4;
  padding: 12px;
  margin: 0;
}

.ddmp-variation-tech .inner.home-tech .section-more .crp_title:hover {
  color: var(--tech-accent);
}

.ddmp-variation-tech .inner.home-tech .section-more .crp_excerpt {
  font-size: 14px;
  color: var(--tech-text-muted);
  line-height: 1.5;
  padding: 0 12px 12px;
  margin: 0;
}

/* Glow effects */
.ddmp-variation-tech .glow-effect {
  position: relative;
}

.ddmp-variation-tech .glow-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgba(0, 153, 204, 0.06);
  pointer-events: none;
}

/* Posts section (Exclusive Content) - mobile: blocos um acima do outro */
@media (max-width: 991px) {
  .ddmp-variation-tech .posts-tech .posts-grid,
  .ddmp-variation-tech .posts-tech .posts-grid.featured-layout {
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
    gap: 24px;
  }
  .ddmp-variation-tech .posts-tech .posts-grid.featured-layout .post-card:first-child {
    grid-row: span 1 !important;
  }
  .ddmp-variation-tech .posts-tech .posts-grid.featured-layout .post-card:not(.featured-card) {
    min-height: auto;
  }
  .ddmp-variation-tech .posts-tech .post-card.featured-card {
    min-height: 380px;
  }
}

@media (max-width: 576px) {
  .ddmp-variation-tech .posts-tech .posts-grid,
  .ddmp-variation-tech .posts-tech .posts-grid.featured-layout {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .ddmp-variation-tech .posts-tech .post-card.featured-card {
    min-height: 340px;
  }
  .ddmp-variation-tech .posts-tech .post-card.featured-card .post-card-content {
    padding: 30px 20px;
  }
}
