﻿/* ============================================
   MAGINGSIKAT â€” Landing Page Styles
   ============================================ */

:root {
  --bg: #fcfbf8;
  --bg-soft: #fff5ec;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #0f1b2d;
  --text-muted: #5b6675;
  --border: #ececec;
  --shadow-sm: 0 4px 14px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 18px 40px -12px rgba(255, 122, 61, 0.18), 0 6px 20px rgba(15, 27, 45, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(15, 27, 45, 0.18);

  --orange: #ff7a3d;
  --orange-soft: #ffe7d6;
  --pink: #ff5a7e;
  --pink-grad: linear-gradient(135deg, #ff8aa3, #ff5a7e);
  --blue: #3b82f6;
  --purple: #a855f7;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

html.dark {
  --bg: #0a0f1f;
  --bg-soft: #0f1730;
  --surface: #131c33;
  --surface-2: #1a253f;
  --text: #ffffff;
  --text-muted: #a4adbf;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 40px -12px rgba(255, 122, 61, 0.25), 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body[data-shell-mode="auth"] {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
  transition: background-color 0.3s ease, color 0.3s ease;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body[data-shell-mode="auth"]::-webkit-scrollbar {
  display: none;
}

img, svg { display: block; max-width: 100%; }

body[data-shell-mode="auth"] .site-header a,
body[data-shell-mode="auth"] .hero a,
body[data-shell-mode="auth"] .primary-nav a,
body[data-shell-mode="auth"] .mobile-menu a {
  color: inherit;
  text-decoration: none;
}

body[data-shell-mode="auth"] .hero button,
body[data-shell-mode="auth"] .site-header button,
body[data-shell-mode="auth"] .dashboard button,
body[data-shell-mode="auth"] .dash-side-btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

body[data-shell-mode="auth"] .site-header ul,
body[data-shell-mode="auth"] .primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body[data-shell-mode="auth"] .hero-copy .features,
body[data-shell-mode="auth"] ul.features {
  list-style: none;
  margin: 0;
  padding: 0;
}

body[data-shell-mode="auth"] .hero-copy ul.socials,
body[data-shell-mode="auth"] .hero ul.socials {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-outline {
  border: 1.5px solid var(--orange);
  color: var(--orange);
  background: transparent;
}
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-outline:active { transform: translateY(1px); }
.w-full { width: 100%; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background-color 0.2s ease;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Theme toggle icon swap */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
html.dark .theme-toggle .icon-sun { display: inline-block; color: #ffce5a; }
html.dark .theme-toggle .icon-moon { display: none; }

/* ============ Background decor ============ */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.dots {
  position: absolute;
  top: 90px;
  left: 24px;
  width: 90px;
  height: 60px;
  background-image: radial-gradient(circle, var(--orange) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.55;
}
html.dark .dots { opacity: 0.35; }
.blob {
  position: absolute;
  fill: #ffe2cf;
  opacity: 0.5;
}
html.dark .blob { fill: #0f1730; opacity: 0.9; }
.blob-tr { top: 0; right: -120px; width: 520px; height: 520px; }
.blob-br { bottom: -100px; right: -80px; width: 480px; height: 480px; opacity: 0.35; }
html.dark .blob-br { opacity: 0.7; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 17px;
}
.brand-mark { width: 32px; height: 32px; display: inline-flex; }

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.primary-nav a:hover { opacity: 1; color: var(--orange); }

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}
.hamburger { display: none; }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
}
.mobile-menu a {
  display: block;
  padding: 12px 8px;
  font-weight: 500;
  border-radius: 8px;
}
.mobile-menu a:hover { background: var(--bg-soft); color: var(--orange); }
.mobile-menu li:last-child { padding-top: 8px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  z-index: 1;
  padding: 40px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
}
.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin: 0 0 28px;
}

html.hero-tw-pending .hero-copy h1,
html.hero-tw-pending .hero-copy p.lead {
  visibility: hidden;
}

.typewriter-cursor {
  display: inline;
}

.typewriter-cursor::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.82em;
  margin-left: 2px;
  vertical-align: -0.06em;
  background: currentColor;
  opacity: 0.88;
  animation: typewriter-blink 0.95s step-end infinite;
}

@keyframes typewriter-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor::after {
    animation: none;
    opacity: 0.88;
  }
}

.features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 15px;
}
.chip {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.features li .chip i {
  display: inline-block;
  line-height: 1;
}
.chip-orange { background: var(--orange-soft); color: var(--orange); }
html.dark .chip-orange { background: rgba(255, 122, 61, 0.18); }

/* Socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.social:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.social-ig { color: #e1306c; }
.social-tt { color: var(--text); }
.social-yt { color: #ff0000; }
.social-fb { color: #1877f2; }
.social-tw { color: var(--text); }
.social-li { color: #0a66c2; }

.social-more {
  color: var(--orange);
  cursor: default;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.social-more:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.social-more i {
  display: inline-block;
  line-height: 1;
}

/* ============ Dashboard mockup ============ */
.dashboard-wrap {
  position: relative;
  padding: 30px 20px;
}
.dashboard {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}
html.dark .dashboard { background: rgba(20, 28, 48, 0.6); }

.dash-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px 6px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  align-items: center;
}
html.dark .dash-side { background: rgba(255,255,255,0.03); }
.dash-side-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 15px;
  transition: background-color 0.2s, color 0.2s;
}
.dash-side-btn:hover { color: var(--orange); }
.dash-side-btn.active {
  background: var(--surface);
  color: var(--orange);
  box-shadow: var(--shadow-sm);
}
html.dark .dash-side-btn.active { background: var(--surface-2); }

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
html.dark .dash-card { background: rgba(255,255,255,0.04); }

.dash-card-wide {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.dash-card-wide .stat-text { flex: 1; min-width: 0; }
.dash-card-wide .stat-chart { width: 110px; height: 36px; flex-shrink: 0; }

.dash-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dash-row .dash-card { align-items: flex-start; }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.stat-orange { background: var(--orange); }
.stat-pink { background: var(--pink-grad); }
.stat-purple { background: var(--purple); }

.stat-num {
  font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
}
.stat-label { color: var(--text-muted); font-size: 13px; }

/* Floating badges */
.float, .float-circle {
  position: absolute;
  z-index: 2;
  box-shadow: 0 12px 24px -8px rgba(15,27,45,0.25);
  animation: bob 5s ease-in-out infinite;
}
.float {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.float::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 16px;
  width: 14px; height: 14px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}
.float-likes {
  top: 0; left: 38%;
  background: var(--pink-grad);
}
.float-followers {
  top: 28px; right: 4%;
  background: var(--blue);
}
.float-followers::after { background: var(--blue); }
.float-views {
  top: 46%; right: -8px;
  background: var(--orange);
}
.float-views::after { background: var(--orange); left: auto; right: 16px; }

.float-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.float-thumb { bottom: 0; left: 4%; background: var(--orange); animation-delay: 1s; }
.float-heart { bottom: -8px; right: 8%; background: var(--pink); animation-delay: 2s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .float, .float-circle { animation: none; }
  * { transition: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1023px) {
  .primary-nav ul { gap: 22px; }
  .header-actions .signin-btn { padding: 8px 14px; }
  .hero-grid { gap: 32px; }
}

@media (max-width: 820px) {
  .primary-nav { display: none; }
  .signin-btn { display: none; }
  .hamburger { display: inline-flex; }
  .hero { padding: 24px 0 60px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy { text-align: left; }
  .dashboard-wrap { padding: 30px 8px; }
  .blob-tr { width: 380px; height: 380px; right: -180px; }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 15px; }
  .hero-copy h1 { font-size: 2.1rem; }
  .features li { font-size: 14px; }
  .dash-card { padding: 14px; }
  .dash-card-wide { flex-wrap: wrap; }
  .dash-card-wide .stat-chart { width: 100%; }
  .dash-row { gap: 10px; }
  .stat-icon { width: 38px; height: 38px; font-size: 14px; }
  .stat-num { font-size: 1rem; }
  .stat-label { font-size: 11px; }
  .float { font-size: 12px; padding: 8px 12px; }
  .float-circle { width: 38px; height: 38px; font-size: 14px; }
  .float-likes { left: 30%; }
  .dots { top: 78px; left: 14px; transform: scale(0.8); transform-origin: top left; }
}

@media (max-width: 360px) {
  .hero-copy h1 { font-size: 1.85rem; }
  .socials { gap: 8px; }
  .social { width: 36px; height: 36px; font-size: 14px; }
}

/* ============ Panel: login-page-bg alias ============ */
.login-page-bg.bg-decor,
.login-page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ============ Panel: auth header ============ */
#auth-header-container .auth-header-root {
  position: relative;
  z-index: 50;
}
#auth-header-container .brand {
  flex-shrink: 0;
}
#auth-header-container .brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
#auth-header-container .auth-header-subtitle {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 2px 0 0;
  line-height: 1;
}
#auth-header-container #themeToggle svg {
  width: 20px;
  height: 20px;
}
html:not(.dark) #auth-header-container #sunIcon {
  display: none;
}
html.dark #auth-header-container #moonIcon {
  display: none;
}
#auth-header-container #mobileMenu {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  margin-top: 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 90;
}
#auth-header-container #mobileMenu ul {
  list-style: none;
  margin: 0;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#auth-header-container #mobileMenu a {
  display: block;
  padding: 12px 8px;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
}
#auth-header-container #mobileMenu a:hover {
  background: var(--bg-soft);
  color: var(--orange);
}
#auth-header-container #mobileMenu li:last-child {
  padding-top: 8px;
}
@media (min-width: 821px) {
  #auth-header-container .hamburger {
    display: none !important;
  }
}
@media (max-width: 820px) {
  #auth-header-container .primary-nav {
    display: none;
  }
  #auth-header-container .header-actions .signin-btn {
    display: none;
  }
  #auth-header-container .hamburger {
    display: inline-flex;
  }
}
@media (min-width: 821px) {
  #auth-header-container #mobileMenuBackdrop {
    display: none !important;
  }
}

/* Footer layout: see auth-header.css (loaded via main.css + auth-header-loader) */

/* ============ Panel: auth modals ============ */
.auth-modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
html.dark .auth-modal-backdrop {
  background: rgba(2, 6, 23, 0.6);
}
#auth-login-modal .auth-card-panel,
#auth-signup-modal .auth-signup-panel {
  border-color: rgba(255, 122, 61, 0.2);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}
html.dark #auth-login-modal .auth-card-panel,
html.dark #auth-signup-modal .auth-signup-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(19, 28, 51, 0.97);
}
#auth-login-modal #authCardSubtitle,
#auth-signup-modal #signupModalSubtitle {
  color: var(--text-muted);
}
#auth-login-modal #authCardContent button[type="submit"],
#auth-signup-modal #signupModalCardContent button[type="submit"],
#auth-signup-modal #signupModal-nextStepBtn {
  background: var(--orange) !important;
  box-shadow: 0 16px 28px -18px rgba(255, 122, 61, 0.55);
}
#auth-login-modal #authCardContent button[type="submit"]:hover,
#auth-signup-modal #signupModalCardContent button[type="submit"]:hover,
#auth-signup-modal #signupModal-nextStepBtn:hover {
  background: #ea580c !important;
}
#auth-signup-modal #signupModal-backStepBtn {
  border-color: #f4cfb8;
  color: var(--orange);
}
html.dark #auth-signup-modal #signupModal-backStepBtn {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fdba74;
}
#auth-login-modal #authCardContent a[href="#"],
#auth-login-modal #authCardContent a[data-auth-signup-trigger],
#auth-signup-modal #signupModalCardContent a[data-auth-login-trigger],
#auth-signup-modal #signupModalCardContent a[href="/panel/login"] {
  color: var(--orange);
}
#auth-login-modal #authCardContent a[href="#"]:hover,
#auth-login-modal #authCardContent a[data-auth-signup-trigger]:hover {
  color: #ea580c;
}

/* Signup shell (standalone page) */
body[data-shell-mode="auth"] .auth-signup-branding h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}
body[data-shell-mode="auth"] .auth-signup-branding .lead {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
body[data-shell-mode="auth"] .auth-signup-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}
body[data-shell-mode="auth"] .auth-signup-feature .chip {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  color: var(--orange);
  flex-shrink: 0;
}
html.dark body[data-shell-mode="auth"] .auth-signup-feature .chip {
  background: rgba(255, 122, 61, 0.18);
}

