.list-disc {
  list-style-type: disc;
}

.list-inside {
  list-style-position: inside;
}

.resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .resources {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .tile {
    padding: 0.75rem;
  }
  
  .tile-title {
    font-size: 1.125rem;
  }
  
  .resources li {
    margin-bottom: 8px;
  }
}

.tile {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease,
    background-color 0.4s ease;
  will-change: transform, box-shadow;
  padding: 1rem;
  border-radius: 1rem;
  color: #fff;
  border: 3px solid #434444;
  background-image: url("https://www.gw2opus.com/wp-content/uploads/2025/04/repeat-bg-tile.png");
  background-repeat: repeat;
  background-size: auto;
  background-blend-mode: overlay;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 0;
}

/* Subtle glow effect overlay */
.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 50%, rgba(255,255,255,0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 1rem;
}

/* Stagger the animation timing for each tile */
.tile:nth-of-type(1) { 
  --tile-index: 0;
}
.tile:nth-of-type(2) { 
  --tile-index: 1;
}
.tile:nth-of-type(3) { 
  --tile-index: 2;
}
.tile:nth-of-type(4) { 
  --tile-index: 3;
}
.tile:nth-of-type(5) { 
  --tile-index: 4;
}
.tile:nth-of-type(6) { 
  --tile-index: 5;
}

.tile:hover::before {
  opacity: 1;
}

.tile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.tile:nth-of-type(1) {
  background-color: rgba(153, 147, 168, 0.1);
  background-position: top left;
}
.tile:nth-of-type(2) {
  background-color: rgba(172, 172, 172, 0.1);
  background-position: top right;
}
.tile:nth-of-type(3) {
  background-color: rgba(198, 199, 198, 0.1);
  background-position: center;
}
.tile:nth-of-type(4) {
  background-color: rgba(177, 183, 190, 0.1);
  background-position: bottom left;
}
.tile:nth-of-type(5) {
  background-color: rgba(218, 217, 186, 0.1);
  background-position: bottom right;
}
.tile:nth-of-type(6) {
  background-color: rgba(179, 199, 187, 0.1);
  background-position: center left;
}

.tile-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.tile:hover .tile-title {
  color: rgba(255, 255, 255, 0.95);
}

.tile-list {
  list-style-type: disc;
  padding-left: 1.25rem;
}

.resources a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease, transform 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.resources a:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateX(2px);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.resources a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.resources a:hover::after {
  width: 100%;
  opacity: 1;
}

.resources ul {
  list-style: none;
  padding-left: 1.25rem;
}

.resources li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.resources li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.resources li:hover::before {
  transform: scale(1.2);
  opacity: 1;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Add entrance animation for tiles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating animation removed - tiles are now static */

/* Add subtle pulse effect for focus states */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 0 0 8px rgba(255, 255, 255, 0.1);
  }
}

/* Accessibility improvements */
.tile:focus-visible,
.resources a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  animation: pulse 2s infinite;
}

.resources a:focus-visible::after {
  width: 100%;
  opacity: 1;
}

/* .gdlr-album-image{
  min-height: 385px;
}

.gdlr-album-image img{
object-fit: contain;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 385px;
}
 */
