/*
Theme Name: NetMirror Hub
Theme URI: https://netmirrorhub.com
Author: NetMirror Hub
Author URI: https://netmirrorhub.com
Description: Fast, responsive theme for NetMirror Hub - Watch movies and series. Platform tabs (Android, iOS, Computer, Android TV) with step-by-step install guides.
Version: 1.0.0
Requires at least: 5.2
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: netmirror
Tags: apk, android, apps, custom-post-type, entertainment, one-column, responsive, ott
*/

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

:root {
  /* Light, Google-like palette */
  --nm-primary: #1a73e8;
  --nm-primary-hover: #0b57d0;
  --nm-bg: #f8fafc;
  --nm-bg-alt: #ffffff;
  --nm-surface: #ffffff;
  --nm-text: #111827;
  --nm-text-muted: #6b7280;
  --nm-border: #e5e7eb;
  --nm-radius: 10px;
  --nm-shadow: 0 10px 30px rgba(15,23,42,.06);
  --nm-transition: .2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--nm-bg);
  color: var(--nm-text);
  line-height: 1.6;
}

a { color: var(--nm-primary); text-decoration: none; }
a:hover { color: #38bdf8; text-decoration: none; }

/* Header */
.site-header {
  background: #000000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}
.site-logo a:hover { color: var(--nm-primary); text-decoration: none; }
.site-logo img { max-height: 44px; width: auto; display: block; }
.primary-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.primary-nav a { color: #e5e7eb; font-weight: 500; padding: 8px 0; }
.primary-nav a:hover, .primary-nav .current-menu-item a { color: var(--nm-primary); }

/* Hero */
.hero-section {
  text-align: center;
  padding: 48px 20px 40px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
}
.hero-section h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.hero-section .tagline {
  font-size: 1.05rem;
  color: var(--nm-text-muted);
  max-width: 580px;
  margin: 0 auto 24px;
}
.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--nm-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--nm-radius);
  transition: background var(--nm-transition);
}
.hero-cta:hover {
  background: var(--nm-primary-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Platform tabs */
.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
}
.platform-tab {
  display: block;
  padding: 12px 24px;
  background: var(--nm-bg-alt);
  color: var(--nm-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 999px;
  border: 1px solid var(--nm-border);
  transition: all var(--nm-transition);
}
.platform-tab:hover,
.platform-tab.active {
  background: #e8f0fe;
  color: var(--nm-primary);
  border-color: var(--nm-primary);
  text-decoration: none;
}

/* Platform sections */
.platform-section {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 28px 24px;
  background: var(--nm-surface);
  border-radius: var(--nm-radius);
  border: 1px solid var(--nm-border);
}
.platform-section h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--nm-text);
}
.platform-section .steps { margin: 20px 0; }
.platform-step {
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
}
.platform-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--nm-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 22px;
  text-align: center;
}
.platform-section .note {
  font-size: 0.9rem;
  color: var(--nm-text-muted);
  margin-top: 16px;
  font-style: italic;
}
.download-btn, .btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--nm-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--nm-radius);
  margin-top: 12px;
  transition: background var(--nm-transition);
}
.download-btn:hover, .btn-primary:hover {
  background: var(--nm-primary-hover);
  color: #fff;
  text-decoration: none;
}

/* Main content */
.main-content { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--nm-surface);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  overflow: hidden;
  transition: transform var(--nm-transition), box-shadow var(--nm-transition);
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nm-shadow);
}
.app-card-thumb {
  aspect-ratio: 1;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.app-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.app-card-body { padding: 16px; flex: 1; }
.app-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.app-card-title a { color: var(--nm-text); }
.app-card-title a:hover { color: var(--nm-primary); }
.app-card-meta, .app-card-desc {
  font-size: 0.875rem;
  color: var(--nm-text-muted);
  margin-bottom: 12px;
}
.app-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.view-more { text-align: center; margin-top: 24px; }
.view-more a {
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid var(--nm-primary);
  border-radius: var(--nm-radius);
  display: inline-block;
}
.view-more a:hover {
  background: var(--nm-primary);
  color: #fff;
  text-decoration: none;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 28px 20px;
  border-top: 1px solid var(--nm-border);
  background: #f9fafb;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-copy { font-size: 0.875rem; color: var(--nm-text-muted); margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-links a { font-size: 0.875rem; color: var(--nm-text-muted); }

/* Single app */
.single-app .app-header { display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.single-app .app-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--nm-radius);
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}
.single-app .app-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.single-app .app-meta { color: var(--nm-text-muted); margin-bottom: 16px; }
.single-app .download-btn-large {
  display: inline-block;
  padding: 14px 32px;
  background: var(--nm-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--nm-radius);
}
.single-app .download-btn-large:hover {
  background: var(--nm-primary-hover);
  color: #fff;
  text-decoration: none;
}
.page-content, .single-app .app-content, .error-404 { max-width: 720px; }
.error-404 { padding: 48px 0; text-align: center; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span {
  padding: 8px 16px;
  border: 1px solid var(--nm-border);
  border-radius: 6px;
  background: var(--nm-surface);
  color: var(--nm-text-muted);
}
.pagination a:hover { background: #e5e7eb; color: var(--nm-primary); }
.pagination .current { background: var(--nm-primary); color: #fff; border-color: var(--nm-primary); }

/* Search form */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.search-form .search-field { padding: 10px 16px; border-radius: var(--nm-radius); border: 1px solid var(--nm-border); background: var(--nm-surface); color: var(--nm-text); min-width: 200px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Mobile-first responsive */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .platform-tabs { gap: 8px; }
  .platform-tab { padding: 10px 18px; font-size: 0.9rem; }
  .platform-section { padding: 20px 16px; }
  .app-grid { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
