/*
Theme Name:   GeneratePress_Child_Modern_Luxury
Description:  Modern Tech Luxury with 'Outfit' & 'Pretendard'
Version:      4.0.0
Template:     generatepress
*/

/* ==========================================================================
   0. 폰트 로드 (가장 중요: 현대적인 조합)
   ========================================================================== */
/* Pretendard: 본문 및 한글용 (가장 깔끔한 고딕) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css');

/* Outfit: 제목 및 영문용 (현대적인 기하학적 산세리프) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --gold-accent: #D4AF37;       /* 포인트 금색 */
    --gold-hover: #F2D06B;        /* 밝은 금색 */
    --bg-dark: #121212;           /* 배경: 리치 블랙 */
    --bg-panel: #1E1E1E;          /* 패널: 다크 그레이 */
    --text-main: #Eaeaea;         /* 본문: 가독성 좋은 밝은 회색 */
    --text-muted: #A0A0A0;        /* 보조 텍스트 */
    --border-color: #333333;      
    
    /* 폰트 정의 */
    --font-heading: 'Outfit', 'Pretendard', sans-serif; /* 영문은 Outfit, 한글은 Pretendard */
    --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   1. 기본 설정 & 상단바
   ========================================================================== */
body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    font-family: var(--font-body) !important;
    line-height: 1.75; /* 줄간격 여유있게 */
    word-break: keep-all; /* 한글 단어 짤림 방지 */
}

/* 상단바 & 헤더 배경 통일 */
.top-bar, .site-header, .main-navigation {
    background-color: var(--bg-dark) !important;
}
.top-bar, .top-bar a { color: #FFFFFF !important; }

/* 제목 폰트 설정 (세련됨의 핵심) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    letter-spacing: -0.02em; /* 자간을 살짝 좁혀 단단한 느낌 */
}

/* 링크 스타일 */
a { 
    color: var(--text-main); 
    text-decoration: none; 
    transition: all 0.2s ease-in-out; 
}
a:hover { color: var(--gold-accent); }

/* ==========================================================================
   2. 본문 및 제목 디자인 (AI 글쓰기 최적화)
   ========================================================================== */
/* 대제목 (H1) */
h1.entry-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* 중제목 (H2) - 주제별 구분선 강화 */
.entry-content h2 {
    margin-top: 80px;            
    padding-top: 40px;           
    border-top: 1px solid #333;  /* 은은한 구분선 */
    border-left: none; /* 기존 왼쪽 선 제거하고 깔끔하게 변경 */
    
    /* 모던한 포인트: 왼쪽에 작은 금색 사각형 */
    position: relative;
    padding-left: 0;
    font-size: 1.8rem;
}
.entry-content h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background-color: var(--gold-accent);
    margin-right: 12px;
    vertical-align: middle;
    transform: translateY(-2px);
}

/* 첫 번째 H2는 구분선 생략 */
.entry-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 40px;
}

/* 소제목 (H3) */
.entry-content h3 {
    font-size: 1.4rem;
    margin-top: 40px;
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   3. 홈 화면 (아카이브) 리스트 디자인
   ========================================================================== */
/* 카드 컨테이너 */
.inside-article, .sidebar .widget, .comments-area {
    background-color: var(--bg-panel) !important;
    padding: 40px !important;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* 모서리를 아주 살짝 둥글게 (모던함) */
    box-shadow: 0 4px 20px rgba(0,0,0,0.4); /* 부드러운 그림자 */
    margin-bottom: 40px;
}

/* 제목 링크 */
h2.entry-title a {
    color: #FFFFFF !important;
    /* 밑줄 효과 제거하고 깔끔하게 */
    background: none; 
}
h2.entry-title a:hover {
    color: var(--gold-accent) !important;
}

/* 메타 데이터 (날짜 등) */
.entry-meta, .posted-on, .byline {
    font-family: var(--font-heading); /* 숫자/영문 폰트 적용 */
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.entry-meta svg, .gp-icon { display: none !important; }

/* 이모지 적용 */
.posted-on::before { content: "📅 "; margin-right: 4px; }
.byline::before { content: "✍️ "; margin-left: 12px; margin-right: 4px; }
.comments-link::before { content: "💬 "; margin-left: 12px; margin-right: 4px; }

/* 카테고리 태그 (더 세련되게) */
.cat-links a, .tags-links a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05); /* 반투명 배경 */
    color: #ccc !important;
    padding: 4px 10px;
    border-radius: 4px; /* 각진 둥글기 */
    font-size: 0.75rem;
    margin-right: 6px;
    border: 1px solid #444;
    font-family: var(--font-body);
}
.cat-links a:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent) !important;
}
.cat-links::before { content: "📂 "; margin-right: 4px; }

/* Read More 버튼 (심플하게) */
a.read-more {
    display: inline-block;
    margin-top: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gold-accent) !important;
    border-bottom: 2px solid transparent;
}
a.read-more:hover {
    border-bottom-color: var(--gold-accent);
    background: none !important; /* 배경색 변화 제거 */
    color: var(--gold-hover) !important;
}

/* ==========================================================================
   4. 이전 글 / 다음 글 (모던 카드)
   ========================================================================== */
.post-navigation {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.post-navigation .nav-links {
    display: flex;
    gap: 20px;
}
.nav-previous, .nav-next {
    width: 50%;
    background-color: #252525; /* 본문 배경보다 살짝 밝게 */
    border-radius: 6px;
    transition: transform 0.2s ease;
}
.nav-previous a, .nav-next a {
    display: block;
    padding: 30px;
    height: 100%;
    color: #FFF !important;
    border: 1px solid transparent;
    border-radius: 6px;
}
.nav-previous:hover, .nav-next:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
}
.nav-previous a:hover, .nav-next a:hover {
    border-color: var(--gold-accent);
}
.nav-previous .gp-icon, .nav-next .gp-icon { display: none; }

/* ==========================================================================
   5. 기타 요소 정리
   ========================================================================== */
/* 달력 등 불필요 위젯 숨기기 */
.widget_calendar, .wp-block-calendar, #wp-calendar { display: none !important; }

/* 입력폼 (모던 플랫 디자인) */
input, textarea, select {
    background-color: #151515 !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-family: var(--font-body);
}
input:focus, textarea:focus {
    border-color: var(--gold-accent) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .post-navigation .nav-links { flex-direction: column; }
    .nav-previous, .nav-next { width: 100%; }
    h1.entry-title { font-size: 2rem; }
    .entry-content h2 { font-size: 1.5rem; }
    .inside-article { padding: 25px !important; }
}

/* ==========================================================================
   7. 시리즈(PublishPress) 알림 박스 디자인 커스텀
   ========================================================================== */

/* 1. 박스 전체 디자인: 카드 형태 */
.series-meta {
    background-color: var(--bg-panel) !important; /* 다크 그레이 배경 */
    border: 1px solid var(--gold-accent);         /* 금색 테두리 */
    border-left: 5px solid var(--gold-accent);    /* 왼쪽 강조선 */
    padding: 20px 25px;
    margin: 30px 0;                               /* 위아래 여백 */
    border-radius: 8px;                           /* 둥근 모서리 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);       /* 그림자 */
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #fff;
    display: flex;       /* 아이콘과 텍스트 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
}

/* 2. 앞에 아이콘 추가 (책 모양) */
.series-meta::before {
    content: "📚";      /* 이모지 아이콘 (원하면 변경 가능) */
    font-size: 1.8rem;
    margin-right: 15px;
    filter: grayscale(100%); /* 아이콘 채도 빼기 (시크하게) */
}

/* 3. 시리즈 제목 링크 디자인 */
.series-meta a {
    color: var(--gold-accent) !important;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed var(--gold-accent); /* 점선 밑줄 */
    margin: 0 4px;
    transition: all 0.3s ease;
}

.series-meta a:hover {
    color: #fff !important;
    background-color: var(--gold-accent);
    border-radius: 4px;
    padding: 2px 6px;
    border-bottom: none;
}

/* ==========================================================================
   8. 스티키 사이드바 (수정판: 긴 사이드바 대응)
   ========================================================================== */
@media (min-width: 769px) { 
    .inside-right-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 20px;
        /* 화면 높이에서 40px 뺀 만큼만 꽉 채우고, 넘치면 스크롤 생김 */
        max-height: calc(100vh - 40px); 
        overflow-y: auto; 
        
        /* 스크롤바 디자인 (크롬/사파리) - 얇고 예쁘게 */
        scrollbar-width: thin;
        scrollbar-color: var(--gold-accent) var(--bg-panel);
    }
    
    /* 스크롤바 웹킷 스타일 (더 디테일하게) */
    .inside-right-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    .inside-right-sidebar::-webkit-scrollbar-thumb {
        background-color: var(--gold-accent);
        border-radius: 4px;
    }
    .inside-right-sidebar::-webkit-scrollbar-track {
        background-color: rgba(255,255,255,0.05);
    }
}

/* ==========================================================================
   9. 카테고리 디자인 (수정판: 다른 위젯 침범 방지)
   ========================================================================== */

/* 1. 카테고리 전용 선택자 사용 (범위 제한) */
.widget_categories ul, 
.wp-block-categories,
.wp-block-categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. 한 줄(행) 디자인 */
.widget_categories li, 
.wp-block-categories-list li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 !important;
}

/* 3. 글자 디자인 (카테고리만 적용) */
.widget_categories li a, 
.wp-block-categories-list li a {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center;
}

/* 4. ★ 폴더 아이콘 (카테고리 내부에만 생기도록 강력 제한) */
.widget_categories li a::before, 
.wp-block-categories-list li a::before {
    content: "📂";
    margin-right: 15px;
    font-size: 1.4rem !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    filter: drop-shadow(0 0 2px rgba(255,215,0,0.5));
    transition: transform 0.3s ease;
}

/* (혹시 몰라 인기글 위젯에서는 아이콘 강제 삭제) */
.wpp-list li a::before {
    content: none !important;
    display: none !important;
}

/* 5. 숫자 디자인 */
.widget_categories li span, 
.wp-block-categories-list-item-count {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem !important;
}

/* 6. 호버 효과 */
.widget_categories li:hover a {
    color: var(--gold-accent) !important;
    padding-left: 10px;
}
.widget_categories li:hover a::before {
    transform: scale(1.3) rotate(-10deg);
}

/* ==========================================================================
   10. 검색창 디자인 (둥근 캡슐형)
   ========================================================================== */

/* 1. "검색"이라는 투박한 제목 숨기기 */
.widget_search h2.widget-title, 
.widget_search .wp-block-search__label {
    display: none !important;
}

/* 2. 검색창 전체 틀 (둥근 배경) */
.wp-block-search__inside-wrapper {
    background-color: #252525;      /* 입력창 배경색 (패널보다 살짝 밝게) */
    border: 1px solid #444;         /* 테두리 */
    border-radius: 50px;            /* 완전히 둥글게 */
    padding: 5px;                   /* 내부 여백 */
    display: flex;                  /* 입력창과 버튼 가로 정렬 */
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2); /* 안쪽 그림자 살짝 */
}

/* 3. 검색창 클릭했을 때 (포커스) 효과 */
.wp-block-search__inside-wrapper:focus-within {
    border-color: var(--gold-accent); /* 금색 테두리로 변경 */
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3); /* 금색 빛남 효과 */
}

/* 4. 글자 입력 부분 */
.wp-block-search__input {
    background: transparent !important; /* 배경 투명하게 */
    border: none !important;
    color: #fff !important;
    padding: 10px 20px !important;      /* 글자 여백 */
    font-size: 0.95rem;
    width: 100%;
}
.wp-block-search__input:focus {
    outline: none !important;           /* 기본 테두리 제거 */
    box-shadow: none !important;
}

/* 5. 검색 버튼 디자인 */
.wp-block-search__button {
    background-color: var(--gold-accent) !important;
    color: #121212 !important;          /* 글자는 진한 검정 (가독성) */
    font-weight: 700;
    border: none !important;
    border-radius: 30px !important;     /* 버튼도 둥글게 */
    padding: 8px 20px !important;
    margin-right: 2px;                  /* 오른쪽 끝 여백 */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 버튼 마우스 올렸을 때 */
.wp-block-search__button:hover {
    background-color: #fff !important;  /* 흰색으로 변경 */
    transform: scale(1.05);             /* 살짝 커짐 */
}

/* ==========================================================================
   11. 인기글 위젯 디자인 (골드 랭킹 차트 스타일)
   ========================================================================== */

/* 1. 리스트 초기화 및 순위 카운터 설정 */
.wpp-list {
    counter-reset: wpp-counter; /* 순위 숫자 세기 시작 */
    padding: 0;
    margin: 0;
}

/* 2. 각 글(카드) 디자인 */
.wpp-list li {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* 연한 구분선 */
    counter-increment: wpp-counter; /* 숫자 1씩 증가 */
}

/* 3. 썸네일 이미지 디자인 */
.wpp-thumbnail {
    width: 65px !important;
    height: 65px !important;
    border-radius: 12px;           /* 둥근 모서리 */
    object-fit: cover;
    margin-right: 15px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 2px solid #333;        /* 이미지 테두리 */
    transition: all 0.3s ease;
}

/* 4. ★ 핵심: 순위 뱃지 (1, 2, 3...) 만들기 */
.wpp-list li::before {
    content: counter(wpp-counter); /* 숫자 자동 생성 */
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--gold-accent); /* 금색 배경 */
    color: #000;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;            /* 동그라미 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 2;                    /* 이미지보다 위에 */
}

/* 1, 2, 3위는 더 특별하게 (크기 키움) */
.wpp-list li:nth-child(1)::before,
.wpp-list li:nth-child(2)::before,
.wpp-list li:nth-child(3)::before {
    width: 24px;
    height: 24px;
    font-size: 13px;
    border: 2px solid #fff;        /* 흰색 테두리 추가 */
}

/* 5. 제목 텍스트 */
.wpp-post-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff !important;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color 0.2s ease;
    
    /* 두 줄 넘어가면 ... 처리 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 6. 조회수 (메타 데이터) */
.wpp-stats {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

/* 7. 호버 효과 */
.wpp-list li:hover .wpp-post-title {
    color: var(--gold-accent) !important;
}
.wpp-list li:hover .wpp-thumbnail {
    transform: scale(1.05); /* 이미지 살짝 확대 */
    border-color: var(--gold-accent);
}

/* ==========================================================================
   12. 인기글 페이지 전용 디자인 (매거진 그리드)
   ========================================================================== */

/* 1. 전체 그리드 레이아웃 (반응형) */
.wpp-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 화면 꽉 차게 자동 배열 */
    gap: 30px;                  /* 카드 사이 간격 */
    list-style: none !important;
    padding: 0;
    margin: 40px 0 !important;
}

/* 2. 카드 박스 디자인 */
.wpp-grid-item {
    background-color: #1e1e1e;  /* 카드 배경색 */
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;           /* 이미지가 튀어나가지 않게 */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 3. 썸네일 이미지 */
.wpp-grid-item img {
    width: 100%;
    height: 200px;              /* 높이 고정 */
    object-fit: cover;          /* 비율 유지하며 꽉 채움 */
    border-bottom: 2px solid var(--gold-accent); /* 중간 금색 포인트 선 */
    transition: transform 0.5s ease;
}

/* 4. 텍스트 정보 영역 */
.wpp-grid-info {
    padding: 20px;
    flex-grow: 1;               /* 높이 맞춤 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 5. 제목 스타일 */
.wpp-grid-info a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 15px;
    
    /* 두 줄까지만 표시 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 6. 조회수 (메타 정보) */
.wpp-grid-meta {
    font-size: 0.9rem;
    color: #888;
    text-align: right;
}

/* 7. 호버 효과 (마우스 올렸을 때) */
.wpp-grid-item:hover {
    transform: translateY(-10px);        /* 위로 붕 뜨는 효과 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--gold-accent);    /* 테두리 금색 */
}
.wpp-grid-item:hover img {
    transform: scale(1.1);               /* 이미지 확대 */
}
.wpp-grid-item:hover a {
    color: var(--gold-accent) !important;
}

/* 8. 랭킹 뱃지 (1, 2, 3위 표시) */
.wpp-grid-list { counter-reset: grid-rank; }
.wpp-grid-item { position: relative; counter-increment: grid-rank; }

.wpp-grid-item::after {
    content: counter(grid-rank);         /* 숫자 자동 생성 */
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold-accent);
    color: #000;
    font-weight: 900;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 5;
}
/* 1,2,3위는 테두리 추가 */
.wpp-grid-item:nth-child(1)::after,
.wpp-grid-item:nth-child(2)::after,
.wpp-grid-item:nth-child(3)::after {
    border: 3px solid #fff;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
}

/* ==========================================================================
   13. [최종 긴급] 스크롤 잠금 강제 해제
   ========================================================================== */
html, body {
    overflow-y: visible !important; /* 세로 스크롤 강제 허용 */
    height: auto !important;        /* 높이 제한 해제 */
    min-height: 100vh !important;   /* 최소 높이 보장 */
}

/* 본문 영역이 찌그러지지 않게 보호 */
.site-content {
    overflow: visible !important;
}

/* 시리즈 박스 때문에 레이아웃이 깨지는 것 방지 */
.series-meta {
    flex-wrap: wrap !important;
}

/* ==========================================================================
   14. [디테일] 전체 스크롤바 커스텀 (최종 수정: 호환성 강화)
   ========================================================================== */

/* 1. 파이어폭스(Firefox) 브라우저 지원 */
html {
    scrollbar-width: thin !important;          /* 스크롤바 얇게 */
    scrollbar-color: var(--gold-accent) #121212 !important; /* 막대색 / 트랙색 */
}

/* 2. 크롬(Chrome), 엣지(Edge), 사파리(Safari) 지원 */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 14px !important;               /* 너비를 좀 더 확보 */
    background-color: #121212 !important; /* 배경: 리치 블랙 */
}

/* 스크롤바 뒷배경(트랙) */
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #121212 !important;
    border-left: 1px solid #222;          /* 본문과 구분선 살짝 추가 */
}

/* 움직이는 막대(Thumb) */
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: #444 !important;    /* 기본: 진한 회색 */
    border-radius: 10px !important;       /* 둥글게 */
    border: 3px solid #121212 !important; /* 여백 효과 */
    background-clip: content-box;         /* 배경 안쪽만 색칠 */
}

/* 마우스 올렸을 때 막대 색상 */
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold-accent) !important; /* 빛나는 금색 */
    border-color: #121212 !important;
}

/* ==========================================================================
   [보너스] 드래그 색상 (글자 긁을 때)
   ========================================================================== */
::selection {
    background-color: var(--gold-accent) !important;
    color: #121212 !important;
}

/* ==========================================================================
   15. [UX] 페이지 로딩 페이드인 효과 (부드럽게)
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 본문 전체에 적용 */
.site-content {
    animation: fadeIn 0.6s ease-out; /* 0.6초 동안 부드럽게 등장 */
}

/* ==========================================================================
   16. [기능] 맨 위로 가기 버튼 디자인
   ========================================================================== */
.generate-back-to-top,
.generate-back-to-top:visited {
    background-color: var(--gold-accent) !important; /* 배경 금색 */
    color: #121212 !important;                       /* 화살표 검정 */
    border-radius: 50%;                              /* 동그라미 */
    bottom: 30px;                                    /* 위치 조정 */
    right: 30px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);  /* 금색 그림자 */
    transition: all 0.3s ease;
    opacity: 0.8;
}

.generate-back-to-top:hover {
    background-color: #fff !important;               /* 호버시 흰색 */
    transform: translateY(-5px);                     /* 살짝 뜸 */
    opacity: 1;
}

/* ==========================================================================
   17. [Final Polish] 럭셔리 디테일 업 (눈부심 방지 & 인터랙션)
   ========================================================================== */

/* 1. 다크모드 눈부심 방지 (이미지 필터) */
.entry-content img {
    filter: brightness(0.85) contrast(1.1); /* 평소엔 약간 어둡게 눌러줌 */
    transition: filter 0.3s ease, transform 0.3s ease;
    border-radius: 8px; /* 이미지 모서리 둥글게 */
}
.entry-content img:hover {
    filter: brightness(1) contrast(1); /* 마우스 올리면 원본 밝기로 */
    transform: scale(1.01); /* 아주 살짝 확대 */
}

/* 2. 게시글 카드 '플로팅(Floating)' 효과 */
.inside-article {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.inside-article:hover {
    transform: translateY(-7px); /* 공중부양 효과 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.5); /* 그림자가 깊어짐 */
    border-color: var(--gold-accent); /* 테두리가 은은한 금색으로 변함 */
}

/* 3. 인용구(Blockquote) 디자인 - 전문가 노트 느낌 */
blockquote {
    background-color: rgba(255, 255, 255, 0.05); /* 아주 연한 배경 */
    border-left: 4px solid var(--gold-accent);   /* 왼쪽 금색 라인 */
    padding: 20px;
    margin: 30px 0;
    font-family: var(--font-heading);
    font-style: italic;
    color: #ccc;
    border-radius: 0 8px 8px 0;
}

/* 4. 스크롤바 두께 다이어트 (조금 더 세련되게) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px !important; /* 14px -> 10px로 축소 (더 날렵하게) */
}
::-webkit-scrollbar-thumb {
    border-radius: 10px !important;
}

/* ==========================================================================
   18. [링크 카드] Visual Link Preview 강제 교정 (오차 없는 럭셔리 스타일)
   ========================================================================== */

/* 1. 카드 전체 박스 (높이 강제 고정으로 들쭉날쭉 방지) */
.vlp-link-container {
    display: flex !important;               /* 가로 배치 */
    flex-direction: row !important;
    background-color: #1E1E1E !important;   /* 다크 그레이 배경 */
    border: 1px solid #333 !important;      /* 테두리 */
    border-radius: 12px !important;         /* 둥근 모서리 */
    margin: 30px 0 !important;
    height: 160px !important;               /* ★높이 160px로 무조건 고정★ */
    overflow: hidden !important;            /* 튀어나오는 내용 잘라냄 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* 2. 호버 효과 */
.vlp-link-container:hover {
    transform: translateY(-5px) !important;
    border-color: var(--gold-accent) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

/* 3. 썸네일 이미지 (비율 파괴범 체포) */
.vlp-link-image {
    width: 35% !important;                  /* 너비 35% 고정 */
    height: 100% !important;                /* 높이 꽉 채움 */
    flex-shrink: 0 !important;              /* 절대 줄어들지 않음 */
    border-right: 1px solid #333;
    padding: 0 !important;                  /* 플러그인 기본 패딩 제거 */
    margin: 0 !important;
    overflow: hidden !important;
}

.vlp-link-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;           /* ★핵심: 비율 유지하며 꽉 채우기 (여백X)★ */
    border-radius: 0 !important;            /* 둥근 모서리는 컨테이너가 담당 */
    transition: transform 0.5s ease;
}

.vlp-link-container:hover .vlp-link-image img {
    transform: scale(1.1);                  /* 이미지 살짝 확대 */
}

/* 4. 텍스트 영역 */
.vlp-link-summary {
    width: 65% !important;
    padding: 20px 25px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;     /* 수직 중앙 정렬 */
    background: transparent !important;
}

/* 5. 제목 (1줄 넘으면 자름) */
.vlp-link-title {
    font-family: var(--font-heading) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 8px !important;
    
    /* 긴 제목 처리 (말줄임표) */
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;       /* ★1줄까지만 표시★ */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.4 !important;
}
.vlp-link-container:hover .vlp-link-title {
    color: var(--gold-accent) !important;
}

/* 6. 설명글 (2줄 넘으면 자름) */
.vlp-link-description {
    font-size: 0.9rem !important;
    color: #aaa !important;
    margin-bottom: 0 !important;
    
    /* 긴 설명 처리 */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;       /* ★2줄까지만 표시★ */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.6 !important;
}

/* 7. 하단 URL (지저분하면 숨김 or 깔끔하게) */
.vlp-link-footer {
    display: none !important;               /* 지저분해서 그냥 숨기는 게 더 예쁩니다 */
}

/* 8. 모바일 대응 (핸드폰에서는 위아래로 배치) */
@media (max-width: 768px) {
    .vlp-link-container {
        flex-direction: column !important;  /* 세로 배치 */
        height: auto !important;            /* 높이 자동 */
        max-height: 350px !important;
    }
    .vlp-link-image {
        width: 100% !important;             /* 가로 꽉 채움 */
        height: 180px !important;           /* 이미지 높이 지정 */
        border-right: none !important;
        border-bottom: 1px solid #333;
    }
    .vlp-link-summary {
        width: 100% !important;
        padding: 15px 20px !important;
    }
    .vlp-link-title {
        -webkit-line-clamp: 2 !important;   /* 모바일에선 제목 2줄 허용 */
        font-size: 1rem !important;
    }
}