/* sms-zmenkarije.com, redesign "Lila dan 2": the seven account pages (login, register, the two success pages,
   Moj profil, add and edit). Loaded after zk2026-profil.css; every selector matches only on these pages.
   Hover rules sit inside @media (hover: hover); nothing moves or animates. On add and edit, an upload echo before
   the doctype puts the page in quirks mode, so nothing here relies on table font inheritance. */

/* ---------------------------------------------------------------- leftovers */
/* the subscribe popup the seven pages print after .pageAlign: no rule and no script use it, and its form subscribes
   nothing. Hidden: out of the render, the Tab order and the accessibility tree (E9) */
.popUpContainer { display: none; }
/* .invisible: hidden from everyone, as the old style.css:349-351 hid it (register's four "Zahtevano polje", the
   popup's label) */
.invisible { display: none; }

/* ---------------------------------------------------------------- the frame */
/* the first block 44px under the band (28px on phones); the page's h1 is the section heading */
.day > .contentBox:first-child { margin-top: 44px; }
.day .ce_headline { margin: 0 0 14px; font: 700 28px/1.15 var(--display); color: var(--violet-deep); }
/* the white panels: login's form panel, the register, add and edit forms, the Moj profil box */
.mod_login, #tl_registration, #tl_catalog_items, #moj-profil > .regularContent {
  background: var(--paper); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(59, 23, 84, .06), 0 14px 32px -20px rgba(59, 23, 84, .35);
}
.mod_login, #tl_registration { max-width: 560px; padding: 26px 32px 32px; }
#tl_catalog_items { max-width: 720px; padding: 26px 32px 32px; }

/* ---------------------------------------------------------------- intro texts and error notes */
/* login's intro and the success pages' sentence, on the day with no panel */
:is(#prijava-uporabnika, #aktivacija-registracije, #aktivacija-uspešna) > .ce_text { margin-bottom: 24px; }
:is(#prijava-uporabnika, #aktivacija-registracije, #aktivacija-uspešna) > .ce_text p { max-width: 62ch; font: 400 17px/1.6 var(--text); color: var(--ink); }
/* the success pages' two "&nbsp;" paragraphs are spacers */
:is(#aktivacija-registracije, #aktivacija-uspešna) > .ce_text p:not(:first-child) { display: none; }
/* rule fix (visible focus): "tukaj" sits inside a sentence; focused, it fills (white on --violet-ink, 7.3:1 against
   the day) instead of a ring over its neighbours. The outline is transparent, not removed, so forced colours still
   draw a ring */
#aktivacija-uspešna .ce_text a:focus-visible {
  outline: 2px solid transparent; outline-offset: 0; border-radius: 2px; background: var(--violet-ink); color: #fff;
  text-decoration-color: #fff; text-decoration-thickness: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* the errors login.php and register.php print before the form, their text as the PHP sets it */
#prijava-uporabnika > .error, .mod_registration > .error {
  max-width: 560px; margin: 0 0 16px; padding: 14px 18px 15px 16px; border-radius: 8px; border-left: 5px solid #c2366f;
  background: #fff4f8; color: #8f1d52; font: 600 16px/1.45 var(--text);
}
/* the login form stays hidden, panel and all, as the old style.css:103 hid #tl_login ("no prijava,registration for
   now"); the rules below draw it if it is ever shown */
#prijava-uporabnika .mod_login { display: none; }

/* ---------------------------------------------------------------- forms: login (if shown), register, add, edit */
#tl_login :is(table, tbody, tr, td), #tl_catalog_items :is(table, tbody, tr, td) { display: block; }
/* every row after the first; not "tr + tr": add and edit print a hidden <input> between the last two rows, which
   the parser keeps inside the table */
:is(#tl_login, #tl_catalog_items) tr:not(:first-of-type), #tl_registration .row + .row { margin-top: 18px; }
#tl_login tr.row_last > td.col_0 { display: none; }                  /* the &nbsp; cell beside the button */
#tl_catalog_items tr:has(> td.explanation:empty) { display: none; }   /* an empty row */
:is(#tl_login, #tl_registration, #tl_catalog_items) label { display: block; margin-bottom: 7px; font: 600 15px/1.3 var(--text); color: var(--ink); }
:is(#tl_login, #tl_registration, #tl_catalog_items) :is(input.text, select, textarea) {
  display: block; width: 100%; margin: 0; border: 1px solid var(--edge); border-radius: var(--radius);
  background-color: var(--field); color: var(--ink); font: 400 16px/1.4 var(--text);
}
:is(#tl_login, #tl_registration, #tl_catalog_items) :is(input.text, select) { height: 48px; padding: 0 14px; }
/* the grey password-manager icon pasted into four fields' inline style (login.php's two fields and the "Ime" field
   of add and edit) */
:is(#tl_login, #tl_registration, #tl_catalog_items) input.text { background-image: none !important; }
/* the native selects with the site's chevron (uniform's wrappers on add and edit are made invisible in zk2026.css) */
:is(#tl_registration, #tl_catalog_items) select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: var(--chev); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
#tl_catalog_items textarea { padding: 12px 14px; resize: vertical; }
:is(#tl_login, #tl_registration, #tl_catalog_items) input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--field) inset; -webkit-text-fill-color: var(--ink); }
/* the photo field (uniform does not wrap it): the native control, its button white with a violet edge */
#tl_catalog_items input[type="file"] { display: block; max-width: 100%; font: 400 15px/1.4 var(--text); color: var(--ink); }
#tl_catalog_items input[type="file"]::file-selector-button {
  min-height: 44px; margin: 0 12px 0 0; padding: 0 16px; border: 1.5px solid var(--violet); border-radius: var(--radius);
  background: var(--paper); color: var(--violet-ink); font: 600 15px/1 var(--text); cursor: pointer;
}
/* the buttons ("Prijava", "Pošlji", "Shrani"): the SMS button, its shadow made for the white panel */
:is(#tl_login, #tl_registration) input.submit, #tl_catalog_items input.tl_submit {
  appearance: none; -webkit-appearance: none; display: inline-block; min-height: 52px; min-width: 200px; margin: 0; padding: 0 30px;
  border: 2px solid transparent; border-radius: var(--radius);
  background: linear-gradient(180deg, #9b52bf 0%, #8a46ae 50%, #7c3ca2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 20px -12px rgba(59, 23, 84, .75);
  color: #fff; font: 700 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
#tl_login .submit_container { margin-top: 8px; }
#tl_registration .submit_container { margin-top: 26px; }
#tl_catalog_items div.submit_container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
/* "Nazaj na Moj oglas": a text link beside the button, its box at least 44px tall */
#backMyProfile {
  display: inline-flex; align-items: center; min-height: 44px; border-radius: 4px;
  font: 500 16px/1.25 var(--text); color: var(--violet-ink); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- Moj profil (account.php, #moj-profil) */
/* "Odjavi se" (before the h1 in the markup): its own row at the right, above the heading, raised so the heading
   stands where it stands on the other pages. Its box starts 10px under the band, so its ring (5px out) stays clear
   of the band and its shadow */
#moj-profil > .newGalleryBox { max-width: 720px; margin: -34px 0 -10px; }
#moj-profil > .newGalleryBox p { display: flex; justify-content: flex-end; }
#moj-profil > .newGalleryBox a,
#moj-profil .editBox001 a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font: 500 16px/1.25 var(--text); color: var(--violet-ink); text-decoration: none; border-radius: 4px;
}
#moj-profil > .regularContent { max-width: 720px; padding: 24px; }
/* with an ad: the photo on the left, the name, the line and the links beside it (a progressive extra: without
   :has() the box stays one column, in the markup's order) */
#moj-profil > .regularContent:has(> .profileList) {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px;
}
#moj-profil .profileList,
#moj-profil .profileBox { display: contents; }
#moj-profil .profileBox figure { grid-column: 1; grid-row: 1 / span 3; }
#moj-profil .profileBox figure a { display: block; border-radius: 8px; }
#moj-profil .profileBox figure a:focus-visible { outline-offset: 4px; }
#moj-profil .profileBox img {
  width: 100%; height: auto; aspect-ratio: 380 / 478; object-fit: cover;
  border-radius: 8px; background: #e4d8ec; box-shadow: var(--glow-day);
}
#moj-profil .profileBox h3 { grid-column: 2; margin-top: -6px; font: 700 26px/1.15 var(--display); color: var(--violet-deep); }
/* the name link: at least 44 x 44px whatever the name (min-width: a three-letter name is 41px wide at 1440 and
   34.5px below 600px; the text stays at the left edge, over the line below) */
#moj-profil .profileBox h3 a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: inherit; text-decoration: none; border-radius: 4px; }
/* the line 10px under the name's 44px box, so the name's ring (5px out) clears its glyphs */
#moj-profil .profileBox p { grid-column: 2; margin-top: 10px; font: 400 16px/1.4 var(--text); color: var(--ink-2); }
/* the links: one under the other, a hairline over each; the "|" spans hidden */
#moj-profil .editBox001 { grid-column: 2; align-self: end; margin-top: 18px; }
#moj-profil .editBox001 p { display: flex; flex-direction: column; align-items: stretch; }
#moj-profil .editBox001 span { display: none; }
#moj-profil .editBox001 a { border-top: 1px solid var(--line); }
/* the two delete links (plain GET links, as today): the error ink */
#moj-profil .editBox001 :is(.btn991, .btn992) { color: #8f1d52; }
/* without an ad: the two "&nbsp;" paragraphs around the text are spacers; the panel's padding spaces it */
#moj-profil > .regularContent > p:nth-of-type(odd) { display: none; }
#moj-profil > .regularContent > p { font: 400 17px/1.6 var(--text); color: var(--ink); }
#moj-profil > .regularContent > .editBox001:not(:first-child) { margin-top: 14px; }

/* ---------------------------------------------------------------- hover */
@media (hover: hover) {
  :is(#tl_login, #tl_registration, #tl_catalog_items) :is(input.text, select, textarea):hover { border-color: var(--violet); }
  :is(#tl_login, #tl_registration) input.submit:hover,
  #tl_catalog_items input.tl_submit:hover { background: linear-gradient(180deg, #a058c6 0%, #904cb5 50%, #7f3ea5 100%); }
  #tl_catalog_items input[type="file"]::file-selector-button:hover { background: var(--field); }
  #backMyProfile:hover { text-decoration-thickness: 2px; }
  #moj-profil > .newGalleryBox a:hover,
  #moj-profil .editBox001 a:hover,
  #moj-profil .profileBox h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
  #moj-profil .profileBox figure a:hover img { box-shadow: var(--glow-day-hover); }
}

/* ---------------------------------------------------------------- narrower windows */
@media (max-width: 719.98px) {
  .day .ce_headline { font-size: 24px; }
}
@media (max-width: 599.98px) {
  .day > .contentBox:first-child { margin-top: 28px; }
  .day .ce_headline { font-size: 22px; }
  :is(#prijava-uporabnika, #aktivacija-registracije, #aktivacija-uspešna) > .ce_text { margin-bottom: 20px; }
  :is(#prijava-uporabnika, #aktivacija-registracije, #aktivacija-uspešna) > .ce_text p { font-size: 16px; }
  .mod_login, #tl_registration, #tl_catalog_items { padding: 20px 18px 22px; }
  /* the button full width; "Nazaj na Moj oglas" under it, centred */
  :is(#tl_login, #tl_registration) input.submit, #tl_catalog_items input.tl_submit { width: 100%; }
  #tl_catalog_items div.submit_container { flex-direction: column; align-items: center; }
  #moj-profil > .newGalleryBox { margin: -18px 0 -16px; }
  #moj-profil > .regularContent { padding: 18px; }
  /* the photo smaller beside the name and the line; the links under both, the full width */
  #moj-profil > .regularContent:has(> .profileList) { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 16px; }
  #moj-profil .profileBox h3 { margin-top: -8px; font-size: 22px; }
  #moj-profil .profileBox p { margin-top: 8px; font-size: 15px; }
  #moj-profil .editBox001 { grid-column: 1 / -1; grid-row: 4; margin-top: 16px; }
  #moj-profil > .regularContent > p { font-size: 16px; }
}
