/* Frontend Styles for VBC RFP Plugin */

.vbc-rfp-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.vbc-rfp-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #ddd;
}

.vbc-rfp-title {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.vbc-rfp-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.vbc-rfp-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9em;
}

.vbc-rfp-status.status-open {
  background: #46b450;
  color: #fff;
}

.vbc-rfp-status.status-closed {
  background: #999;
  color: #fff;
}

.vbc-rfp-status.status-awarded {
  background: #0073aa;
  color: #fff;
}

.vbc-rfp-status.status-canceled {
  background: #dc3232;
  color: #fff;
}

.vbc-rfp-current-due {
  font-size: 1.3em;
  font-weight: bold;
}

.vbc-rfp-current-due time {
  color: #0073aa;
}

.vbc-rfp-key-info {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 30px;
}

.vbc-rfp-key-info h2 {
  margin-top: 0;
  font-size: 1.5em;
}

.vbc-rfp-key-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
}

.vbc-rfp-key-info dt {
  font-weight: bold;
}

.vbc-rfp-key-info dd {
  margin: 0;
}

/* Prevent overflow of long strings/URLs */
.vbc-rfp-key-info dt,
.vbc-rfp-key-info dd {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Responsive: stack terms and descriptions on small screens */
@media (max-width: 600px) {
  .vbc-rfp-key-info dl {
    grid-template-columns: 1fr;
    gap: 6px 0;
  }
  .vbc-rfp-key-info dt {
    margin-top: 10px;
  }
}

.vbc-rfp-key-info .button {
  display: inline-block;
  padding: 8px 16px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}

.vbc-rfp-key-info .button:hover {
  background: #005a87;
}

.vbc-rfp-content {
  margin-bottom: 40px;
}

.vbc-rfp-timeline {
  margin-bottom: 40px;
}

.vbc-rfp-timeline h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}

.vbc-timeline-list {
  list-style: none;
  padding: 0;
  position: relative;
}

.vbc-timeline-list::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

.vbc-timeline-event {
  position: relative;
  padding: 20px 20px 20px 60px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  border-left: 4px solid #0073aa;
}

.vbc-timeline-event::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 25px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0073aa;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #0073aa;
}

.vbc-timeline-event.vbc-timeline-latest-due {
  background: #f0f8ff;
  border-left-color: #46b450;
}

.vbc-timeline-event.vbc-timeline-latest-due::before {
  background: #46b450;
  box-shadow: 0 0 0 2px #46b450;
}

.vbc-timeline-event-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.vbc-timeline-event-title {
  font-size: 1.2em;
  color: #333;
}

.vbc-timeline-event-date {
  color: #666;
  font-size: 0.9em;
}

.vbc-timeline-event-note {
  margin-top: 10px;
  color: #555;
  line-height: 1.6;
}

.vbc-timeline-event-doc {
  margin-top: 10px;
}

.vbc-timeline-event-doc a {
  text-decoration: none;
}

.vbc-timeline-event-doc a:hover {
  text-decoration: underline;
}

.vbc-timeline-original-due {
  margin-top: 10px;
  padding: 8px;
  background: #f5f5f5;
  color: #666;
  font-size: 0.9em;
  font-style: italic;
}

.vbc-rfp-docs {
  margin-bottom: 40px;
}

.vbc-rfp-docs h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}

.vbc-rfp-docs-group {
  margin-bottom: 30px;
}

.vbc-rfp-docs-group h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #0073aa;
}

.vbc-rfp-docs-group ul {
  list-style: none;
  padding: 0;
}

.vbc-rfp-docs-group li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.vbc-rfp-docs-group li:last-child {
  border-bottom: none;
}

.vbc-rfp-docs-group a {
  color: #a3473b;
  text-decoration: none;
  font-weight: 500;
}

.vbc-rfp-docs-group a:hover {
  text-decoration: underline;
  color: #82352a;
}

.vbc-doc-date {
  color: #666;
  font-size: 0.9em;
}

.vbc-doc-note {
  display: block;
  color: #666;
  font-size: 0.9em;
  font-style: italic;
  margin-top: 4px;
}

/* Listing shortcode styles */
.vbc-rfp-list {
  display: grid;
  gap: 20px;
}

.vbc-rfp-card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.vbc-rfp-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.vbc-rfp-card h3 a {
  text-decoration: none;
}

.vbc-rfp-card h3 a:hover {
  text-decoration: underline;
}

.vbc-rfp-agency {
  color: #666;
  margin-bottom: 10px;
}

.vbc-rfp-due {
  margin-bottom: 10px;
  font-weight: 500;
}

.vbc-rfp-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.85em;
  margin-bottom: 10px;
}

.vbc-rfp-card .vbc-rfp-status.status-open {
  background: #46b450;
  color: #fff;
}

.vbc-rfp-card .vbc-rfp-status.status-closed {
  background: #999;
  color: #fff;
}

.vbc-rfp-card .vbc-rfp-status.status-awarded {
  background: #0073aa;
  color: #fff;
}

.vbc-rfp-card .vbc-rfp-status.status-canceled {
  background: #dc3232;
  color: #fff;
}

.vbc-rfp-links {
  margin-top: 10px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.vbc-rfp-links a {
  text-decoration: none;
  font-size: 0.9em;
}

.vbc-rfp-links a:hover {
  text-decoration: underline;
}

