/* =============================================
   YESJOB 프로그램 추천 페이지 전용 스타일
   ============================================= */

/* ========== FILTER TABS ========== */
.prog-filter-wrap {
  margin-bottom: 40px;
}

.prog-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: white;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.pft:hover { border-color: var(--primary); color: var(--primary); }

.pft.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

/* ========== FEATURED PROGRAM ========== */
.featured-program {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom: 48px;
  position: relative;
}

.fp-badge-wrap {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.fp-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
}

.fp-badge.hot { background: #ef4444; color: white; }
.fp-badge.deadline { background: var(--secondary); color: white; }
.fp-badge.free { background: #10b981; color: white; }
.fp-badge.new { background: #3b82f6; color: white; }

.fp-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
}

.fp-visual {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.fpv-bg {
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.fpv-icon {
  font-size: 5rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

.fpv-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.fpv-p {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.fpv-p1 { width: 200px; height: 200px; top: -50px; left: -50px; }
.fpv-p2 { width: 150px; height: 150px; bottom: 30px; right: -30px; }
.fpv-p3 { width: 100px; height: 100px; top: 50%; left: 30px; }

.fpv-info-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
  width: 100%;
}

.fpv-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.fpv-chip i { color: rgba(255,255,255,0.6); }

.fp-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.fpc-icon {
  width: 28px; height: 28px;
  background: rgba(0,102,204,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}

.fp-body h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 16px;
}

.fp-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 28px;
}

.fp-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.fpd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.fpd-item i { color: var(--primary); width: 16px; flex-shrink: 0; }

.fp-progress {
  margin-bottom: 28px;
}

.fpp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 500;
}

.fpp-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 50px;
  overflow: hidden;
}

.fpp-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50px;
  transition: width 1s ease;
  position: relative;
}

.fpp-fill::after {
  content: '';
  position: absolute;
  right: -2px; top: 0; bottom: 0;
  width: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,102,204,0.6);
}

.fp-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fp-detail-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  border-top: 1px solid var(--gray-200);
}

.fp-detail-panel.open {
  max-height: 500px;
}

.fdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 48px;
}

.fdp-grid h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fdp-grid h4 i { color: var(--primary); }

.fdp-grid ul li {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 8px;
  padding-left: 12px;
  position: relative;
}

.fdp-grid ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.fdp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.fdp-tags span {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0,102,204,0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(0,102,204,0.15);
}

/* ========== PROGRAMS GRID ========== */
.programs-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pgp-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pgp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pgpc-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.pgpc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-right: auto;
}

.pgpc-icon.blue { background: rgba(0,102,204,0.1); color: var(--primary); }
.pgpc-icon.orange { background: rgba(255,107,0,0.1); color: var(--secondary); }
.pgpc-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.pgpc-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.pgpc-icon.sky { background: rgba(0,170,255,0.1); color: var(--accent); }
.pgpc-icon.red { background: rgba(239,68,68,0.1); color: #ef4444; }

.pgpc-badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
}

.pgpc-badge.hot { background: #ef4444; color: white; }
.pgpc-badge.new { background: #3b82f6; color: white; }
.pgpc-badge.free { background: #10b981; color: white; }

.pgpc-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pgp-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}

.pgp-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

.pgpc-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: 10px;
}

.pgpc-d {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--gray-600);
}

.pgpc-d i { color: var(--primary); width: 14px; flex-shrink: 0; }

.pgpc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.pgpc-status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}

.pgpc-status.available { background: rgba(16,185,129,0.1); color: var(--success); }
.pgpc-status.almost { background: rgba(239,68,68,0.1); color: #ef4444; }
.pgpc-status.upcoming { background: rgba(245,158,11,0.1); color: var(--warning); }
.pgpc-status.closed { background: var(--gray-200); color: var(--gray-500); }

.pgpc-btn {
  padding: 10px 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.pgpc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,102,204,0.4);
}

/* ========== SCHEDULE ========== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sch-month {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.sch-month:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.sch-month-header {
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  text-align: center;
}

.sch-month-header.blue { background: linear-gradient(135deg, #0066CC, #00AAFF); }
.sch-month-header.orange { background: linear-gradient(135deg, #FF6B00, #FF8C33); }
.sch-month-header.green { background: linear-gradient(135deg, #059669, #10b981); }
.sch-month-header.purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }

.sch-events {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sch-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.sch-event:hover { background: var(--gray-100); }
.sch-event.hot { background: rgba(239,68,68,0.05); border: 1px solid rgba(239,68,68,0.1); }

.sch-date {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  width: 36px;
  padding-top: 3px;
}

.sch-info {
  flex: 1;
}

.sch-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-bottom: 4px;
}

.sch-cat.fair { background: rgba(239,68,68,0.1); color: #ef4444; }
.sch-cat.edu { background: rgba(0,102,204,0.1); color: var(--primary); }
.sch-cat.mentor { background: rgba(16,185,129,0.1); color: var(--success); }
.sch-cat.camp { background: rgba(139,92,246,0.1); color: #8b5cf6; }

.sch-info p {
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.4;
}

/* ========== APPLY MODAL ========== */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.apply-modal.open {
  opacity: 1;
  pointer-events: all;
}

.apply-modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.apply-modal.open .apply-modal-content {
  transform: scale(1);
}

.am-body {
  padding: 40px;
}

.am-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.am-icon {
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.am-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.am-header p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group label span { color: var(--secondary); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gray-800);
  outline: none;
  transition: var(--transition);
  background: var(--gray-100);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.form-group textarea { resize: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .fp-grid { grid-template-columns: 1fr; }
  .fpv-bg { min-height: 200px; }
  .programs-grid-page { grid-template-columns: repeat(2, 1fr); }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .fdp-grid { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
}

@media (max-width: 768px) {
  .programs-grid-page { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .fp-body { padding: 28px; }
  .fp-body h2 { font-size: 1.4rem; }
  .fp-details { grid-template-columns: 1fr; }
  .prog-filter-tabs { gap: 6px; }
  .pft { padding: 10px 16px; font-size: 0.82rem; }
  .am-body { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .fp-btns { flex-direction: column; }
  .schedule-grid { grid-template-columns: 1fr; }
}
