/* ===== AutoProfit Pro Design v3.0 ===== */

/* === 1. 기본 설정 === */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif !important;
    background-color: #0d1117 !important;
    color: #c9d1d9 !important;
    line-height: 1.7 !important;
}

/* === 2. 헤더/네비게이션 === */
.site-header {
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%) !important;
    border-bottom: 1px solid #21262d !important;
    padding: 0 !important;
}

.inside-header {
    padding: 16px 40px !important;
}

.main-title a {
    font-size: 26px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.main-navigation {
    background: transparent !important;
}

.main-navigation .main-nav ul li a {
    color: #8b949e !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    border: none !important;
    background: none !important;
    transition: color 0.2s ease !important;
}

.main-navigation .main-nav ul li a:hover {
    color: #ffffff !important;
}

.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
    color: #e94560 !important;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid #e94560 !important;
}

/* === 3. 콘텐츠 영역 === */
.site-content {
    background: #0d1117 !important;
}

.content-area {
    padding: 30px 0 !important;
}

/* === 4. 글 카드 디자인 === */
.inside-article {
    background: #161b22 !important;
    border: 1px solid #21262d !important;
    border-left: 4px solid #e94560 !important;
    border-radius: 12px !important;
    padding: 28px 32px !important;
    margin-bottom: 24px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.inside-article:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.15) !important;
}

.entry-title {
    margin-bottom: 12px !important;
}

.entry-title a {
    color: #f0f6fc !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

.entry-title a:hover {
    color: #e94560 !important;
}

.entry-meta {
    color: #6e7681 !important;
    font-size: 13px !important;
    margin-bottom: 16px !important;
}

.entry-content,
.entry-summary {
    color: #8b949e !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

/* === 5. 카테고리 태그 === */
.cat-links a,
.entry-categories a {
    background: rgba(233, 69, 96, 0.15) !important;
    color: #e94560 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
}

.cat-links a:hover,
.entry-categories a:hover {
    background: rgba(233, 69, 96, 0.3) !important;
}

/* === 6. 더 읽기 버튼 === */
.read-more,
a.read-more,
.entry-content a.read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #e94560 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.read-more:hover,
a.read-more:hover {
    background: #d63850 !important;
    color: #ffffff !important;
    transform: translateX(3px) !important;
}

.read-more::after {
    content: '\2192' !important;
}

/* === 7. 사이드바 === */
.sidebar .inside-right-sidebar {
    padding: 0 20px !important;
}

.sidebar .widget {
    background: #161b22 !important;
    border: 1px solid #21262d !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin-bottom: 20px !important;
}

.sidebar .widget-title {
    color: #f0f6fc !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e94560 !important;
}

/* === 8. 최신 글 위젯 === */
.widget_recent_entries ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_recent_entries ul li {
    padding: 12px 0 !important;
    border-bottom: 1px solid #21262d !important;
}

.widget_recent_entries ul li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.widget_recent_entries ul li a {
    color: #8b949e !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.widget_recent_entries ul li a:hover {
    color: #e94560 !important;
}

/* === 9. 검색 위젯 === */
.search-form {
    display: flex !important;
    gap: 8px !important;
}

.search-field {
    flex: 1 !important;
    background: #0d1117 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    color: #c9d1d9 !important;
    font-size: 14px !important;
}

.search-field:focus {
    border-color: #e94560 !important;
    outline: none !important;
}

.search-submit,
.searchform input[type="submit"],
button.search-submit {
    background: #e94560 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.search-submit:hover {
    background: #d63850 !important;
}

/* === 10. 푸터 === */
.site-footer {
    background: #0d1117 !important;
    border-top: 1px solid #21262d !important;
    padding: 40px 0 !important;
    margin-top: 40px !important;
}

.site-info {
    text-align: center !important;
    color: #6e7681 !important;
    font-size: 13px !important;
}

.site-info a {
    color: #8b949e !important;
}

.site-info a:hover {
    color: #e94560 !important;
}

/* === 11. 스크롤바 === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* === 12. 링크 기본 스타일 === */
a {
    color: #58a6ff !important;
    text-decoration: none !important;
}

a:hover {
    color: #e94560 !important;
}

.entry-content a {
    border-bottom: 1px solid rgba(88, 166, 255, 0.3) !important;
}

.entry-content a:hover {
    border-bottom-color: #e94560 !important;
}

/* === 13. 최신 댓글 위젯 === */
.widget_recent_comments ul li {
    padding: 10px 0 !important;
    border-bottom: 1px solid #21262d !important;
    font-size: 13px !important;
    color: #8b949e !important;
}

/* === 14. 페이지네이션 === */
.nav-links {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    margin-top: 30px !important;
}

.nav-links a,
.nav-links span {
    padding: 10px 16px !important;
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    color: #8b949e !important;
    font-size: 14px !important;
}

.nav-links a:hover {
    background: #21262d !important;
    color: #f0f6fc !important;
}

.nav-links .current {
    background: #e94560 !important;
    border-color: #e94560 !important;
    color: #ffffff !important;
}

/* === 페이지 상단 여백 줄이기 === */
.page .entry-header,
.single .entry-header {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

.page .entry-content,
.single .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 특성 이미지 영역 여백 제거 */
.page .post-image,
.page .featured-image {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

/* 콘텐츠 컨테이너 상단 여백 */
.inside-article {
    padding-top: 15px !important;
}

/* === 페이지 제목 영역 여백 최소화 === */
.page .entry-title,
.page h1.entry-title {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
}

/* 페이지 헤더 컨테이너 */
.page-header,
.entry-header {
    margin-bottom: 10px !important;
    padding: 10px 0 !important;
}

/* article 상단 여백 */
article.page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 콘텐츠 영역 전체 상단 */
.site-content {
    padding-top: 10px !important;
}

/* 메인 콘텐츠 컨테이너 */
.content-area {
    padding-top: 0 !important;
}
