/* Νέα αρχική (δοκιμαστική σελίδα). Χρώματα και τυπογραφία από το style.css του θέματος. */

.v2 { --v2-gap: clamp(2rem, 5vw, 3rem); overflow-wrap: break-word; }
.v2 h2 { margin: 0 0 1rem; }
/* Εστίαση: το κίτρινο του θέματος έχει αντίθεση 1,8:1 σε λευκό· στις ανοιχτές περιοχές σκούρο μπλε (14:1), στο hero κίτρινο (7,7:1). */
.v2 > .container :focus-visible { outline: 3px solid var(--c-hero-1); outline-offset: 2px; }
.v2-section { margin: var(--v2-gap) 0; }
.v2-section:focus { outline: none; }
.v2-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1rem; }
.v2-section__head h2 { margin: 0; }

/* ---------- Hero + αναζήτηση ---------- */
.v2-hero { background: var(--c-hero-1); color: #fff; padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.5rem, 3.5vw, 2.25rem); }
.v2-hero h1 { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.v2-hero__lead { color: #d6e4f3; margin: 0 0 1.25rem; font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 62ch; }

.v2-search { position: relative; max-width: 820px; }
.v2-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2-search__box { display: flex; align-items: stretch; background: var(--c-surface); border-radius: 14px; padding: .35rem; box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.v2-search__box:focus-within { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.v2-search__icon { display: grid; place-items: center; padding: 0 .25rem 0 .75rem; color: var(--c-muted); }
.v2-search__icon .fx-icon { width: 1.4rem; height: 1.4rem; }
.v2-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--c-text); padding: .85rem .6rem; }
.v2-search input:focus { outline: none; }
.v2-search input::placeholder { color: #66727f; opacity: 1; }
.v2-search input::-webkit-search-cancel-button { cursor: pointer; }
.v2-search__btn { flex: none; border: 0; border-radius: 10px; padding: 0 1.4rem; min-height: 3.1rem; background: var(--c-primary); color: var(--c-on-primary); font: inherit; font-weight: 700; cursor: pointer; }
.v2-search__btn:hover { background: var(--c-primary-strong); }
.v2-search__btn:focus-visible { outline: 3px solid var(--c-hero-1); outline-offset: 2px; }

/* Προτάσεις (listbox) */
.v2-suggest { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + .4rem); margin: 0; padding: .35rem; list-style: none; background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow-md); max-height: min(70vh, 30rem); overflow-y: auto; }
.v2-suggest[hidden] { display: none; }
.v2-suggest li { border-radius: 8px; }
.v2-suggest a { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .75rem; color: inherit; text-decoration: none; border-radius: 8px; border-left: 4px solid transparent; }
.v2-suggest [aria-selected="true"] a, .v2-suggest a:hover { background: var(--c-primary-soft); border-left-color: var(--c-primary); }
.v2-suggest__icon { flex: none; color: var(--c-primary); margin-top: .1rem; }
.v2-suggest__title { display: block; font-weight: 700; line-height: 1.3; }
.v2-suggest__text { display: block; color: var(--c-muted); font-size: .9rem; line-height: 1.4; }
.v2-suggest .v2-tags { margin-top: .3rem; }
.v2-suggest__all a { font-weight: 600; color: var(--c-primary-strong); }
.v2-suggest__empty { padding: .75rem; color: var(--c-text); }
.v2-suggest__empty strong { display: block; margin-bottom: .2rem; }

/* Συχνές αναζητήσεις */
.v2-popular { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: 1rem; }
.v2-popular__label { color: #d6e4f3; font-size: .95rem; }
.v2-popular ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.v2-chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .3rem 1rem; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .6); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.v2-chip:hover { background: #fff; color: var(--c-hero-1); border-color: #fff; }
.v2-chip:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* ---------- Κοινά: κάρτες υπηρεσιών ---------- */
.v2-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.v2-card { position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.15rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; }
.v2-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.v2-card:focus-within { outline: 3px solid var(--c-hero-1); outline-offset: 2px; border-color: var(--c-primary); }
.v2-card__icon { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary); }
.v2-card__icon .fx-icon { width: 1.4rem; height: 1.4rem; }
.v2-card__body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; flex: 1; }
.v2-card__title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.v2-card__title a { color: var(--c-text); text-decoration: none; }
.v2-card__title a:focus-visible { outline: none; }
.v2-card:hover .v2-card__title a { color: var(--c-primary-strong); text-decoration: underline; }
.v2-stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.v2-card__text { margin: 0; color: var(--c-muted); font-size: .93rem; line-height: 1.45; }
.v2-card__cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; color: var(--c-primary-strong); font-weight: 700; font-size: .95rem; }

.v2-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .1rem 0 0; padding: 0; list-style: none; }
.v2-tag { display: inline-flex; align-items: center; gap: .3em; padding: .1em .6em; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.6; background: var(--c-surface-2); color: #3f4b5a; }
.v2-tag .fx-icon { width: 1em; height: 1em; }
.v2-tag.is-online { background: #e3f4ec; color: #105c38; }
.v2-tag.is-search { background: var(--c-primary-soft); color: #0d4b63; }
.v2-tag.is-auth { background: #fdf0d5; color: #6e4300; }
.v2-tag.is-open { background: #e3f4ec; color: #105c38; }

/* ---------- Κατηγορίες ---------- */
.v2-cats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); margin: 0; padding: 0; list-style: none; }
.v2-cat { display: grid; grid-template-columns: auto 1fr; gap: .2rem .85rem; align-items: center; height: 100%; padding: .95rem 1.1rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; color: var(--c-text); text-decoration: none; }
.v2-cat:hover { border-color: var(--c-primary); color: var(--c-text); }
.v2-cat:hover .v2-cat__title { color: var(--c-primary-strong); text-decoration: underline; }
.v2-cat__icon { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary); }
.v2-cat__icon .fx-icon { width: 1.4rem; height: 1.4rem; }
.v2-cat__body { display: flex; flex-direction: column; min-width: 0; }
.v2-cat__title { font-weight: 700; line-height: 1.3; }
.v2-cat__text { color: var(--c-muted); font-size: .9rem; line-height: 1.4; }
.v2-cat__count { grid-column: 2; color: var(--c-muted); font-size: .82rem; }

/* ---------- Τι θέλετε να κάνετε ---------- */
.v2-actions { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin: 0; padding: 0; list-style: none; }
.v2-action { display: flex; align-items: center; gap: .85rem; min-height: 3.6rem; height: 100%; padding: .7rem 1rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; color: var(--c-text); text-decoration: none; font-weight: 600; }
.v2-action:hover { border-color: var(--c-primary); color: var(--c-primary-strong); }
.v2-action:hover .v2-action__text { text-decoration: underline; }
.v2-action__icon { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); }
.v2-action__text { flex: 1; line-height: 1.35; }
.v2-action > .fx-icon:last-child { color: var(--c-primary); }

/* ---------- Οι υπηρεσίες μου ---------- */
.v2-my { display: grid; gap: 1rem 2rem; padding: clamp(1.1rem, 3vw, 1.75rem); background: var(--c-surface); border: 1px solid var(--c-border); border-left: 5px solid var(--c-primary); border-radius: 12px; }
@media (min-width: 900px) { .v2-my { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; } }
.v2-my__intro p { margin: 0; color: var(--c-muted); }
.v2-mylist { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin: 0; padding: 0; list-style: none; }
.v2-myitem { display: flex; gap: .7rem; align-items: flex-start; height: 100%; padding: .75rem .9rem; border: 1px solid var(--c-border); border-radius: 10px; color: var(--c-text); text-decoration: none; }
.v2-myitem:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.v2-myitem:hover .v2-myitem__title { text-decoration: underline; }
.v2-myitem__icon { color: var(--c-primary); flex: none; margin-top: .1rem; }
.v2-myitem__title { display: block; font-weight: 700; line-height: 1.3; }
.v2-myitem__text { display: block; color: var(--c-muted); font-size: .88rem; line-height: 1.4; }

/* ---------- Όλες οι υπηρεσίες ---------- */
.v2-catalog { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.v2-catalog__group { padding: 1rem 1.15rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; }
.v2-catalog__group:target, .v2-catalog__group:focus { outline: 3px solid var(--c-hero-1); outline-offset: 2px; }
.v2-catalog__group h3 { margin: 0 0 .5rem; font-size: 1.08rem; }
.v2-catalog__group ul { margin: 0; padding: 0; list-style: none; }
.v2-catalog__group li { padding: .5rem 0; border-top: 1px solid var(--c-border); }
.v2-catalog__group li:first-child { border-top: 0; }
.v2-catalog__group a { font-weight: 600; }
.v2-catalog__group a .fx-icon { width: .9em; height: .9em; vertical-align: -.05em; }
.v2-catalog__group li span { display: block; color: var(--c-muted); font-size: .88rem; line-height: 1.4; }

/* ---------- Βοήθεια ---------- */
.v2-help__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.v2-help__grid > div { padding: 1rem 1.15rem; background: var(--c-surface-2); border-radius: 12px; }
.v2-help h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.v2-help p { margin: 0; }

/* ---------- Αποτελέσματα (με «Αναζήτηση») ---------- */
.v2-results { padding-top: .25rem; }
.v2-results__more { margin: 1rem 0 0; }
.v2-linkbtn { background: none; border: 0; padding: .4rem 0; font: inherit; color: var(--c-primary); text-decoration: underline; cursor: pointer; min-height: 2.25rem; }
.v2-linkbtn:hover { color: var(--c-primary-strong); }
.v2-noresults { padding: 1rem 1.15rem; background: var(--c-surface); border: 1px solid var(--c-border); border-left: 5px solid var(--c-focus); border-radius: 12px; }
.v2-noresults p { margin: .25rem 0 0; }

@media (max-width: 600px) {
  .v2-search__btn { padding: 0 1rem; }
  .v2-popular__label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .v2 *, .v2 *::before, .v2 *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .v2-card, .v2-cat, .v2-action, .v2-myitem, .v2-tag { border: 1px solid CanvasText; }
}
