import { css } from 'chrome://resources/lit/v3_0/lit.rollup.js';
let instance = null;
export function getCss() {
    return instance || (instance = [...[], css `
:host {
  display: flex;
  flex-direction: column;
  height: 100%;
}

h2 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: var(--cr-primary-text-color);
  margin-top: 24px;
  margin-bottom: 16px;
}

/* Card Grid */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  position: relative;
  width: 243px;
  height: 190px;
  background: var(--cr-card-background-color);
  border-radius: var(--cr-card-border-radius);
  box-shadow: var(--cr-card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cr-separator-color);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none; /* remove link underline */
  color: inherit;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cr-elevation-4);
}

/* Card Body (Top part) */
.card-body {
  height: 133px;
  padding: 16px;
  box-sizing: border-box;
  background: var(--cr-card-background-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-body.tab-type {
  background: var(--cr-fallback-color-surface5);
  align-items: center;
  justify-content: center;
}

.card-body.tab-type cr-icon {
  --cr-icon-size: 40px;
  color: var(--cr-link-color);
}

.text-preview {
  font-family: 'Google Sans Text', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--cr-primary-text-color);
  max-height: 90px; /* 5 lines * 18px line-height */
  overflow: hidden;
  margin: 0;
  margin-right: 16px;
}

.card-footer {
  height: 57px;
  border-top: var(--cr-separator-line);
  padding: 8px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cr-card-background-color);
}

.favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 2px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.meta-text {
  display: flex;
  flex-direction: column;
  min-width: 0; /* allows text truncation */
  flex: 1;
}

.card-title {
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 17px;
  color: var(--cr-primary-text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-date {
  font-family: 'Google Sans Flex', sans-serif;
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  color: var(--cr-secondary-text-color);
  margin-top: 2px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* Selection State */
.card.selected {
  border-color: var(--cr-link-color);
  box-shadow: 0 0 0 1px var(--cr-link-color), var(--cr-elevation-1);
}

.card-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.card:hover .card-checkbox,
.card.selected .card-checkbox {
  opacity: 1;
  pointer-events: auto;
}

.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--cr-fallback-color-surface1);
  border-radius: var(--cr-card-border-radius);
  margin-bottom: 24px;
  border: 1px solid var(--cr-fallback-color-surface5);
}

.action-buttons {
  display: flex;
  gap: 8px;
}`]);
}
