/* v924 - two home sections in the owner's reference style (Hostinger "Tools for every online project" and
   "More power when you need it"), in Mashhor's navy and blue. Both themes; the words are in the template, this file
   only lays them out. home-showcase.js switches the tabs and types the prompt. */

/* ── everything in one place: pill tabs, a stack of our work with a prompt bubble, the words beside it ── */
.hx-tools { width: min(100% - 40px, 1400px); margin-inline: auto; padding-block: clamp(48px, 5vw, 88px) !important; }
.hx-head { text-align: center; max-width: 820px; margin: 0 auto clamp(28px, 3.4vw, 52px); }
.hx-head h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.02em; color: var(--text, #f1f5f9); }
.hx-head p { font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.7; color: var(--muted, #94a3b8); margin: 0 0 26px; }
.hx-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.hx-tab { appearance: none; border: 0; background: transparent; color: var(--text, #e2e8f0); font: inherit; font-weight: 700; font-size: .95rem; padding: 10px 20px; border-radius: 999px; cursor: pointer; min-width: 0; transition: background .25s ease, color .25s ease; }
.hx-tab:hover { background: rgba(255, 255, 255, .08); }
.hx-tab.is-on { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #ffffff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .8); }
.hx-tab:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }

.hx-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.hx-panel[hidden] { display: none; }
.hx-panel.is-on { animation: hxIn .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes hxIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hx-visual { position: relative; padding: 44px 4% 70px; width: 100%; max-width: 640px; justify-self: center; }
.hx-stack { position: relative; aspect-ratio: 4 / 3; }
.hx-card { position: absolute; inset: 0; border-radius: 22px; background: #0d1a4a center / cover no-repeat; box-shadow: 0 30px 60px -30px rgba(7, 13, 36, .8); border: 1px solid rgba(255, 255, 255, .14); }
.hx-c3 { transform: translateY(-40px) scale(.86); opacity: .5; filter: saturate(.8); }
.hx-c2 { transform: translateY(-20px) scale(.93); opacity: .78; }
.hx-c1 { overflow: hidden; }
.hx-bar { position: absolute; inset-inline: 14px; top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .94); color: #0b1530; font-style: normal; font-size: .82rem; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .5); }
.hx-bar b { font-weight: 800; }
.hx-bar em { font-style: normal; font-weight: 700; color: #1d4ed8; background: #e8efff; padding: 3px 10px; border-radius: 999px; font-size: .76rem; }
.hx-prompt { position: absolute; inset-inline: 2% 8%; bottom: 0; display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 14px 16px 14px 22px; border-radius: 18px; background: #ffffff; color: #0b1530; font-size: clamp(.95rem, 1.2vw, 1.12rem); line-height: 1.45; border: 2px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 2px rgba(37, 99, 235, .55), 0 24px 50px -24px rgba(7, 13, 36, .7); }
html[dir="rtl"] .hx-prompt { padding: 14px 22px 14px 16px; }
.hx-prompt span { flex: 1; min-height: 1.45em; }
.hx-prompt span::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 3px; vertical-align: -2px; background: #2563eb; animation: hxCaret 1s steps(1) infinite; }
@keyframes hxCaret { 50% { opacity: 0; } }
.hx-go { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 1.6rem; line-height: 1; color: #ffffff; background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
html[dir="rtl"] .hx-go { transform: scaleX(-1); }

.hx-copy { max-width: 520px; }
.hx-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(37, 99, 235, .14); color: #60a5fa; margin-bottom: 18px; }
.hx-ic svg { width: 24px; height: 24px; }
.hx-copy h3 { font-size: clamp(1.5rem, 2.3vw, 2.3rem); line-height: 1.25; margin: 0 0 14px; letter-spacing: -.01em; color: var(--text, #f1f5f9); }
.hx-copy p { font-size: 1.05rem; line-height: 1.8; color: var(--muted, #94a3b8); margin: 0 0 26px; }
.hx-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .18); color: var(--text, #f1f5f9); text-decoration: none; font-size: 1.12rem; font-weight: 600; transition: border-color .25s ease, color .25s ease; }
.hx-link i { font-style: normal; font-size: 1.3rem; transition: transform .25s ease; }
html[dir="rtl"] .hx-link i { transform: scaleX(-1); }
.hx-link:hover { border-color: #3b82f6; color: #93c5fd; }
.hx-link:hover i { transform: translateX(4px); }
html[dir="rtl"] .hx-link:hover i { transform: scaleX(-1) translateX(4px); }
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hx-chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 16px; border-radius: 999px; font-size: .88rem; font-weight: 700; text-decoration: none; color: #bfdbfe; background: rgba(96, 165, 250, .16); border: 1px solid rgba(96, 165, 250, .42); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.hx-chips a:hover { background: #2563eb; border-color: #2563eb; color: #fff; }   /* v981 - the light blue of the site's chips, so they stand out */

@media (max-width: 900px) {
  .hx-panel { grid-template-columns: 1fr; gap: 26px; }
  .hx-visual { padding: 26px 4% 64px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hx-copy { max-width: none; text-align: start; }
  .hx-tabs { display: flex; width: 100%; max-width: 440px; margin: 0 auto; }
  .hx-tab { flex: 1 1 0; padding: 10px 4px; font-size: .9rem; white-space: nowrap; }   /* v932 - "Advertise" broke into "Advertis / e" */
  @media (max-width: 400px) { .hx-tab { font-size: .8rem; } }
  .hx-prompt { inset-inline: 0; min-height: 64px; font-size: .95rem; }
  .hx-go { width: 40px; height: 40px; }
}

/* ── more when you need it: a navy-to-blue band with glass cards ── */
.hx-more { padding: 0 !important; margin: clamp(20px, 3vw, 40px) auto; width: min(100% - 40px, 1720px); }
.hx-more-in { border-radius: 32px; padding: clamp(40px, 5vw, 80px) clamp(20px, 4vw, 64px); color: #ffffff;
  background: radial-gradient(70% 90% at 50% 120%, rgba(99, 102, 241, .55), transparent 60%), radial-gradient(60% 80% at 90% 0%, rgba(37, 99, 235, .45), transparent 60%), linear-gradient(180deg, #070d24 0%, #0d1a4a 55%, #1e3a8a 100%);
  box-shadow: 0 40px 90px -50px rgba(7, 13, 36, .8); }
html body .hx-more .hx-more-in h2 { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; background: none !important; font-size: clamp(1.7rem, 2.8vw, 2.6rem); margin: 0 0 clamp(22px, 3vw, 40px); letter-spacing: -.02em; }
.hx-more-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hx-mc { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 22px; border-radius: 18px; text-decoration: none; color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, background .3s ease; }
.hx-mc:hover { transform: translateY(-6px); border-color: rgba(147, 197, 253, .5); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); }
.hx-mi { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(96, 165, 250, .16); color: #93c5fd; margin-bottom: 18px; }
.hx-mi svg { width: 22px; height: 22px; }
.hx-arr { position: absolute; top: 20px; inset-inline-end: 20px; font-style: normal; font-size: 1.1rem; color: #ffffff; opacity: .8; }
html[dir="rtl"] .hx-arr { transform: scaleX(-1); }
html body .hx-more .hx-mc b { font-size: 1.12rem; font-weight: 700; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html body .hx-more .hx-mc span:not(.hx-mi) { font-size: .92rem; line-height: 1.6; color: #c7d2fe !important; }
@media (max-width: 1100px) { .hx-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .hx-more { width: calc(100% - 24px); }
  .hx-more-in { border-radius: 24px; }
  .hx-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hx-mc { min-height: 0; padding: 16px; }
  .hx-mi { margin-bottom: 6px; width: 34px; height: 34px; }
  .hx-mc span:not(.hx-mi) { font-size: .84rem; }
  /* v932 - the owner (Hostinger reference): on a phone the five are ONE sideways carousel of tall cards - the next card
     peeks in, each snaps into place, dots under it say where you are (home-showcase.js) */
  .hx-more-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * clamp(20px, 4vw, 64px)); padding-inline: clamp(20px, 4vw, 64px); scroll-padding-inline: clamp(20px, 4vw, 64px); }
  .hx-more-grid::-webkit-scrollbar { display: none; }
  .hx-more-grid > .hx-mc { flex: 0 0 80%; min-height: 300px; padding: 26px 22px; scroll-snap-align: start; border-radius: 22px;
    background: linear-gradient(180deg, rgba(7, 13, 36, .85), rgba(30, 58, 138, .45)); }
  .hx-more-grid > .hx-mc .hx-mi { margin-bottom: 26px; width: 42px; height: 42px; }
  html body .hx-more .hx-more-grid > .hx-mc b { font-size: 1.3rem; }
  html body .hx-more .hx-more-grid > .hx-mc span:not(.hx-mi) { font-size: .98rem; }
  .hx-more-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .hx-more-dots button { width: 8px; height: 8px; padding: 0; min-width: 0; min-height: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .25s ease, background .25s ease; }
  .hx-more-dots button[aria-current="true"] { width: 26px; background: #ffffff; }
}
@media (min-width: 701px) { .hx-more-dots { display: none; } }

/* ── day mode: white stage, navy words, the brand blue ── */
html[data-color="light"] .hx-head h2, html[data-color="light"] .hx-copy h3 { color: #0b1530; }
html[data-color="light"] .hx-head p, html[data-color="light"] .hx-copy p { color: #4b5563; }
html[data-color="light"] .hx-tabs { background: #ffffff; border-color: #e3e8f2; box-shadow: 0 10px 30px -18px rgba(15, 27, 56, .3); }
html[data-color="light"] .hx-tab { color: #0b1530; }
html[data-color="light"] .hx-tab:hover { background: #eef3ff; }
html[data-color="light"] .hx-tab.is-on { background: #0b1530; color: #ffffff; }
html[data-color="light"] .hx-ic { background: #eef3ff; color: #2563eb; }
html[data-color="light"] .hx-link { color: #0b1530; border-color: #d6deeb; }
html[data-color="light"] .hx-link:hover { color: #1d4ed8; border-color: #2563eb; }
html[data-color="light"] .hx-chips a { color: #1d4ed8; background: #e8f0ff; border-color: #c7d7fe; }
html[data-color="light"] .hx-chips a:hover { color: #fff; background: #2563eb; border-color: #2563eb; }
html[data-color="light"] .hx-card { border-color: rgba(15, 27, 56, .08); box-shadow: 0 30px 60px -30px rgba(15, 27, 56, .45); }

@media (prefers-reduced-motion: reduce) {
  .hx-panel.is-on { animation: none; }
  .hx-prompt span::after { animation: none; }
  .hx-mc, .hx-link i { transition: none; }
}

/* ── v934 (owner): "More when you need it" takes the place of the old "Fresh from the Hub" cards - a LIGHT band,
   DARK cards, the arrow in a framed square. Both themes. ── */
html body .hx-more .hx-more-in { color: #0b1530;
  background: radial-gradient(60% 90% at 100% 0%, rgba(96, 165, 250, .22), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(129, 140, 248, .18), transparent 60%), linear-gradient(180deg, #f6f9ff 0%, #e9f0ff 100%);
  border: 1px solid rgba(37, 99, 235, .14); box-shadow: 0 30px 70px -50px rgba(15, 23, 42, .45); }
html body .hx-more .hx-more-in h2 { color: #0b1530 !important; -webkit-text-fill-color: #0b1530 !important; }
html body .hx-more .hx-mc, html body .hx-more .hx-more-grid > .hx-mc { color: #ffffff; border: 1px solid rgba(15, 23, 42, .08);
  background: radial-gradient(90% 70% at 100% 0%, rgba(59, 130, 246, .35), transparent 60%), linear-gradient(160deg, #070d24 0%, #0d1a4a 60%, #1e3a8a 100%);
  box-shadow: 0 18px 40px -22px rgba(7, 13, 36, .7); }
html body .hx-more .hx-mc:hover { border-color: rgba(37, 99, 235, .45); box-shadow: 0 26px 50px -24px rgba(7, 13, 36, .8); }
html body .hx-more .hx-mi { background: rgba(255, 255, 255, .1); color: #bfdbfe; border: 1px solid rgba(255, 255, 255, .16); }
html body .hx-more .hx-mc span:not(.hx-mi) { color: #c7d2fe !important; }
html body .hx-more .hx-arr { width: 34px; height: 34px; display: grid; place-items: center; top: 18px; inset-inline-end: 18px; font-size: .95rem; line-height: 1; opacity: 1;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
html body .hx-more .hx-mc:hover .hx-arr { background: #ffffff; color: #0b1530; border-color: #ffffff; }
@media (max-width: 700px) {
  html body .hx-more .hx-more-dots button { background: rgba(11, 21, 48, .25); }
  html body .hx-more .hx-more-dots button[aria-current="true"] { background: #1d4ed8; }
}
