/*
 Theme Name:  Luby Blog
 Theme URI:   https://luby.com.br
 Description: Child theme do Twenty Twenty-Four com o design system da Luby
 Author:      Luby
 Author URI:  https://luby.com.br
 Template:    twentytwentyfour
 Version:     1.0.0
 License:     GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: luby-child
*/

/* --- FONTE ASPEKTA --- */
@font-face {
  font-family: 'Aspekta';
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  src: url('https://cdn.jsdelivr.net/gh/ivodolenc/aspekta@main/packages/fonts/variable/AspektaVF.woff2') format('woff2');
}

/* --- RESET DE SELEÇÃO --- */
::selection {
  background: rgba(19, 170, 222, 0.3);
  color: #F0F7FF;
}

/* --- FOCUS --- */
:focus-visible {
  outline: 2px solid rgba(19, 170, 222, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0E1117; }
::-webkit-scrollbar-thumb { background: #2E3A4E; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(19, 170, 222, 0.5); }

/* --- LINKS --- */
a {
  color: #13AADE;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover { color: #41C4F0; }

/* --- BOTÃO CTA (classe extra) --- */
.wp-block-button.is-style-cta .wp-block-button__link {
  background: #13AADE;
  color: #F0F7FF;
  font-weight: 700;
  padding: 14px 40px;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.wp-block-button.is-style-cta .wp-block-button__link:hover {
  box-shadow: 0 0 40px rgba(13, 162, 231, 0.6);
  transform: scale(1.05);
}

/* --- BOTÃO HERO (gradiente) --- */
.wp-block-button.is-style-hero .wp-block-button__link {
  background: linear-gradient(135deg, #41A0DC, #0DA2E7);
  color: #F0F7FF;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.wp-block-button.is-style-hero .wp-block-button__link:hover {
  box-shadow: 0 0 30px rgba(65, 160, 220, 0.5);
  transform: scale(1.05);
}

/* --- BOTÃO OUTLINE --- */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 1px solid #273040 !important;
  color: #F0F7FF !important;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(19, 170, 222, 0.1) !important;
  border-color: #13AADE !important;
}

/* --- CARDS / GRUPOS COM FUNDO --- */
.wp-block-group.luby-card {
  background-color: #161C25;
  border: 1px solid #273040;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wp-block-group.luby-card:hover {
  border-color: rgba(19, 170, 222, 0.3);
  box-shadow: 0 10px 40px -10px rgba(13, 162, 231, 0.2);
}

/* ================================================
   BLOG — CARDS DE POST
   ================================================ */

.luby-post-card {
  background-color: #161C25;
  border: 1px solid #273040;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.luby-post-card:hover {
  border-color: rgba(19, 170, 222, 0.3);
  box-shadow: 0 10px 40px -10px rgba(13, 162, 231, 0.25);
  transform: translateY(-3px);
}

.luby-post-card .wp-block-post-featured-image {
  display: block;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.luby-post-card .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.luby-post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

.luby-post-card .wp-block-post-featured-image a:not(:has(img))::after,
.luby-post-card .wp-block-post-featured-image:not(:has(img))::after {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1C2A3F, #242C38);
}

.luby-card-category,
.luby-post-card .wp-block-post-terms {
  font-size: 0.7rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem !important;
}
.luby-card-category a,
.luby-post-card .wp-block-post-terms a {
  color: #13AADE !important;
  text-decoration: none !important;
}

.luby-card-title,
.luby-post-card .wp-block-post-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 0.75rem !important;
}
.luby-card-title a,
.luby-post-card .wp-block-post-title a {
  color: #F0F7FF !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.luby-card-title a:hover,
.luby-post-card .wp-block-post-title a:hover {
  color: #13AADE !important;
}

.luby-card-excerpt .wp-block-post-excerpt__excerpt,
.luby-post-card .wp-block-post-excerpt__excerpt {
  color: #A8B8CC !important;
  font-size: 0.875rem !important;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.luby-card-excerpt .wp-block-post-excerpt__more-link,
.luby-post-card .wp-block-post-excerpt__more-link {
  color: #13AADE !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.luby-card-excerpt .wp-block-post-excerpt__more-link:hover,
.luby-post-card .wp-block-post-excerpt__more-link:hover {
  color: #41C4F0 !important;
}

/* Paginação */
.wp-block-query-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.wp-block-query-pagination a,
.wp-block-query-pagination-numbers a {
  color: #A8B8CC !important;
  background: #161C25;
  border: 1px solid #273040;
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.wp-block-query-pagination a:hover,
.wp-block-query-pagination-numbers a:hover {
  color: #F0F7FF !important;
  border-color: #13AADE;
  background: rgba(19, 170, 222, 0.1);
}
.wp-block-query-pagination-numbers .current {
  color: #F0F7FF;
  background: #13AADE;
  border: 1px solid #13AADE;
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

/* ================================================
   NAVBAR
   ================================================ */
.luby-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: #0E1117;
  border-bottom: 1px solid #273040;
  display: flex;
  justify-content: center;
}

.luby-nav {
  width: 100%;
  max-width: 1400px;
  font-family: 'Aspekta', ui-sans-serif, system-ui, sans-serif;
}

.luby-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.875rem 2rem;
}

.luby-nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Links desktop */
.luby-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.luby-nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #A8B8CC;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.luby-nav-links > li > a:hover {
  color: #F0F7FF;
  background: rgba(255, 255, 255, 0.05);
}

.luby-nav-chevron {
  transition: transform 0.2s ease;
}

/* Dropdown */
.luby-nav-has-dropdown {
  position: relative;
}

.luby-nav-has-dropdown:hover > a { color: #F0F7FF; }
.luby-nav-has-dropdown:hover .luby-nav-chevron { transform: rotate(180deg); }

.luby-nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #161C25;
  border: 1px solid #273040;
  border-radius: 12px;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.luby-nav-has-dropdown:hover .luby-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.luby-nav-dropdown--single {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.luby-nav-dropdown--multi {
  display: flex;
  gap: 1.5rem;
  min-width: 520px;
}

.luby-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.luby-nav-dropdown a {
  color: #A8B8CC;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.luby-nav-dropdown a:hover {
  color: #F0F7FF;
  background: rgba(19, 170, 222, 0.1);
}

/* CTA */
.luby-nav-actions {
  display: flex;
  align-items: center;
}

.luby-nav-cta {
  background: #13AADE;
  color: #F0F7FF !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.luby-nav-cta:hover {
  background: #0D8FB8;
  box-shadow: 0 0 20px rgba(19, 170, 222, 0.4);
}

/* Toggle mobile */
.luby-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #F0F7FF;
  cursor: pointer;
  padding: 0.25rem;
}

.luby-nav-icon-close { display: none; }
.luby-nav.is-open .luby-nav-icon-menu { display: none; }
.luby-nav.is-open .luby-nav-icon-close { display: block; }

/* Painel mobile */
.luby-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid #273040;
}
.luby-nav.is-open .luby-nav-mobile { display: flex; }

.luby-nav-mobile a {
  color: #A8B8CC;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid #273040;
  transition: color 0.2s ease;
}
.luby-nav-mobile a:hover { color: #F0F7FF; }

.luby-nav-mobile-actions { margin-top: 1rem; }
.luby-nav-mobile-actions .luby-nav-cta { display: inline-block; }

@media (max-width: 768px) {
  .luby-nav-links,
  .luby-nav-actions { display: none; }
  .luby-nav-toggle { display: block; }
}

/* ================================================
   FOOTER
   ================================================ */
.luby-footer {
  background-color: #0E1117;
  border-top: 1px solid #273040;
  padding: 3rem 2rem 1.5rem;
  font-family: 'Aspekta', ui-sans-serif, system-ui, sans-serif;
}

.luby-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.luby-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

/* Brand col */
.luby-footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.luby-footer-logo {
  height: 48px;
  width: auto;
  display: block;
}

.luby-footer-logo-luby {
  height: 40px;
  width: auto;
}

.luby-footer-divider {
  color: #273040;
  font-size: 1.5rem;
  user-select: none;
}

.luby-footer-tagline {
  color: #A8B8CC;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

/* Trust */
.luby-footer-trust { margin-top: 1rem; }

.luby-footer-trust-title {
  color: #F0F7FF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.luby-footer-trust-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.luby-footer-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #A8B8CC;
  font-size: 0.8125rem;
}

.luby-footer-trust-item svg { color: #13AADE; flex-shrink: 0; }

/* Column headings */
.luby-footer-heading {
  color: #F0F7FF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.luby-footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.luby-footer-link {
  color: #A8B8CC !important;
  font-size: 0.875rem;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}
.luby-footer-link:hover { color: #13AADE !important; }

/* Locations */
.luby-footer-location { margin-bottom: 1.25rem; }
.luby-footer-location:last-child { margin-bottom: 0; }

.luby-footer-location-region {
  color: #F0F7FF;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

.luby-footer-address {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-style: normal;
}

.luby-footer-address span,
.luby-footer-address a {
  color: #A8B8CC;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.luby-footer-address a:hover { color: #13AADE; }

/* Bottom bar */
.luby-footer-bottom {
  border-top: 1px solid #273040;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.luby-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.luby-footer-legal a {
  color: #A8B8CC !important;
  font-size: 0.8125rem;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}
.luby-footer-legal a:hover { color: #13AADE !important; }

.luby-footer-legal-with-icon {
  display: flex !important;
  align-items: center;
  gap: 0.375rem;
}

.luby-footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.luby-footer-social {
  display: flex;
  gap: 0.75rem;
}

.luby-footer-social a {
  color: #A8B8CC;
  transition: color 0.3s ease;
}
.luby-footer-social a:hover { color: #13AADE; }

.luby-footer-copy {
  color: #A8B8CC;
  font-size: 0.8125rem;
  margin: 0;
}

/* Responsivo */
@media (max-width: 1024px) {
  .luby-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .luby-footer { padding: 2rem 1rem 1rem; }
  .luby-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .luby-footer-bottom { flex-direction: column; align-items: flex-start; }
  .luby-footer-bottom-right { align-items: flex-start; }
}

/* --- ACESSIBILIDADE --- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
