/* ============================================
   THE POOKIE CAFE - MODERN LOGO STYLES
   Professional Animations & Hover Effects
   ============================================ */

/* ========================
   Logo Animations
   ======================== */

@keyframes logoPulse {
  0%, 100% { 
    transform: scale(1);
    filter: brightness(1);
  }
  50% { 
    transform: scale(1.08);
    filter: brightness(1.15);
  }
}

@keyframes logoRotate {
  from { 
    transform: rotateY(0deg) rotateZ(0deg);
  }
  to { 
    transform: rotateY(360deg) rotateZ(360deg);
  }
}

@keyframes logoGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3), 0 10px 25px -5px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6), 0 15px 35px -8px rgba(245, 158, 11, 0.4);
  }
}

@keyframes logoBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes logoShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ========================
   Navbar Logo Styling
   ======================== */

.navbar-logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.navbar-logo-container:hover {
  transform: translateY(-4px);
}

.navbar-logo-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 10rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-logo-box:hover {
  transform: scale(1.05) rotate(0deg) translateY(0px);
  box-shadow: none;
}

.navbar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3)) brightness(0.95);
  padding: 4px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.navbar-logo-box:hover .navbar-logo-img {
  filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.4)) brightness(1.05);
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-logo-title {
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-logo-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f59e0b;
  opacity: 0.85;
  transition: all 0.4s ease;
}

.navbar-logo-container:hover .navbar-logo-title {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
  transform: scaleX(1.05);
}

.navbar-logo-container:hover .navbar-logo-subtitle {
  color: #f0ad4e;
  opacity: 1;
  letter-spacing: 3px;
}

/* ========================
   Footer Brand Logo Styling
   ======================== */

.brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  box-shadow: 0 15px 40px -10px rgba(245, 158, 11, 0.35);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 4s ease-in-out infinite;
  cursor: pointer;
}

.brand-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: logoShine 4s infinite;
}

.brand-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent);
  border-radius: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.brand-logo:hover {
  animation: none;
  transform: scale(1.2) rotate(12deg);
  box-shadow: 0 30px 60px -15px rgba(245, 158, 11, 0.5), 
              inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.brand-logo:hover::after {
  opacity: 1;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3)) contrast(1.1);
  padding: 8px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.brand-logo:hover img {
  filter: drop-shadow(8px 8px 16px rgba(0, 0, 0, 0.4)) contrast(1.15) brightness(1.1);
}

/* ========================
   Footer Logo Container
   ======================== */

.footer-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(236, 72, 153, 0.05));
  border-radius: 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.1);
  transition: all 0.4s ease;
}

.footer-logo-container:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(236, 72, 153, 0.1));
  border-color: rgba(245, 158, 11, 0.3);
}

.footer-logo-text {
  text-align: center;
  transition: all 0.4s ease;
}

.footer-logo-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
}

.footer-logo-subtitle {
  font-size: 0.875rem;
  letter-spacing: 2px;
  color: #fcd34d;
  opacity: 0.8;
  transition: all 0.4s ease;
}

.footer-logo-container:hover .footer-logo-title {
  transform: scale(1.05);
}

.footer-logo-container:hover .footer-logo-subtitle {
  letter-spacing: 3px;
  opacity: 1;
}

/* ========================
   Extra Features Section
   ======================== */

.logo-features {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 1rem;
  font-size: 0.875rem;
  color: #fcd34d;
  transition: all 0.4s ease;
  cursor: pointer;
}

.logo-feature:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.2);
}

.logo-feature i {
  transition: all 0.4s ease;
}

.logo-feature:hover i {
  transform: rotate(360deg) scale(1.2);
}

/* ========================
   Responsive Design
   ======================== */

@media (max-width: 640px) {
  .navbar-logo-box {
    width: 8rem;
    height: 8rem;
    border-radius: 0;
  }

  .navbar-logo-title {
    display: none;
  }

  .navbar-logo-subtitle {
    display: none;
  }

  .brand-logo {
    width: 4rem;
    height: 4rem;
  }

  .brand-logo img {
    padding: 6px;
  }

  .footer-logo-container {
    padding: 1.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .navbar-logo-box {
    width: 9rem;
    height: 9rem;
    border-radius: 0;
  }

  .navbar-logo-title {
    font-size: 1.375rem;
  }

  .brand-logo {
    width: 5rem;
    height: 5rem;
  }
}}

@media (min-width: 1025px) {
  .brand-logo {
    width: 5.5rem;
    height: 5.5rem;
  }

  .navbar-logo-box {
    width: 10rem;
    height: 10rem;
    border-radius: 0;
  }
}

/* ========================
   Enhanced Transitions
   ======================== */

.logo-transition {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-smooth {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========================
   Dark Mode Support (Optional)
   ======================== */

@media (prefers-color-scheme: dark) {
  .navbar-logo-title {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .navbar-logo-container:hover .navbar-logo-title {
    filter: brightness(1.2);
  }
}

/* ========================
   Animation Performance
   ======================== */

@media (prefers-reduced-motion: reduce) {
  .navbar-logo-box,
  .brand-logo,
  .navbar-logo-container,
  .footer-logo-container {
    animation: none;
  }

  .navbar-logo-box:hover,
  .brand-logo:hover {
    transition: none;
  }
}
