/* =========================================================
   Floreo Business Portal – Stylesheet
   Brand: Acherus Grotesque · Teal #34D1C9
   ========================================================= */

/* ── Fonts ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Acherus Grotesque';
  src: url('/assets/fonts/AcherusGrotesque-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Acherus Grotesque';
  src: url('/assets/fonts/AcherusGrotesque-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Acherus Grotesque';
  src: url('/assets/fonts/AcherusGrotesque-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Acherus Grotesque';
  src: url('/assets/fonts/AcherusGrotesque-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Acherus Grotesque';
  src: url('/assets/fonts/AcherusGrotesque-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Acherus Grotesque';
  src: url('/assets/fonts/AcherusGrotesque-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --color-primary:    #34D1C9;
  --color-primary-dk: #28a8a1;
  --color-primary-lt: #eafafa;
  --color-bg:         #fafafa;
  --color-surface:    #ffffff;
  --color-text:       #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-border:     #e8e8e8;
  --color-danger:     #dc2626;
  --color-danger-bg:  #fef2f2;
  --color-danger-bd:  #fecaca;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-pill: 20px;

  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:   0 2px 10px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(52,209,201,0.18);

  --transition: 0.18s ease;
  --nav-height: 64px;
  --max-width:  1100px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Acherus Grotesque', 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--color-primary-dk);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Layout Helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0px;
}
.nav__logo span,
.nav__logo .accent {
  color: var(--color-primary);
}
.nav__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__user {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dk);
  border-color: var(--color-primary-dk);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dk);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn--full {
  width: 100%;
}

/* ── Forms ──────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(52, 209, 201, 0.15);
}
.form-input::placeholder {
  color: #b0b0b0;
}

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert--error {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-bd);
  color: var(--color-danger);
}

/* ── Login Page ─────────────────────────────────────────── */
.login-wrapper {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 32px) 24px 48px;
  background: linear-gradient(160deg, #f5fffe 0%, var(--color-bg) 60%);
}

.login-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
}

.login-card__logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--color-text);
}
.login-card__logo span {
  color: var(--color-primary);
}

.login-card__logo-img {
  height: 36px;
  width: auto;
  margin-bottom: 28px;
  display: block;
}

.login-card h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* ── Dashboard ──────────────────────────────────────────── */
.page {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
}

.dashboard-header {
  margin-bottom: 36px;
}

.dashboard-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dashboard-header p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ── Module Cards Grid ──────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card--module:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card--placeholder {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  opacity: 0.5;
}

.card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-lt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
}

.badge {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--soon {
  background: #f3f4f6;
  color: #6b7280;
}

/* ── Error Pages ────────────────────────────────────────── */
.error-wrapper {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 32px) 24px 48px;
}

.error-card {
  text-align: center;
  max-width: 420px;
}

.error-card__code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.error-card h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.error-card p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
  font-size: 0.9375rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer span {
  font-size: 0.8rem;
  color: #b0b0b0;
}

.site-footer .accent {
  color: var(--color-primary);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .login-card {
    padding: 32px 24px;
  }

  .nav__user {
    display: none;
  }

  .dashboard-header h1 {
    font-size: 1.3rem;
  }
}
