/*
Theme Name: LevelHub Shell
Theme URI: https://levelhub.id/
Author: LevelHub
Description: Temporary minimal application shell for LevelHub staging. Removes WordPress theme chrome so LevelHub Core controls the frontend application UI.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: levelhub-shell
*/

:root {
  --levelhub-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  margin: 0 !important;
  padding: 0;
  font-size: 16px;
  background: #f7f7f5;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f7f7f5;
  color: #171717;
  font-family: var(--levelhub-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* The theme must never impose typography on the app itself. */
.lh-app,
.lh-auth,
.lh-shell {
  font-family: var(--levelhub-font) !important;
}

/* Neutralize common WordPress block-theme wrappers if any content plugin inserts them. */
.wp-site-blocks,
.wp-block-group,
.entry-content,
.site-main,
main {
  margin: 0;
  padding: 0;
  max-width: none;
}

.levelhub-theme-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.levelhub-theme-shell > article,
.levelhub-theme-shell .entry-content {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
}

/* No visible WordPress page title in application shell. */
.levelhub-native-title {
  display: none !important;
}

/* Admin bar is hidden on frontend by functions.php, but keep a defensive rule. */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

/* Basic fallback for non-LevelHub content during staging. */
.levelhub-fallback {
  width: min(920px, calc(100% - 32px));
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e5e0;
  border-radius: 16px;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .levelhub-fallback {
    width: calc(100% - 24px);
    margin: 20px auto;
    padding: 18px;
  }
}
