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

/* Global Reset & CSS Custom Properties */
:root {
  color-scheme: dark light;
  --color-bg-base: #060913;
  --color-primary: #a855f7; /* Vibrant purple */
  --color-primary-glow: rgba(168, 85, 247, 0.4);
  --color-secondary: #06b6d4; /* Teal */
  --color-secondary-glow: rgba(6, 182, 212, 0.4);
  --color-accent: #f43f5e; /* Rose */
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-glow: rgba(168, 85, 247, 0.1);
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Dongle', sans-serif;

  /* Theme-specific gradients and visual components */
  --bg-gradient: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
  --gooey-blend: screen;
  --gooey-opacity: 0.45;
  --gooey-opacity-interactive: 0.6;
  --header-bg: rgba(6, 9, 19, 0.7);
  --logo-gradient: linear-gradient(135deg, #ffffff 40%, var(--color-primary) 100%);
  --hero-gradient: linear-gradient(to bottom, #ffffff 40%, var(--color-primary) 70%, var(--color-secondary) 100%);
  --preview-fade: linear-gradient(to bottom, rgba(6, 9, 19, 0) 0%, var(--color-bg-base) 100%);
  --backdrop-color: rgba(3, 7, 18, 0.8);
  --modal-bg: rgba(10, 15, 30, 0.85);
  --modal-shadow-opacity: 0.6;
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-focus-bg: rgba(255, 255, 255, 0.07);
  --placeholder-color: rgba(255, 255, 255, 0.25);
  --table-th-bg: rgba(255, 255, 255, 0.02);
  --mobile-menu-bg: rgba(6, 9, 19, 0.95);
}

[data-theme="light"] {
  color-scheme: light dark;
  --color-bg-base: #f8fafc; /* light grey/slate */
  --color-primary: #8b5cf6; /* slightly deeper purple for readability */
  --color-primary-glow: rgba(139, 92, 246, 0.25);
  --color-secondary: #0891b2; /* deeper teal */
  --color-secondary-glow: rgba(8, 145, 178, 0.25);
  --color-accent: #e11d48; /* deeper rose */
  --color-text-main: #0f172a; /* dark slate */
  --color-text-muted: #475569; /* slate grey */
  --glass-bg: rgba(255, 255, 255, 0.5); /* light glass */
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-hover: rgba(15, 23, 42, 0.18);
  --glass-glow: rgba(139, 92, 246, 0.08);

  --bg-gradient: radial-gradient(circle at center, #f1f5f9 0%, #e2e8f0 100%);
  --gooey-blend: multiply;
  --gooey-opacity: 0.12;
  --gooey-opacity-interactive: 0.15;
  --header-bg: rgba(248, 250, 252, 0.75);
  --logo-gradient: linear-gradient(135deg, #0f172a 40%, var(--color-primary) 100%);
  --hero-gradient: linear-gradient(to bottom, #0f172a 40%, var(--color-primary) 70%, var(--color-secondary) 100%);
  --preview-fade: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, var(--color-bg-base) 100%);
  --backdrop-color: rgba(15, 23, 42, 0.4);
  --modal-bg: rgba(255, 255, 255, 0.85);
  --modal-shadow-opacity: 0.2;
  --input-bg: rgba(0, 0, 0, 0.02);
  --input-focus-bg: rgba(0, 0, 0, 0.05);
  --placeholder-color: rgba(15, 23, 42, 0.4);
  --table-th-bg: rgba(15, 23, 42, 0.03);
  --mobile-menu-bg: rgba(248, 250, 252, 0.98);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Fixed Animated Gooey Gradient Background */
.gradient-bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  background: var(--bg-gradient);
  overflow: hidden;
  transition: background 0.4s ease;
}

.gradient-bg svg {
  display: none;
}

.gradients-container {
  filter: url(#goo) blur(40px);
  width: 100%;
  height: 100%;
}

.g1, .g2, .g3, .g4, .g5 {
  position: absolute;
  mix-blend-mode: var(--gooey-blend, screen);
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  opacity: var(--gooey-opacity, 0.45);
  transition: mix-blend-mode 0.4s, opacity 0.4s;
}

.g1 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, rgba(168, 85, 247, 0) 70%);
  top: -10%;
  left: -10%;
  animation: moveVertical 30s ease infinite;
}

.g2 {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.5) 0%, rgba(6, 182, 212, 0) 70%);
  bottom: -10%;
  right: -10%;
  animation: moveInCircle 20s reverse infinite;
}

.g3 {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, rgba(236, 72, 153, 0) 70%);
  top: 40%;
  left: 30%;
  animation: moveInCircle 40s linear infinite;
}

.g4 {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.4) 0%, rgba(244, 63, 94, 0) 70%);
  bottom: 20%;
  left: -20%;
  animation: moveHorizontal 25s ease infinite;
}

.g5 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(168, 85, 247, 0) 70%);
  top: 10%;
  right: 20%;
  animation: moveVertical 20s ease infinite;
}

/* Interactive circle tracking mouse */
.interactive {
  position: absolute;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, rgba(99, 102, 241, 0) 70%);
  width: 400px;
  height: 400px;
  top: -200px;
  left: -200px;
  mix-blend-mode: var(--gooey-blend, screen);
  opacity: var(--gooey-opacity-interactive, 0.6);
  pointer-events: none;
  transition: mix-blend-mode 0.4s, opacity 0.4s;
}

/* Background Animations */
@keyframes moveInCircle {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg) translate(50px, 50px); }
  100% { transform: rotate(360deg); }
}

@keyframes moveVertical {
  0% { transform: translateY(-50px); }
  50% { transform: translateY(50px) translateX(20px); }
  100% { transform: translateY(-50px); }
}

@keyframes moveHorizontal {
  0% { transform: translateX(-50px) translateY(-20px); }
  50% { transform: translateX(50px) translateY(20px); }
  100% { transform: translateX(-50px) translateY(-20px); }
}

/* Main Container Structure */
.page-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  transition: all 0.4s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  cursor: pointer;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
}

.logo:hover {
  opacity: 0.85;
}

.logo-text {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-text-base {
  color: var(--color-text-main);
  transition: color 0.3s ease;
}

.logo-text-gradient {
  background: linear-gradient(90deg, #6366F1 0%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-emblem {
  height: 1.8rem;
  width: auto;
  margin: 0 1px;
  align-self: center;
  transform: translateY(2px);
}

.logo-emblem .logo-rect-base {
  fill: var(--color-text-main);
  transition: fill 0.3s ease;
}


.nav {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.menu a {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.3s ease, transform 0.2s;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  transition: width 0.3s ease;
}

.menu a:hover {
  color: var(--color-secondary);
}

.menu a:hover::after {
  width: 100%;
}

.menu .btn-admin {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.menu .btn-admin:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--color-primary-glow);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1.5rem;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-secondary);
  transform: scale(1.1);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

.theme-toggle-btn .sun-icon {
  display: block;
}

.theme-toggle-btn .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 2.5px;
  margin: 5px 0;
  background-color: var(--color-text-main);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1rem 5rem 1rem;
}

.hero-logo-container {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: heroPulse 6s ease-in-out infinite alternate;
}

.hero-logo-container .logo-text {
  font-size: 5.5rem;
  letter-spacing: -2.5px;
}

.hero-logo-container .logo-emblem {
  height: 5.5rem;
  margin: 0 4px;
  transform: translateY(6px);
}

@media (max-width: 768px) {
  .hero-logo-container .logo-text {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
  }
  .hero-logo-container .logo-emblem {
    height: 3.5rem;
    transform: translateY(4px);
  }
}

@media (max-width: 480px) {
  .hero-logo-container .logo-text {
    font-size: 2.8rem;
    letter-spacing: -1px;
  }
  .hero-logo-container .logo-emblem {
    height: 2.8rem;
    transform: translateY(3px);
  }
}

.hero-sub {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}

@keyframes heroPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* Glassmorphic Blog Feed & Cards */
.blog-feed-section {
  padding-bottom: 8rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.2rem;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              background-color 0.4s ease,
              color 0.4s ease,
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px var(--glass-glow);
}

.card-meta {
  font-size: 0.85rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--color-text-main);
}

.card-summary {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  gap: 0.5rem;
  transition: color 0.3s;
}

.card-link:hover {
  color: var(--color-secondary);
}

.card-link svg {
  transition: transform 0.3s;
}

.card-link:hover svg {
  transform: translateX(5px);
}

/* Blog Detail Page Layout */
.blog-detail-container {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  padding-bottom: 8rem;
}

.blog-article {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3.5rem;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.blog-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.blog-meta-info {
  display: flex;
  gap: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-meta-item.category {
  color: var(--color-secondary);
  font-weight: 600;
}

.blog-title-detail {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

.blog-content p {
  margin-bottom: 1.8rem;
}

.blog-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem 0;
  color: var(--color-text-main);
}

.blog-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  color: var(--color-text-main);
}

.blog-content pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  color-scheme: dark;
}

.blog-content code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  color: var(--color-secondary);
  color-scheme: dark;
}

.blog-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Preview Truncated State Overlay */
.blog-content-preview {
  position: relative;
  max-height: 350px;
  overflow: hidden;
}

.blog-content-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: var(--preview-fade);
  pointer-events: none;
}

/* Sidebar Mock Ads Section */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ad-card {
  background: rgba(244, 63, 94, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px dashed rgba(244, 63, 94, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ad-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.15);
}

.ad-label {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.ad-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--color-text-main);
}

.ad-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.ad-visual {
  background: rgba(244, 63, 94, 0.15);
  border-radius: 12px;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  font-weight: bold;
}

.ad-button {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--color-accent), #db2777);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.ad-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

/* Glassmorphic Subscription Dialog (Modal) */
dialog.subscriber-modal {
  margin: auto;
  border: 1px solid var(--glass-border);
  background: var(--modal-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  padding: 3rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, var(--modal-shadow-opacity, 0.6)), 0 0 40px var(--color-primary-glow);
  color: var(--color-text-main);
  outline: none;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, box-shadow 0.4s ease;
}

dialog.subscriber-modal[open] {
  opacity: 1;
  transform: scale(1);
}

dialog::backdrop {
  background: var(--backdrop-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--color-primary);
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  background: var(--input-focus-bg);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.form-input::placeholder {
  color: var(--placeholder-color, rgba(255, 255, 255, 0.25));
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
}

[data-theme="light"] .modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(16, 185, 129, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
}

/* Admin Screens */
.admin-login-card {
  max-width: 450px;
  margin: 8rem auto;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.admin-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.admin-btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.admin-btn-primary:hover {
  background: #9333ea;
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.admin-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--color-text-main);
}

[data-theme="light"] .admin-btn-secondary {
  background: rgba(0, 0, 0, 0.02);
}

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

[data-theme="light"] .admin-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
}

.admin-btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.admin-btn-danger:hover {
  background: var(--color-accent);
  color: white;
}

/* Admin Dashboard Table */
.admin-table-container {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

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

.admin-table th, .admin-table td {
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
  background: var(--table-th-bg);
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

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

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.published {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.draft {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.actions-cell {
  display: flex;
  gap: 0.8rem;
}

/* Admin Stats Cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Editor Form layout */
.editor-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3.5rem;
  margin-bottom: 5rem;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.error-message {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .blog-detail-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-sub {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
  .hamburger {
    display: block;
  }
  
  .menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem;
  }
  
  .menu.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .blog-article {
    padding: 2rem;
  }
  
  .blog-title-detail {
    font-size: 2.2rem;
  }
}

/* Gated vs Public Access Badges */
.status-badge.gated-badge {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-badge.public-badge {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Premium Footer Styles */
.site-footer {
  margin-top: auto;
  padding: 5rem 0 3rem 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: opacity 0.3s;
  display: inline-block;
  width: fit-content;
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-col-title {
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-secondary);
  transform: translateX(3px);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  transition: all 0.3s ease;
}

[data-theme="light"] .footer-social-link {
  background: rgba(0, 0, 0, 0.02);
}

.footer-social-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

