/* Explore / all-sections menu (Views/Shared/_ExploreMenu.cshtml) - used by the site footer and the Study Store layout. */

/* Header "More" item (_jobheader.cshtml) opens this popup: small grid icon instead of a dropdown arrow. */
.am-more-ico { font-size: 11px; margin-left: 5px; color: #ec4899; vertical-align: 1px; }
.am-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.am-fab { position: fixed; right: 15px; bottom: 405px; z-index: 112; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; font-size: 17px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f97316, #ec4899); box-shadow: 0 6px 16px -4px rgba(236, 72, 153, .6); transition: transform .2s, box-shadow .2s; }
.am-fab::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(236, 72, 153, .5); animation: am-ring 2.4s ease-out 3; }
.am-fab:hover { transform: translateY(-2px) rotate(8deg); box-shadow: 0 10px 22px -4px rgba(236, 72, 153, .75); }
.am-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes am-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }

/* Overlay: dark enough that any page underneath stays a soft blur, never competes with the text */
.am-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1200px 600px at 15% 0%, rgba(99, 102, 241, .35), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(236, 72, 153, .28), transparent 60%), rgba(8, 10, 24, .82); -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%); animation: am-in .2s ease-out; font-family: 'Open Sans', 'Open Sans Fallback', system-ui, sans-serif; color: #e5e7eb; }
.am-overlay[hidden] { display: none; }
@keyframes am-in { from { opacity: 0; } to { opacity: 1; } }
.am-panel { position: relative; width: 100%; max-width: 1180px; height: min(780px, calc(100vh - 48px)); display: flex; flex-direction: column; border-radius: 22px; background: rgba(17, 24, 39, .78); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); overflow: hidden; animation: am-up .26s ease-out; }
.am-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #6366f1, #0ea5e9, #10b981, #f59e0b, #ec4899, #8b5cf6); }
@keyframes am-up { from { transform: translateY(16px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }

/* The header and Popular rows keep their full height (flex: none) - the panel has a fixed
   height, and without this a long category list squeezed them, clipping the subtitle and the
   bottoms of the Popular chips. Only .am-body below shrinks and scrolls. */
.am-head, .am-popular { flex: none; }
.am-body { min-height: 0; }
.am-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px 14px; }
.am-brand h2, .am-brand p { line-height: 1.3; }
.am-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.am-brand-ico { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; color: #fff; background: linear-gradient(135deg, #f97316, #ec4899); box-shadow: 0 10px 22px -10px rgba(236, 72, 153, .9); }
.am-brand h2 { margin: 0; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: 21px; font-weight: 800; color: #fff; }
.am-brand p { margin: 1px 0 0; font-size: 13px; color: #9ca3af; }
.am-search { position: relative; flex: 1 1 auto; max-width: 560px; margin: 0 0 0 auto; }
.am-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.am-search input { width: 100%; height: 46px; padding: 0 64px 0 44px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.am-search input::placeholder { color: #9ca3af; }
.am-search input:focus { border-color: #818cf8; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(129, 140, 248, .18); }
.am-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #9ca3af; font: 600 11px/1.4 'Open Sans', sans-serif; }
.am-close { flex: none; width: 46px; height: 46px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #e5e7eb; font-size: 19px; cursor: pointer; transition: background .15s, color .15s, transform .2s; }
.am-close:hover { background: #ef4444; border-color: #ef4444; color: #fff; transform: rotate(90deg); }

.am-popular { display: flex; align-items: center; gap: 8px; padding: 4px 22px 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.am-popular::-webkit-scrollbar { display: none; }
.am-popular-label { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fbbf24; margin-right: 4px; }
.am-popular a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #f3f4f6; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.am-popular a i { color: #fbbf24; }
.am-popular a:hover, .am-popular a:focus-visible { background: rgba(251, 191, 36, .16); border-color: rgba(251, 191, 36, .45); color: #fff; text-decoration: none; transform: translateY(-1px); outline: none; }

.am-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.am-cats { overflow-y: auto; padding: 12px 10px 16px 14px; border-right: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.am-cat { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: #d1d5db; text-align: left; cursor: pointer; font: 600 14px 'Montserrat', sans-serif; transition: background .15s, color .15s; }
.am-cat-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: var(--c); background: rgba(255, 255, 255, .06); transition: background .15s, color .15s; }
.am-cat-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-cat-count { flex: none; font: 700 11px 'Open Sans', sans-serif; color: #9ca3af; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 2px 8px; }
.am-cat:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.am-cat:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; }
.am-cat.is-on { background: rgba(255, 255, 255, .09); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, transparent), transparent); color: #fff; box-shadow: inset 3px 0 0 var(--c); }
.am-cat.is-on .am-cat-ico { background: var(--c); color: #fff; box-shadow: 0 8px 18px -8px var(--c); }
.am-cat.is-on .am-cat-count { background: var(--c); color: #fff; }

.am-panes { overflow-y: auto; padding: 18px 22px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.am-pane[hidden], .am-results[hidden] { display: none; }
.am-pane { animation: am-fade .2s ease-out; }
@keyframes am-fade { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.am-pane-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.am-pane-ico { width: 52px; height: 52px; flex: none; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 23px; color: #fff; background: var(--c); box-shadow: 0 14px 28px -12px var(--c); }
.am-pane-head h3 { margin: 0; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: 22px; font-weight: 800; color: #fff; }
.am-pane-head p { margin: 2px 0 0; font-size: 14px; color: #9ca3af; }
.am-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.am-links a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px 10px 16px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); color: #f3f4f6; font-size: 14.5px; font-weight: 600; text-decoration: none; overflow: hidden; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.am-links a::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); opacity: .75; }
.am-link-t { flex: 1 1 auto; min-width: 0; }
.am-links a .fa { flex: none; color: #6b7280; font-size: 18px; transition: transform .15s, color .15s; }
.am-links a:hover, .am-links a:focus-visible { background: rgba(255, 255, 255, .1); border-color: var(--c); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 24px -16px var(--c); outline: none; }
.am-links a:hover .fa, .am-links a:focus-visible .fa { color: var(--c); transform: translateX(3px); }
.am-links a.is-here { background: rgba(255, 255, 255, .14); border-color: var(--c); }
.am-here { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--c); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); border-radius: 999px; padding: 2px 8px; }
.am-links mark { background: #fde047; color: #111827; padding: 0 2px; border-radius: 3px; }
.am-results h4 { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font: 700 13px 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; }
.am-results h4 i { color: var(--c); }
.am-results .am-links { margin-bottom: 18px; }
.am-results-none { text-align: center; padding: 50px 10px; color: #9ca3af; font-size: 15px; }
.am-results-none i { display: block; font-size: 34px; margin-bottom: 10px; color: #4b5563; }
body.am-open { overflow: hidden; }

@media (max-width: 860px) {
    .am-overlay { padding: 0; align-items: stretch; }
    .am-panel { height: 100%; max-width: none; border-radius: 0; border: 0; }
    .am-head { flex-wrap: wrap; gap: 10px; padding: 14px 14px 10px; }
    .am-brand { flex: 1 1 auto; }
    .am-brand-ico { width: 38px; height: 38px; font-size: 16px; }
    .am-brand h2 { font-size: 18px; }
    .am-search { order: 3; flex: 1 1 100%; max-width: none; }
    .am-search kbd { display: none; }
    .am-close { width: 42px; height: 42px; }
    .am-popular { padding: 0 14px 10px; }
    .am-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .am-cats { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 10px 14px; gap: 6px; scrollbar-width: none; }
    .am-cats::-webkit-scrollbar { display: none; }
    .am-cat { width: auto; flex: none; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 13px; }
    .am-cat-ico { width: 28px; height: 28px; border-radius: 50%; font-size: 13px; }
    .am-cat-count { display: none; }
    .am-cat.is-on { box-shadow: none; background: var(--c); }
    .am-cat.is-on .am-cat-ico { background: rgba(255, 255, 255, .25); box-shadow: none; }
    .am-panes { padding: 14px 14px 90px; }
    .am-pane-ico { width: 44px; height: 44px; font-size: 19px; border-radius: 13px; }
    .am-pane-head h3 { font-size: 19px; }
    .am-links { grid-template-columns: 1fr 1fr; gap: 8px; }
    .am-links a { min-height: 48px; font-size: 13.5px; padding: 9px 10px 9px 13px; }
}
@media (max-width: 400px) { .am-links { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .am-overlay, .am-panel, .am-pane, .am-fab::after { animation: none; } .am-close:hover, .am-fab:hover, .am-links a:hover, .am-popular a:hover { transform: none; } }
