/* Caretex Logo CSS */
.caretex-logo {
  display: inline-block;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  border-radius: 50%;
  position: relative;
  border: 2px solid #2E5A87;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.caretex-logo::before {
  content: "C";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 32px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.caretex-logo::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

/* Large version for login pages */
.caretex-logo-large {
  width: 185px;
  height: 185px;
}

.caretex-logo-large::before {
  font-size: 96px;
}

.caretex-logo-large::after {
  width: 36px;
  height: 36px;
  top: 24px;
  right: 24px;
}

/* Favicon size */
.caretex-logo-favicon {
  width: 32px;
  height: 32px;
}

.caretex-logo-favicon::before {
  font-size: 16px;
}

.caretex-logo-favicon::after {
  width: 6px;
  height: 6px;
  top: 4px;
  right: 4px;
}

/* Animation Classes */
.caretex-logo-animated {
  animation: logoEntrance 1.5s ease-out forwards;
}

.caretex-logo-animated::before {
  animation: letterEntrance 1.8s ease-out forwards;
}

.caretex-logo-animated::after {
  animation: dotEntrance 2.1s ease-out forwards;
}

/* Logo Entrance Animation */
@keyframes logoEntrance {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
    filter: blur(10px);
  }
  50% {
    transform: scale(1.2) rotate(0deg);
    opacity: 0.8;
    filter: blur(2px);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
  }
}

/* Letter Entrance Animation */
@keyframes letterEntrance {
  0% {
    transform: translate(-50%, -50%) scale(0) rotateY(90deg);
    opacity: 0;
    color: transparent;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.3) rotateY(0deg);
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    opacity: 1;
    color: white;
  }
}

/* Dot Entrance Animation */
@keyframes dotEntrance {
  0% {
    transform: scale(0) translateX(20px);
    opacity: 0;
    background: #FFD700;
  }
  70% {
    transform: scale(1.5) translateX(0px);
    opacity: 0.8;
    background: #FFD700;
  }
  100% {
    transform: scale(1) translateX(0px);
    opacity: 1;
    background: #FFD700;
  }
}

/* Hover Effects (only after animation completes) */
.caretex-logo-static:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border-color: #4A90E2;
}

.caretex-logo-static:hover::before {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.caretex-logo-static:hover::after {
  background: #FFA500;
  transform: scale(1.2);
}

/* Pulse effect for loading state */
.caretex-logo-loading {
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
}

/* Shimmer effect */
.caretex-logo-shimmer {
  position: relative;
  overflow: hidden;
}

.caretex-logo-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Bounce effect for interactive feedback */
.caretex-logo-bounce {
  animation: logoBounce 0.6s ease-out;
}

@keyframes logoBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
