@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg-main: #0a0f1d;
  --bg-card: #131b2f;
  --bg-hover: #1c2642;
  
  --accent-pink: #ff4b8b;
  --accent-cyan: #00e5ff;
  
  --text-main: #e2e8f0;
  --text-dim: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --border-radius: 12px;
  --shadow-neon: 0 0 15px rgba(255, 75, 139, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-pink);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 40px;
}

.nav-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  position: relative;
}

.nav-brand span {
  color: var(--accent-pink);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Sidebar (Links) */
.sidebar {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 25px;
  border: 1px solid var(--border-subtle);
  height: fit-content;
}

.sidebar h3 {
  color: var(--accent-cyan);
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border-subtle);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links a {
  display: block;
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
}

.sidebar-links a:hover {
  background: rgba(0, 229, 255, 0.1);
  color: white;
  transform: translateX(5px);
  border-left: 3px solid var(--accent-cyan);
}

/* TOP USER AVATAR GRID */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-subtle);
}

.avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%; /* Circle avatars */
  background: rgba(0, 229, 255, 0.1);
  border: 2px solid var(--accent-cyan);
  padding: 5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 8px;
}

.avatar-item:hover img {
  transform: scale(1.1);
  border-color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(255, 75, 139, 0.5);
  background: rgba(255, 75, 139, 0.1);
}

.avatar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.3s;
}

.avatar-item:hover .avatar-label {
  color: var(--accent-pink);
}

/* Main Content area (Directory List) */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.list-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-pink);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon);
  border-color: rgba(255, 75, 139, 0.5);
  background: var(--bg-hover);
}

.list-card:hover::before {
  transform: scaleY(1);
}

.card-rank {
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  min-width: 50px;
}

.card-info {
  flex-grow: 1;
}

.card-info h2 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.card-info h2 a {
  color: var(--text-main);
}

.list-card:hover .card-info h2 a {
  color: var(--accent-pink);
}

.card-info p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Bottom Gallery Grid */
.bottom-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid var(--border-subtle);
}

.gallery-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.gallery-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-cyan);
  color: white;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.photo-count {
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 20px;
  color: var(--accent-cyan);
}

/* SEO Module at very bottom */
.seo-module {
  margin-top: 60px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--border-radius);
  text-align: center;
}

.seo-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag-item {
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.tag-item:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}