/* =========================================
   1. 기본 설정 (Variables & Reset)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    /* 💜 기존 퍼플 테마 */
    --custom-purple: #5b21b6;       /* Violet-800 */
    --custom-purple-hover: #4c1d95; /* Violet-900 */
    --custom-purple-light: #a78bfa; /* 비활성화용 */
    
    /* 🥇 신규 골드 테마 (프리미엄) */
    --custom-gold: #E5C359;
    --custom-gold-dark: #B8860B;
    --custom-gold-bright: #DAA520;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
}

/* =========================================
   2. 유틸리티 클래스 (Colors & Buttons)
   ========================================= */

/* 퍼플 텍스트 (중복 제거 및 통합) */
.text-custom-purple {
    color: var(--custom-purple) !important;
}

/* 배경 유틸리티 */
.bg-custom-purple-light {
    background-color: #f3e8ff !important;
}

.bg-purple-light {
    background-color: #f3e8ff; /* 연한 보라 배경 */
}

/* 퍼플 버튼 */
.btn-custom-purple {
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
    color: white;
    transition: all 0.2s ease-in-out;
}

.btn-custom-purple:hover {
    background-color: var(--custom-purple-hover);
    border-color: var(--custom-purple-hover);
    color: white;
}

.btn-custom-purple:disabled {
    background-color: var(--custom-purple-light);
    border-color: var(--custom-purple-light);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-outline-custom-purple {
    color: var(--custom-purple);
    border-color: var(--custom-purple);
}

.btn-outline-custom-purple:hover {
    background-color: var(--custom-purple);
    color: white;
}

/* 라디오/체크박스 스타일 */
.btn-check:checked + .btn-outline-custom-purple,
.btn-check:checked + .btn-outline-secondary {
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(91, 33, 182, 0.2);
}

.form-check-input:checked {
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
}

.form-control:focus {
    border-color: var(--custom-purple-light);
    box-shadow: 0 0 0 0.25rem rgba(91, 33, 182, 0.1);
}

/* =========================================
   3. 🥇 프리미엄 & 골드 테마 (신규 추가)
   ========================================= */

/* 골드 배경 그라데이션 */
.bg-premium-gold {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFFFFF 100%);
    border: 2px solid var(--custom-gold);
}

/* 골드 텍스트 */
.text-gold-dark {
    color: var(--custom-gold-dark) !important;
}

.text-gold-bright {
    color: var(--custom-gold-bright) !important;
}

/* 골드 그림자 */
.gold-shadow {
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.15);
}

/* 혜택 리스트 아이템 (점선) */
.benefit-item {
    border-bottom: 1px dashed #eee;
}

.benefit-item:last-child {
    border-bottom: none;
}

/* 아이콘 박스 (서비스 소개 페이지용) */
.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

/* 호버 효과 및 트랜지션 (로드맵 등) */
.transition-base {
    transition: all 0.3s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 반응형 테두리 (PC에서만 왼쪽 테두리) */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #dee2e6 !important;
    }
}

/* =========================================
   4. 검색 결과 및 메인 컴포넌트
   ========================================= */
/* 하이라이트 */
.bg-yellow-200 {
   /* background-color: #fef08a;*/
    font-weight: bold;
    color: #4f46e5;
}

/* 카드 호버 효과 */
.result-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    border-color: #a5b4fc !important;
}

/* 오늘의 말씀 스크롤바 */
.daily-text-scroll::-webkit-scrollbar {
    width: 6px;
}
.daily-text-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.daily-text-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.daily-text-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.bg-gradient-daily {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 리스트 아이템 호버 */
.scrap-item-hover:hover {
    background-color: #f8f9fa;
}

.hover-danger:hover {
    color: #dc3545 !important;
    transform: scale(1.1);
    transition: all 0.2s;
}

/* =========================================
   5. 페이지네이션 (Pagination)
   ========================================= */
.pagination {
    gap: 5px;
}

.page-link {
    color: var(--custom-purple);
    border: 1px solid #dee2e6;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover {
    color: #fff;
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
}

.page-item.active .page-link {
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
    color: #fff;
    box-shadow: 0 4px 6px rgba(111, 66, 193, 0.3);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
}

/* =========================================
   6. Footer 및 기타
   ========================================= */
.bg-deep-dark-purple {
    background-color: #240046 !important;
    color: #ffffff;
}

.footer-text-small {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-link-white {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-link-white:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.divider {
    opacity: 0.4;
    margin: 0 6px;
}

hr.border-white {
    border-color: #ffffff !important;
}

/* 상세 모달 본문 복사 방지 */
#modalBody {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

/* 잠금 배지 스타일 (비로그인/무료회원용) */
.locked-item .flex-grow-1 {
    filter: blur(1.0px);
    opacity: 0.8;
    pointer-events: none;
}

.locked-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(111, 66, 193, 0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
}

/* 모바일 대응 */
@media (max-width: 991.98px) {
    #nav-subscribe {
        margin-bottom: 15px;
    }
}


.btn-benefit-fixed {
    /* 1. 가로 꽉 참 방지 (Bootstrap d-grid 무력화) */
    width: auto !important; 
    display: inline-block !important;

    /* 2. 적당한 크기 설정 (원하는 너비로 조절 가능) */
    min-width: 200px; /* 최소 200px은 확보 */
    max-width: 80%;   /* 모바일에서 너무 크지 않게 제한 */
    
    /* 3. 버튼 자체 디자인 다듬기 */
    padding: 0.8rem 1.5rem; /* 안쪽 여백을 줘서 통통하게 */
    margin: 0 auto;         /* 가운데 정렬 */
}

/* (선택 사항) d-grid 안에서 왼쪽으로 쏠린다면 부모 요소에 이 클래스 추가 필요 */
/* 하지만 버튼에 margin: 0 auto를 주었으므로 대부분 해결됩니다. */

/* 알림 배지 깜빡임 효과 */
#gnb-notification-badge {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}


#gnb-profile-icon, 
#mobile-profile-icon {
    font-size: 2rem !important; /* 원하시는 크기로 조절 */
}

/* CSS 파일에 추가 */
.animate-fade {
    transition: opacity 0.3s ease-in-out;
}

#modalLoadingArea p {
    font-size: 1rem;
    color: #6f42c1; /* 포인트 컬러 */
    min-height: 1.5rem;
}

/* 프리미엄 유저 전용 노란색 스타일 (심플 버전) */
.text-premium-gold {
    /* 1. 그라데이션 제거 및 단색 노란색 설정 */
    /* 원하는 노란색 톤에 따라 #FFD700(골드), #FFC107(앰버) 중 선택하세요. */
    color: #be9108 !important; 
    
    /* 2. 텍스트 채우기 효과 제거 */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    
    /* 3. 그림자 최소화 (가독성용) */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    
    transition: all 0.3s ease;
}

.text-premium-gold:hover {
    /* 마우스 올렸을 때만 살짝 밝아짐 */
    filter: brightness(1.1);
    cursor: pointer;
}