/*
Theme Name: Dashwall Child
Theme URI: https://agnarson.com/wpthemes/dashwall/
Template: dashwall
Author: Alexander Agnarson
Author URI: https://agnarson.com
Description: Dashwall is a flexible blog and magazine theme with plenty of options. Optimized for all devices, this theme will stand out with a unique design, including dark/light mode. Demo: https://demo.agnarson.com/?theme=Dashwall
Tags: blog,one-column,two-columns,right-sidebar,left-sidebar,custom-colors,custom-menu,featured-images,flexible-header,full-width-template,sticky-post,theme-options,threaded-comments,translation-ready,custom-logo,custom-header,custom-background,news,entertainment,footer-widgets
Version: 1.0.1.1751610522
Updated: 2025-07-04 06:28:42

*/

@import url("../dashwall/style.css");

/* ========== 검색 위젯 최상단 스타일 ========== */

.page-col-search-top {
    width: 100%;
    margin-bottom: 30px;
    padding: 0 20px;
}

.page-col-search-top .page-card-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.page-col-search-top .page-card-search h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-col-search-top .stickywrap-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-col-search-top .search-form {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.page-col-search-top .search-field {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.page-col-search-top .search-field:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.page-col-search-top .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-col-search-top .search-submit:hover {
    background: #ff5252;
    transform: translateY(-50%) scale(1.1);
}

/* 다크 모드 지원 */
.dark .page-col-search-top .page-card-search {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border: 1px solid #4a5568;
}

.dark .page-col-search-top .search-field {
    background: rgba(45,55,72,0.9);
    color: #e2e8f0;
}

.dark .page-col-search-top .search-field:focus {
    background: #2d3748;
    color: white;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page-col-search-top {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .page-col-search-top .page-card-search {
        padding: 20px;
    }
    
    .page-col-search-top .page-card-search h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .page-col-search-top .search-field {
        padding: 10px 45px 10px 15px;
        font-size: 14px;
    }
    
    .page-col-search-top .search-submit {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* 애니메이션 효과 */
.page-col-search-top .page-card-search {
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 검색 위젯 호버 효과 */
.page-col-search-top .page-card-search:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* 검색 위젯 포커스 효과 */
.page-col-search-top .search-focused {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.page-col-search-top .search-field::placeholder {
    color: #888;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.page-col-search-top .search-field:focus::placeholder {
    opacity: 0.4;
}

/* 검색 아이콘 애니메이션 */
.page-col-search-top .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-col-search-top .search-submit:hover {
    background: #ff5252;
    transform: translateY(-50%) scale(1.1) rotate(15deg);
}

/* 검색 위젯 반짝임 효과 */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.page-col-search-top .page-card-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 3s infinite;
    border-radius: 15px;
    pointer-events: none;
}

/* 검색 결과 미리보기 스타일 (향후 확장용) */
.page-col-search-top .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.page-col-search-top .search-suggestions.show {
    display: block;
}

.page-col-search-top .search-suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-col-search-top .search-suggestion-item:hover {
    background-color: #f5f5f5;
}

.page-col-search-top .search-suggestion-item:last-child {
    border-bottom: none;
}

/* 접근성 개선 */
.page-col-search-top .search-field:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 0 0 1px #667eea;
}

/* 키보드 네비게이션 지원 */
.page-col-search-top .search-submit:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* 사이드바 검색 섹션 스타일 */
.sidebar-search-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.sidebar-search-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.sidebar-search-section .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search-section .search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.sidebar-search-section .search-field {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.sidebar-search-section .search-field:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.sidebar-search-section .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.sidebar-search-section .search-submit:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.sidebar-search-section .search-submit svg {
    width: 18px;
    height: 18px;
}

/* 카테고리 메뉴 스타일 */
.category-menu-below-search {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    margin-bottom: 20px;
}

.category-navigation-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-menu-main {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.category-menu-item-main {
    margin: 0;
}

.category-link-main {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-link-main:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

/* 다크모드 스타일 */
.dark .sidebar-search-section {
    background: #2d3748;
    border-color: #4a5568;
}

.dark .sidebar-search-section .search-field {
    background: #4a5568;
    color: white;
    border-color: #718096;
}

.dark .sidebar-search-section .search-field:focus {
    border-color: #667eea;
    background: #5a6478;
}

.dark .category-menu-below-search {
    background: #2d3748;
    border-color: #4a5568;
}

.dark .category-link-main {
    background: #4a5568;
    color: #e2e8f0;
}

.dark .category-link-main:hover {
    background: #667eea;
    color: white;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .sidebar-search-section {
        margin: 15px 0;
        padding: 15px;
    }
    
    .sidebar-search-section .search-field {
        padding: 10px 45px 10px 14px;
        font-size: 13px;
    }
    
    .sidebar-search-section .search-submit {
        width: 32px;
        height: 32px;
        right: 6px;
    }
    
    .sidebar-search-section .search-submit svg {
        width: 16px;
        height: 16px;
    }
    
    .category-navigation-main {
        padding: 0 15px;
    }
    
    .category-menu-main {
        gap: 8px;
    }
    
    .category-link-main {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ========== 사이드바 그라데이션 배경 스타일 ========== */

/* 사이드바 높이 조정 */
body > div.page-wrapper > div.page-sidebar {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 사이드바 그라데이션 배경 */
.page-sidebar {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 25%, #26C6DA 50%, #66BB6A 75%, #81C784 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
    position: relative;
    overflow: hidden;
}

/* 그라데이션 애니메이션 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 사이드바 내부 오버레이 효과 */
.page-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 사이드바 내부 컨텐츠 z-index 조정 */
.page-sidebar > * {
    position: relative;
    z-index: 2;
}

/* 사이드바 내부 모든 요소들 숨기기 (검색 섹션 제외) */
.page-sidebar > div:not(.sidebar-search-section) {
    display: none !important;
}

/* 사이드바 내부 다른 요소들 숨기기 */
.page-sidebar .social-links,
.page-sidebar #theme-toggle,
.page-sidebar button:not(.search-submit),
.page-sidebar a:not(.search-form a) {
    display: none !important;
}

/* 검색 섹션은 표시하되 배경 투명 처리 */
.page-sidebar .sidebar-search-section {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 20px;
    padding: 0;
    width: 100%;
    max-width: 400px;
}

/* 검색 입력 필드 스타일 개선 */
.page-sidebar .sidebar-search-section .search-field {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark .page-sidebar .sidebar-search-section .search-field {
    background: rgba(45, 55, 72, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white;
}

/* 다크모드 사이드바 스타일 */
.dark .page-sidebar {
    background: linear-gradient(135deg, #1A237E 0%, #283593 25%, #303F9F 50%, #388E3C 75%, #4CAF50 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.4);
}

/* 사이드바 호버 효과 */
.page-sidebar:hover {
    animation-duration: 4s;
    box-shadow: 0 6px 30px rgba(79, 195, 247, 0.4);
    transform: translateX(2px);
    transition: all 0.3s ease;
}

/* 다크모드 사이드바 호버 효과 */
.dark .page-sidebar:hover {
    box-shadow: 0 6px 30px rgba(26, 35, 126, 0.5);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page-sidebar {
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(79, 195, 247, 0.2);
    }
    
    .page-sidebar:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
    }
    
    .dark .page-sidebar:hover {
        box-shadow: 0 4px 20px rgba(26, 35, 126, 0.4);
    }
}

/* 사이드바 글라스모피즘 효과 */
.page-sidebar {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 사이드바 내부 검색 버튼 스타일 개선 */
.page-sidebar .sidebar-search-section .search-submit {
    background: linear-gradient(135deg, #4FC3F7 0%, #66BB6A 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 10px rgba(79, 195, 247, 0.3);
}

.page-sidebar .sidebar-search-section .search-submit:hover {
    background: linear-gradient(135deg, #29B6F6 0%, #4CAF50 100%);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* 사이드바 반짝임 효과 */
@keyframes sidebarShimmer {
    0% { 
        background-position: -200px 0; 
    }
    100% { 
        background-position: calc(200px + 100%) 0; 
    }
}

.page-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200px 100%;
    animation: sidebarShimmer 4s infinite;
    pointer-events: none;
    z-index: 1;
}

/* ========== 검색 결과 페이지 중복 검색 필드 숨기기 ========== */
/* 검색 결과 페이지에서 page-title-box 내의 검색 필드 숨기기 */
.search .page-title-box .searchform,
.search .page-title-box .themeform {
    display: none !important;
}

/* 검색 결과가 없을 때 나타나는 텍스트 후 검색 필드도 숨기기 */
.search .page-title-box form[method="get"] {
    display: none !important;
}

/* 404 페이지는 검색 필드가 유용하므로 유지 */
.error404 .page-title-box .searchform {
    display: block !important;
}

/* 검색 결과 페이지 제목 박스 스타일 조정 */
.search .page-title-box {
    padding-bottom: 10px;
}

/* 검색어가 있을 때 검색 텍스트 스타일 개선 */
.search .page-title-box span {
    color: #007cba;
    font-weight: bold;
}

