/* ===== GLASSMORPHISM FEED ===== */
.glass-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

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

.glass-hero {
  background: linear-gradient(135deg, rgba(183,140,255,0.12) 0%, rgba(124,139,255,0.08) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-welcome h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, rgba(183,140,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-welcome p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.stat-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.stat-pill:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.stat-pill.total {
  background: rgba(183,140,255,0.2);
  border-color: rgba(183,140,255,0.3);
  color: var(--accent);
}

.stat-pill b {
  color: var(--text);
  font-weight: 600;
}

.stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Glass Panels */
.glass-panel {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.glass-panel:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}

.panel-icon {
  font-size: 16px;
}

.panel-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-count {
  background: rgba(183,140,255,0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.panel-content {
  padding: 12px 16px;
}

.panel-content.missions,
.panel-content.watching {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-content.activity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-content.rank {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Glass Items */
.glass-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.glass-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(183,140,255,0.3);
}

@media (hover: hover) {
  .glass-item:hover {
    transform: translateX(4px);
  }
}

.glass-thumb {
  width: 36px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.glass-content {
  flex: 1;
  min-width: 0;
}

.glass-title {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glass-meta {
  font-size: 12px;
  color: var(--text3);
}

.glass-arrow {
  color: var(--accent);
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.glass-item:hover .glass-arrow {
  opacity: 1;
}

.glass-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text3);
  font-size: 13px;
  font-style: italic;
}

/* Glass Missions */
.glass-mission {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.glass-mission:hover {
  background: rgba(255,255,255,0.06);
}

.glass-mission.completed {
  opacity: 0.5;
  background: rgba(255,255,255,0.02);
}

.glass-mission.completed .mission-name {
  text-decoration: line-through;
  color: var(--text3);
}

.glass-mission.completed .mission-check {
  background: rgba(76,175,80,0.2);
  color: #81c784;
}

.mission-check {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(183,140,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mission-text {
  flex: 1;
}

.mission-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.mission-desc {
  font-size: 12px;
  color: var(--text3);
}

/* Glass Activity */
.glass-activity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}

.glass-activity:last-child {
  border-bottom: none;
}

.act-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.act-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.act-content {
  flex: 1;
  min-width: 0;
}

.act-line {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text2);
}

.act-line b {
  color: var(--text);
  font-weight: 600;
}

.act-time {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

/* Glass Rank */
.glass-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.glass-rank:hover {
  background: rgba(255,255,255,0.06);
}

.glass-rank.you {
  background: rgba(183,140,255,0.1);
  border: 1px solid rgba(183,140,255,0.2);
}

.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.rank-num.gold {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000;
}

.rank-num.silver {
  background: linear-gradient(135deg, #c0c0c0, #808080);
  color: #000;
}

.rank-num.bronze {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
}

.rank-user {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rank-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.rank-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-user span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
}

.you-tag {
  background: rgba(183,140,255,0.2);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
}

.rank-tier {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(183,140,255,0.1);
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Activity Panel Height */
.activity-panel {
  max-height: 400px;
  overflow: hidden;
}

.activity-panel .panel-content {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(183,140,255,0.3) transparent;
}

.activity-panel .panel-content::-webkit-scrollbar {
  width: 6px;
}

.activity-panel .panel-content::-webkit-scrollbar-thumb {
  background: rgba(183,140,255,0.3);
  border-radius: 3px;
}

/* Entrance Animations */
@keyframes glassFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-hero {
  animation: glassFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.glass-panel {
  animation: glassFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
  opacity: 0;
}

.glass-panel:nth-child(2) {
  animation-delay: 0.2s;
}

.glass-panel:nth-child(3) {
  animation-delay: 0.3s;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .glass-dashboard,
  .glass-panel,
  .glass-hero,
  .glass-item,
  .glass-rank {
    max-width: 100%;
  }

  .panel-content.watching,
  .panel-content.missions {
    gap: 12px;
  }

  .glass-hero {
    padding: 18px;
  }
  
  .hero-welcome h3 {
    font-size: 22px;
  }
  
  .hero-stats {
    gap: 8px;
  }
  
  .stat-pill {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .panel-header {
    padding: 12px 16px;
  }
  
  .panel-content {
    padding: 12px 16px;
  }
  
  .glass-thumb {
    width: 40px;
    height: 60px;
  }
  
  .glass-title {
    font-size: 13px;
  }
  
  .mission-check {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .glass-rank {
    padding: 10px;
  }
  
  .rank-num {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  
  .rank-avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  
  .rank-tier {
    font-size: 11px;
    padding: 3px 8px;
  }
}
