/*
Theme Name:        MexOTT App
Theme URI:         https://mextechltd.name.ng
Author:            MexTech Limited
Author URI:        https://mextechltd.name.ng
Description:       A bespoke mobile-first WordPress theme designed exclusively for MexOTT Pro. Delivers a native app-like experience with pure black background, military green accents, persistent bottom navigation, smooth page transitions, and full compatibility with MexOTT Pro plugin sessions and shortcodes.
Version:           1.0.0
Requires at least: 5.8
Requires PHP:      7.4
Tested up to:      6.7
License:           Proprietary
License URI:       https://mextechltd.name.ng/license
Text Domain:       mexott-app
Tags:              mobile-first, app-style, dark, one-column, custom-menu, custom-logo

Copyright 2026 MexTech Limited (https://mextechltd.name.ng)
All Rights Reserved. Unauthorised copying or distribution is strictly prohibited.
*/

/* ══════════════════════════════════════════════════════════════════════════════
   MexOTT App Theme – Main Stylesheet
   Pure Black · Military Green · Mobile-First App UI
   Copyright 2026 MexTech Limited – All Rights Reserved
══════════════════════════════════════════════════════════════════════════════ */


:root {
  --app-primary:      #4b5320;
  --app-primary-l:    #5c6626;
  --app-accent:       #7a8c2e;
  --app-bg:           #000000;
  --app-bg-surface:   #0a0a0a;
  --app-bg-card:      #0d0d0d;
  --app-border:       rgba(255,255,255,.07);
  --app-text:         #f0f0f0;
  --app-text-muted:   #888;
  --app-text-subtle:  #444;
  --app-radius:       14px;
  --app-radius-sm:    8px;
  --app-nav-h:        62px;
  --app-header-h:     56px;
  --app-font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --app-font-display: 'Sora', var(--app-font);
  --app-safe-bottom:  env(safe-area-inset-bottom, 0px);
  --app-transition:   all .2s cubic-bezier(.4,0,.2,1);
}


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

html {
  background: var(--app-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--app-font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100%;
  overscroll-behavior: contain;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  max-width: 520px;
  margin: 0 auto;
  background: var(--app-bg);
  position: relative;
}

@media (min-width: 521px) {
  .app-shell {
    box-shadow: 0 0 60px rgba(0,0,0,.8);
    border-left: 1px solid var(--app-border);
    border-right: 1px solid var(--app-border);
  }

  body {
    background: #050505;
  }
}


.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--app-border);
  height: var(--app-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.app-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.app-header-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.app-header-logo-text {
  font-family: var(--app-font-display);
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #5c6626, #7a8c2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .3px;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header-btn {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  color: var(--app-text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  text-decoration: none;
  transition: var(--app-transition);
}

.app-header-btn:hover { background: rgba(255,255,255,.1); color: var(--app-text); }
.app-header-btn--primary { background: var(--app-primary); color: #fff; border-color: var(--app-primary); }
.app-header-btn--primary:hover { background: var(--app-primary-l); color: #fff; }


.app-header-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--app-transition);
  flex-shrink: 0;
}
.app-header-icon-btn:hover {
  background: rgba(75,83,32,.25);
  border-color: rgba(75,83,32,.5);
  color: #96a83a;
}


.entry-title,
.page-title,
.post-title,
.wp-block-post-title,
h1.entry-title,
h2.entry-title,
h1.page-title,
.site-title,
.page-header,
.entry-header .entry-title,
article .entry-title {
  display: none !important;
}

.app-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-primary), var(--app-accent));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--app-font-display);
  outline: 2px solid rgba(150, 168, 58, 0.7);
  outline-offset: 2px;
  box-shadow: 0 0 8px rgba(150, 168, 58, 0.5), 0 0 16px rgba(150, 168, 58, 0.2);
  animation: avatarGlow 2.5s ease-in-out infinite;
}
@keyframes avatarGlow {
  0%, 100% {
    outline-color: rgba(150, 168, 58, 0.7);
    box-shadow: 0 0 8px rgba(150, 168, 58, 0.5), 0 0 16px rgba(150, 168, 58, 0.2);
  }
  50% {
    outline-color: rgba(168, 200, 58, 1);
    box-shadow: 0 0 12px rgba(150, 168, 58, 0.85), 0 0 24px rgba(150, 168, 58, 0.35);
  }
}


.app-main {
  flex: 1;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  overflow-x: hidden;
}


.app-section {
  padding: 16px;
}

.app-section + .app-section {
  padding-top: 0;
}


.app-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  overflow: hidden;
  transition: var(--app-transition);
}

.app-card + .app-card { margin-top: 12px; }


h1, h2, h3, h4 {
  font-family: var(--app-font-display);
  color: #fff;
  line-height: 1.2;
}

a { color: var(--app-accent); }
a:hover { color: #fff; }

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


.wp-block-group,
.entry-content > *:not(.mexott-livetv-wrap):not(.mexott-page-wrap) {
  max-width: 100%;
  padding: 0 16px;
}

.entry-content > .mexott-page-wrap,
.entry-content > .mexott-livetv-wrap {
  padding: 0;
  margin: 0;
}

.site-content { padding: 0; }
.alignfull, .alignwide { margin-left: -16px; margin-right: -16px; }


.wp-block-paragraph,
.entry-content p {
  color: var(--app-text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}


.app-main {
  animation: appPageIn .25s ease both;
}

@keyframes appPageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}



* {
  scrollbar-width: thin;
  scrollbar-color: rgba(75,83,32,.45) transparent;
}


::-webkit-scrollbar              { width: 4px; height: 4px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        {
  background: rgba(75,83,32,.45);
  border-radius: 100px;
  transition: background .2s;
}
::-webkit-scrollbar-thumb:hover  { background: var(--app-accent, #7a8c2e); }
::-webkit-scrollbar-corner       { background: transparent; }


::selection { background: var(--app-primary); color: #fff; }


.app-text-center  { text-align: center; }
.app-text-muted   { color: var(--app-text-muted); }
.app-mt-1         { margin-top: 8px; }
.app-mt-2         { margin-top: 16px; }
.app-hidden       { display: none !important; }


.app-skeleton {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 200% 100%;
  animation: appSkeleton 1.5s infinite;
  border-radius: var(--app-radius-sm);
}

@keyframes appSkeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


.app-error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
  text-align: center;
}

.app-error-code { font-size: 80px; font-weight: 900; color: var(--app-primary); line-height: 1; opacity: .5; }
.app-error-title { font-size: 22px; font-weight: 700; color: #fff; margin: 12px 0 8px; }
.app-error-msg   { color: var(--app-text-muted); font-size: 14px; margin-bottom: 24px; }


.app-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.app-menu-overlay.open { opacity: 1; pointer-events: all; }


#wpadminbar { top: auto !important; bottom: 0 !important; display: none; }
@media (min-width: 783px) { #wpadminbar { display: block; } }
html.wp-toolbar { padding-top: 0 !important; }
body.admin-bar .app-header { top: 0; }




.mxp-portal {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--app-header-h));
}


.mxp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 40px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(75,83,32,.18) 0%, transparent 70%);
  border-bottom: 1px solid var(--app-border);
}


.mxp-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,.012) 3px,
    rgba(255,255,255,.012) 4px
  );
  pointer-events: none;
}


.mxp-dish-wrap {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  position: relative;
  filter: drop-shadow(0 0 14px rgba(122,140,46,.4));
}

.mxp-dish-svg {
  width: 100%;
  height: 100%;
  animation: mxpDishFloat 4s ease-in-out infinite;
}

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


.mxp-pulse {
  transform-origin: 78px 34px;
  animation: mxpPulse 2s ease-out infinite;
  opacity: 0;
}

.mxp-pulse--2 {
  animation-delay: .7s;
}

@keyframes mxpPulse {
  0%   { r: 4; opacity: .8; }
  100% { r: 22; opacity: 0; }
}


.mxp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(229,57,53,.08);
  border: 1px solid rgba(229,57,53,.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #d97070;
  margin-bottom: 20px;
}

.mxp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
  animation: mxpBlink 1.4s ease-in-out infinite;
}

@keyframes mxpBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}


.mxp-hero-title {
  font-family: var(--app-font-display);
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, #c8d46a 0%, #7a8c2e 50%, #4b5320 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.mxp-hero-sub {
  font-size: 14px;
  color: var(--app-text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto 28px;
}


.mxp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.mxp-btn--primary {
  background: linear-gradient(135deg, #5c6626, #7a8c2e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(75,83,32,.4), 0 0 0 1px rgba(122,140,46,.3);
}

.mxp-btn--primary:hover {
  background: linear-gradient(135deg, #6b7730, #8da034);
  box-shadow: 0 6px 28px rgba(75,83,32,.55), 0 0 0 1px rgba(122,140,46,.5);
  transform: translateY(-1px);
  color: #fff;
}

.mxp-btn--primary:active { transform: translateY(0); }


.mxp-actions {
  padding: 20px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mxp-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 15px 16px;
  text-decoration: none;
  color: var(--app-text);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.mxp-action-card:hover {
  background: rgba(75,83,32,.1);
  border-color: rgba(122,140,46,.3);
  color: #fff;
}

.mxp-action-card--accent {
  background: rgba(75,83,32,.12);
  border-color: rgba(122,140,46,.25);
}

.mxp-action-card--accent:hover {
  background: rgba(75,83,32,.22);
  border-color: rgba(122,140,46,.5);
}

.mxp-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(75,83,32,.15);
  border: 1px solid rgba(122,140,46,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-accent);
  flex-shrink: 0;
}

.mxp-action-card--accent .mxp-action-icon {
  background: rgba(75,83,32,.25);
  border-color: rgba(122,140,46,.3);
}

.mxp-action-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.mxp-action-arrow {
  font-size: 20px;
  color: var(--app-text-subtle);
  line-height: 1;
  font-weight: 300;
}


.mxp-store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 4px;
}

.mxp-badge-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.mxp-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
}

.mxp-badge-img {
  display: block;
  height: 44px;
  width: auto;
}

.mxp-badge-img--google {
  
  height: 52px;
  margin: -4px 0;
}

.mxp-badge-img--apple {
  height: 38px;
  padding: 0 4px;
  background: #000;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
}


.mxp-channel-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 16px;
  border-bottom: 1px solid var(--app-border);
  background: rgba(75,83,32,.05);
}

.mxp-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.mxp-stat-num {
  font-family: var(--app-font-display);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 900;
  background: linear-gradient(135deg, #c8d46a 0%, #7a8c2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.mxp-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--app-text-subtle);
  letter-spacing: .3px;
  text-transform: uppercase;
}

.mxp-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--app-border);
  flex-shrink: 0;
  margin: 0 4px;
}


.mxp-footer {
  margin-top: auto;
  padding: 24px 16px 32px;
  text-align: center;
  border-top: 1px solid var(--app-border);
}

.mxp-footer-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--app-text-muted);
  margin-bottom: 6px;
}

.mxp-footer-copy {
  font-size: 10.5px;
  color: var(--app-text-subtle);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

.mxp-bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2px;
  min-height: var(--app-nav-h, 62px);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 8, 8, .96);
  border-top: 1px solid var(--app-border, rgba(255,255,255,.08));
  backdrop-filter: blur(12px);
}

.mxp-nav-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 2px;
  border-radius: 10px;
  color: var(--app-text-muted, #8a8a8a);
  text-decoration: none;
  font-family: var(--app-font-ui, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  transition: color .2s ease, background .2s ease;
}

.mxp-nav-item svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mxp-nav-item:hover,
.mxp-nav-item.is-active {
  color: var(--app-accent, #7a8c2e);
  background: rgba(122, 140, 46, .12);
}

.mxp-nav-item:focus-visible {
  outline: 2px solid var(--app-accent, #7a8c2e);
  outline-offset: 2px;
}

.mx-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}

.mx-progress.is-loading {
  opacity: 1;
}

.mx-progress span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--app-primary, #4b5320), var(--app-accent, #7a8c2e));
  box-shadow: 0 0 10px rgba(122, 140, 46, .55);
  transform: translateX(-100%);
  animation: mx-progress-run 1.05s cubic-bezier(.45, 0, .25, 1) infinite;
}

@keyframes mx-progress-run {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(160%); }
  100% { transform: translateX(260%); }
}

#app-main {
  transition: opacity .18s ease;
}

html.mx-navigating #app-main {
  opacity: .45;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .22s;
  animation-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
  .mx-progress span {
    animation-duration: 2s;
  }

  #app-main,
  html.mx-navigating #app-main {
    transition: none;
    opacity: 1;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
