/* public/assets/css/utility/holidays.css */
:root {
    --primary: #8b5cf6; 
    --primary-hover: #7c3aed; 
    --primary-light: #ede9fe;
    --bg: #f8fafc; --card: #ffffff; --card-alt: #f1f5f9;
    --text-main: #0f172a; --text-sub: #64748b;
    --border: #e2e8f0; --shadow: 0 20px 40px -15px rgba(0,0,0,0.08);
}

[data-theme="dark"]:root { 
    --bg: #020617; --card: #0f172a; --card-alt: #1e293b;
    --text-main: #f8fafc; --text-sub: #94a3b8; --border: #334155; 
    --shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
    --primary-light: rgba(139,92,246,0.15);
}

.seo-tool-wrapper { 
    width: 100%; max-width: 950px; margin: 0 auto;
    background: var(--bg); border-radius: 20px; overflow: hidden; 
    border: 1px solid var(--border); box-shadow: var(--shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-main);
}

.tool-seo-header { 
    padding: 50px 20px 40px 20px; text-align: center; 
    border-bottom: 1px solid var(--border); 
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%); 
}
.header-icon-wrapper {
    width: 60px; height: 60px; background: white; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--primary); margin: 0 auto 20px auto;
    box-shadow: 0 10px 20px rgba(139,92,246,0.2); border: 1px solid var(--primary-light);
}
[data-theme="dark"] .header-icon-wrapper { background: var(--card); border-color: var(--border); }

.tool-h1 { margin: 0 0 15px 0; font-size: 2rem; font-weight: 900; color: var(--text-main); letter-spacing: -0.5px;}
.tool-description { margin: 0 auto; max-width: 700px; font-size: 1rem; color: var(--text-sub); line-height: 1.6; }

.tool-workspace { padding: 40px 30px; display: flex; flex-direction: column; gap: 30px;}

.filter-panel { width: 100%; }
.filter-box { 
    background: var(--card); border-radius: 20px; padding: 25px; 
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.05); border: 1px solid var(--border); 
    display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap;
}

.filter-group { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 200px;}
.year-group { flex: 0 0 120px; min-width: 100px; }

.filter-label { 
    font-size: 13px; font-weight: 800; color: var(--text-sub); 
    text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* =======================================================
   自定义下拉搜索框终极美化 (Custom Dropdown)
   ======================================================= */
.custom-select-wrapper { position: relative; }
.styled-input, .styled-select { 
    width: 100%; padding: 14px 40px 14px 16px; font-size: 15px; font-weight: 700; border-radius: 12px; 
    border: 2px solid var(--border); background: var(--card-alt); color: var(--text-main); 
    outline: none; transition: 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.styled-select {
    cursor: pointer; -webkit-appearance: none; appearance: none; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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;
}
.input-dropdown-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-sub); pointer-events: none; }

.styled-input:focus, .styled-select:focus { border-color: var(--primary); background: var(--card); box-shadow: 0 0 0 4px var(--primary-light);}

/* 高级悬浮下拉列表 */
.custom-dropdown-list {
    position: absolute; top: calc(100% + 8px); left: 0; width: 100%;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; max-height: 260px; overflow-y: auto; z-index: 100; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: none; flex-direction: column; padding: 8px 0;
}
[data-theme="dark"] .custom-dropdown-list { box-shadow: 0 10px 30px rgba(0,0,0,0.8); }

.custom-dropdown-list.show { display: flex; animation: slideDown 0.2s ease-out;}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* 自定义滚动条 */
.custom-dropdown-list::-webkit-scrollbar { width: 6px; }
.custom-dropdown-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }

.dropdown-item {
    padding: 12px 20px; cursor: pointer; color: var(--text-main);
    font-weight: 700; font-size: 14px; transition: 0.1s;
    display: flex; justify-content: space-between; align-items: center;
}
.dropdown-item:hover, .dropdown-item.active { background: var(--primary-light); color: var(--primary); }
.dropdown-item .sub-name { font-size: 12px; color: var(--text-sub); font-weight: normal;}

.btn-search { 
    height: 52px; padding: 0 24px; border-radius: 12px; border: none; 
    background: var(--primary); color: white; font-size: 16px; font-weight: 800; 
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 8px 15px rgba(139,92,246,0.3); transition: 0.2s; flex-shrink: 0;
}
.btn-search:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(139,92,246,0.4); }

.quick-tags { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag-label { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.btn-tag { 
    background: var(--card); border: 1px solid var(--border); color: var(--text-sub); 
    padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; text-decoration: none;
    cursor: pointer; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); display: inline-block;
}
.btn-tag:hover { background: var(--primary); color: white; border-color: var(--primary); }

.results-board { background: var(--card); border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid var(--border); min-height: 300px;}
.board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px dashed var(--border);}
.board-title { margin: 0; font-size: 18px; font-weight: 900; color: var(--text-main); }
.board-title i { color: var(--primary); margin-right: 8px;}
.count-badge { font-size: 13px; font-weight: 900; color: var(--primary); background: var(--primary-light); padding: 4px 12px; border-radius: 12px; }

.state-display { text-align: center; color: var(--text-sub); font-size: 15px; padding: 50px 20px; font-weight: bold;}
.state-display i { font-size: 36px; margin-bottom: 15px; display: block; color: var(--border);}

.timeline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }

.holiday-card { 
    border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; align-items: flex-start; gap: 15px; 
    background: var(--card-alt); transition: 0.2s; min-width: 0; position: relative; overflow: hidden;
}
.holiday-card:hover { border-color: var(--primary); transform: translateY(-3px); background: var(--card); box-shadow: 0 10px 25px rgba(139,92,246,0.1);}

.date-box { 
    flex-shrink: 0; width: 55px; height: 60px; background: white; border-radius: 10px; border: 1px solid var(--border);
    display: flex; flex-direction: column; overflow: hidden; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
[data-theme="dark"] .date-box { background: #1e293b; border-color: #334155; }

.date-month { background: var(--primary); color: white; font-size: 11px; font-weight: 900; padding: 4px 0; text-transform: uppercase; }
.date-day { font-size: 22px; font-weight: 900; color: var(--text-main); line-height: 1.2; padding-top: 4px;}
.date-weekday { font-size: 10px; font-weight: bold; color: var(--text-sub); padding-bottom: 2px;}

.holiday-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; height: 100%;}
.holiday-name { font-size: 16px; font-weight: 900; color: var(--text-main); margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.holiday-local { font-size: 12px; font-weight: bold; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-badge { position: absolute; top: 12px; right: 15px; color: #10b981; font-size: 14px; opacity: 0.8;}

.seo-article-content { padding: 50px 40px; background: var(--card); border-top: 1px solid var(--border); color: var(--text-main); line-height: 1.8; }
.seo-article-content h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 25px; }
.seo-article-content h3 { font-size: 1.2rem; font-weight: 800; margin: 30px 0 15px 0; }
.seo-article-content ul { padding-left: 20px; }
.seo-article-content li { margin-bottom: 10px; color: var(--text-sub);}
.seo-article-content p { color: var(--text-sub); }

@media (max-width: 650px) {
    .tool-h1 { font-size: 1.6rem; }
    .tool-workspace { padding: 20px 15px; gap: 20px;}
    .filter-box { flex-direction: column; align-items: stretch; padding: 20px;}
    .filter-group, .year-group { min-width: 100%; }
    .btn-search { width: 100%; }
    .timeline-grid { grid-template-columns: 1fr; }
    .seo-article-content { padding: 30px 20px; }
}