/* Ideas Page Styles */
.ideas-page {
  padding: 2rem 0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.page-description {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.collapsible-section {
  background-color: var(--bg-white);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.collapsible-section:hover {
  box-shadow: var(--shadow-lg);
}

.comic-sans .collapsible-toggle span,
.comic-sans .section-description p {
  font-family: "Comic Sans MS", "Comic Sans", cursive !important;
}

.collapsible-toggle {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.collapsible-toggle:hover {
  background-color: var(--hover-highlight);
}

.collapsible-toggle i {
  transition: transform 0.3s ease;
}

.collapsible-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.collapsible-content.active {
  max-height: 2000px;
}

.section-description {
  padding: 1.5rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

.form-container {
  padding: 3rem;
}

.club-form {
  background: var(--bg-white);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  font-family: var(--font-family, "Inter", sans-serif);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  text-align: center;
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
}

.form-row {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 220px;
}

.full-width {
  flex: 1 1 100%;
}

label {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label .label-row {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.required {
  color: var(--accent-color);
  font-weight: 700;
  margin-left: 0.2em;
  font-size: 1.1em;
  line-height: 1;
}

.optional {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.95em;
  margin-left: 0.2em;
}

input[type="text"],
input[type="email"],
select,
textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 0.75rem;
  font-size: 1rem;
  background: var(--bg-light);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s ease, color 0.3s ease;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(60,60,60,0.03);
  margin-top: 0.1rem;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--light-background);
  color: var(--text-dark);
  border-color: var(--border-color);
  box-shadow: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-light);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-submit {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.95rem 2.2rem 0.95rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.form-submit i {
  font-size: 1.15em;
  margin-left: 0.2em;
}

.form-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(59,130,246,0.13);
}

.cancel-btn {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.95rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  box-shadow: none;
}

.cancel-btn:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.cancel-message {
  text-align: center;
  font-size: 0.98rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.cancel-message a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.thank-you-message {
  color: var(--primary-color);
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.proposal-thank-you-message {
  background: var(--bg-white);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  max-width: 600px;
  margin: 2rem auto;
  font-family: var(--font-family, "Inter", sans-serif);
  text-align: center;
}
.proposal-thank-you-message h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.proposal-thank-you-message p {
  color: var(--text-light);
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
}
.proposal-thank-you-message a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.idea-thank-you-message {
  background: var(--bg-white);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  max-width: 600px;
  margin: 2rem auto;
  font-family: var(--font-family, "Inter", sans-serif);
  text-align: center;
}
.idea-thank-you-message h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.idea-thank-you-message p {
  color: var(--text-light);
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
}
.idea-thank-you-message a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 700px) {
  .club-form {
    padding: 1rem 0.5rem;
    max-width: 99vw;
  }
  .form-grid {
    gap: 1rem;
  }
}

@media (max-width: 500px) {
  .form-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .form-row, .full-width {
    min-width: 0;
    width: 100%;
  }
  .form-title {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-title {
      font-size: 2rem;
  }

  .page-description {
      font-size: 1rem;
      padding: 0 1rem;
  }

  .collapsible-toggle {
      padding: 1.25rem;
      font-size: 1.125rem;
  }

  .section-description,
  .form-container {
      padding: 1.25rem;
  }
}

@media (max-width: 600px) {
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.7rem;
  }
  .form-submit, .cancel-btn {
    width: 100%;
    justify-content: center;
  }
}

.form-row.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.5em;
}

.form-row.checkbox-row label {
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1.08rem;
  margin: 0;
}

.form-row.checkbox-row input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  accent-color: var(--primary-color);
  margin: 0 0.5em 0 0;
  flex-shrink: 0;
}

.form-row.checkbox-row span {
  display: inline-block;
  line-height: 1.3;
  text-align: left;
}

.ideas-pool-container {
  padding-top: 60px;
}

.idea-card {
  background: var(--bg-white);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.idea-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.idea-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.idea-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.idea-category {
  background: var(--primary-light, rgba(59, 130, 246, 0.15));
  color: var(--primary-color);
  font-size: 0.9rem;
  padding: 0.35em 1em;
  border-radius: 1em;
  font-weight: 700;
  box-shadow: var(--shadow-sm, 0 1px 4px rgba(59,130,246,0.07));
}

.idea-meta {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1.7rem;
}

.idea-description {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.idea-skills {
  background: var(--bg-light);
  border-radius: 0.7em;
  padding: 0.5em 0.7em;
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.idea-skill {
  background: var(--primary-light, rgba(59, 130, 246, 0.15));
  color: var(--primary-color);
  font-size: 0.95rem;
  padding: 0.25em 0.9em;
  border-radius: 1em;
  font-weight: 600;
  margin-right: 0.3em;
}

.idea-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1.2rem;
  border-top: 1px solid var(--border-color, #e5e7eb);
  padding-top: 1.2rem;
}

.propose-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0.7em;
  padding: 0.6em 1.5em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
  font-family: inherit;
}

.propose-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(59,130,246,0.13);
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .idea-card {
    max-width: 98vw;
    padding: 1.1rem 0.5rem 1rem 0.5rem;
  }
  .idea-title {
    font-size: 1.15rem;
  }
}

.ideas-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.pagination-btn {
  background: var(--bg-white);
  color: var(--text-dark);
  border: none;
  border-radius: 50%;
  width: 2.3em;
  height: 2.3em;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.pagination-btn.active {
  background: var(--primary-color);
  color: #fff;
}

.pagination-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-range {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 0.2em;
}