/* ==========================================
   인포집합소 스타일 - AI 지원금 확인기 (완전판)
   ========================================== */

/* 전체 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
  background: #f5f5f5;
  line-height: 1.6;
  color: #333;
}

.infobaz-support {
  max-width: 1080px;
  margin: 0 auto;
  background: white;
}

/* ==========================================
   Hero 섹션 (인포집합소 스타일)
   ========================================== */
.hero-section {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  padding: 60px 20px 50px;
  text-align: center;
  border-bottom: 3px solid #2196F3;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  color: #1565C0;
  margin: 0 0 16px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 19px;
  color: #424242;
  margin: 0 0 12px;
  font-weight: 600;
}

.hero-description {
  font-size: 15px;
  color: #616161;
  line-height: 1.8;
  margin: 0;
}

/* ==========================================
   입력 폼 섹션
   ========================================== */
.form-section {
  padding: 50px 20px;
  background: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-card {
  background: #ffffff;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  padding: 40px 35px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.input-group {
  margin-bottom: 28px;
}

.input-group label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1565C0;
  margin-bottom: 10px;
}

.form-select {
  width: 100%;
  padding: 15px 18px;
  font-size: 15px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  background: #F8F9FA;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: #2196F3;
  background: white;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #BDBDBD;
  cursor: not-allowed;
}

/* ==========================================
   결과 섹션
   ========================================== */
.results-section {
  padding: 40px 20px 60px;
  background: #FAFAFA;
}

.results-container {
  max-width: 800px;
  margin: 0 auto;
}

.initial-message {
  text-align: center;
  padding: 50px 20px;
  background: white;
  border: 2px dashed #BDBDBD;
  border-radius: 12px;
  color: #666;
  font-size: 16px;
  line-height: 1.8;
}

.initial-message strong {
  color: #2196F3;
}

/* 로딩 */
.loading-box {
  text-align: center;
  padding: 50px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid #E3F2FD;
  border-top: 5px solid #2196F3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 20px;
  color: #666;
  font-size: 16px;
}

/* 결과 헤더 */
.result-header {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  padding: 25px 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  border-left: 5px solid #4CAF50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.result-header h2 {
  color: #2E7D32;
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 700;
}

.result-header p {
  color: #558B2F;
  font-size: 15px;
  margin: 0 0 15px;
}

/* 헤더 버튼 그룹 */
.header-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.reset-btn {
  display: inline-block;
  padding: 10px 22px;
  background: white;
  color: #4CAF50;
  border: 2px solid #4CAF50;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.reset-btn:hover {
  background: #4CAF50;
  color: white;
}

/* 복지로 버튼 */
.bokjiro-btn {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.bokjiro-btn:hover {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.3);
}

/* 지원금 카드 (인포집합소 스타일) */
.support-card {
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-card::before {
  content: '🤝';
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 38px;
  opacity: 0.15;
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.15);
  border-color: #2196F3;
}

/* 카드 헤더 (나이/지역 정보) */
.card-header {
  margin-bottom: 15px;
}

.card-header h3 {
  color: #1565C0;
  font-size: 21px;
  margin: 0 0 10px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-age,
.meta-region {
  display: inline-block;
  background: #E3F2FD;
  color: #1565C0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.meta-region {
  background: #FFF3E0;
  color: #EF6C00;
}

.support-amount {
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.support-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.apply-btn {
  display: inline-block;
  padding: 12px 26px;
  background: #FF5722;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.apply-btn:hover {
  background: #E64A19;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.3);
}

/* 결과 없음 */
.no-result {
  text-align: center;
  padding: 50px 30px;
  background: #FFF3E0;
  border: 2px solid #FFB74D;
  border-radius: 12px;
}

.no-result h3 {
  color: #F57C00;
  font-size: 20px;
  margin: 0 0 12px;
}

.no-result p {
  color: #666;
  font-size: 15px;
  margin: 0 0 20px;
  line-height: 1.7;
}

/* ==========================================
   푸터 (인포집합소 스타일)
   ========================================== */
.footer-section {
  background: #263238;
  padding: 40px 20px 30px;
  text-align: center;
  color: white;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 700;
}

.footer-text {
  color: #B0BEC5;
  font-size: 14px;
  margin: 0 0 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: #81D4FA;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4FC3F7;
  text-decoration: underline;
}

.footer-copyright {
  color: #78909C;
  font-size: 13px;
  margin: 15px 0 0;
}

/* ==========================================
   모바일 반응형
   ========================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 16px 35px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-description {
    font-size: 14px;
  }

  .form-section {
    padding: 35px 16px;
  }

  .form-card {
    padding: 30px 22px;
  }

  .results-section {
    padding: 30px 16px 50px;
  }

  .support-card {
    padding: 25px 20px;
  }

  .card-header h3 {
    font-size: 19px;
  }

  .card-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .meta-age,
  .meta-region {
    width: fit-content;
  }

  .header-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bokjiro-btn,
  .reset-btn {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }

  .form-card {
    padding: 25px 18px;
  }

  .support-card::before {
    font-size: 30px;
    right: 15px;
  }
}
