/* ===================================
   COMPONENTS CSS
   Reusable UI components and elements
   =================================== */

/* Feature Cards */
.feature-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem 1rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* Tech Items */
.tech-item {
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #495057;
}

/* Card Hover Effects */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Badge Components */
.closed-position-badge {
  background-color: #ffc107 !important;
  color: #000 !important;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 0.2rem 0.3rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-shadow: none;
  min-width: 1.2rem;
  text-align: center;
}

.closed-position-badge:hover {
  background-color: #ffca2c !important;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.open-position-badge {
  background-color: #198754 !important;
  color: #fff !important;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 0.2rem 0.3rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-shadow: none;
  min-width: 1.2rem;
  text-align: center;
}

.open-position-badge:hover {
  background-color: #1aa876 !important;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* Summary Components */
.summary-item {
  padding: 0.5rem 0;
}

.summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

/* Button Components */
.btn-outline-light:not(:disabled):not(.disabled).active:focus,
.btn-outline-light:not(:disabled):not(.disabled):active:focus,
.show > .btn-outline-light.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);
}

/* Form Components */
#editor {
  min-height: 150px;
  resize: vertical;
}

/* Table Components */
.table-row.highlight {
  background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Navigation Components */
.nav-item-spacing {
  padding-right: 4px;
}

.nav-link-custom {
  color: rgba(255, 255, 255, 0.9);
}

/* Utility Components */
.hidden-element {
  display: none;
}

.inline-form {
  display: inline;
}

.white-text {
  color: rgb(255, 255, 255);
}

.nowrap-text {
  white-space: nowrap;
}

.main-content-spacing {
  margin-top: 86px;
  margin-left: 16px;
}

/* Custom Orange Warning for Modals */
.modal-warning-text {
  color: #fd7e14;
  font-weight: bold;
}

@media (max-width: 768px) {
  .summary-responsive .row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem;
  }
  .summary-row {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.07rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.05rem;
    text-align: left !important;
  }
  .summary-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  .summary-label, .summary-value {
    font-size: 0.8rem !important;
    display: block;
    text-align: left !important;
  }
  .summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
  }
  .portfolio-card {
    margin-bottom: 0.7rem !important;
  }
  .card {
    margin-bottom: 0.5rem !important;
    padding: 0.7rem 0.5rem !important;
  }
  .feature-card {
    padding: 1rem 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .container-fluid {
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
  }
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .col-12, .portfolio-card {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .card, .portfolio-summary {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0.7rem !important;
  }
  .portfolio-card,
  .card,
  .portfolio-summary,
  .summary-item {
    padding-left: 0.05rem !important;
    padding-right: 0.05rem !important;
    padding-top: 0.05rem !important;
    padding-bottom: 0.05rem !important;
  }
}
