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

/* ===================================
* 전역 스타일
* =================================== */

/* 기본 스타일 */
:root {
   --primary-color: #10a37f;
   --primary-color-light: #1ad1a4;
   --primary-color-dark: #0b755c;
   --secondary-color: #343541;
   --light-bg: #f8f9fa;
   --card-shadow: 0 2px 15px rgba(0,0,0,0.05);
   --transition-speed: 0.3s;
   --gradient-start: #10a37f;
   --gradient-end: #5664d2;
}

body {
   font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   background-color: #fff;
   color: var(--secondary-color);
}

main {
   flex: 1;
}

.text-gradient {
   background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   text-fill-color: transparent;
}

.btn-primary {
   background-color: var(--primary-color);
   border-color: var(--primary-color);
   color: white;
   border-radius: 8px;
   padding: 0.6rem 1.5rem;
   font-weight: 600;
   transition: all 0.3s ease;
   box-shadow: 0 4px 12px rgba(16, 163, 127, 0.15);
}

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

.btn-outline-primary {
   color: var(--primary-color);
   border-color: var(--primary-color);
   border-radius: 8px;
   padding: 0.6rem 1.2rem;
   font-weight: 500;
   transition: all 0.3s ease;
}

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

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

.section-header h2 {
    color: var(--secondary-color);
    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(--primary-color), var(--primary-color-light));
    border-radius: 2px;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 1rem;
    font-weight: 400;
}


/* ===================================
* 헤더 스타일
* =================================== */

/* 헤더 네비게이션 */
.navbar {
   box-shadow: 0 2px 15px rgba(0,0,0,0.15);
   padding: 1rem 0;
   background-color: #fff;
}

.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(--primary-color);
}

.nav-link {
   font-weight: 500;
   padding: 0.5rem 1rem;
   transition: all 0.3s ease;
   border-radius: 6px;
}

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

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

/* ===================================
* 히어로 섹션
* =================================== */

/* 히어로 섹션 메인 스타일 */
.hero-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #0d8c6c 0%, #1a6c8f 100%);
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 25vh;
}

.hero-section::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   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: 0.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: white;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

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

.hero-search .input-group-text {
   background-color: #10a37f;
   border: none;
   border-left: 1px solid #10a37f;
   color: white;
}

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

/* 검색 박스 포커스 효과 */
.hero-search .form-control:focus {
   border-color: rgba(255, 255, 255, 0.5);
   box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* 카테고리 배지 스타일 */
.hero-section .badge.bg-light {
   background-color: rgba(255, 255, 255, 0.15) !important;
   color: white !important;
   border: 1px solid rgba(255, 255, 255, 0.3);
   transition: all 0.3s ease;
   padding: 0.5rem 1rem;
   font-weight: 400;
   font-size: 0.9rem;
   cursor: pointer;
}

.hero-section .badge.bg-light:hover {
   background-color: rgba(255, 255, 255, 0.25) !important;
   transform: translateY(-2px);
}

/* ===================================
* 카테고리 섹션
* =================================== */

/* 카테고리 섹션 메인 */
.category-section {
    padding: 5rem 0;
    background-color: #fff;
}

.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: 18px;
    background-color: #fff;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    padding: 0.8rem;
    cursor: pointer;
    transform-origin: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 카테고리 아이템 호버 효과 */
.category-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.category-item:hover .category-icon-box {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(16, 163, 127, 0.35);
}

/* 카테고리 아이템 활성 상태 */
.category-item.active {
    background-color: rgba(16, 163, 127, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}


/* 모바일에서 카테고리 아이템 중앙 정렬 */
@media (max-width: 768px) {
    .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; /* 아이템 최대 너비 제한 */
    }
}



/* 아이콘 박스 스타일 */
.category-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* 아이콘 스타일 */
.category-icon {
    font-size: 1.8rem;
    color: white;
    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(--light-bg);
}

.featured-card {
   border: none;
   border-radius: 16px;
   overflow: hidden;
   transition: all 0.3s ease;
   box-shadow: var(--card-shadow);
   position: relative;
}

.featured-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.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, 0.03);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}


.featured-card:hover .card-img-container img {
    transform: scale(1.05);
}

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

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

.featured-card .card-text {
   color: #6c757d;
   font-size: 0.95rem;
   line-height: 1.6;
}

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

/* info-card 추가 스타일 */
.info-card {
   transition: all 0.3s ease;
}

.info-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ===================================
* GPTs 목록 섹션
* =================================== */

/* GPTs 섹션 메인 */
.gpts-section {
   padding: 5rem 0;
   background-color: var(--light-bg);
}

.gpt-card {
   border: none;
   border-radius: 16px;
   overflow: hidden;
   transition: all 0.3s ease;
   box-shadow: var(--card-shadow);
   position: relative;
}

.gpt-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

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

.gpt-card .card-text {
   color: #6c757d;
   font-size: 0.9rem;
   line-height: 1.5;
}

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

/* ===================================
* CTA 섹션
* =================================== */

/* CTA 섹션 메인 */
.cta-section {
   padding: 5rem 0;
   background: linear-gradient(135deg, #10a37f 0%, #5664d2 100%);
   color: white;
   text-align: center;
}

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

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

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

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

.cta-section .btn:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 25px rgba(0,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: 0.25rem;
}

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

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

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

/* ===================================
* 푸터 스타일
* =================================== */

/* 푸터 메인 */
footer {
   background-color: var(--secondary-color);
   color: white;
   padding: 4rem 0 2rem;
}

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

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

footer a {
   color: rgba(255, 255, 255, 0.7);
   transition: color 0.3s ease;
}

footer a:hover {
   color: white;
}

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

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

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

/* 푸터 메뉴 간격 조정 */
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, 0.1);
   color: white;
   transition: all 0.3s ease;
   margin-right: 0.5rem;
}

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

.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, 0.1);
   color: white;
   transition: all 0.3s ease;
   margin-right: 0.5rem;
   text-decoration: none;
}

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

/* ===================================
* 반응형 스타일
* =================================== */

/* 반응형 중형 화면 */
@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;
   }
}

/* 반응형 태블릿 화면 */
@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;
   }
}

/* 반응형 모바일 화면 */
@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;
   }
}

/* ===================================
* 애니메이션
* =================================== */

/* 페이드인 애니메이션 */
@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, 0.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;
}



/* RSS 아이콘 스타일 */
.social-links a[aria-label*="RSS"] {
    background-color: #ffc107;
    color: #000;
}

.social-links a[aria-label*="RSS"]:hover {
    background-color: #ffcd39;
    transform: translateY(-3px);
}

/* RSS 아이콘 애니메이션 */
.bi-rss {
    animation: rss-pulse 2s infinite ease-in-out;
}

@keyframes rss-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

/* RSS 버튼 호버 효과 */
.btn-outline-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}



/* 푸터 모바일 최적화 - 2열 구조 */
@media (max-width: 768px) {
    /* 첫 번째 컬럼(브랜드 정보)는 전체 너비 */
    footer .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* 나머지 4개 컬럼을 2열로 배치 */
    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;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.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;
    }
}

/* 더 작은 화면에서 추가 최적화 */
@media (max-width: 576px) {
    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;
    }
}