/* Minimalist, modern, responsive CSS for IPO Hub */
:root {
  --primary: #1a73e8;
  --background: #fff;
  --foreground: #222;
  --accent: #e3eafc;
  --card-bg: #f8fafd;
  --border: #e0e0e0;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(30,40,90,0.06);
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0 1rem 0;
  text-align: center;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 1rem auto;
  padding: 0 1rem;
}
nav .logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 1px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav ul li a:hover {
  color: var(--primary);
}
.subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

main {
  flex: 1;
  max-width: 900px;
  margin: 2rem auto 0 auto;
  padding: 0 1rem;
}
.search-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
#searchInput {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--card-bg);
  transition: border 0.2s;
}
#searchInput:focus {
  outline: none;
  border-color: var(--primary);
}
.ipo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.ipo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border 0.2s;
}
.ipo-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(30,40,90,0.10);
}
.ipo-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
  text-decoration: none;
}
.ipo-meta {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.7rem;
}
.ipo-summary {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}
.ipo-link {
  align-self: flex-start;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s;
}
.ipo-link:hover {
  background: #1558b0;
}
footer {
  text-align: center;
  padding: 1.2rem 0 1.5rem 0;
  color: #888;
  font-size: 0.98rem;
  background: var(--background);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 0.7rem;
  }
  main {
    margin-top: 1.2rem;
  }
  .ipo-list {
    gap: 1.2rem;
  }
  .ipo-card {
    padding: 1rem 0.7rem;
  }
}

/* (Optional) Light/Dark mode toggle styles - not implemented in HTML yet */
/*
body.dark {
  --background: #181a20;
  --foreground: #f3f6fa;
  --card-bg: #23272f;
  --border: #23272f;
  --primary: #8ab4f8;
}
*/

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #f7fafc;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.98rem;
  border: 2px solid #b3c6e0;
}
th, td {
  border: 1.5px solid #7a8ca7;
  padding: 10px 12px;
  text-align: left;
}
th {
  background: #e6f2ff;
  font-weight: 600;
}
tr:nth-child(even) {
  background: #f1f5fa;
}
tr:hover {
  background: #e0eaff;
} 