/* GovPulse - Modern Design with Light/Day Theme */
:root {
  /* Core Brand Colors - Clean Light Theme */
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --muted: #64748b;
  --text: #1e293b;
  --text-secondary: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-secondary: #7c3aed;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);

  /* Squared corners - 0 radius */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Jost', 'Century Gothic', 'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  scroll-behavior: smooth;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 4vw, 1.75rem); }
h3 { font-size: clamp(1rem, 3vw, 1.5rem); }

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Enhanced Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.95);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
}

/* Enhanced Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.brand img {
  height: 40px;
  width: auto;
  filter: brightness(1.1);
  object-fit: contain;
}

.brand::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-accent);
  border-radius: 0;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.brand:hover::after {
  opacity: 0.1;
}

/* Enhanced Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
  background: var(--card);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav a.active::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* Hero Section Enhancement */
.hero {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 0 1rem 0;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  font-weight: 800;
}

.hero-text p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.6;
}
/* Enhanced Signup Form */
.signup {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  max-width: 400px;
}

.signup input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.signup input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.signup input::placeholder {
  color: var(--muted);
}

.signup button {
  padding: 0.875rem 1.5rem;
  border-radius: 0;
  border: none;
  background: var(--gradient-accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signup button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.signup button:active {
  transform: translateY(0);
}

/* IBM Branding Section */
.ibm-branding-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 0;
  padding: 24px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ibm-branding-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(15, 98, 254, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.watson-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 8px;
  z-index: 1;
  position: relative;
}

.ai-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.capability-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.25);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  z-index: 1;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  text-decoration: none;
  color: #ffffff;
}

/* Footer Watson Info */
.footer-watson-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-watson-info p {
  margin: 0;
}

.btn-secondary.small {
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: 0;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .ai-capabilities {
    flex-direction: column;
    align-items: center;
  }
  
  .watson-badge {
    flex-direction: column;
    gap: 8px;
  }
  
  .watson-badge img {
    margin-right: 0 !important;
    margin-bottom: 8px;
  }
}

/* Typography Utilities */
.tiny { font-size: 0.75rem; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }

/* Enhanced Cards - Squared Design */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card:hover::before {
  transform: scaleX(1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
  padding: 0.625rem 1rem;
  border-radius: 0;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-secondary::after {
  content: '→';
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

/* Features Section */
.features {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}
/* Latest Posts Section */
.latest {
  padding: 2.5rem 0;
  background: var(--bg-secondary);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

/* Enhanced Search */
.search {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.search input,
.search select {
  padding: 0.625rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  min-width: 180px;
}

.search input:focus,
.search select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search input::placeholder {
  color: var(--muted);
}

.search select option {
  background: var(--card);
  color: var(--text);
}

/* Enhanced Post Grid */
/* Post grid layout */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.post-grid > * {
  display: flex;
}

/* RFP Opportunity Cards */
.post-card[data-type="rfp_opportunity"] {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--card), rgba(37, 99, 235, 0.05));
}

.post-card[data-type="rfp_opportunity"] .post-title {
  color: var(--accent);
}

.rfp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 0;
  font-size: 0.875rem;
}

.rfp-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rfp-meta-label {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.rfp-meta-value {
  color: var(--text);
  font-weight: 500;
}

.win-probability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.875rem;
}

.win-probability.high {
  background: rgba(46, 213, 115, 0.2);
  color: #2ed573;
}

.win-probability.medium {
  background: rgba(255, 165, 2, 0.2);
  color: #ffa502;
}

.win-probability.low {
  background: rgba(255, 99, 99, 0.2);
  color: #ff6363;
}

.strategic-insights {
  margin-top: 1rem;
}

.insight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0;
  font-size: 0.875rem;
}

.insight.high {
  background: rgba(255, 99, 99, 0.1);
  border-left: 3px solid #ff6363;
}

.insight.medium {
  background: rgba(255, 165, 2, 0.1);
  border-left: 3px solid #ffa502;
}

.insight.critical {
  background: rgba(255, 99, 99, 0.2);
  border-left: 3px solid #ff6363;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* RFP Brief Content */
.rfp-brief {
  padding: 1.5rem;
  background: var(--card);
  border-radius: 0;
  border: 1px solid var(--border);
}

.rfp-brief.urgent {
  border-color: #ff6363;
  background: linear-gradient(135deg, var(--card), rgba(255, 99, 99, 0.05));
}

.rfp-brief .alert {
  padding: 0.75rem 1rem;
  background: rgba(255, 99, 99, 0.2);
  border: 1px solid #ff6363;
  border-radius: 0;
  color: #ff6363;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.brief-section {
  margin-bottom: 1.5rem;
}

.brief-section h4 {
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.brief-section ul, .brief-section ol {
  margin-left: 1rem;
}

.brief-section li {
  margin-bottom: 0.5rem;
}

.brief-section strong {
  color: var(--accent);
}

/* AI Briefing Content */
.ai-briefing {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--card), rgba(100, 255, 218, 0.1));
  border-radius: 0;
  border: 1px solid var(--accent);
}

.briefing-stat {
  margin-bottom: 1.5rem;
}

.briefing-stat h4 {
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* RFP Filter Controls */
.rfp-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 0;
  border: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
}

.filter-group select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
}

/* Opportunity Type Badges */
.opportunity-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.opportunity-type.rfp {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent);
}

.opportunity-type.urgent {
  background: rgba(255, 99, 99, 0.2);
  color: #ff6363;
  animation: pulse 2s infinite;
}

.opportunity-type.ai-briefing {
  background: rgba(116, 79, 193, 0.2);
  color: #744fc1;
}

/* Live RFP Controls */
.live-rfp-controls {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-rfp-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.live-rfp-toggle input {
  margin: 0;
}

.rfp-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* AI Preview */
.ai-preview {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 0;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.ai-preview small {
  color: var(--accent);
  font-weight: 500;
}

/* Enhanced Post Cards */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover img {
  transform: scale(1.05);
}

.post-card .pc-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

/* Enhanced Badges */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.1);
}
/* Post Article Page */
.post-article {
  padding: 4rem 0;
}

.post-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 0;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.prose p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.prose h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.4rem;
}

/* Enhanced Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-accent);
  opacity: 0.3;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: flex-start;
  padding: 3rem 0;
}

.footer-inner h5 {
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-inner ul li {
  margin-bottom: 0.5rem;
}

.footer-inner ul li a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.footer-inner ul li a:hover {
  color: var(--accent);
  text-decoration: none;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}
/* Enhanced AI Features Styles */
/* AI Enhanced Post Cards */
.post-card.ai-analyzed {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.ai-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(37, 99, 235, 0.85) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1d23;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45); }
}

.ai-badge-icon {
  font-size: 0.875rem;
  animation: aiRotate 3s linear infinite;
}

@keyframes aiRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ai-badge-text {
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Sentiment Badges */
.sentiment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.sentiment-badge.sentiment-positive {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.sentiment-badge.sentiment-negative {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sentiment-badge.sentiment-neutral {
  background: rgba(156, 163, 175, 0.12);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.analysis-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.04) 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0;
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.analysis-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(251, 191, 36, 0.08) 100%);
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-1px);
}

/* AI Analysis Section */
.ai-analysis-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.4s ease;
}

.ai-analysis-section.expanded {
  max-height: 500px;
  margin-top: 1rem;
}

.ai-analysis-section.expanded {
  max-height: 500px;
  margin-top: 1rem;
}

.analysis-content {
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 0;
  border: 1px solid var(--border);
}

.analysis-content p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Enhanced Post Card Layouts */
.post-image-header {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
}

.image-overlay-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.category-tag {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--accent);
  color: #1a1d23;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.post-meta-overlay {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.post-header-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.post-footer-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.post-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.post-content .post-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.post-content .post-summary {
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.32rem;
}

/* AI Briefing Card */
.ai-briefing-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(100, 255, 218, 0.05) 100%);
  border: 2px solid rgba(139, 92, 246, 0.3);
  display: flex;
  flex-direction: column;
}

.ai-briefing-card:hover {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.briefing-header {
  display: flex;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(100, 255, 218, 0.08) 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  align-items: center;
  min-height: 78px;
}

.briefing-icon {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
  flex-shrink: 0;
}

.briefing-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}

.briefing-meta .post-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.briefing-meta .post-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ai-briefing-card .post-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.ai-briefing-card .post-summary {
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.88rem;
}

.briefing-highlights {
  margin-top: auto;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0;
  border: 1px solid var(--border);
}

.highlights-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlights-list li {
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.highlights-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Hero highlights without bullets */
.highlight-item {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.highlight-item a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.5rem 0;
}

.highlight-item a:hover {
  color: var(--accent);
}

.ai-preview {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.ai-preview small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

/* RFP Card Enhancements */
.rfp-card {
  border-color: rgba(251, 191, 36, 0.3);
  display: flex;
  flex-direction: column;
}

.rfp-card:hover {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.15);
}

.rfp-card.urgent-rfp {
  border-color: rgba(239, 68, 68, 0.4);
}

.rfp-card.urgent-rfp:hover {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.rfp-header-badges {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

.rfp-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.rfp-type-badge.urgent {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.rfp-days-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.rfp-days-badge.urgent {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.rfp-card .post-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.rfp-card .post-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.rfp-card .post-summary {
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.88rem;
}

/* RFP Metadata Table */
.rfp-meta-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: auto;
  font-size: 0.75rem;
}

.rfp-meta-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.rfp-meta-table tbody tr:last-child {
  border-bottom: none;
}

.rfp-meta-table tbody tr.meta-highlight {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.02) 100%);
}

.rfp-meta-table td {
  padding: 0.5rem 0.625rem;
  vertical-align: middle;
}

.rfp-meta-table td:first-child {
  width: 40%;
  color: var(--muted);
  font-weight: 600;
}

.rfp-meta-table td:last-child {
  width: 60%;
  text-align: right;
  font-weight: 700;
  color: var(--text);
}

.rfp-meta-table .meta-icon {
  font-size: 0.875rem;
  margin-right: 0.375rem;
  display: inline-block;
  width: 1.125rem;
  text-align: center;
}

.rfp-meta-table .meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rfp-meta-table .meta-value {
  font-size: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.rfp-meta-table .win-probability {
  font-size: 1.125rem;
  font-weight: 800;
}

.win-probability.high {
  color: #22c55e;
}

.win-probability.medium {
  color: #fbbf24;
}

.win-probability.low {
  color: #ef4444;
}

/* RFP AI Analysis Section */
.rfp-analysis-section {
  margin-top: 0.875rem;
  padding: 0.875rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rfp-analysis-section .analysis-sentiment {
  margin-bottom: 0.625rem;
}

.rfp-analysis-section .sentiment-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rfp-analysis-section .sentiment-badge.sentiment-positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rfp-analysis-section .sentiment-badge.sentiment-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.rfp-analysis-section .sentiment-badge.sentiment-neutral {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.rfp-analysis-section .analysis-key-points {
  margin-bottom: 0.625rem;
}

.rfp-analysis-section .key-points-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rfp-analysis-section .key-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rfp-analysis-section .key-points-list li {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.rfp-analysis-section .key-points-list li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: var(--accent);
  font-weight: 700;
}

.rfp-analysis-section .analysis-summary {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(37, 99, 235, 0.15);
}

.rfp-analysis-section .analysis-summary p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.rfp-analysis-section .analysis-summary strong {
  color: var(--accent);
  font-weight: 700;
}

.ai-features {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ai {
  padding: 0.625rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 0;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-ai:hover {
  background: rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn-ai:active {
  transform: translateY(0);
}

.btn-ai:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ai .loading-spinner {
  display: none;
}

.btn-ai:disabled .loading-spinner {
  display: inline-block;
}

/* AI Enhancement Indicators */
.ai-indicator {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: rgba(37, 99, 235, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.ai-indicator::before {
  content: '🤖';
  font-size: 0.75rem;
}

/* Enhanced Sentiment Badges */
.sentiment {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  text-transform: capitalize;
}

.sentiment.positive {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sentiment.positive::before {
  content: '😊';
}

.sentiment.negative {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sentiment.negative::before {
  content: '😔';
}

.sentiment.neutral {
  background: rgba(139, 146, 176, 0.15);
  color: var(--muted);
  border: 1px solid rgba(139, 146, 176, 0.3);
}

.sentiment.neutral::before {
  content: '😐';
}

/* Enhanced Search Status */
.search-status {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 0;
  border: 1px solid rgba(37, 99, 235, 0.15);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-status::before {
  content: '🔍';
  font-size: 1rem;
}

.search-status.ai-search::before {
  content: '🤖';
}

/* Enhanced Briefing Modal Styles */
.briefing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--card);
  border: 2px solid var(--border-light);
  border-radius: 0;
  max-width: 850px;
  width: 92%;
  max-height: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.1);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%);
}

.modal-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.modal-header h2::before {
  content: '📄';
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.modal-close {
  background: var(--card-hover);
  border: 2px solid var(--border);
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 300;
}

.modal-close:hover {
  background: var(--error);
  color: white;
  border-color: var(--error);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.summary-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%);
  border-radius: 0;
  border: 2px solid rgba(37, 99, 235, 0.15);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.briefing-section {
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.briefing-section:nth-child(2) { animation-delay: 0.1s; }
.briefing-section:nth-child(3) { animation-delay: 0.2s; }
.briefing-section:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.section-icon {
  font-size: 1.35rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.section-content {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 0;
  border: 1px solid var(--border);
}

.insights-content {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0.01) 100%);
  border-color: rgba(251, 191, 36, 0.2);
}

.key-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.key-points-list li {
  padding: 1rem 1rem 1rem 3rem;
  background: var(--bg-secondary);
  border-radius: 0;
  border: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.key-points-list li:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.key-points-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-weight: 900;
  font-size: 0.875rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.btn-action {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--card-hover);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

.btn-copy {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}

.btn-copy:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: var(--accent);
}

.btn-export {
  border-color: rgba(147, 197, 253, 0.5);
  background: rgba(147, 197, 253, 0.08);
  color: #93c5fd;
}

.btn-export:hover {
  background: rgba(147, 197, 253, 0.15);
  border-color: #93c5fd;
}

/* Agent Connect Status Indicator */
.agent-connect-status {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  z-index: 100;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.agent-connect-status::before {
  content: '🤖';
  font-size: 1rem;
}

.agent-connect-status.connected {
  border-color: var(--success);
  color: var(--success);
}

.agent-connect-status.connected::before {
  content: '✅';
}

.agent-connect-status.error {
  border-color: var(--error);
  color: var(--error);
}

.agent-connect-status.error::before {
  content: '❌';
}

.agent-connect-status:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Enhanced Loading States and Animations */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pulse animation for loading content */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Post Cards with AI Features */
.post-card.ai-enhanced {
  border-color: rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.post-card.ai-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0.6;
}

.post-card.ai-enhanced::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.03), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Improved Typography Hierarchy */
.post-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--text);
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.post-card .muted {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero-text h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .section-head {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .section-head h2 {
    font-size: 1.5rem;
  }
  
  .ai-features {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .btn-ai {
    justify-content: center;
  }
  
  .search {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .search input,
  .search select {
    width: 100%;
    min-width: unset;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .signup {
    flex-direction: column;
    max-width: 100%;
  }
  
  .nav {
    gap: 1rem;
  }
  
  .nav a {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .briefing-header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  
  .briefing-icon {
    font-size: 2.5rem;
  }
  
  .rfp-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .rfp-meta-item.highlight {
    grid-column: 1;
  }
  
  .post-image-header {
    height: 160px;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .hero-text p {
    font-size: 0.95rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .post-card .pc-body {
    padding: 1rem;
  }
  
  .modal-content {
    width: 95%;
    max-height: 92%;
    border-radius: 0;
  }
  
  .modal-header {
    padding: 1.25rem 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.35rem;
  }
  
  .modal-body {
    padding: 1.25rem;
  }
  
  .summary-meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .btn-action {
    padding: 0.875rem 1.25rem;
  }
  
  .ai-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
  
  .analysis-toggle {
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
  }
  
  .agent-connect-status {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Focus and Accessibility Improvements */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-ai:focus,
.signup button:focus,
.btn-secondary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  .site-header,
  .ai-features,
  .search,
  .agent-connect-status,
  .briefing-modal {
    display: none !important;
  }
  
  .post-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --bg: #ffffff;
    --card: #f8fafc;
    --text: #000000;
    --accent: #1d4ed8;
    --border: #94a3b8;
  }
}

.chat-launcher {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  border: none;
  border-radius: 0;
  background: var(--gradient-accent);
  color: var(--bg);
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 110;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.chat-launcher[hidden] {
  display: none;
}

.chat-panel {
  position: fixed;
  right: 2rem;
  bottom: 5.5rem;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(600px, calc(100vh - 6rem));
  background: var(--card);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  z-index: 120;
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(241, 245, 249, 0.95);
  border-bottom: 1px solid var(--border);
}

.chat-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.chat-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 1) 100%);
}

.chat-placeholder {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2rem;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 0;
  max-width: 85%;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--gradient-accent);
  color: #ffffff;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.chat-bubble.error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ffd4d4;
}

.chat-bubble + .chat-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: -0.4rem;
}

.chat-input {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(241, 245, 249, 0.98);
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}

.chat-input input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
}

.chat-input button {
  border: none;
  border-radius: 0;
  padding: 0.65rem 1.2rem;
  background: var(--gradient-accent);
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
}

.chat-input button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: chat-typing 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-typing {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 700px) {
  .chat-launcher {
    right: 1rem;
    bottom: 1rem;
  }

  .chat-panel {
    right: 1rem;
    left: 1rem;
    bottom: 5rem;
    width: auto;
  }
}

/* RFP Detail Page Styles */
.rfp-ai-brief {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rfp-ai-brief h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.rfp-detail-section {
  margin-bottom: 2rem;
}

.rfp-detail-section h3 {
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(100, 255, 218, 0.2);
}

.rfp-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.rfp-detail-table tr {
  border-bottom: 1px solid var(--border);
}

.rfp-detail-table tr:last-child {
  border-bottom: none;
}

.rfp-detail-table td {
  padding: 0.875rem 1rem;
  vertical-align: top;
}

.rfp-detail-table td:first-child {
  width: 200px;
  color: var(--muted);
  font-weight: 600;
}

.rfp-detail-table td:last-child {
  color: var(--text);
}

.rfp-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.06) 100%);
  border: 2px solid var(--accent);
  border-radius: 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.rfp-source-link:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.12) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.rfp-source-link:active {
  transform: translateY(0);
}

/* Fix inline style issues */
.watson-badge img {
  height: 24px;
  margin-right: 12px;
}

.watson-badge span {
  color: #0f62fe;
  font-weight: 600;
}

.ai-capabilities {
  margin-top: 16px;
}

.btn-primary.agent-link {
  margin-top: 16px;
  display: inline-block;
}

.ibm-watson-link {
  color: #0f62fe;
}

/* Insider page utility classes */
.insider-card-margin { margin-bottom: 2rem; }
.file-upload-margin { margin: 1.5rem 0; }
.upload-area { border: 2px dashed var(--border); border-radius: 0; padding: 2rem; text-align: center; background: rgba(37, 99, 235, 0.03); cursor: pointer; transition: all 0.3s ease; }
.upload-area:hover { border-color: var(--accent); background: rgba(37, 99, 235, 0.06); }
.upload-icon { font-size: 3rem; margin-bottom: 1rem; }
.upload-text-primary { margin: 0 0 0.5rem 0; font-weight: 600; }
.upload-text-secondary { margin: 0; }
.file-input-hidden { display: none; }
.file-list-container { margin-top: 1rem; display: none; }
.file-list-heading { margin-bottom: 0.75rem; }
.file-items { display: flex; flex-direction: column; gap: 0.5rem; }
.analyze-button { margin-top: 1.5rem; width: 100%; padding: 1rem; font-size: 1rem; display: none; }
.features-grid { display: grid; gap: 1.5rem; margin-top: 1rem; }
.feature-item { display: flex; gap: 1rem; align-items: start; }
.feature-icon { font-size: 2rem; flex-shrink: 0; }
.feature-content h3 { margin: 0 0 0.5rem 0; font-size: 1rem; }
.feature-content p { margin: 0; }
.feature-disabled { opacity: 0.6; }
.coming-soon-badge { font-size: 0.75rem; padding: 0.25rem 0.5rem; background: rgba(37, 99, 235, 0.15); border-radius: 0; color: var(--muted); }
.steps-list { padding-left: 1.5rem; line-height: 1.8; }
.cta-section { margin-top: 3rem; padding: 2rem; background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%); border: 1px solid rgba(37, 99, 235, 0.15); border-radius: 0; text-align: center; }
.cta-heading { margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600; }
.cta-section .muted { margin: 0 0 1.5rem 0; }
.file-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; background: var(--card); border: 1px solid var(--border); border-radius: 0; }
.file-info { display: flex; align-items: center; gap: 0.75rem; }
.file-icon { font-size: 1.5rem; }
.file-name { font-weight: 600; font-size: 0.875rem; }
.remove-btn { background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; padding: 0.25rem 0.5rem; }

/* Founding Member Banner */
.founding-member-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  text-align: center;
  border-bottom: 3px solid #fbbf24;
}

.founding-member-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.founding-member-banner-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.founding-member-badge {
  background: #fbbf24;
  color: #78350f;
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  margin: 0 0.5rem;
  font-weight: 700;
}

.founding-member-stats {
  font-size: 0.875rem;
  opacity: 0.95;
}

.founding-member-cta {
  background: #fbbf24;
  color: #78350f;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  transition: all 0.3s ease;
}

.founding-member-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
  background: #f59e0b;
}

.founding-member-nav-link {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-weight: 700;
}

.founding-member-nav-link:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #78350f;
}
