/* Dutch SXSW Proposals Page Styles */

/* Layout and structure */
.intro-voting-section {
  background: var(--ciiic-white-10);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid var(--ciiic-white-20);
}

.intro-voting-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.intro-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ciiic-white);
  margin: 0 0 24px 0;
}

.intro-text:last-child {
  margin-bottom: 0;
}

/* Voting section - inside intro */
.voting-section {
  background: var(--ciiic-green-20);
  border: 1px solid var(--ciiic-primary-green);
  border-radius: 8px;
  padding: 30px;
}

.voting-heading {
  font-family: 'GT America Extended', Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ciiic-white);
  margin: 0 0 25px 0;
  line-height: 1.2;
}

.voting-section p {
  font-size: 18px;
  margin: 0;
  line-height: 1.5;
}

/* Voting steps styling */
.voting-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  background: #daff02;
  color: black;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.step p {
  margin: 0;
  line-height: 1.5;
  flex: 1;
  font-size: 18px;
}

/* Filter section styling */
.filter-section {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  color: var(--ciiic-white);
  font-size: 14px;
  font-weight: 500;
}

.category-filter {
  background: var(--ciiic-white-10);
  border: 1px solid var(--ciiic-white-30);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ciiic-white);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  min-width: 200px;
}

.category-filter:focus {
  border-color: var(--ciiic-primary-green);
  box-shadow: 0 0 0 2px var(--ciiic-green-20);
}

.category-filter option {
  background: var(--ciiic-bg-darker-green);
  color: var(--ciiic-white);
}

/* Filter utility classes */
.proposals-grid .proposal-card.hidden {
  display: none;
}

/* Link styling */
a {
  color: var(--ciiic-white);
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ciiic-primary-green);
  text-decoration: none;
}

a:visited {
  color: var(--ciiic-white);
}

a:focus {
  outline: 2px solid var(--ciiic-primary-green);
  outline-offset: 2px;
}

/* Focus management and keyboard navigation */
.vote-button:focus {
  outline: 3px solid var(--ciiic-primary-green);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(76, 175, 80, 0.2);
}

.proposal-card:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--ciiic-primary-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Section headers */
.section-header {
  margin: 40px 0 30px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ciiic-primary-green);
}

.section-header h2 {
  margin: 0;
  color: var(--ciiic-white);
  line-height: 1.1;
}

/* Notice heading */
.notice-heading {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: var(--ciiic-white);
  line-height: 1.1;
}

/* Visually hidden utility class for accessibility 
   Note: !important declarations are necessary here to ensure this utility
   always works regardless of other CSS specificity */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Grid layout for proposals */
.proposals-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  );
  gap: 20px;
  margin-bottom: 40px;
}

/* Proposal cards */
.proposal-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.proposal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.proposal-title {
  font-family: 'GT America Extended', Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: black;
  margin: 0 0 12px 0;
  line-height: 1.1;
}

/* New header section with speakers and category side by side */
.proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 15px;
}

.proposal-speakers {
  font-size: 16px;
  color: #666;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.proposal-category {
  background: #e8e8e8;
  color: #555;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid #ccc;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  margin: 0;
  flex-shrink: 0;
}

/* Remove the old meta section */
.proposal-meta {
  display: none;
}

/* Remove proposal-id completely */
.proposal-id {
  display: none;
}

/* Proposal description styling */
.proposal-description {
  margin: 12px 0 15px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #e8e8e8;
}

.description-preview {
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  margin: 0 0 8px 0;
  font-style: italic;
}

.description-toggle {
  background: none;
  border: none;
  color: #007bff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.description-toggle:hover {
  color: #0056b3;
  text-decoration: none;
}

.description-toggle:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
  border-radius: 2px;
}

.description-full {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.description-full p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 10px 0;
}

.description-full p:last-child {
  margin-bottom: 0;
}

/* Vote button - extends base btn-primary with positioning */
.proposal-card .vote-button {
  margin-top: auto;
  align-self: flex-end;
  width: fit-content;
}

/* Pinned (highlighted) proposals styling */
.proposal-card.pinned {
  border: 1px solid #e0e0e0;
  background: white;
  position: relative;
}

.proposal-card.pinned::before {
  content: '📌';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  opacity: 0.8;
}

/* Footer */
.footer {
  margin-top: 60px;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--ciiic-white-20);
  color: var(--ciiic-white-70);
}

.ciiic-logo {
  color: var(--ciiic-primary-green);
  font-weight: bold;
}

/* Responsive design breakpoints */
@media (max-width: 1200px) {
  .proposals-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(280px, 1fr)
    );
  }
}

@media (max-width: 768px) {
  .intro-voting-section {
    padding: 25px 20px;
  }

  .intro-voting-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-text {
    font-size: 18px;
  }

  .voting-section {
    padding: 25px 20px;
  }

  .voting-heading {
    font-size: 24px;
  }

  .step p {
    font-size: 16px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .proposals-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .proposal-card {
    padding: 20px;
  }

  .proposal-title {
    font-size: 19px;
  }

  .proposal-speakers {
    font-size: 15px;
  }

  .proposal-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .proposal-category {
    align-self: flex-start;
  }

  .vote-button {
    padding: 12px;
    font-size: 14px;
  }

  .proposal-description {
    padding: 10px;
    margin: 10px 0 12px 0;
  }

  .description-preview {
    font-size: 15px;
  }

  .description-toggle {
    font-size: 14px;
  }

  .description-full p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .proposals-grid {
    gap: 12px;
  }

  .proposal-card {
    padding: 15px;
  }

  .proposal-title {
    font-size: 15px;
  }
}
