/* Theses Page Styles */

.title-section {
  padding-top: 100px;
  margin: 2rem auto 1rem;
  text-align: center;
}

.section-title {
  color: var(--tum-dark);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Theses Container */
.theses-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Thesis Card */
.thesis-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.thesis-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 101, 189, 0.15);
  border-color: var(--tum-blue);
}

/* Thesis Header */
.thesis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.thesis-type {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.thesis-type.bachelor {
  background: rgba(0, 101, 189, 0.1);
  color: var(--tum-blue);
}

.thesis-type.master {
  background: rgba(7, 33, 64, 0.1);
  color: var(--tum-dark);
}

.thesis-status {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.thesis-status.available {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.thesis-status.taken {
  background: rgba(158, 158, 158, 0.1);
  color: #616161;
}

/* Thesis Content */
.thesis-title {
  color: var(--tum-dark);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.thesis-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Thesis Details */
.thesis-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.thesis-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.thesis-detail-item i {
  color: var(--tum-blue);
  font-size: 0.95rem;
  width: 18px;
}

/* Thesis Footer */
.thesis-footer {
  padding-top: 0.5rem;
}

.thesis-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--tum-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid var(--tum-blue);
}

.thesis-button:hover {
  background: var(--tum-dark);
  border-color: var(--tum-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 101, 189, 0.3);
}

.thesis-button:focus {
  outline: 3px solid var(--tum-blue);
  outline-offset: 3px;
}

.thesis-button i {
  font-size: 1rem;
}

/* Call to Action Section */
.cta-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--tum-blue) 0%, var(--tum-dark) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 101, 189, 0.2);
}

.cta-content h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--tum-blue);
  padding: 1rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta-button-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: var(--background-light);
}

.cta-button-large:focus {
  outline: 3px solid white;
  outline-offset: 3px;
}

.cta-button-large i {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .theses-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .title-section {
    padding-top: 80px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .theses-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .thesis-card {
    padding: 1.5rem;
  }

  .thesis-title {
    font-size: 1.25rem;
  }

  .cta-section {
    margin: 3rem 1rem;
    padding: 2rem 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-button-large {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .thesis-card {
    padding: 1.25rem;
  }

  .thesis-title {
    font-size: 1.15rem;
  }

  .thesis-description {
    font-size: 0.9rem;
  }

  .thesis-button {
    width: 100%;
    justify-content: center;
  }

  .cta-section {
    padding: 1.5rem 1rem;
  }

  .cta-content h2 {
    font-size: 1.4rem;
  }

  .cta-button-large {
    width: 100%;
    justify-content: center;
  }
}

/* Animation delays */
.animate-fade-in:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-in:nth-child(4) { animation-delay: 0.4s; }
.animate-fade-in:nth-child(5) { animation-delay: 0.5s; }
.animate-fade-in:nth-child(6) { animation-delay: 0.6s; }
.animate-fade-in:nth-child(7) { animation-delay: 0.7s; }
