/*
* 파일명: style.css
* 위치: /assets/css/style.css
* 기능: SRT 이용안내 메인 스타일시트
* 작성일: 2025-05-22
* 수정일: 2026-06-18
*/

/* ===================================
* 디자인 토큰 (css-standard.md)
* =================================== */
:root {
  /* Brand */
  --color-primary:       #10a37f;
  --color-primary-hover: #0b755c;
  --color-accent:        #1ad1a4;

  /* Background */
  --color-bg:      #f8f9fa;
  --color-surface: #ffffff;
  --color-muted:   #f0f0f0;

  /* Text */
  --color-text:      #343541;
  --color-text-sub:  #6c757d;
  --color-text-muted:#9096A8;

  /* Border */
  --color-border: #e0e6ed;

  /* Status */
  --color-success-bg:   #e6f7ed;
  --color-success-text: #2a8c54;
  --color-error-bg:     #fde8e8;
  --color-error-text:   #b53030;
  --color-warning-bg:   #fff7ed;
  --color-warning-text: #b45309;

  /* Font */
  --font-sans: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font size */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 14px;
  --fs-md:   16px;
  --fs-lg:   20px;
  --fs-xl:   28px;

  /* Layout */
  --container-lg: 1280px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  /* Radius / Shadow */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.09);

  /* Project-specific */
  --gradient-start: #0b755c;
  --gradient-end:   #1ad1a4;
}


/* ===================================
* 기본 (Base)
* =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}


/* ===================================
* 공통 컴포넌트
* =================================== */

/* 텍스트 그라디언트 */
.text-gradient {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 버튼 */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(16,163,127,.15);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 6px 16px rgba(16,163,127,.25);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: background-color .15s, color .15s, box-shadow .15s;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,163,127,.15);
}

/* 섹션 헤더 */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-header h2 {
  color: var(--color-text);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.section-header p {
  color: var(--color-text-sub);
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 400;
}


/* ===================================
* 헤더 네비게이션
* =================================== */
.navbar {
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  background-color: var(--color-surface);
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color .15s, color .15s;
}

.nav-link:hover {
  background-color: rgba(16,163,127,.1);
}

.nav-link.active {
  color: var(--color-primary);
  background-color: rgba(16,163,127,.08);
}


/* ===================================
* 히어로 섹션
* =================================== */
.hero-section {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, #0b755c 0%, #10a37f 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  min-height: 25vh;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .3;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,.9);
  font-weight: 300;
}

/* 검색 박스 */
.hero-search {
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-search .form-control {
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,.1);
  background-color: rgba(255,255,255,.97);
}

.hero-search .form-control:focus {
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 0 .2rem rgba(255,255,255,.25);
}

.hero-search .input-group-text {
  background-color: var(--color-primary);
  border: none;
  color: #fff;
}

.hero-search .btn {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-weight: 600;
}

/* 카테고리 배지 */
.hero-section .badge.bg-light {
  background-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
  padding: 0.5rem 1rem;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color .15s;
}

.hero-section .badge.bg-light:hover {
  background-color: rgba(255,255,255,.25) !important;
}


/* ===================================
* 카테고리 섹션
* =================================== */
.category-section {
  padding: 5rem 0;
  background-color: var(--color-surface);
}

.category-section .row {
  justify-content: center;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  padding: 0.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, color .15s, box-shadow .15s;
}

.category-item:hover {
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.category-item.active {
  background-color: rgba(16,163,127,.08);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.category-icon-box {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 12px rgba(16,163,127,.2);
}

.category-icon {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 600;
}

.category-item span {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.2rem;
}


/* ===================================
* 추천 섹션
* =================================== */
.featured-section {
  padding: 5rem 0;
  background-color: var(--color-bg);
}

.featured-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow .15s;
}

.featured-card:hover {
  box-shadow: var(--shadow-md);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.card-img-container {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
  background-color: rgba(16,163,127,.03);
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.featured-card .card-body {
  padding: 1.5rem;
}

.featured-card .card-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.featured-card .card-text {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

.featured-card .card-footer {
  padding: 1rem 1.5rem 1.5rem;
  background-color: transparent;
}

.info-card {
  transition: box-shadow .15s;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
}


/* ===================================
* 최신 정보 섹션
* =================================== */
.gpts-section {
  padding: 5rem 0;
  background-color: var(--color-bg);
}

.gpt-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}

.gpt-card:hover {
  box-shadow: var(--shadow-md);
}

.gpt-card .card-body {
  padding: 1.5rem;
}

.gpt-card .card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.gpt-card .card-text {
  color: var(--color-text-sub);
  font-size: 0.9rem;
  line-height: 1.5;
}

.gpt-card .card-footer {
  padding: 1rem 1.5rem 1.5rem;
  background-color: transparent;
}


/* ===================================
* CTA 섹션
* =================================== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  text-align: center;
}

.cta-section .lead {
  font-size: 1.1rem;
  color: #fff;
}

.cta-section h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.cta-section p {
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.cta-section .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  background-color: #fff;
  color: var(--color-primary);
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
  transition: box-shadow .15s;
}

.cta-section .btn:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}


/* ===================================
* 페이지네이션
* =================================== */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: .25rem;
}

.page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.page-link {
  color: var(--color-primary);
}

.page-link:hover {
  color: var(--color-primary-hover);
}


/* ===================================
* 푸터
* =================================== */
footer {
  background-color: var(--color-text);
  color: #fff;
  padding: 4rem 0 2rem;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
}

footer .text-muted {
  color: rgba(255,255,255,.7) !important;
}

footer a {
  color: rgba(255,255,255,.7);
  transition: color .15s;
}

footer a:hover {
  color: #fff;
}

footer hr {
  border-color: rgba(255,255,255,.1);
  margin: 2rem 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-brand i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  color: var(--color-accent);
}

footer .list-unstyled li {
  margin-bottom: 0.6rem;
}

footer .list-unstyled li:last-child {
  margin-bottom: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.1);
  color: #fff;
  margin-right: 0.5rem;
  transition: background-color .15s;
}

.social-links a:hover {
  background-color: var(--color-primary);
}

.social-links a[aria-label*="RSS"] {
  background-color: #ffc107;
  color: #000;
}

.social-links a[aria-label*="RSS"]:hover {
  background-color: #ffcd39;
}

.list-unstyled a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 30px;
  border-radius: 10%;
  background-color: rgba(255,255,255,.1);
  color: #fff;
  margin-right: 0.5rem;
  text-decoration: none;
  transition: background-color .15s;
}

.list-unstyled a:hover {
  background-color: var(--color-primary);
}

.btn-outline-warning:hover {
  box-shadow: 0 4px 8px rgba(255,193,7,.3);
}


/* ===================================
* 애니메이션
* =================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fadeIn {
  animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,163,127,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(16,163,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,163,127,0); }
}

.pulse {
  animation: pulse 2s infinite;
}


/* ===================================
* 반응형
* =================================== */

/* ≤991px */
@media (max-width: 991.98px) {
  .hero-section        { padding: 2rem 0; min-height: 22vh; }
  .section-header h2   { font-size: 2.2rem; }
  .category-item       { width: 100px; height: 100px; }
  .category-icon-box   { width: 50px; height: 50px; }
  .category-icon       { font-size: 1.6rem; }
  .featured-card .card-img-container { height: 180px; }
}

/* ≤767px */
@media (max-width: 767.98px) {
  .hero-section        { padding: 1.8rem 0; min-height: 20vh; text-align: center; }
  .hero-section h1     { font-size: 2.2rem; }
  .section-header h2   { font-size: 2rem; }
  .section-header h2::after { width: 50px; height: 3px; }
  .category-item       { width: 90px; height: 90px; }
  .category-icon-box   { width: 45px; height: 45px; }
  .category-icon       { font-size: 1.4rem; }
  .category-item span  { font-size: 0.8rem; }
  .cta-section h2      { font-size: 2rem; }
  .cta-section p       { font-size: 1rem; }

  .category-section .row   { justify-content: center; margin: 0 auto; }
  .category-section .col-6 { display: flex; justify-content: center; margin-bottom: 1rem; }
  .category-item           { width: 100%; max-width: 120px; }

  footer .col-lg-4 { flex: 0 0 100%; max-width: 100%; text-align: center; margin-bottom: 2rem; }
  footer .col-lg-2 { flex: 0 0 50%; max-width: 50%; padding-left: 1rem; padding-right: 1rem; }
  footer h5        { font-size: 0.9rem; margin-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 0.25rem; }
  footer .list-unstyled li { margin-bottom: 0.4rem; }
  footer .list-unstyled a  { font-size: 0.85rem; line-height: 1.4; }
  footer .col-md-6         { text-align: center !important; margin-bottom: 1rem; }
  footer .col-md-6.text-md-end { text-align: center !important; }
}

/* ≤575px */
@media (max-width: 575.98px) {
  .hero-section        { padding: 1.5rem 0; min-height: 18vh; }
  .hero-section h1     { font-size: 1.8rem; }
  .hero-section .lead  { font-size: 1rem; }
  .section-header h2   { font-size: 1.8rem; }
  .category-filter     { gap: 0.5rem; }
  .category-item       { width: 80px; height: 80px; }
  .category-icon-box   { width: 40px; height: 40px; }
  .category-icon       { font-size: 1.2rem; }
  .category-item span  { font-size: 0.75rem; }
  .cta-section .btn    { display: block; width: 100%; margin-bottom: 1rem; }

  footer .col-lg-2     { padding-left: 0.75rem; padding-right: 0.75rem; margin-bottom: 1.5rem; }
  footer h5            { font-size: 0.85rem; }
  footer .list-unstyled a { font-size: 0.8rem; }
}
