/* TiredCore — Shared styles for all Tired Creative Network sites */

/* === Scroll Animations === */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].tc-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade"] { transform: none; }
[data-animate="slide-left"] { transform: translateX(-24px); }
[data-animate="slide-left"].tc-visible { transform: translateX(0); }
[data-animate="slide-right"] { transform: translateX(24px); }
[data-animate="slide-right"].tc-visible { transform: translateX(0); }
[data-animate="scale"] { transform: scale(0.95); }
[data-animate="scale"].tc-visible { transform: scale(1); }

/* === Network Bar === */
#tc-network-bar {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 32px 24px;
}
.tc-nb-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.tc-nb-label {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 20px;
  font-family: system-ui, sans-serif;
}
.tc-nb-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tc-nb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #1e293b;
  border-radius: 24px;
  font-size: .8125rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: all .25s ease;
  font-family: system-ui, sans-serif;
}
.tc-nb-link:hover {
  color: #e2e8f0;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}
.tc-nb-current {
  color: #e2e8f0;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}
.tc-nb-icon { font-size: 1rem; }

/* === Cookie Consent === */
#tc-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1e293b;
  border-top: 1px solid #334155;
  padding: 16px 24px;
  animation: slideUp .4s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.tc-consent-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tc-consent-inner p {
  font-size: .8125rem;
  color: #94a3b8;
  margin: 0;
  font-family: system-ui, sans-serif;
}
#tc-consent-accept {
  padding: 8px 24px;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: system-ui, sans-serif;
}
#tc-consent-accept:hover { background: #2563eb; }

/* === Shared UI components === */
.tc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: system-ui, sans-serif;
}
.tc-badge-blue { background: rgba(59,130,246,.15); color: #60a5fa; }
.tc-badge-green { background: rgba(16,185,129,.15); color: #34d399; }
.tc-badge-amber { background: rgba(245,158,11,.15); color: #fbbf24; }
.tc-badge-red { background: rgba(239,68,68,.15); color: #f87171; }
.tc-badge-purple { background: rgba(139,92,246,.15); color: #a78bfa; }
.tc-badge-pink { background: rgba(236,72,153,.15); color: #f472b6; }

.tc-divider {
  width: 60px;
  height: 2px;
  margin: 48px auto;
}

.tc-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Back to top === */
#tc-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: all .3s ease;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tc-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#tc-back-to-top:hover {
  background: #334155;
  color: #e2e8f0;
}

/* === Responsive consent === */
@media (max-width: 640px) {
  .tc-consent-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .tc-nb-links { gap: 8px; }
  .tc-nb-link { padding: 6px 12px; font-size: .75rem; }
}
