/* ==========================================================================
   SHAREPOINT SUITE - TEAM HUBS, DOCUMENT LIBRARIES, LISTS & KANBAN
   ========================================================================== */

/* ==========================================================================
   1. TEAM HUB & PORTAL HOMEPAGE
   ========================================================================== */

.hub-container {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Hero Space Banner */
.hub-hero {
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  background: linear-gradient(135deg, #0078d4 0%, #7719aa 60%, #107c41 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 120, 212, 0.25);
}

.hub-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(40px);
}

.hero-content {
  max-width: 650px;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 15px;
  opacity: 0.92;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-btn {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  background: #fff;
  color: #0078d4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hero-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}
.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Quick Navigation Cards */
.hub-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.quick-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.quick-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.quick-card-info {
  display: flex;
  flex-direction: column;
}

.quick-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-card-sub {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* News Announcements Grid */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.news-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}
.news-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.news-banner {
  height: 110px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  position: relative;
}

.news-category-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 4px;
}

.news-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.news-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.news-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 12px;
}
.news-action-btn:hover {
  color: var(--primary);
}

/* ==========================================================================
   2. SHAREPOINT DOCUMENT LIBRARY
   ========================================================================== */

.doc-lib-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-surface);
}

.doc-lib-commandbar {
  padding: 8px 16px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-lib-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-lib-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-mode-toggle {
  display: flex;
  background-color: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-mode-btn {
  width: 28px;
  height: 24px;
  border-radius: 3px;
  color: var(--text-secondary);
  font-size: 13px;
}
.view-mode-btn.active {
  background-color: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Document Table View */
.doc-table-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 20px 16px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.doc-table th {
  position: sticky;
  top: 0;
  background-color: var(--bg-surface);
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 5;
}

.doc-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  vertical-align: middle;
}

.doc-table tr:hover td {
  background-color: var(--bg-hover);
}

.file-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}
.file-name-cell:hover {
  color: var(--primary);
  text-decoration: underline;
}

.file-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.file-icon.pdf { background: #ea4335; }
.file-icon.sheet { background: #107c41; }
.file-icon.code { background: #0078d4; }
.file-icon.doc { background: #2b579a; }
.file-icon.folder { background: #ffb900; color: #333; }

.version-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  background-color: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Document Grid View */
.doc-grid-container {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  overflow-y: auto;
}

.doc-grid-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.doc-grid-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doc-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-grid-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

/* ==========================================================================
   3. SHAREPOINT LISTS & KANBAN BOARD
   ========================================================================== */

.list-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-surface);
}

.list-toolbar {
  padding: 8px 16px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Kanban View */
.kanban-board {
  flex: 1;
  display: flex;
  gap: 16px;
  padding: 16px;
  overflow-x: auto;
  background-color: var(--bg-app);
}

.kanban-column {
  width: 300px;
  flex-shrink: 0;
  background-color: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.kanban-col-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.kanban-col-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-cards-wrapper {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.kanban-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.kanban-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.kanban-assignee {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Progress bar inside list/kanban */
.progress-container {
  width: 100%;
  height: 6px;
  background-color: var(--bg-surface-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0078d4, #107c41);
  border-radius: var(--radius-full);
}
