/* Power Dataroom - Clean Professional Style */

:root {
  --primary: #1a365d;
  --primary-light: #2d4a7c;
  --accent: #f6ad55;
  --bg: #f7fafc;
  --card-bg: #ffffff;
  --text: #2d3748;
  --text-muted: #718096;
  --border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hidden { display: none !important; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Auth Wall */
.auth-wall {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.auth-box {
  background: var(--card-bg);
  padding: 48px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  width: 90%;
}

.auth-logo {
  font-size: 48px;
  margin-bottom: 16px;
}

.auth-box h1 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-box > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#auth-form input {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

#auth-form input:focus {
  outline: none;
  border-color: var(--primary);
}

#auth-form button {
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#auth-form button:hover {
  background: var(--primary-light);
}

.auth-error {
  color: #e53e3e;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}

.auth-contact {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-contact a {
  color: var(--primary);
}

/* Header */
header {
  background: var(--primary);
  color: white;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 20px;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero h1 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
}

/* Categories */
.category {
  margin-bottom: 48px;
}

.category h2 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.category-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.doc-list {
  display: grid;
  gap: 16px;
}

.doc-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.2s;
}

.doc-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.doc-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.doc-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.doc-action a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.doc-action a:hover {
  background: var(--primary-light);
}

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.highlight-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.highlight-card h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 12px;
}

.highlight-card ul {
  list-style: none;
  font-size: 14px;
}

.highlight-card li {
  margin-bottom: 8px;
  color: var(--text);
}

.highlight-card strong {
  color: var(--text-muted);
}

/* Document Summary & Findings */
.doc-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.doc-findings {
  margin-top: 12px;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text);
}

.doc-findings li {
  margin-bottom: 4px;
}

.doc-action {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.doc-action a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.doc-action a:hover {
  background: var(--primary-light);
}

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  nav { display: none; }
  .hero h1 { font-size: 24px; }
  .doc-item { flex-direction: column; gap: 12px; text-align: center; }
}
