/**
 * CryptoConnect – estilos propios del blog (antes en plugin HTML Code)
 * Carga después de main.css
 */

/* ========== Variables y base ========== */
:root {
  --background-color: #3A0060;
  --background-color-rgb: 58, 0, 96;
  --default-color: #e0e0ff;
  --default-color-rgb: 224, 224, 255;
  --accent-color: #ff006e;
  --accent-color-rgb: 255, 0, 110;
  --heading-color: #ffffff;
  --heading-color-rgb: 255, 255, 255;
  --contrast-color: #ffffff;
  --contrast-color-rgb: 255, 255, 255;
  --nav-color: #e0e0ff;
  --nav-hover-color: #ff006e;
  --nav-dropdown-color: #e0e0ff;
  --nav-dropdown-hover-color: #ff006e;
  --nav-dropdown-background-color: rgba(26, 26, 46, 0.92);
}

body {
  background: #3A0060;
  color: #e0e0ff;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  position: relative;
}

/* ========== Marca de agua diagonal (logo de fondo) ========== */
#main {
  position: relative;
  z-index: 1;
}

#main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://raw.githubusercontent.com/NicoleCarolina/CryptoConnect.es/main/logo_2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  opacity: 0.42;
  filter: blur(1.5px);
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 0;
}

#main > * {
  position: relative;
  z-index: 1;
}

/* Contenido principal semi-transparente para que se vea la marca de agua */
#main .page-title,
#main section.blog,
#main section.blog-details {
  background-color: rgba(58, 0, 96, 0.78);
}

/* ========== Header ========== */
.header {
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Logo en header: tamaño reducido, fondo transparente para que se vea bien sobre el header */
.header .logo {
  display: flex;
  align-items: center;
}
.header .logo .site-logo-img {
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin-right: 0;
  background: transparent;
}

.scrolled .header {
  background: rgba(26, 26, 46, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header .btn-getstarted {
  background: linear-gradient(45deg, #ff006e, #8338ec);
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.6rem;
  box-shadow: 0 4px 15px rgba(255, 0, 110, 0.35);
}

.header .btn-getstarted:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 110, 0.5);
}

a { color: #ff79c4; }
a:hover { color: #ff006e; }

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* ========== Cards (posts, artículo, sidebar) ========== */
.blog .posts-list article,
.blog-details .article,
.blog-details .sidebar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease;
}

.blog .posts-list article:hover,
.blog-details .article:hover,
.blog-details .sidebar:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 0, 110, 0.35);
}

.blog .pagination li.active,
.blog .pagination li:hover {
  background: linear-gradient(45deg, #ff006e, #8338ec);
  border-radius: 50px;
}

/* ========== Barra de precios crypto (CoinMarketCap) ========== */
.crypto-price-bar {
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 0, 110, 0.3);
  padding: 2px 0;
  height: 54px;
  font-size: 13px;
  overflow: hidden;
  position: relative;
  z-index: 999;
  line-height: 1;
}

.crypto-price-bar:hover {
  border-bottom-color: #ff006e;
}

.coin-marquee-header,
.coin-marquee-header-signature,
.coin-marquee-signature__power-by {
  display: none !important;
}

/* ========== Footer ========== */
.footer {
  background: rgba(26, 26, 46, 0.92);
  border-top: 1px solid rgba(255, 0, 110, 0.25);
  padding: 4rem 2rem 2rem;
  color: #e0e0ff;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 0, 110, 0.06),
    rgba(131, 56, 236, 0.04),
    rgba(58, 0, 96, 0.15)
  );
  pointer-events: none;
  z-index: 0;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer .footer-top {
  padding-top: 0;
}

.footer .footer-about .logo {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.footer .footer-about .logo .footer-logo-img {
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
  -webkit-text-fill-color: unset;
  background: transparent;
}

.footer .footer-about p {
  opacity: 0.85;
  font-size: 1rem;
}

.footer h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #ff006e, #8338ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer .footer-links a {
  color: rgba(224, 224, 255, 0.75);
  transition: all 0.3s ease;
}

.footer .footer-links a:hover {
  color: #ff006e;
  padding-left: 8px;
}

.footer .social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ff79c4;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer .social-links a:hover {
  background: linear-gradient(45deg, #ff006e, #8338ec);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 0, 110, 0.35);
}

.footer .copyright {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer .credits,
.footer .credits p,
.footer .credits a {
  display: none !important;
}

/* ========== Partners Sidebar (Diamond, Gold, Silver) ========== */
.plugin-partners.partners-tier {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.partners-tier-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.partners-tier.diamond .partners-tier-title {
  color: #b9f2ff;
  border-bottom-color: rgba(185, 242, 255, 0.35);
}

.partners-tier.gold .partners-tier-title {
  color: #ffd700;
  border-bottom-color: rgba(255, 215, 0, 0.35);
}

.partners-tier.silver .partners-tier-title {
  color: #c0c0c0;
  border-bottom-color: rgba(192, 192, 192, 0.35);
}

.partners-tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.partners-tier .partners-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.partners-tier .partners-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.partners-item-img {
  max-height: 36px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.partners-tier.diamond .partners-item-img {
  max-height: 42px;
  max-width: 140px;
}

.partners-tier.silver .partners-item-img {
  max-height: 30px;
  max-width: 100px;
}

.partners-item-text {
  font-size: 0.85rem;
  color: var(--default-color);
}

/* ========== Móvil: marca de agua del logo más visible ========== */
@media (max-width: 768px) {
  #main::before {
    opacity: 0.55;
    background-size: 75%;
  }
  #main .page-title,
  #main section.blog,
  #main section.blog-details {
    background-color: rgba(58, 0, 96, 0.68);
  }
}
