/* =================================================================
   CLINTY — Components (components.css)
   Navbar logo, footer logo, cursor, cookie banner, video modal.
   Anteriormente duplicados em inline <style> em TODAS as páginas.
   ================================================================= */

/* ═══════════════════════════════════════════
   LOGO NAVBAR — Animação de símbolos (+−×÷)
   ═══════════════════════════════════════════ */
.navbar .clinty-logo-nav {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-logo);
}

.navbar .clinty-brand-nav {
  font-weight: 900;
  color: var(--clinty-black) !important;
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1;
}

.navbar .clinty-symbol-wrapper-nav {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 22px;
  margin-left: 3px;
  top: -8px;
}

.navbar .clinty-symbol-nav {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--clinty-orange) !important;
  opacity: 0;
  line-height: 1;
  transform: translateY(1px);
  animation: clintySwapNav 8s linear infinite;
}

.navbar .clinty-symbol-nav:nth-child(1) { animation-delay: 0s; }
.navbar .clinty-symbol-nav:nth-child(2) { animation-delay: 2s; }
.navbar .clinty-symbol-nav:nth-child(3) { animation-delay: 4s; }
.navbar .clinty-symbol-nav:nth-child(4) { animation-delay: 6s; }

@keyframes clintySwapNav {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}


/* ═══════════════════════════════════════════
   LOGO FOOTER — Animação de símbolos (+−×÷)
   ═══════════════════════════════════════════ */
.clinty-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-logo) !important;
}

.clinty-brand {
  font-weight: 900;
  color: var(--clinty-black);
  font-size: 42px;
  line-height: 1;
}

.clinty-symbol-wrapper {
  position: relative;
  width: 30px;
  height: 50px;
  margin-left: 6px;
  top: -2px;
}

.clinty-symbol {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 38px;
  font-weight: 700;
  color: var(--clinty-white);
  opacity: 0;
  animation: clintySwap 8s linear infinite;
}

.clinty-symbol:nth-child(1) { animation-delay: 0s; }
.clinty-symbol:nth-child(2) { animation-delay: 2s; }
.clinty-symbol:nth-child(3) { animation-delay: 4s; }
.clinty-symbol:nth-child(4) { animation-delay: 6s; }

@keyframes clintySwap {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}


/* ═══════════════════════════════════════════
   CURSOR PERSONALIZADO (Coração)
   ═══════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  html, * {
    cursor: none !important;
  }
  .circle-cursor-inner,
  .circle-cursor-outer,
  .cursor-page-inner {
    display: none !important;
  }
}

#clinty-cursor {
  position: fixed;
  top: -100px;
  left: -100px;
  pointer-events: none;
  z-index: 999999;
  width: 24px;
  height: 24px;
  display: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, opacity var(--transition-fast);
}

#clinty-cursor svg {
  width: 100%;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  #clinty-cursor {
    display: block;
  }
}

#clinty-cursor.visible { opacity: 1; }
#clinty-cursor.over    { transform: translate(-50%, -50%) scale(1.35); }
#clinty-cursor.click   { transform: translate(-50%, -50%) scale(0.75); }


/* ═══════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════ */
.cookie-banner {
  display: block;
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 320px;
  background: var(--clinty-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  z-index: 99999;
  padding: 28px 24px 22px 24px;
  font-family: var(--font-body);
  border-top: 3px solid var(--clinty-orange);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--clinty-cookie-close);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  transition: color var(--transition-fast);
}

.cookie-banner__close:hover {
  color: var(--clinty-cookie-title);
}

.cookie-banner__title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--clinty-cookie-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__text {
  margin: 0 0 18px 0;
  font-size: 13px;
  color: var(--clinty-cookie-text);
  line-height: 1.6;
}

.cookie-banner__link {
  color: var(--clinty-orange) !important;
  text-decoration: none;
  font-weight: 600;
}

.cookie-banner__link:hover {
  color: var(--clinty-orange-hover) !important;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

.cookie-banner__btn {
  flex: 1;
  border: none;
  border-radius: 7px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cookie-banner__btn--accept {
  background: var(--clinty-orange);
  color: var(--clinty-white);
}

.cookie-banner__btn--accept:hover {
  background: var(--clinty-orange-hover);
}

.cookie-banner__btn--reject {
  background: var(--clinty-cookie-reject);
  color: var(--clinty-cookie-reject-t);
  font-weight: 600;
}

.cookie-banner__btn--reject:hover {
  background: var(--clinty-cookie-reject-h);
}

@media (max-width: 480px) {
  .cookie-banner {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 16px;
  }
}


/* ═══════════════════════════════════════════
   VIDEO MODAL (index.html)
   ═══════════════════════════════════════════ */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100000;
  justify-content: center;
  align-items: center;
}

.video-modal--visible {
  display: flex;
}

.video-modal__inner {
  position: relative;
  width: 90%;
  max-width: 960px;
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--clinty-white);
  font-size: 28px;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  line-height: 1;
}

.video-modal__close:hover {
  color: var(--clinty-orange);
}

.video-modal__inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-md);
}


/* ═══════════════════════════════════════════
   NAVEGAÇÃO ENTRE ARTIGOS (blog posts)
   ═══════════════════════════════════════════ */
.article-nav {
  border-top: 2px solid var(--clinty-gray-line);
  padding-top: 40px;
  margin-top: 60px;
}

.article-nav a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.article-nav a:hover {
  opacity: 0.7;
}

.nav-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clinty-orange);
  display: block;
  margin-bottom: 6px;
}

.nav-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.4;
}
