/* 1. 기본 설정 및 애니메이션 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700;900&display=swap');

@keyframes hologramRun {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 2. 공통 서체 스타일 */
.casino-font {
    font-family: 'Cormorant Garamond', serif !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
    color: #e2e8f0; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, color 0.3s ease; /* 트랜지션 최적화 */
    display: inline-block;
}

/* 3. 카드 구조 스타일 */
.card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #d4af37;
    font-weight: 900;
    font-size: 15px;
}

.title-dot {
    width: 4px; height: 4px;
    background-color: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 5px #d4af37;
}

.card-body {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 4. [핵심] 홀로그램 링크 스타일 */
.hologram-link {
    background: repeating-linear-gradient(90deg, 
        #FFFFFF, #00E5FF, #7000FF, #FF00D4, #FFD700, #FFFFFF, 
        #00FFAA, #FF3D00, #D4AF37, #B2FF59, #FFFFFF, #EA80FC, #448AFF, #FFFFFF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900 !important;
    animation: hologramRun 4s linear infinite;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
    display: inline-block;
}

/* 5. [순위별] 1~4위 색상 */
.rank-1 { color: #ff3085 !important; }
.rank-2 { color: #7cf74b !important; }
.rank-3 { color: #0054ff !important; }
.rank-4 { color: #ad28ff !important; }

/* 6. 전체 링크 호버 효과 (오른쪽 밀림 삭제) */
#link-container a {
    display: flex; /* 내부 텍스트 정렬을 위해 block에서 flex로 변경 추천 */
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

#link-container a:hover {
    background-color: rgba(212, 175, 55, 0.12) !important;
    /* padding-left 밀림 효과 삭제함 */
}

/* 호버 시 텍스트 살짝 커지는 효과 추가 */
#link-container a:hover .casino-font {
    color: #ffffff !important;
    transform: scale(1.03); /* 아주 미세하게 커지는 느낌 */
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* 호버 시 홀로그램 효과 강화 */
#link-container a:hover .hologram-link {
    filter: brightness(1.3) drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
    animation-duration: 2s;
    transform: scale(1.03);
}

/* 7. 클릭 아이콘 (30x30 고정 및 효과) */
.card-header a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    transition: transform 0.2s ease-in-out;
}

.card-header a img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain;
    /* 홀로그램 스타일 전이 방지 */
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: initial !important;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

/* 헤더 영역 호버 시 아이콘만 살짝 커짐 */
.card-header a:hover {
    transform: scale(1.15);
}

.card-header a:hover img {
    opacity: 1;
    filter: brightness(1.2);
}

/* site_list_viewer 전용 다크 테마 디테일 */
#site-list-body > div {
    transition: all 0.3s ease;
}

#site-list-body > div:hover {
    z-index: 10;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.1);
    outline: 1px solid rgba(212, 175, 55, 0.3);
}