/* CleanBar Website Stylesheet — Interactive macOS Menubar & Popover Mockup */

/* Interactive Mockup Container */
.mockup-container {
  border-radius: var(--radius-4);
  background: linear-gradient(145deg, var(--gray-2), var(--gray-3));
  border: 1px solid var(--gray-a4);
  padding: 24px;
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
}

.mockup-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--gray-12);
  margin-bottom: 18px;
  box-shadow: var(--shadow-1);
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-11);
}

.menubar-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-a3);
  color: var(--accent-9);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menubar-app-pill:hover {
  background: rgba(0, 122, 255, 0.22);
}

/* Popover Window Frame */
.popover-frame {
  background: var(--glass-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-popover);
  padding: 16px;
  max-width: 420px;
  margin: 0 auto;
  transition: all 0.25s ease;
}

/* Segmented Capsule Selector */
.tab-capsule {
  display: flex;
  background: var(--gray-a3);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 14px;
  position: relative;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--gray-11);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 0;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tab-btn.active {
  background: var(--bg-color);
  color: var(--gray-12);
  box-shadow: var(--shadow-1);
  font-weight: 600;
}

/* Popover Content Body */
.popover-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.trash-size-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-12);
}

.trash-count-badge {
  font-size: 12px;
  color: var(--gray-10);
}

/* Category Bar */
.category-progress-bar {
  display: flex;
  height: 8px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--gray-a3);
}

.cat-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.cat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--gray-11);
  margin-bottom: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Top 5 Files List */
.top-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.top-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-a2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  transition: background 0.15s ease;
}

.top-item-row:hover {
  background: var(--gray-a3);
}

.top-item-left {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-item-name {
  color: var(--gray-12);
  font-weight: 500;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-item-size {
  color: var(--gray-10);
  font-size: 11px;
  font-family: var(--font-mono);
}

/* Action Button */
.empty-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-9);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: all 0.15s ease;
}

.empty-action-btn:hover {
  background: var(--accent-10);
  transform: scale(0.99);
}

.empty-action-btn.cleared {
  background: var(--success-color);
}

/* Disk Slim Grid */
.slim-groups-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.slim-group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-a2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.slim-group-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slim-group-title {
  font-weight: 600;
  color: var(--gray-12);
}

.slim-group-desc {
  font-size: 11px;
  color: var(--gray-11);
}

.slim-group-size {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-9);
}

/* Mobile & H5 Responsive Optimization */
@media (max-width: 768px) {
  .mockup-container {
    padding: 12px;
    border-radius: var(--radius-3);
  }

  .mockup-menubar {
    padding: 5px 8px;
    margin-bottom: 12px;
    font-size: 11px;
  }

  .menubar-left span:not(:first-of-type) {
    display: none;
  }

  .popover-frame {
    padding: 12px;
    border-radius: 12px;
  }

  .trash-size-title {
    font-size: 18px;
  }

  .top-item-name {
    max-width: 135px;
  }

  .cat-legend {
    gap: 8px;
    font-size: 10px;
  }

  .empty-action-btn {
    min-height: 40px;
    font-size: 12.5px;
  }

  .slim-group-desc {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
