:root {
  --primary: #5A67D8;
  --primary-light: #7C3AED;
  --primary-dark: #4C51BF;
  --text: #1A202C;
  --muted: #718096;
  --bg: #F7FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --gray-100: #EDF2F7;
  --gray-200: #E2E8F0;
  --gray-500: #718096;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-900: #171923;
  --gradient-1: linear-gradient(135deg, #5A67D8, #7C3AED, #38B2AC);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: 84px;
}
.header {
  background: #fffffff2;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(90, 103, 216, .1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px #0000000d;
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--gray-900);
  transition: transform .3s ease;
}
.logo:hover { transform: scale(1.05); }
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5A67D8, #7C3AED);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px #5a67d84d;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--gray-900);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 2rem;
}
.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link:hover { color: var(--primary); }
.dropdown-arrow { display: inline-block; line-height: 1; }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-dropdown { position: relative; }
.dropdown-arrow {
  font-size: .75rem;
  margin-left: .25rem;
  transition: transform .3s ease;
}
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 400px;
  background: #fffffff2;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 60px #0000001a;
  border: 1px solid rgba(90, 103, 216, .1);
  padding: 1.5rem;
  z-index: 1000;
  margin-top: .5rem;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-section { margin-bottom: 0; }
.dropdown-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.template-grid { display: grid; gap: .75rem; }
.template-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all .3s ease;
  border: 1px solid transparent;
}
.template-item:hover {
  background: #5a67d80d;
  border-color: #5a67d81a;
  transform: translateY(-1px);
}
.template-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.template-item:hover .template-icon {
  background: var(--primary);
  color: #fff;
}
.template-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: .95rem;
  margin-bottom: .25rem;
}
.template-desc {
  font-size: .8rem;
  color: var(--gray-500);
  line-height: 1.4;
}
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.auth-buttons .btn {
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: all .3s ease;
  border: none;
  cursor: pointer;
}
.auth-buttons .btn-text { color: var(--gray-600); background: transparent; }
.auth-buttons .btn-text:hover { color: var(--primary); }
.auth-buttons .btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px #5a67d84d;
}
.auth-buttons .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px #5a67d866;
}
@media (max-width: 1100px) {
  .nav-menu { gap: 1rem; margin: 0 1rem; }
  .auth-buttons .btn { padding: .5rem 1rem; }
}
@media (max-width: 860px) {
  .nav-menu { display: none; }
  .nav-container { padding: 1rem; }
  .auth-buttons { gap: .5rem; }
  .auth-buttons .btn { padding: .5rem 1rem; font-size: .85rem; }
}
.wrap { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.wrap h1 { font-size: 36px; margin-bottom: 8px; }
.subtitle { color: var(--muted); margin-bottom: 32px; font-size: 17px; }
.posts { display: grid; gap: 16px; }
.post {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.post:hover { border-color: #C3DAFE; box-shadow: 0 8px 24px rgba(90,103,216,.12); }
.post h2 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.post p { color: var(--muted); line-height: 1.5; }
.article h1 { font-size: 32px; margin-bottom: 12px; }
.article .meta { color: var(--muted); margin-bottom: 28px; }
.article p { line-height: 1.7; margin-bottom: 16px; color: #2D3748; }
.article ul { margin: 0 0 20px 22px; color: #2D3748; line-height: 1.7; }
.back { display: inline-block; margin-bottom: 24px; color: var(--primary); text-decoration: none; font-weight: 600; }
.back:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .wrap h1 { font-size: 28px; }
}
