
/*
Theme Name: M-GSM
Theme URI: https://example.com/m-gsm
Author: You
Author URI: https://example.com
Description: A lightweight knowledge-base style WordPress theme inspired by support portals. Features a hero search, category cards, and clean article layout.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mgsm
Tags: blog, two-columns, right-sidebar, custom-logo, custom-menu, rtl-language-support
*/

:root {
  --bg: #0a0f1a;
  --card: #101826;
  --muted: #718096;
  --text: #e2e8f0;
  --brand: #32c5ff;
  --brand-2: #9f7aea;
  --accent: #00e3a3;
  --border: #1f2937;
  --link: #7dd3fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #0a0f1a 0%, #0b1220 100%);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,26,0.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px;
}
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: conic-gradient(from 180deg at 50% 50%, var(--brand), var(--brand-2), var(--accent), var(--brand));
  box-shadow: 0 0 20px rgba(50,197,255,.4);
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.nav a { padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }

.hero {
  position: relative;
  padding: 64px 0 30px;
  background: radial-gradient(1000px 600px at 10% -10%, rgba(50,197,255,.12), transparent 60%),
              radial-gradient(1000px 600px at 90% -10%, rgba(159,122,234,.12), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 14px; }
.hero p { color: var(--muted); margin: 0 0 22px; }

.searchbar {
  display: flex; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px; max-width: 720px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.searchbar input[type="search"] {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 16px; padding: 10px;
}
.searchbar button {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1220; border: none; padding: 10px 14px; border-radius: 12px; font-weight: 700; cursor: pointer;
}
.searchbar button:hover { filter: brightness(1.1); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 40%);
  border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  position: relative; overflow: hidden;
}
.card:hover { border-color: rgba(125,211,252,.45); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.card h3 { margin: 8px 0; }
.card .meta { color: var(--muted); font-size: 14px; }

.layout {
  display: grid; gap: 26px; grid-template-columns: 1fr 320px; margin: 26px 0;
}
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; } }

.widget { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.widget h2 { margin-top: 0; font-size: 18px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin: 8px 0; }

.post-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.02); }
.post-card h2 { margin: 0 0 8px; font-size: 22px; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 6px; }

.article { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.article h1 { margin-top: 0; }
.article .post-meta { margin-bottom: 18px; }
.article .content p { margin: 0 0 16px; }
.article .content pre, .article .content code { background: #0d1522; border: 1px solid var(--border); border-radius: 10px; padding: 2px 6px; }
.article .content pre { padding: 12px; overflow: auto; }

.breadcrumb { font-size: 14px; color: var(--muted); margin: 10px 0 16px; }
.pagination { display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.03); }
.pagination .current { border-color: var(--brand); }

.site-footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); }
.site-footer a { color: var(--text); }
.rtl { direction: rtl; }
*/
