/**
 * ========================================================
 * 📊 records.css - 실적현황 페이지 스타일
 * ========================================================
 * 역할:
 *   - 기업별 실적 데이터 표시
 *   - 필터 기능: 드롭다운으로 기업 선택
 *   - 테이블 스타일: 실적 데이터 표현
 *   - 반응형 레이아웃
 * 사용 대상: pages/records.html
 * ======================================================== */




/* ===== 실적현황 섹션 ===== */
.records-section {
  padding: 50px 0;
  background: #fff;
}

.records-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
}

.records-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-point1);
  margin: 0;
  text-align: center;
}

.records-title i {
  margin-right: 8px;
}

.filter-box {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.company-select {
  padding: 10px 12px;
  border: 2px solid var(--color-point1);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--color-point1);
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 250px;
  font-weight: 600;
}

.company-select:hover {
  background-color: rgba(42, 157, 93, 0.08);
  box-shadow: 0 2px 12px rgba(42, 157, 93, 0.2);
}

.company-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 157, 93, 0.15);
  border-color: var(--color-point1);
}

.company-select option {
  color: #333;
  background-color: #fff;
  padding: 8px 12px;
}

/* ===== 레코드 표시 영역 ===== */
.records-display {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.company-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.company-header {
  background: linear-gradient(90deg, #2A9D5D 0, #1B7C48 100%);
  padding: 16px 24px;
  color: #fff;
}

.company-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.company-table {
  padding: 20px;
  overflow-x: auto;
}

/* ===== 테이블 스타일 ===== */
.company-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.company-table table thead {
  background: #f5f5f5;
}

.company-table table thead th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid var(--color-point1);
}

.company-table table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.company-table table tbody tr:hover {
  background: #f9f9f9;
}

.company-table table tbody td {
  padding: 12px;
  color: #555;
}

.company-table table tbody td:first-child {
  text-align: center;
  font-weight: 500;
  color: var(--color-point1);
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .records-section { padding: 30px 0; }
  .records-title {
    font-size: 1.2rem;
  }

  .filter-box {
    flex-direction: column;
    align-items: stretch;
  }

  .company-select {
    min-width: 100%;
  }

  .company-table {
    padding: 12px;
    font-size: 0.8rem;
  }

  .company-table table thead th,
  .company-table table tbody td {
    padding: 8px;
  }
  
  .company-header h4 { font-size: 1rem; }
  .records-display { gap: 30px; }
}

@media (max-width: 480px) {
  .records-section { padding: 20px 0; }
  .records-header { gap: 15px; margin-bottom: 20px; }
  .records-title { font-size: 1rem; }
  .filter-label { font-size: 0.85rem; }
  .company-select { font-size: 0.8rem; padding: 8px 10px; }
  .company-table { padding: 8px; font-size: 0.7rem; }
  .company-table table thead th,
  .company-table table tbody td { padding: 6px; }
  .company-header { padding: 12px 16px; }
  .company-header h4 { font-size: 0.9rem; }
  .records-display { gap: 20px; }
}

/* ===== 협력업체 섹션 ===== */
.partners-section {
  background: #fafafa;
  padding: 70px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-family: 'Noto Sans KR', 'Malgun Gothic', Dotum, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #1e2d3d;
  margin-bottom: 8px;
}

.section-heading p {
  color: #888;
  font-size: 13px;
}

.partners-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.partner-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  min-height: 70px;
}

.partner-logo:hover {
  border-color: var(--color-point1);
  box-shadow: 0 2px 8px rgba(107, 157, 138, 0.15);
}

.partner-logo img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .partners-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .partners-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
  }

  .partner-logo {
    padding: 10px;
    min-height: 80px;
  }

  .partner-logo img {
    max-height: 60px;
  }
}
