/* ============================================================================
   MANCU BRAND CSS — Single Source of Truth for Logo + Favicon + Brand
   ============================================================================
   Author: Mancu OS Team
   Updated: 2026-06-06
   Usage:  <link rel="stylesheet" href="assets/css/mancu-brand.css">
   ============================================================================ */

/* ===== FAVICON (set via JS, so data URI doesn't bloat every HTML head) ===== */
/* The JS reads data-mancu-favicon and sets the link dynamically. */
/* If JS is disabled, inline fallback in each HTML <link rel="icon"> still works. */

/* ===== MANCU M-LOGO — Reusable across all pages =====
   Brand gradient: #f97316 (orange-500) → #f43f5e (rose-500)
   Reference: AGENTS.md "Mancu OS Brand Colors"
   ============================================================================ */

.mancu-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.05em;
  user-select: none;
  flex-shrink: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Size variants */
.mancu-logo-sm {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  border-radius: 0.625rem;
}

.mancu-logo-lg {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  border-radius: 1rem;
}

.mancu-logo-xl {
  width: 96px;
  height: 96px;
  font-size: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(244, 63, 94, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mancu-logo-2xl {
  width: 128px;
  height: 128px;
  font-size: 4rem;
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px -12px rgba(244, 63, 94, 0.3), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
}

/* Rounded alternative (more squircle) */
.mancu-logo-rounded {
  border-radius: 30%;
}

/* Light variant (for use on dark backgrounds) */
.mancu-logo-light {
  background: linear-gradient(135deg, #fb923c 0%, #fb7185 100%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Animated variants */
.mancu-logo-pulse {
  animation: mancu-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mancu-logo-float {
  animation: mancu-float 3.6s ease-in-out infinite;
}

.mancu-logo-spin {
  animation: mancu-spin 8s linear infinite;
}

.mancu-logo-glow {
  position: relative;
}

.mancu-logo-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #f97316, #f43f5e);
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
  animation: mancu-glow 2.4s ease-in-out infinite alternate;
}

@keyframes mancu-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 15px -3px rgba(244, 63, 94, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 20px 30px -5px rgba(244, 63, 94, 0.5); }
}

@keyframes mancu-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes mancu-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes mancu-glow {
  from { opacity: 0.3; transform: scale(1); }
  to { opacity: 0.7; transform: scale(1.15); }
}

/* ===== MANCU TEXT — Gradient text for "OS" / "Mancu" branding ===== */
.mancu-text-gradient {
  background: linear-gradient(90deg, #fb923c 0%, #fb7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mancu-text-gradient-bold {
  background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== MANCU BG — Brand gradient background utility ===== */
.mancu-bg-gradient {
  background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
}

.mancu-bg-gradient-soft {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(244, 63, 94, 0.08) 100%);
}

.mancu-bg-mesh {
  background-image:
    radial-gradient(at 0% 0%, rgba(249, 115, 22, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.15) 0px, transparent 50%);
}

/* ===== MANCU BUTTON — Standard brand button (if not using Tailwind) ===== */
.mancu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
  color: #ffffff;
  font-weight: 800;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(244, 63, 94, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.mancu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(244, 63, 94, 0.4);
}

.mancu-btn:active {
  transform: translateY(0);
}

/* ===== FAVICON SYNC — Auto-inject brand favicon if not present =====
   This runs on DOMContentLoaded. Adds the brand favicon to all pages
   that include this CSS + a small JS hook, ensuring consistency.
   ============================================================================ */
