/* 
 * IT Recruiting Platform Styles
 * 
 * Copyright (c) 2024 Personalas GmbH
 * Lichtenrader Damm 45a, 12305 Berlin
 * Email: info@personalas.de
 */

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

.recruiting-platform {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
  padding: 1rem;
}

/* Page Header */
.rp-page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.rp-page-header h2 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.rp-page-header p {
  color: #64748b;
  font-size: 1.1rem;
}

/* Hero Section */
.rp-hero {
  text-align: center;
  padding: 3rem 0;
}

.rp-hero h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.rp-hero p {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 3rem;
}

.rp-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.rp-module-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.rp-module-card h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.rp-module-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* Buttons */
.rp-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-size: 1rem;
}

.rp-btn-primary {
  background-color: #1e40af;
  color: white;
}

.rp-btn-primary:hover {
  background-color: #1d4ed8;
}

.rp-btn-secondary {
  background-color: #64748b;
  color: white;
}

.rp-btn-secondary:hover {
  background-color: #475569;
}

/* Filters */
.rp-filters {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.rp-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rp-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.rp-filter-group {
  display: flex;
  flex-direction: column;
}

.rp-filter-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.rp-filter-group input,
.rp-filter-group select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.rp-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rp-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  margin-bottom: 0;
}

.rp-filter-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

/* Results */
.rp-results-header {
  margin-bottom: 1rem;
}

.rp-results-header p {
  color: #64748b;
  font-weight: 500;
}

/* Candidates Grid */
.rp-candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.rp-candidate-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.rp-candidate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.rp-candidate-header h3 {
  font-size: 1.25rem;
  color: #1e293b;
}

.rp-category-badge {
  background-color: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.rp-candidate-details {
  margin-bottom: 1.5rem;
}

.rp-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.rp-detail-row .rp-label {
  color: #64748b;
  font-weight: 500;
}

.rp-detail-row .rp-value {
  color: #1e293b;
}

.rp-candidate-actions {
  margin-top: auto;
}

/* Jobs List */
.rp-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.rp-job-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.rp-job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.rp-job-header h3 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-right: 1rem;
}

.rp-job-badges {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.rp-remote-badge {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.rp-job-company {
  margin-bottom: 1rem;
  color: #1e40af;
}

.rp-job-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rp-job-description {
  margin-bottom: 1.5rem;
  color: #64748b;
}

.rp-job-actions {
  display: flex;
  justify-content: flex-end;
}

/* Modal */
.rp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.rp-modal {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.rp-modal-large {
  max-width: 700px;
}

.rp-modal h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.rp-job-company {
  color: #1e40af;
  margin-bottom: 1.5rem;
}

/* Forms */
.rp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rp-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.rp-form-group {
  display: flex;
  flex-direction: column;
}

.rp-form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.rp-form-group input,
.rp-form-group select {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.rp-form-group input:focus,
.rp-form-group select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

/* Alerts */
.rp-alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.rp-alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.rp-alert-error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Footer Info */
.rp-footer-info {
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: #64748b;
  border-radius: 0.5rem;
}

.rp-footer-info a {
  color: #1e40af;
  text-decoration: none;
}

.rp-footer-info a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .recruiting-platform {
    padding: 0.5rem;
  }

  .rp-hero h2 {
    font-size: 2rem;
  }

  .rp-modules-grid {
    grid-template-columns: 1fr;
  }

  .rp-filter-row {
    grid-template-columns: 1fr;
  }

  .rp-candidates-grid {
    grid-template-columns: 1fr;
  }

  .rp-job-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rp-job-badges {
    margin-top: 0.5rem;
  }

  .rp-job-details {
    grid-template-columns: 1fr;
  }

  .rp-form-row {
    grid-template-columns: 1fr;
  }

  .rp-form-actions {
    flex-direction: column;
  }

  .rp-filter-actions {
    flex-direction: column;
  }

  .rp-checkbox-group {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .rp-modal {
    padding: 1rem;
    margin: 0.5rem;
  }

  .rp-candidate-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rp-category-badge {
    margin-top: 0.5rem;
  }
}
