/* vrocisms.com, direction "Velvet" (2026 redesign): profile page and the SMS panel (#profileReader).
   Spec: docs/superpowers/specs/2026-11-01-vrocisms-velvet-design.md (Pages, Profile).
   Tokens and shared components (heading bar, native select, focus ring) come from vr2026.css.
   The locked js/jquery.send.sms.js blinks #sendSMS .submit through inline text-indent and shows the
   result blocks with jQuery .show() (inline display: block); both are handled below. */

/* ---------- Page ---------- */
#profile #mainContent { padding-top: 10px; }

/* Grid above 999px: photo and "O meni" left, facts and the SMS panel right.
   DOM order (heading, photo, facts, O meni, SMS) is the phone reading order.
   The last row is the flexible one, so "O meni" follows the 380x478 portrait directly
   instead of dropping to the panel's foot. */
#profileReader {
  display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0 40px;
  grid-template-areas: "bar bar" "img facts" "img sms" "desc sms";
  grid-template-rows: auto auto auto 1fr;
}

/* ---------- Heading: "Hojla! Moje ime je NAME" ---------- */
#profileReader .topBar { grid-area: bar; }
#profileReader .topBar h3 {
  font-size: 30px; letter-spacing: .03em; text-transform: none; color: var(--text);
  overflow-wrap: anywhere;
}
#profileReader .topBar h3 span { color: var(--pink); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Photo: the 380x478 portrait at its own ratio, never enlarged ---------- */
#profileReader .profileImageContent { grid-area: img; min-width: 0; }
#profileReader .profileImageContent .img {
  max-width: 392px; /* 380px image + 2 x 6px padding */
  padding: 6px; background: #1a0008; border: 1px solid var(--frame);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}
#profileReader .profileImageContent img {
  width: 100%; max-width: 380px; height: auto;
  outline: 1px solid rgba(255, 211, 56, .12); outline-offset: -1px;
}
/* No photo: getProfilesData() falls back to the light-grey 300x300 /img/empty.gif.
   Keep the 380:478 box and sink the grey into the velvet. */
#profileReader .profileImageContent img[src$="/img/empty.gif"] {
  aspect-ratio: 380 / 478; object-fit: cover; opacity: .12;
}

/* ---------- Facts: Starost / Kraj / Horoskop tiles ---------- */
#profileReader .profileListData {
  grid-area: facts; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px;
}
#profileReader .col_data {
  min-height: 76px; padding: 12px 16px; /* an empty Kraj or Horoskop keeps the tile's shape */
  font: 600 20px/1.3 var(--ui); color: #fff; overflow-wrap: anywhere;
  background: var(--panel); border: 1px solid var(--gold-faint);
}
#profileReader .col_data span {
  display: block; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-light);
}

/* ---------- "O meni" ---------- */
#profileReader .description {
  grid-area: desc; align-self: start; min-width: 0;
  margin-top: 18px; padding: 16px 18px;
  font-size: 18px; line-height: 1.55; overflow-wrap: anywhere;
  background: var(--panel); border: 1px solid var(--gold-faint);
}
#profileReader .description .label {
  display: block; font: 700 14px/1.5 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--pink-light);
}

/* ---------- SMS panel ---------- */
#sendBox {
  grid-area: sms; align-self: start; min-width: 0;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(120, 8, 44, .30), rgba(46, 0, 16, .80)),
    var(--tile) center / cover;
  border: 1px solid var(--frame);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.contentSendBox { padding: 22px 30px 30px; border: 1px solid var(--gold-line); }
.contentSendBox h3 { /* "Me želiš spoznati?", live text in place of img/title01.png */
  margin-bottom: 14px;
  font: 400 42px/1.15 var(--script); color: var(--gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

#sendSMS { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px 18px; }
#sendSMS .table_row { min-width: 0; }
#sendSMS .table_row--wide, #sendSMS .submit_container { grid-column: 1 / -1; }
#sendSMS .label { display: block; margin-bottom: 6px; font: 600 16px/1.25 var(--ui); color: #fff; }

#phonenumber, #message {
  display: block; width: 100%; margin: 0;
  font: 500 18px/1.4 var(--ui); color: var(--text);
  background: var(--input); border: 1px solid var(--field-edge); border-radius: 2px;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, .5);
}
#phonenumber { height: 48px; padding: 0 14px; letter-spacing: .06em; }
#message { min-height: 120px; padding: 12px 14px; resize: vertical; }
#prov_type:focus-visible, #phonenumber:focus-visible, #message:focus-visible { outline-offset: 1px; } /* clears the label above */
#phonenumber:-webkit-autofill, #message:-webkit-autofill {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  box-shadow: inset 0 0 0 40px var(--input);
}

/* ---------- The button: amber, no blink, a calm glow ---------- */
#sendSMS .submit { text-indent: 0 !important; } /* beats the locked script's inline text-indent blink */
#btnSend {
  display: block; min-width: 240px; height: 56px; padding: 0 34px; margin: 0;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 700 20px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink);
  background: linear-gradient(180deg, var(--amber-top), var(--amber-mid) 55%, var(--amber-bot));
  border: 1px solid #c86f12; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 14px rgba(0, 0, 0, .45);
  animation: vr-glow 2.6s ease-in-out infinite;
}
@keyframes vr-glow {
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 14px rgba(0, 0, 0, .45), 0 0 22px 4px rgba(255, 175, 63, .45); }
}
#btnSend:focus-visible { outline-color: #fff; outline-offset: 4px; } /* white reads apart from the amber fill */
/* Sending ("Pošiljanje"), and after a generic error: the script never re-enables the button */
#btnSend:disabled { animation: none; opacity: .7; cursor: default; }

/* ---------- Results: shown by the script with jQuery .show() (inline display: block) ---------- */
#fallbackMSG > div {
  display: none;
  margin-top: 16px; padding: 16px 18px;
  font-size: 17px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere;
  background: rgba(18, 0, 10, .85); border: 1px solid var(--gold-line);
}
#sendERROR, #sendERROR_IP, #sendERROR_BAN { border-color: var(--pink-light) !important; }
#sendOK span { font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--gold); }

/* ---------- Hover (pointer devices only) ---------- */
@media (hover: hover) {
  #btnSend:not(:disabled):hover { filter: brightness(1.06); }
}

/* ---------- 1180px and below ---------- */
@media (max-width: 1180px) {
  #profileReader { grid-template-columns: 340px minmax(0, 1fr); gap: 0 30px; }
  #sendSMS { grid-template-columns: 210px minmax(0, 1fr); gap: 16px 14px; }
  .contentSendBox { padding-inline: 24px; }
}

/* ---------- 999px and below: one column in DOM order ---------- */
@media (max-width: 999px) {
  #profile #mainContent { padding-top: 30px; } /* main loses its top padding here; matches the mockup's gap under the header */
  #profileReader { display: block; }
  #profileReader .topBar h3 { font-size: 26px; }
  #profileReader .profileImageContent .img { max-width: 392px; margin: 0 auto 22px; }
  #profileReader .profileListData { gap: 8px; margin-bottom: 0; }
  #profileReader .col_data { padding: 10px 12px; font-size: 18px; }
  #profileReader .description { margin: 14px 0 24px; }
  .contentSendBox { padding: 16px 18px 22px; }
  .contentSendBox h3 { font-size: 36px; }
  #btnSend { width: 100%; min-width: 0; }
}

/* ---------- 639px and below ---------- */
@media (max-width: 639px) {
  #profileReader .profileListData { grid-template-columns: 1fr 1fr; }
  #profileReader .col_data:last-child { grid-column: 1 / -1; }
  #sendSMS { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Print ---------- */
@media print {
  #sendBox { display: none; }
  #profileReader .topBar h3, #profileReader .col_data, #profileReader .description { color: #000; text-shadow: none; }
  #profileReader .col_data, #profileReader .description { background: none; }
}
