/* GQLite.com Logo Mosaic Style */

/* Mosaic style for GQLite.com - creating a tiled, block pattern appearance */
.gqlite-logo-mosaic {
  font-family: 'Fredoka One', 'Bebas Neue', 'Poppins', cursive, sans-serif;
  position: relative;
  letter-spacing: -1px;
}

.gqlite-logo-mosaic span {
  display: inline-block;
  color: white;
  position: relative;
  transition: all 0.3s ease;
  animation: mosaic-shift 5s ease-in-out infinite;
  filter: contrast(1.2);
}

/* Create mosaic pattern using background for each character */
.gqlite-logo-mosaic span {
  background-size: 10px 10px;
  background-image: 
    linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
  padding: 2px 4px;
  border-radius: 2px;
}

/* Color for each character - using vibrant mosaic colors */
.gqlite-logo-mosaic span:nth-child(1) { /* G */
  background-color: #ff3e41;
  animation-delay: 0s;
}

.gqlite-logo-mosaic span:nth-child(2) { /* Q */
  background-color: #4ecdc4;
  animation-delay: 0.1s;
}

.gqlite-logo-mosaic span:nth-child(3) { /* L */
  background-color: #ffd166;
  animation-delay: 0.2s;
}

.gqlite-logo-mosaic span:nth-child(4) { /* I */
  background-color: #ef476f;
  animation-delay: 0.3s;
}

.gqlite-logo-mosaic span:nth-child(5) { /* T */
  background-color: #06d6a0;
  animation-delay: 0.4s;
}

.gqlite-logo-mosaic span:nth-child(6) { /* E */
  background-color: #118ab2;
  animation-delay: 0.5s;
}

.gqlite-logo-mosaic span:nth-child(7) { /* . */
  background-color: #073b4c;
  animation-delay: 0.6s;
}

.gqlite-logo-mosaic span:nth-child(8) { /* C */
  background-color: #ff9f1c;
  animation-delay: 0.7s;
}

.gqlite-logo-mosaic span:nth-child(9) { /* O */
  background-color: #e71d36;
  animation-delay: 0.8s;
}

.gqlite-logo-mosaic span:nth-child(10) { /* M */
  background-color: #2ec4b6;
  animation-delay: 0.9s;
}

/* Mosaic tile border effect */
.gqlite-logo-mosaic span::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hover effect for mosaic logo */
.gqlite-logo-mosaic:hover span {
  transform: scale(1.1) rotate(var(--rotate, 0deg));
  animation: mosaic-bounce 0.6s ease-in-out infinite alternate;
  background-size: 8px 8px;
}

.gqlite-logo-mosaic:hover span:nth-child(1) { --rotate: -3deg; }
.gqlite-logo-mosaic:hover span:nth-child(2) { --rotate: 3deg; }
.gqlite-logo-mosaic:hover span:nth-child(3) { --rotate: -2deg; }
.gqlite-logo-mosaic:hover span:nth-child(4) { --rotate: 2deg; }
.gqlite-logo-mosaic:hover span:nth-child(5) { --rotate: -3deg; }
.gqlite-logo-mosaic:hover span:nth-child(6) { --rotate: 3deg; }
.gqlite-logo-mosaic:hover span:nth-child(7) { --rotate: -2deg; }
.gqlite-logo-mosaic:hover span:nth-child(8) { --rotate: 2deg; }
.gqlite-logo-mosaic:hover span:nth-child(9) { --rotate: -3deg; }
.gqlite-logo-mosaic:hover span:nth-child(10) { --rotate: 3deg; }

/* Animation keyframes for mosaic effects */
@keyframes mosaic-shift {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-2px); }
  75% { transform: translateY(2px); }
}

@keyframes mosaic-bounce {
  0% { transform: scale(1.1) rotate(var(--rotate, 0deg)) translateY(0); }
  100% { transform: scale(1.1) rotate(var(--rotate, 0deg)) translateY(-5px); }
}

/* Responsive adjustments for mosaic style */
@media (max-width: 1024px) {
  .gqlite-logo-mosaic span {
    background-size: 8px 8px;
    padding: 1px 3px;
  }
}

@media (max-width: 768px) {
  .gqlite-logo-mosaic {
    letter-spacing: -2px;
  }
  
  .gqlite-logo-mosaic span {
    background-size: 6px 6px;
    padding: 1px 2px;
  }
}

@media (max-width: 480px) {
  .gqlite-logo-mosaic span {
    background-size: 5px 5px;
    padding: 0 1px;
  }
  
  .gqlite-logo-mosaic span::before {
    display: none;
  }
}