/* ============================================================================
   Command Center - Landing Page Styles (V2)
   ============================================================================ */

.cc-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 28px;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  height: 100%;
}

/* ─── Header ─── */
.cc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.cc-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-strong, #e8f2f9);
  margin: 0;
}
.cc-subtitle {
  font-size: 14px;
  color: var(--muted, #8b9dc3);
  margin: 4px 0 0;
}

/* ─── Sections ─── */
.cc-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cc-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong, #e8f2f9);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-section-title i {
  font-size: 14px;
  color: var(--accent, #0964a0);
}
.cc-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

/* ─── Cards ─── */
.cc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--card-bg, #151b2e);
  border: 1px solid var(--card-border, #1e293b);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
}
.cc-card:hover {
  border-color: var(--accent, #0964a0);
  box-shadow: 0 0 16px rgba(9, 100, 160, 0.12);
  transform: translateY(-1px);
}
.cc-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.cc-card-body {
  flex: 1;
  min-width: 0;
}
.cc-card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text-strong, #e8f2f9);
}
.cc-card-desc {
  font-size: 12px;
  color: var(--muted, #8b9dc3);
  margin: 2px 0 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-card-arrow {
  font-size: 11px;
  color: var(--muted, #8b9dc3);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.cc-card:hover .cc-card-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* ─── Favorite Toggle on Cards ─── */
.cc-card {
  position: relative;
}
.cc-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted, #8b9dc3);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, transform 0.15s;
  z-index: 2;
  line-height: 1;
}
.cc-card:hover .cc-card-fav,
.cc-card-fav.is-fav {
  opacity: 1;
}
.cc-card-fav:hover {
  transform: scale(1.2);
}
.cc-card-fav.is-fav {
  color: #eab308;
}

/* ─── Favorites Section ─── */
.cc-favorites {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-favorites-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-favorites-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong, #e8f2f9);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-favorites-title i {
  font-size: 14px;
  color: #eab308;
}
.cc-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

/* ─── Legacy Banner ─── */
.cc-legacy-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent, #0964a0);
  background: rgba(9, 100, 160, 0.08);
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text, #c5d4e6);
  line-height: 1.4;
}
.cc-legacy-banner__icon {
  color: var(--accent, #0964a0);
  font-size: 15px;
  flex-shrink: 0;
}
.cc-legacy-banner__text {
  flex: 1;
}
.cc-legacy-banner__link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #0964a0);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cc-legacy-banner__link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ─── Sidebar Home Link Styling ─── */
.cc-sidebar-home {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong, #e8f2f9);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.cc-sidebar-home:hover {
  background: rgba(255, 255, 255, 0.05);
}
.cc-sidebar-home i {
  font-size: 15px;
  color: var(--accent, #0964a0);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .cc-page { padding: 20px 16px; gap: 24px; }
  .cc-section-grid { grid-template-columns: 1fr; }
}
