/*
 * 파일명: style.css
 * 위치: /assets/css/style.css
 * 기능: 메인 스타일시트
 * 작성일: 2025-05-09
 */

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

/* 기본 스타일 */
: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: 2.5rem;
}

.section-header h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

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

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

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

/* 히어로 섹션 스타일 - style.css 파일에 추가하거나 기존 스타일을 교체하세요 */

.hero-section {
    padding: 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);
}

.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-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;
}

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

/* 반응형 조정 */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-search {
        max-width: 100%;
    }
}

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

.category-section {
    padding: 5rem 0;
    background-color: #fff;
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background-color: #fff;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding: 0.5rem;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    color: var(--primary-color);
}

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

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

.category-item span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* ===================================
 * 추천 섹션
 * =================================== */

.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: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    overflow: hidden;
    background-color: rgba(16, 163, 127, 0.03);
}

.card-img-container img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
    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;
}

/* ===================================
 * 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-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;
	text-decoration: none;
}

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);
}

.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;    
    width: 160px;
    height: 30px;
    border-radius: 10%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    padding-left: 0.5rem;
	margin-right: 0.5rem;
	text-decoration: none;
}

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

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

@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .category-item {
        width: 90px;
        height: 90px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .featured-card .card-img-container {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-search {
        margin: 0 auto;
    }
    
    .category-item {
        width: 80px;
        height: 80px;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-item span {
        font-size: 0.75rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .category-filter {
        gap: 0.5rem;
    }
    
    .category-item {
        width: 70px;
        height: 70px;
    }
}

/* 상세 페이지 스타일 - style.css 파일에 추가하세요 */

/* ===================================
 * 상세 페이지 스타일
 * =================================== */

/* 브레드크럼 네비게이션 */
.breadcrumb-container {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* GPT 상세 카드 */
.gpt-detail-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* 제목 스타일 */
.gpt-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* 설명 스타일 */
.gpt-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 2rem;
}

/* 태그 스타일 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-badge {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    color: #333;
    text-decoration: none;
}

/* 버튼 컨테이너 */
.gpt-button-container {
    margin-top: 2rem;
}

.gpt-button-container .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gpt-button-container .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 163, 127, 0.15);
}

/* 배지 스타일 */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 6px;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-warning {
    background-color: #ffb700 !important;
}

/* 관련 GPTs 섹션 */
.related-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.related-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.related-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.related-card .card-text {
    font-size: 0.9rem;
    color: #666;
}

.related-card .card-footer {
    padding: 1rem 1.5rem 1.5rem;
}

/* 뒤로 가기 버튼 */
.btn-outline-secondary {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: translateY(-2px);
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .gpt-detail-card {
        padding: 1.5rem;
    }
    
    .gpt-title {
        font-size: 1.75rem;
    }
    
    .gpt-description {
        font-size: 1rem;
    }
}

/* ===================================
 * 관리자 페이지 스타일
 * =================================== */

/* 관리자 사이드바 */
.admin-sidebar {
    background-color: var(--secondary-color);
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.admin-sidebar .nav-link:hover, 
.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

/* 관리자 통계 카드 */
.stat-card {
    border-radius: 16px;
    border: none;
    transition: all 0.3s ease;
}

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

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 관리자 테이블 */
.admin-table th {
    font-weight: 600;
}

.admin-table .table-actions {
    width: 120px;
}

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

@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;
}