/* ==========================================================================
   LanoTopup Blog - Official Dark Neon Green Glassmorphism CSS Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --bg-main: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: rgba(255, 255, 255, 0.03);
  --glass-bg: rgba(20, 25, 20, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(82, 216, 36, 0.35);
  
  --primary-color: #52d824;
  --primary-hover: #42be17;
  --secondary-color: #999999;
  --dark-color: #ffffff;
  --light-bg: #0a0a0a;
  --card-bg: rgba(255, 255, 255, 0.03);
  
  --text-main: #f5f5f5;
  --text-muted: #999999;
  --border-color: rgba(255, 255, 255, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.8);
  --glow-green: 0 0 20px rgba(82, 216, 36, 0.35);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Montserrat', 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.site-navbar {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.brand-logo img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.brand-logo span.brand-accent {
  color: var(--primary-color);
}

.brand-logo span.brand-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(82, 216, 36, 0.15);
  color: var(--primary-color);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(82, 216, 36, 0.3);
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 4px 14px;
  transition: all 0.2s ease;
}

.nav-search:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 12px rgba(82, 216, 36, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.nav-search input {
  border: none;
  background: transparent;
  padding: 6px 8px;
  font-size: 0.9rem;
  outline: none;
  width: 180px;
  color: #ffffff;
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-search button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero-banner {
  background: radial-gradient(circle at top center, rgba(82, 216, 36, 0.15) 0%, rgba(10, 10, 10, 0.95) 70%),
              linear-gradient(135deg, rgba(20, 30, 15, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  color: white;
  padding: 50px 30px;
  border-radius: var(--radius-lg);
  margin: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  opacity: 0.15;
  filter: blur(80px);
  pointer-events: none;
}

.hero-banner h1 {
  font-family: var(--font-brand);
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-banner h1 span {
  color: var(--primary-color);
}

.hero-banner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Main Layout */
.main-content {
  flex: 1;
  padding-bottom: 50px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(82, 216, 36, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(82, 216, 36, 0.15);
}

.card-img-wrapper {
  height: 195px;
  overflow: hidden;
  background-color: #121811;
  position: relative;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-badge {
  display: inline-block;
  background: rgba(82, 216, 36, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(82, 216, 36, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-title a {
  color: #ffffff;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  flex: 1;
  line-height: 1.6;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 10px;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.category-list a:hover {
  background: rgba(82, 216, 36, 0.1);
  border-color: rgba(82, 216, 36, 0.2);
  color: var(--primary-color);
}

.category-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag-item:hover {
  background: var(--primary-color);
  color: #0a0a0a;
  font-weight: 700;
  border-color: var(--primary-color);
  box-shadow: 0 0 12px rgba(82, 216, 36, 0.3);
}

/* Article Detail View */
.article-detail-container {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.article-header {
  margin-bottom: 25px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 14px 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.featured-thumbnail {
  margin: 25px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.featured-thumbnail img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Rich Text Formatting */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e2e8f0;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content img, .ck-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  margin: 20px auto;
  display: block;
}

.article-content h2 {
  font-size: 1.65rem;
  margin: 32px 0 16px 0;
  color: #ffffff;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

.article-content h3 {
  font-size: 1.35rem;
  margin: 26px 0 14px 0;
  color: #ffffff;
}

.article-content ul, .article-content ol {
  margin: 0 0 22px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 16px 22px;
  background: rgba(82, 216, 36, 0.05);
  color: #f1f5f9;
  font-style: italic;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9em;
}

.article-content pre {
  background: #050805;
  border: 1px solid var(--glass-border);
  color: #f8fafc;
  padding: 18px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 22px 0;
}

.article-tags-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 45px 0 25px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h3 {
  font-family: var(--font-brand);
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand h3 span {
  color: var(--primary-color);
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 25px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a, .pagination span {
  padding: 10px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination span.active {
  background: var(--primary-color);
  color: #0a0a0a;
  font-weight: 800;
  border-color: var(--primary-color);
  box-shadow: var(--glow-green);
}

/* Admin Dashboard Specific (Dark Theme) */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-main);
}

.admin-sidebar {
  width: 260px;
  background: #050505;
  border-right: 1px solid var(--glass-border);
  color: white;
  padding: 24px 0;
  flex-shrink: 0;
}

.admin-brand {
  padding: 0 24px 24px 24px;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 900;
  border-bottom: 1px solid var(--glass-border);
  color: white;
}

.admin-brand span {
  color: var(--primary-color);
}

.admin-menu {
  list-style: none;
  margin-top: 24px;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-menu a:hover, .admin-menu a.active {
  background: rgba(82, 216, 36, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.admin-main {
  flex: 1;
  background: var(--bg-main);
  padding: 35px;
  overflow-x: auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(82, 216, 36, 0.3);
}

.stat-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-top: 8px;
}

/* Tables & Forms */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: var(--text-main);
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  color: #ffffff;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-published {
  background: rgba(82, 216, 36, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(82, 216, 36, 0.3);
}

.status-draft {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Form Styles */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #ffffff;
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 12px rgba(82, 216, 36, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.form-select option {
  background: #0a0a0a;
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: #0a0a0a;
  box-shadow: 0 4px 15px rgba(82, 216, 36, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #0a0a0a;
  box-shadow: 0 6px 20px rgba(82, 216, 36, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* Alert Notification */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.alert-success { background: rgba(82, 216, 36, 0.15); color: var(--primary-color); border: 1px solid rgba(82, 216, 36, 0.3); }
.alert-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-warning { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.alert-info { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

/* Media Gallery Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.media-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 150px;
  transition: all 0.2s ease;
}

.media-item:hover {
  border-color: var(--primary-color);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 5, 5, 0.9);
  color: white;
  padding: 8px;
  font-size: 0.75rem;
}
