/* Reuse most styles from style.css */
@import url('style.css');

/* Layout container to place sources on the left and gradient on the right */
.layout-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

.sources {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 300px;
  flex-shrink: 0;
}

.source-card {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.source-card h2 {
  color: #29FF89;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
}

.source-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem;
  cursor: pointer;
}

.source-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

.source-text p {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.8;
}

.source-item img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.gradient-container {
  flex-grow: 1;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gradient {
  display: grid;
  gap: 0;
  width: fit-content; /* Adapt to content */
  height: fit-content; /* Adapt to content */
}

.gradient-square {
  position: relative;
}

.gradient-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.gradient-square .base-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.gradient-square .glass-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /* Respect PNG's built-in translucency */
}

@media (max-width: 800px) {
  .layout-container {
    flex-direction: column;
    align-items: center;
  }
  .sources {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .source-card {
    width: 250px;
  }
  .gradient {
    width: 100%;
    max-width: fit-content; /* Adapt to content */
    height: fit-content; /* Adapt to content */
  }
}

/* Dropdown styles for nav */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.dropdown-toggle:hover {
  color: #29FF89;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  min-width: 150px;
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}