@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 공통 초기화 */
* { font-family: 'Pretendard', sans-serif; box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: #0b0b0c; color: white; overflow-x: hidden; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* 로고 컨테이너 */
.logo-container { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.grrd-favicon { width: 32px; height: 32px; background: #10b981; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.grrd-favicon span { color: white; font-size: 30px; font-weight: 900; font-style: italic; margin-left: -4px; }

/* 섹션 배경 레이어 (수정) */
#section-bg {
    /* 기존: blur(30px) brightness(0.4) opacity(0.5) */
    filter: saturate(1.3) brightness(0.65) blur(3px);
    opacity: 0.7;
    z-index: 0;
    transition: background-image 0.7s ease, opacity 0.5s ease;
    will-change: background-image;
}

/* 섹션 배경 위 그라데이션 오버레이 (수정) */
#section-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* 기존: 0.3 → 0.85 (너무 강함) */
    background: linear-gradient(to bottom, 
        rgba(11,11,12,0.1) 0%, 
        rgba(11,11,12,0.5) 100%
    );
    z-index: 1;
}

/* 카테고리 섹션 상대 위치 (신규 추가) */
#category-section {
    position: relative;
}

/* 스켈레톤 애니메이션 */
.skeleton { background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: 8px; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { min-height: 210px; background: #18181b; border: 1px solid #27272a; border-radius: 1.25rem; padding: 1.25rem; }

/* 코드 카드 디자인 (배경 투명도 조절) */
.code-card { 
    background: rgba(24, 24, 27, 0.85); 
    border: 1px solid rgba(39, 39, 42, 0.6); 
    /* backdrop-filter 완전 제거 */
    border-radius: 1.25rem; 
    padding: 1.25rem; 
    transition: all 0.3s; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.code-card:hover { transform: translateY(-4px); border-color: #10b981; }
.used-dimmed { opacity: 0.6; filter: grayscale(0.4); }
.expired-dimmed { opacity: 0.6; filter: grayscale(0.4); }

/* 코드 텍스트 및 보상 */
.code-text { font-weight: 900; cursor: pointer; font-size: 24px; color: #fff; letter-spacing: -0.5px; }
.text-normal { font-size: 24px; }
.text-small { font-size: 18px; }
.text-xs { font-size: 14px; }
.reward-text { color: #a1a1aa; font-size: 14px; margin-top: 8px; height: 60px; font-weight: 500; }

/* 코드 컨테이너 */
.code-container { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.reward-container { min-height: 40px;}
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(39, 39, 42, 0.4); }

/* 체크박스 */
.custom-checkbox { appearance: none; width: 24px; height: 24px; border: 2px solid #3f3f46; border-radius: 50%; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.custom-checkbox:checked { background: #10b981; border-color: #10b981; }
.custom-checkbox:disabled { opacity: 0.3; cursor: not-allowed; }

/* 리딤 링크 */
.redeem-link { color: #10b981; transition: all 0.2s; display: flex; align-items: center; }
.redeem-link:hover { color: #059669; transform: scale(1.1); }

/* 스탬프 */
.stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg); font-size: 28px; font-weight: 900; padding: 12px 24px; border: 4px solid; border-radius: 8px; text-transform: uppercase; z-index: 20; pointer-events: none; letter-spacing: 2px; }
.stamp-used { color: #10b981; border-color: #10b981; background: rgba(239, 68, 68, 0.1); }
.stamp-expired { color: #ef4444; border-color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* NEW 뱃지 */
.new-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; background: #10b981; color: #000; font-size: 10px; font-weight: 900; border-radius: 4px; vertical-align: middle; }

/* 만료 제보 툴팁 */
.report-tooltip { position: absolute; bottom: 100%; left: 0; right: 0; background: rgba(24, 24, 27, 0.98); border: 1px solid #27272a; border-radius: 12px; padding: 16px; margin-bottom: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); z-index: 30; backdrop-filter: blur(10px); }
.report-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #27272a; }
.report-btn-confirm, .report-btn-cancel { padding: 6px 16px; border-radius: 8px; font-size: 11px; font-weight: 800; transition: all 0.2s; cursor: pointer; border: none; }
.report-btn-confirm { background: #ef4444; color: white; margin-right: 8px; }
.report-btn-confirm:hover { background: #dc2626; }
.report-btn-cancel { background: #27272a; color: #a1a1aa; }
.report-btn-cancel:hover { background: #3f3f46; color: white; }
.report-thanks { text-align: center; font-size: 13px; color: #10b981; font-weight: 800; }

/* 필터 칩 */
.filter-chip { padding: 6px 14px; font-size: 11px; font-weight: 800; border-radius: 99px; border: 1px solid #27272a; color: #52525b; text-transform: uppercase; transition: all 0.2s; cursor: pointer; background: rgba(24, 24, 27, 0.5); backdrop-filter: blur(5px); }
.filter-chip:hover { background: rgba(39, 39, 42, 0.8); color: #a1a1aa; }
.filter-chip.active { background: #10b981; color: #000; border-color: #10b981; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

/* 통계 카드 */
.stat-card { background: rgba(24, 24, 27, 0.8); border-radius: 20px; padding: 24px; border: 1px solid #27272a; backdrop-filter: blur(10px); transition: all 0.3s; }
.stat-card:hover { border-color: #3f3f46; transform: translateY(-2px); }

/* 애니메이션 */
.animate-in { animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Dim 레이어 */
.dim-layer { position: relative; z-index: 10; }

/* [한글 주석] 제안하기 모달 전용 스타일 */
#feedback-modal select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* [한글 주석] 입력창 포커스 시 부드러운 효과 */
#feedback-form textarea:focus, #feedback-form select:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* [한글 주석] 애니메이션 추가 */
.animate-in {
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}