/*
Theme Name: Excey LMS SPA
Theme URI:
Author: Yasiru Liyanage
Author URI:
Description: A lightweight theme shell integrated with the SunRay LMS single-page application.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: excey-lms-spa
*/

:root {
  color-scheme: light;
  --excey-ink: #172033;
  --excey-muted: #637083;
  --excey-line: #e6eaf0;
  --excey-surface: #ffffff;
  --excey-canvas: #f7f9fc;
  --excey-brand: #154c9a;
  --excey-brand-dark: #0f3975;
  --excey-radius: 1rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--excey-canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--excey-ink);
  background: var(--excey-canvas);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--excey-brand);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #91b9f1;
  outline-offset: 3px;
}

.excey-site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.excey-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--excey-line);
  background: var(--excey-surface);
}

.excey-header__inner,
.excey-footer__inner {
  display: flex;
  width: min(100% - 2rem, 80rem);
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-inline: auto;
}

.excey-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.excey-brand__link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: var(--excey-ink);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.excey-brand__link:hover {
  color: var(--excey-brand);
}

.excey-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.excey-brand img {
  display: block;
  max-width: 11rem;
  max-height: 2.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.excey-brand__mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--excey-brand), #629ae0);
  font-size: 1rem;
  font-weight: 800;
}

.excey-nav .menu,
.excey-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.excey-nav a {
  color: var(--excey-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.excey-nav a:hover,
.excey-nav .current-menu-item > a {
  color: var(--excey-brand);
}

.excey-main {
  display: flex;
  width: 100%;
  flex: 1 0 auto;
  flex-direction: column;
}

#excey-lms-app {
  width: 100%;
  flex: 1 0 auto;
}

.excey-app-placeholder {
  display: grid;
  min-height: min(70vh, 42rem);
  place-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}

.excey-app-placeholder__mark {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--excey-brand-dark), #629ae0);
  font-size: 1.35rem;
  font-weight: 800;
}

.excey-app-placeholder h1 {
  margin: 1.25rem 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}

.excey-app-placeholder p {
  max-width: 34rem;
  margin: 0;
  color: var(--excey-muted);
  line-height: 1.7;
}

.excey-footer {
  border-top: 1px solid var(--excey-line);
  background: var(--excey-surface);
}

.excey-footer__inner {
  min-height: 3.75rem;
  color: var(--excey-muted);
  font-size: 0.8rem;
}

.excey-footer__inner p {
  margin: 0;
}

@media (max-width: 640px) {
  .excey-header__inner {
    min-height: 4rem;
  }

  .excey-nav .menu,
  .excey-nav ul {
    gap: 0.75rem;
  }

  .excey-nav a {
    font-size: 0.8rem;
  }

  .excey-footer__inner {
    min-height: 3.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
