/* source: components/home/home-category.php */ .hc { background: var(--bg-card, #fff); border-radius: 16px; padding: 16px; margin-bottom: 20px; transition: box-shadow .3s ease; } @media (min-width: 992px) { .hc { margin-top: 15px; } } .hc:hover { box-shadow: 0 8px 30px rgba(0,0,0,.06); } .hc-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; } .hc-t { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; position: relative; padding-right: 14px; min-width: 0; } .hc-t::before { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: var(--theme-color, #eb144c); border-radius: 4px; } .hc-t a { color: var(--text-primary, #222); text-decoration: none; transition: color .2s ease; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .hc-t a:hover { color: var(--theme-color, #eb144c); } .hc-i { width: 18px; height: 18px; fill: var(--theme-color, #eb144c); flex-shrink: 0; opacity: .8; } .hc-btn { font-size: .72rem; font-weight: 600; padding: 6px 16px; border-radius: 8px; background: var(--theme-color, #eb144c); color: var(--theme-contrast-text, #fff); text-decoration: none; transition: all .25s ease; white-space: nowrap; flex-shrink: 0; letter-spacing: .3px; box-shadow: 0 2px 8px rgba(235,20,76,.25); } .hc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(235,20,76,.35); color: #fff; text-decoration: none; } .hc-t a:focus-visible, .hc-btn:focus-visible { outline: 2px solid var(--theme-color, #eb144c); outline-offset: 2px; } .hc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 12px; color: var(--text-secondary, #8888aa); text-align: center; } .hc-empty svg { width: 34px; height: 34px; opacity: .4; fill: currentColor; } .hc-empty span { font-size: .82rem; font-weight: 600; } .hc-scroller-wrap { position: relative; width: 100%; margin: 0 -4px 6px; } .hc-scroller { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch; gap: 12px; width: calc(100% + 8px); overflow-x: auto; overflow-y: hidden; padding: 5px 4px 13px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--theme-color, #eb144c) var(--bg-light, #f0f2f5); cursor: grab; user-select: none; } .hc-scroller:active { cursor: grabbing; } .hc-scroller > .hc-card { display: block !important; flex: 0 0 210px !important; width: 210px !important; min-width: 210px !important; max-width: 210px !important; margin: 0 !important; padding: 0 !important; scroll-snap-align: start; box-sizing: border-box; } .hc-scroller::-webkit-scrollbar { height: 5px; } .hc-scroller::-webkit-scrollbar-track { background: var(--bg-light, #f0f2f5); border-radius: 10px; } .hc-scroller::-webkit-scrollbar-thumb { background: var(--theme-color, #eb144c); border-radius: 10px; } .hc-scroller::-webkit-scrollbar-thumb:hover { background: var(--theme-color, #eb144c); } .hc-scroller-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border-color, rgba(0,0,0,.08)); border-radius: 50%; background: var(--bg-card, #fff); color: var(--text-primary, #222); box-shadow: 0 3px 14px rgba(0,0,0,.12); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .25s ease; font-size: 18px; font-weight: 700; line-height: 1; user-select: none; opacity: 0; pointer-events: none; } .hc-scroller-wrap:hover .hc-scroller-nav { opacity: 1; pointer-events: auto; } .hc-scroller-nav:hover { background: var(--theme-color, #eb144c); color: #fff; border-color: var(--theme-color, #eb144c); box-shadow: 0 5px 18px rgba(235,20,76,.30); transform: translateY(-50%) scale(1.05); } .hc-scroller-nav.prev { left: -2px; } .hc-scroller-nav.next { right: -2px; } body.dark-mode .hc-scroller::-webkit-scrollbar-track { background: var(--bg-light, #2a2d35); } body.dark-mode .hc-scroller-nav { background: var(--bg-card, #2a2d35); border-color: var(--border-color, rgba(255,255,255,.08)); color: var(--text-primary, #e8eaed); } body.dark-mode .hc-scroller-nav:hover { background: var(--theme-color, #eb144c); color: #fff; } @media (max-width: 991px) { .hc-scroller { gap: 11px; } .hc-scroller > .hc-card { flex-basis: 190px !important; width: 190px !important; min-width: 190px !important; max-width: 190px !important; } } @media (max-width: 768px) { .hc-scroller-nav { display: none !important; } .hc-scroller { gap: 10px; padding: 4px 4px 11px; scrollbar-width: none; } .hc-scroller::-webkit-scrollbar { display: none; } .hc-scroller > .hc-card { flex: 0 0 170px !important; width: 170px !important; min-width: 170px !important; max-width: 170px !important; } } @media (max-width: 576px) { .hc { padding: 12px 8px; border-radius: 12px; } .hc-t { font-size: .95rem; padding-right: 12px; } .hc-t::before { width: 3px; height: 16px; } .hc-btn { font-size: .68rem; padding: 5px 12px; border-radius: 6px; } .hc-scroller { gap: 9px; } .hc-scroller > .hc-card { flex: 0 0 165px !important; width: 165px !important; min-width: 165px !important; max-width: 165px !important; } } @media (max-width: 400px) { .hc-scroller { gap: 8px; } .hc-scroller > .hc-card { flex: 0 0 155px !important; width: 155px !important; min-width: 155px !important; max-width: 155px !important; } } @media (prefers-reduced-motion: reduce) { .hc, .hc-btn, .hc-scroller, .hc-scroller-nav { transition: none !important; scroll-behavior: auto !important; } } /* source: components/home/home-post-type.php */ .home-category-section { background: var(--bg-card, #fff); border: 1px solid var(--border-color, rgba(0,0,0,0.06)); border-radius: 14px; padding: 10px 10px 10px; margin-bottom: 10px; transition: all 0.3s ease; } .home-category-section:hover { box-shadow: var(--shadow-card, 0 4px 15px rgba(0,0,0,0.04)); } .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.05)); } .section-title { font-size: 1.05rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; } .section-title a { color: var(--text-primary, #222); text-decoration: none; transition: color 0.2s; } .section-title a:hover { color: var(--theme-color, #eb144c); } .section-title-icon { width: 20px; height: 20px; fill: var(--theme-color, #eb144c); flex-shrink: 0; } .view-more-btn { font-size: 0.75rem; font-weight: 600; padding: 5px 14px; border-radius: 20px; border: 1.5px solid var(--theme-color, #eb144c); color: var(--theme-color-safe, var(--theme-color, #eb144c)); background: transparent; text-decoration: none; transition: all 0.25s ease; white-space: nowrap; flex-shrink: 0; } .view-more-btn:hover { background: var(--theme-color, #eb144c); color: var(--theme-contrast-text, #fff); text-decoration: none; } .media-card { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-light, #e9ecef); text-decoration: none; } .media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .media-card:hover img { transform: scale(1.08); } .media-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%); display: flex; align-items: flex-end; padding: 14px; transition: background 0.3s ease; } .media-card:hover .media-card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); } .media-card-title { color: #fff; font-size: 0.85rem; font-weight: 700; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,0.4); } @media (max-width: 576px) { .home-category-section { padding: 7px 4px 4px; border-radius: 10px; } .section-title { font-size: 0.95rem; } .view-more-btn { font-size: 0.7rem; padding: 4px 10px; } .media-card-title { font-size: 0.8rem; } }
