/*!
 * CuliUptime Brand Components
 * Standardized logo and brand styling across all pages
 */

:root {
  --culiuptime-primary: #667eea;
  --culiuptime-primary-dark: #5a6fd8;
  --culiuptime-success: #2fb344;
  --culiuptime-danger: #d63939;
  --culiuptime-warning: #f59f00;
}

/* Standardized Brand Logo Component */
.culiuptime-brand-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--culiuptime-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.culiuptime-brand-logo:hover {
  color: var(--culiuptime-primary-dark);
  text-decoration: none;
}

.culiuptime-brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--culiuptime-primary), #764ba2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.culiuptime-brand-logo:hover .culiuptime-brand-icon {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Navbar specific sizing */
.navbar .culiuptime-brand-logo {
  font-size: 1.25rem;
}

.navbar .culiuptime-brand-icon {
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
}

/* Large variant for login/splash pages */
.culiuptime-brand-logo.brand-large {
  font-size: 1.75rem;
}

.culiuptime-brand-logo.brand-large .culiuptime-brand-icon {
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
  border-radius: 0.75rem;
}

/* Light variant for dark backgrounds */
.culiuptime-brand-logo.brand-light {
  color: white;
}

.culiuptime-brand-logo.brand-light:hover {
  color: rgba(255, 255, 255, 0.9);
}

.culiuptime-brand-logo.brand-light .culiuptime-brand-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Button color consistency */
.btn-primary {
  --tblr-btn-bg: var(--culiuptime-primary);
  --tblr-btn-border-color: var(--culiuptime-primary);
  --tblr-btn-hover-bg: var(--culiuptime-primary-dark);
  --tblr-btn-hover-border-color: var(--culiuptime-primary-dark);
  --tblr-btn-active-bg: var(--culiuptime-primary-dark);
  --tblr-btn-active-border-color: var(--culiuptime-primary-dark);
}

.border-primary {
  --tblr-border-color: var(--culiuptime-primary) !important;
}

/* Status colors consistency */
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.status-up {
  background-color: var(--culiuptime-success);
}

.status-down {
  background-color: var(--culiuptime-danger);
  animation: pulse-urgent 1s ease-in-out infinite;
}

.status-checking {
  background-color: var(--culiuptime-warning);
}

.status-paused {
  background-color: #687481;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Navbar brand override for consistency */
.navbar-brand {
  font-weight: 700 !important;
  color: var(--culiuptime-primary) !important;
}

.navbar-brand:hover {
  color: var(--culiuptime-primary-dark) !important;
}
