/*
 * iShook 2026 visual layer for the live Wondertag/WoWonder runtime.
 * Presentation only: no routes, forms, session behavior, data queries, or upload
 * ownership are changed by this file.
 */

:root {
  --ishook-canvas: #f5f7fb;
  --ishook-surface: #ffffff;
  --ishook-surface-soft: #eef2f8;
  --ishook-ink: #080d18;
  --ishook-muted: #606b80;
  --ishook-border: #d8dee9;
  --ishook-navy: #071225;
  --ishook-blue: #155eef;
  --ishook-blue-deep: #0b3d91;
  --ishook-blue-bright: #4c8dff;
  --ishook-red: #d90429;
  --ishook-red-bright: #ff4058;
  --ishook-shadow-sm: 0 8px 24px rgba(7, 18, 37, 0.08);
  --ishook-shadow-md: 0 18px 45px rgba(7, 18, 37, 0.12);
}

html,
body {
  background: var(--ishook-canvas);
  color: var(--ishook-ink);
}

body,
button,
input,
textarea,
select {
  font-family: Inter, "Readex Pro", Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ishook-blue-bright) 72%, white);
  outline-offset: 3px;
}

.btn-main,
.btn-main-rev:hover,
.btn-main:focus {
  border-color: var(--ishook-blue) !important;
  background: var(--ishook-blue) !important;
  color: #fff !important;
}

.btn-main-rev,
a:not(.btn):hover {
  color: var(--ishook-blue) !important;
}

.wow_content,
.post .panel,
.user-ad-container .panel-white {
  border: 1px solid var(--ishook-border);
  border-radius: 20px 20px 20px 7px;
  background: var(--ishook-surface);
  box-shadow: var(--ishook-shadow-sm);
}

/* Public welcome and sign-in */
body:has(.tag_welcome) {
  min-width: 320px;
  padding-top: 0 !important;
  overflow-x: hidden;
  background: var(--ishook-canvas);
}

.tag_auth_effect,
.tag_auth_effect_bottom {
  display: none !important;
}

.tag_welcome {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 13%, rgba(76, 141, 255, 0.2), transparent 25%),
    linear-gradient(112deg, #edf3ff 0 58%, #ffffff 58% 100%);
}

.tag_wel_upper {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding-top: 24px;
}

.tag_wel_upper img {
  max-height: 44px;
  width: auto;
}

.tag_wel_middle {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  padding: 46px 0 62px;
}

.tag_wel_middle::before,
.tag_wel_middle::after {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.tag_wel_middle::before {
  top: -16%;
  left: -13%;
  width: min(62vw, 760px);
  height: min(62vw, 760px);
  border: 72px solid rgba(7, 18, 37, 0.09);
}

.tag_wel_middle::after {
  right: 37%;
  bottom: -28%;
  width: min(48vw, 580px);
  height: min(48vw, 580px);
  border: 60px solid rgba(217, 4, 41, 0.11);
}

.tag_wel_middle > .container {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1280px);
  max-width: none;
}

.tag_wel_row {
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(40px, 7vw, 108px);
  margin: 0;
}

.tag_wel_row > div {
  min-width: 0;
  padding: 0;
}

.tag_wel_row > div:first-child {
  flex: 1 1 0;
  width: auto;
  max-width: none;
}

.tag_wel_row > div:last-child {
  flex: 0 1 430px;
  width: 430px;
  max-width: 430px;
}

.tag_wel_title {
  max-width: 670px;
  margin: 0 0 30px;
  color: var(--ishook-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 6.2vw, 92px);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.058em;
}

.tag_wel_widget {
  max-width: 610px;
  margin-top: 20px;
  padding: 17px 19px;
  border: 1px solid rgba(21, 94, 239, 0.14);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--ishook-shadow-sm);
  backdrop-filter: blur(12px);
}

.tag_wel_widget > p {
  margin: 0 0 10px;
  color: var(--ishook-blue-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tag_wel_trend .btn,
.tag_pro_users a {
  border-radius: 10px;
}

.tag_auth_box.wow_content {
  width: min(100%, 430px);
  margin-left: auto;
  padding: 34px;
  border-color: rgba(21, 94, 239, 0.16);
  border-radius: 26px 26px 26px 9px;
  box-shadow: 0 30px 80px rgba(7, 18, 37, 0.15);
}

.tag_auth_box .title {
  margin-bottom: 24px;
  color: var(--ishook-ink);
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.tag_auth_box .tag_field {
  margin-top: 13px;
}

.tag_auth_box .tag_field input {
  height: 50px;
  border: 1px solid var(--ishook-border) !important;
  border-radius: 13px;
  background: var(--ishook-canvas) !important;
  color: var(--ishook-ink);
}

.tag_auth_box .tag_field input:focus {
  border-color: var(--ishook-blue) !important;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.09);
}

.tag_auth_box .tag_wel_btn {
  min-height: 49px;
  margin-top: 15px;
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(21, 94, 239, 0.22);
  font-weight: 800;
}

.tag_wel_register a,
.tag_wel_forgot a {
  color: var(--ishook-blue) !important;
}

.tag_wel_bottom {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  color: var(--ishook-muted);
}

/* Authenticated shell, feed, stories and composer */
body:not(:has(.tag_welcome)) {
  background: var(--ishook-canvas);
}

.tag_header,
header.tag_header {
  border-bottom: 1px solid rgba(216, 222, 233, 0.88) !important;
  background: rgba(245, 247, 251, 0.9) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

.tag_header .header-brand img,
.tag_header .tag_logo_pc img {
  max-height: 36px;
}

.page-margin > .container,
.tag_content > .container {
  width: min(100% - 40px, 1320px);
  max-width: none;
}

.page-margin {
  padding-top: 26px;
}

.tag_home_filters.home {
  top: 60px;
  margin: -14px -12px 14px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--ishook-border);
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(16px);
}

.tag_page_nav a,
.tag_home_post_order > button {
  border-radius: 11px;
  color: var(--ishook-muted);
  font-weight: 750;
}

.tag_page_nav li.active a {
  background: rgba(21, 94, 239, 0.1);
  color: var(--ishook-blue);
}

.tag_stories_on_home {
  margin-bottom: 22px;
}

.tag_stories_on_home .tag_stories_mobi .status-list {
  gap: 10px;
}

.tag_stories_on_home .tag_stories_mobi .status-list li {
  padding: 0;
}

.tag_stories_on_home .tag_stories_mobi .status-list li a {
  overflow: hidden;
  border: 1px solid rgba(21, 94, 239, 0.13);
  border-radius: 20px 20px 20px 7px;
  box-shadow: inset 0 -70px 46px -32px rgba(3, 6, 11, 0.64), var(--ishook-shadow-sm);
}

.tag_stories_on_home .tag_stories_mobi .status-list li span {
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 11px;
}

.tag_pub_box_bg.wow_content {
  margin-bottom: 16px;
  padding: 14px;
  overflow: hidden;
  border-radius: 20px 20px 20px 7px;
}

.tag_pub_box_avatar,
.tag_pub_box_avatar img {
  border-radius: 14px;
}

.tag_pub_box_bg_text {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ishook-border) !important;
  border-radius: 13px;
  background: var(--ishook-surface-soft) !important;
  color: var(--ishook-muted) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag_pub_box_bg_camlve {
  border-radius: 13px;
}

.tag_pub_box_bg_camlve.live {
  color: var(--ishook-red) !important;
}

.tag_pub_box_bg_camlve.camera {
  color: var(--ishook-blue) !important;
}

.post .panel,
.user-ad-container .panel-white {
  margin-bottom: 16px;
  overflow: hidden;
}

.post .post-heading {
  padding: 16px 17px 11px;
}

.post .post-heading .avatar,
.user-ad-container .post-advertisement .ads-heading .avatar {
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(7, 18, 37, 0.14);
}

.post .post-heading .meta .title .name,
.user-ad-container .post-advertisement .meta .title .name {
  color: var(--ishook-ink);
  font-weight: 800;
}

.post .post-heading .meta .time,
.post .post-heading .meta .time a,
.post .post-description,
.post .post-description p {
  color: var(--ishook-muted);
}

.post .post-description p,
.post .post-description .post-file,
.post .post-description .postText {
  overflow-wrap: anywhere;
}

.post .post-footer,
.tag_post_actions {
  border-color: var(--ishook-border);
}

.post .post-footer .btn,
.tag_post_actions .stat-item {
  border-radius: 10px;
  color: var(--ishook-muted);
}

.post .post-footer .btn:hover,
.tag_post_actions .stat-item:hover {
  background: var(--ishook-surface-soft);
  color: var(--ishook-blue);
}

.rightcol .wow_content,
.sidebar .wow_content {
  border-radius: 19px 19px 19px 7px;
}

.tag_create_menu,
.dropdown-menu,
.modal-content {
  border: 1px solid var(--ishook-border);
  border-radius: 17px;
  box-shadow: var(--ishook-shadow-md);
}

.tag_pub_box.modal-content {
  border-radius: 23px 23px 23px 8px;
}

.tag_pub_box .modal-header,
.tag_pub_box .publisher-box-footer {
  border-color: var(--ishook-border);
}

.tag_pub_box .tag_pub_box_btns,
.composer-extras button {
  border-radius: 10px;
}

@media (max-width: 991px) {
  .tag_wel_row {
    gap: 34px;
  }

  .tag_wel_title {
    font-size: clamp(44px, 7vw, 68px);
  }

  .tag_auth_box.wow_content {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .tag_welcome {
    display: block;
    min-height: 100dvh;
    background:
      radial-gradient(circle at 12% 10%, rgba(76, 141, 255, 0.18), transparent 31%),
      var(--ishook-canvas);
  }

  .tag_wel_upper,
  .tag_wel_bottom,
  .tag_wel_middle > .container {
    width: calc(100% - 28px);
  }

  .tag_wel_upper {
    padding-top: 16px;
  }

  .tag_wel_middle {
    padding: 28px 0 42px;
  }

  .tag_wel_middle::before {
    top: -150px;
    left: -180px;
    width: 430px;
    height: 430px;
    border-width: 50px;
  }

  .tag_wel_middle::after {
    right: -180px;
    bottom: 25%;
    width: 360px;
    height: 360px;
    border-width: 46px;
  }

  .tag_wel_row {
    display: block;
    padding: 0;
  }

  .tag_wel_row > div {
    width: 100%;
    max-width: none;
  }

  .tag_wel_row > div:first-child,
  .tag_wel_row > div:last-child {
    width: 100%;
    max-width: none;
  }

  .tag_wel_title {
    position: static;
    inset: auto;
    width: auto;
    max-width: 520px;
    margin: 18px 0 22px;
    padding: 0;
    font-size: clamp(42px, 13vw, 60px);
    line-height: 0.96;
    text-align: left;
  }

  .tag_wel_widget {
    display: none;
  }

  .tag_auth_box.wow_content {
    width: 100%;
    margin: 28px 0 0;
    padding: 23px;
    border-radius: 22px 22px 22px 7px;
  }

  .tag_auth_box .title {
    font-size: 28px;
  }

  body:not(:has(.tag_welcome)) {
    padding-top: 52px !important;
  }

  .page-margin > .container,
  .tag_content > .container {
    width: 100%;
    padding-right: 11px;
    padding-left: 11px;
  }

  .page-margin {
    padding-top: 15px;
  }

  .tag_home_filters.home {
    margin-right: -11px;
    margin-left: -11px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .tag_stories_on_home .tag_stories_mobi {
    margin-right: -11px;
    margin-left: -11px;
  }

  .tag_stories_on_home .tag_stories_mobi .status-list {
    padding: 0 11px;
  }

  .tag_stories_on_home .tag_stories_mobi .status-list li {
    width: 116px;
    min-width: 116px;
  }

  .tag_stories_on_home .tag_stories_mobi .status-list li a {
    padding-bottom: 142%;
  }

  .tag_pub_box_bg.wow_content,
  .post:not(.wo_imagecombo_lbox),
  .tag_post_skel {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    border: 1px solid var(--ishook-border);
    border-radius: 19px 19px 19px 6px;
    box-shadow: var(--ishook-shadow-sm);
  }

  .tag_pub_box_bg {
    display: flex;
    min-width: 0;
  }

  .tag_pub_box_bg_text {
    width: 0;
    flex: 1 1 auto;
  }

  .tag_pub_box_bg_camlve {
    flex: 0 0 42px;
    min-width: 42px;
    margin-left: 7px;
  }

  .middlecol,
  .rightcol,
  .post,
  .post .panel,
  .post .post-description,
  .posts_load,
  #posts-laoded {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .post .post-description,
  .post .post-description p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .post .post-heading .meta {
    min-width: 0;
  }

  .tag_pub_box.modal-content,
  .modal-content {
    max-width: 100vw;
    border-radius: 22px 22px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
