/* VERLASSEN-SEIN - Complete Stylesheet */
/* CSS TEST - If you see red background, CSS is loading */
body.admin-test { background: red !important; }

:root {
  --background: #0d0d0d;
  --foreground: #fafafa;
  --card: #141414;
  --card-foreground: #f2f2f2;
  --primary: #8b1a1a;
  --primary-foreground: #fafafa;
  --secondary: #262626;
  --secondary-foreground: #e0e0e0;
  --muted: #1f1f1f;
  --muted-foreground: #808080;
  --accent: #a52020;
  --border: #2e2e2e;
  --input: #2e2e2e;
  --ring: #8b1a1a;
  --radius: 0.5rem;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-main {
  color: var(--foreground);
}

.logo-accent {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(139, 26, 26, 0.5);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s;
}

.user-name {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
  line-height: 1.5;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(139, 26, 26, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139, 26, 26, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--muted);
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  padding-top: 64px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0.7), rgba(13, 13, 13, 1));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-icon {
  margin-bottom: 2rem;
  color: var(--primary);
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 15px rgba(139, 26, 26, 0.5));
}

.hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
  background: linear-gradient(to bottom, var(--foreground), var(--foreground), rgba(250, 250, 250, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(139, 26, 26, 0.3);
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(139, 26, 26, 0.5);
  border-radius: 20px;
  position: relative;
}

.scroll-mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 12px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

/* ===== HERO VIDEO ===== */
.hero-video {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0.5), rgba(13, 13, 13, 1));
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.play-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 15px rgba(139, 26, 26, 0.5));
}

.hero-video-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-video-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(139, 26, 26, 0.2);
  transform: translateY(-4px);
}

.feature-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  transition: opacity 0.3s;
}

.feature-card:hover .feature-bg {
  opacity: 0.2;
}

.feature-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle, rgba(139, 26, 26, 0.05), transparent);
  border-radius: 50%;
  filter: blur(40px);
  transition: all 0.3s;
}

.feature-card:hover .feature-glow {
  background: radial-gradient(circle, rgba(139, 26, 26, 0.1), transparent);
}

.feature-content {
  position: relative;
  z-index: 1;
}

.feature-icon {
  color: var(--primary);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(139, 26, 26, 0.5));
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.feature-card:hover h3 {
  color: var(--primary);
}

.feature-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.feature-card-coming {
  background: rgba(139, 26, 26, 0.1);
  border-color: var(--primary);
}

/* ===== QUOTE SECTION ===== */
.quote-section {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(139, 26, 26, 0.05), transparent);
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/public/placeholder.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
}

.quote-section .container {
  position: relative;
  text-align: center;
  max-width: 56rem;
}

.quote-divider {
  width: 64px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 2rem;
  box-shadow: 0 0 10px rgba(139, 26, 26, 0.5);
}

.quote {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.quote-author {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(46, 46, 46, 0.5);
}

.cta-section .container {
  text-align: center;
  max-width: 56rem;
}

.cta-section p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(13, 13, 13, 0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-links h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: all 0.2s;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 26, 26, 0.3);
}

.social-links a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.social-links a:hover svg {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* ===== AUTH PAGES ===== */
.auth-container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 0 40px rgba(139, 26, 26, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.auth-description {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.auth-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.auth-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* ===== FORM GROUPS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

/* ===== ALERTS ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.5;
}

.alert svg {
  flex-shrink: 0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  overflow: hidden;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -64px;
  padding-top: 64px;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.8), rgba(13, 13, 13, 1));
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.page-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.8;
}

/* Legacy page-header support for non-hero pages */
.page-header.legacy {
  padding: 6rem 0 3rem;
  height: auto;
  background: linear-gradient(to bottom, rgba(139, 26, 26, 0.05), transparent);
}

.page-header.legacy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

/* Page-specific backgrounds */
body[data-page="characters"] .page-header.legacy::before {
  background-image: url("/public/images/characters-silhouettes.jpg");
}

body[data-page="story"] .page-header.legacy::before {
  background-image: url("/public/images/story-hero.jpg");
}

body[data-page="videos"] .page-header.legacy::before {
  background-image: url("/public/images/mystical-portal.jpg");
}

body[data-page="music"] .page-header.legacy::before {
  background-image: url("/public/images/mystical-music.jpg");
}

body[data-page="weekly"] .page-header.legacy::before {
  background-image: url("/public/images/ancient-calendar.jpg");
}

body[data-page="forum"] .page-header.legacy::before {
  background-image: url("/public/images/dark-gathering.jpg");
}

/* ===== CHARACTERS GRID ===== */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.character-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.character-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(139, 26, 26, 0.2);
  transform: translateY(-4px);
}

.character-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.character-card:hover img {
  transform: scale(1.05);
}

.character-content {
  padding: 1.5rem;
}

.character-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.character-title {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.character-role {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.character-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.character-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.trait-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(139, 26, 26, 0.1);
  border: 1px solid var(--primary);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.character-stats {
  margin-top: 1rem;
}

.stat {
  margin-bottom: 0.75rem;
}

.stat-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.stat-bar {
  height: 8px;
  background: var(--muted);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s;
  box-shadow: 0 0 10px rgba(139, 26, 26, 0.5);
}

/* ===== STORY PAGE ===== */
.story-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.story-section {
  margin-bottom: 4rem;
}

.story-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.story-section p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.story-divider {
  width: 64px;
  height: 4px;
  background: var(--primary);
  margin: 3rem auto;
  box-shadow: 0 0 10px rgba(139, 26, 26, 0.5);
}

/* ===== MUSIC PAGE ===== */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}

.music-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.music-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(139, 26, 26, 0.2);
  transform: translateY(-4px);
}

.music-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(139, 26, 26, 0.1), transparent);
  border-radius: 50%;
  filter: blur(30px);
}

.music-icon {
  color: var(--primary);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(139, 26, 26, 0.5));
}

.music-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.music-artist {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.music-card audio {
  width: 100%;
  margin-top: 1rem;
}

.music-card audio::-webkit-media-controls-panel {
  background: var(--muted);
}

.music-card audio::-webkit-media-controls-play-button {
  background-color: var(--primary);
  border-radius: 50%;
}

/* ===== VIDEOS PAGE ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.video-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(139, 26, 26, 0.2);
  transform: translateY(-4px);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.3s;
}

.video-card:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.video-play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(139, 26, 26, 0.5);
}

.video-card:hover .video-play-button {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(139, 26, 26, 0.7);
}

.video-content {
  padding: 1.5rem;
}

.video-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.video-views {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== WEEKLY PAGE ===== */
.weekly-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

.weekly-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.weekly-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(139, 26, 26, 0.2);
}

.weekly-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weekly-content {
  padding: 2rem 2rem 2rem 0;
}

.weekly-date {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.weekly-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.weekly-excerpt {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===== FORUM PAGE ===== */
.forum-categories {
  display: grid;
  gap: 1.5rem;
  padding: 3rem 0;
}

.forum-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}

.forum-category:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(139, 26, 26, 0.2);
}

.forum-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.forum-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(139, 26, 26, 0.5));
}

.forum-category h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.forum-category p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.forum-topics {
  display: grid;
  gap: 1rem;
}

.forum-topic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.forum-topic:hover {
  background: rgba(139, 26, 26, 0.1);
  transform: translateX(4px);
}

.forum-topic-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.forum-topic-meta {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.forum-topic-stats {
  display: flex;
  gap: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ===== FORUM TOPIC DETAIL ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--muted-foreground);
  margin: 0 0.5rem;
}

.breadcrumb-current {
  color: var(--foreground);
  font-weight: 500;
}

.topic-meta-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.topic-meta-header > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topic-author-info,
.topic-date,
.topic-views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Topic and Reply Posts */
.topic-post,
.reply-post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s;
}

.topic-post:hover,
.reply-post:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(139, 26, 26, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.post-avatar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 0 15px rgba(139, 26, 26, 0.3);
}

.avatar-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--foreground);
}

.author-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-number {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.post-content {
  padding: 2rem;
}

.post-text {
  color: var(--foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.post-date {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.post-badges {
  display: flex;
  gap: 0.5rem;
}

/* Section Headers */
.section-header {
  margin: 3rem 0 2rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.reply-count {
  color: var(--muted-foreground);
  font-weight: 400;
}

/* Reply Form */
.reply-form-section {
  margin-top: 3rem;
}

.reply-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.form-help {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* CAPTCHA */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.captcha-question {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--primary);
}

.captcha-text {
  font-size: 1rem;
}

.captcha-input {
  width: 100px;
  padding: 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.2s;
}

.captcha-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Login Prompt */
.login-prompt-section {
  margin-top: 3rem;
}

.login-prompt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.login-prompt-icon {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.login-prompt-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.login-prompt-card p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.login-prompt-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Container Narrow */
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--primary);
}

/* Badge Outline */
.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

/* ===== ADMIN PANEL ===== */
.admin-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admin-header p {
  color: var(--muted-foreground);
}

.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-search {
  flex: 1;
  max-width: 400px;
}

.admin-search input {
  width: 100%;
  padding: 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
}

/* ===== ADMIN CARDS ===== */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.admin-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(139, 26, 26, 0.2);
  transform: translateY(-4px);
}

.admin-card-icon {
  color: var(--primary);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(139, 26, 26, 0.5));
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-card-count {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
}

.admin-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.admin-card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.4;
}

.admin-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admin-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ===== TABLES ===== */
.table-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: var(--muted);
}

.table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.table td {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.table tbody tr {
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: var(--muted);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

/* ===== TABS ===== */
.tabs {
  margin-bottom: 2rem;
}

.tabs-list {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tab-trigger {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  position: relative;
  top: 1px;
}

.tab-trigger:hover {
  color: var(--foreground);
}

.tab-trigger.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher select {
  padding: 0.5rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.language-switcher select:hover {
  border-color: var(--primary);
}

.language-switcher select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background: rgba(139, 26, 26, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* ===== ADMIN PANEL IMPROVEMENTS ===== */
.admin-content {
  padding-top: 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Admin Grid */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-card-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-card-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(139, 26, 26, 0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(139, 26, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Admin Sections */
.admin-section {
  margin-bottom: 3rem;
}

.admin-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

/* Form Select Small */
.form-select-sm {
  padding: 0.375rem 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.8125rem;
  cursor: pointer;
}

.form-select-sm:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.empty-icon {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.empty-text {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* reCAPTCHA Styling */
.g-recaptcha {
  margin: 1rem 0;
  transform: scale(1);
  transform-origin: center center;
  width: 304px;
  height: 78px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.recaptcha-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 78px;
  width: 100%;
}

/* Debug: reCAPTCHA görünürlük kontrolü */
.recaptcha-container .g-recaptcha {
  border: 1px solid rgba(139, 26, 26, 0.3) !important;
  background: rgba(139, 26, 26, 0.05) !important;
  border-radius: var(--radius);
  padding: 4px;
}

@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.9);
    width: 274px;
    height: 70px;
  }
  
  .recaptcha-container {
    min-height: 70px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu.mobile-open {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-menu.mobile-open .nav-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-direction: column;
  }

  .weekly-card {
    grid-template-columns: 1fr;
  }

  .weekly-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .characters-grid {
    grid-template-columns: 1fr;
  }

  .music-grid {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .admin-cards {
    grid-template-columns: 1fr;
  }

  .table-container {
    overflow-x: auto;
  }

  .table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .page-header {
    padding: 4rem 0 2rem;
  }

  .section {
    padding: 4rem 0;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.gap-4 {
  gap: 2rem;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}


/* ===== ADMIN PANEL ADDITIONAL STYLES ===== */
.admin-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.admin-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.admin-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  padding: 0.5rem;
  color: white;
}

.admin-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.admin-empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.admin-empty-state p {
  margin-bottom: 1.5rem;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
}

.badge-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-outline {
  border-color: var(--border);
  background: transparent;
}


/* ===== MODERN FORUM STYLES ===== */

/* Modern Forum Header */
.modern-forum-header {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -64px;
  padding-top: 64px;
}

.forum-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.forum-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.forum-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.9) 0%, rgba(139, 26, 26, 0.8) 50%, rgba(13, 13, 13, 0.95) 100%);
  z-index: 1;
}

.forum-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.forum-header-icon {
  margin-bottom: 2rem;
  color: var(--primary);
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 20px rgba(139, 26, 26, 0.5));
}

.forum-header-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--foreground), rgba(139, 26, 26, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(139, 26, 26, 0.3);
}

.forum-header-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.forum-header-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Forum Main Section */
.forum-main-section {
  padding: 4rem 0;
  background: var(--background);
}

.forum-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Forum Tabs */
.forum-tabs {
  margin-bottom: 3rem;
}

.forum-tabs-list {
  display: flex;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.forum-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.forum-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 26, 26, 0.1), transparent);
  transition: left 0.5s;
}

.forum-tab:hover::before {
  left: 100%;
}

.forum-tab:hover {
  color: var(--foreground);
  background: var(--muted);
}

.forum-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
  transform: translateY(-1px);
}

.forum-tab.active::before {
  display: none;
}

/* Categories Section */
.forum-categories-section {
  margin-bottom: 3rem;
}

.forum-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--primary);
}

.breadcrumb-current {
  color: var(--foreground);
  font-weight: 500;
}

.modern-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.modern-category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.modern-category-card:hover::before,
.modern-category-card.active::before {
  transform: scaleX(1);
}

.modern-category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(139, 26, 26, 0.15);
  transform: translateY(-2px);
}

.modern-category-card.active {
  border-color: var(--primary);
  background: rgba(139, 26, 26, 0.05);
  box-shadow: 0 8px 25px rgba(139, 26, 26, 0.2);
}

.category-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 26, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.category-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.category-info p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

.category-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.category-last-activity {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.8;
}

/* Topics Section */
.forum-topics-section {
  margin-bottom: 3rem;
}

.topics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.topics-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

.topics-title i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(139, 26, 26, 0.3));
}

/* Empty State */
.forum-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: 12px;
  margin: 2rem 0;
}

.empty-state-icon {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  opacity: 0.5;
}

.forum-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.forum-empty-state p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Modern Topics List */
.modern-topics-list {
  display: grid;
  gap: 1rem;
}

.modern-topic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.modern-topic-card:hover::before {
  transform: scaleY(1);
}

.modern-topic-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(139, 26, 26, 0.15);
  transform: translateY(-2px);
}

.topic-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.topic-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-pinned {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-category {
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.topic-title {
  margin: 0;
}

.topic-title a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.topic-title a:hover {
  color: var(--primary);
}

.topic-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topic-author,
.topic-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.topic-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.topic-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.topic-last-reply {
  text-align: right;
  font-size: 0.8125rem;
}

.last-reply-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.last-reply-author {
  font-weight: 500;
  color: var(--foreground);
}

.last-reply-date {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* Forum Rules */
.forum-rules-section {
  margin-top: 4rem;
}

/* Button Small Variant */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .modern-categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .forum-tabs-list {
    flex-wrap: wrap;
  }
  
  .forum-tab {
    flex: none;
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .modern-forum-header {
    min-height: 50vh;
  }
  
  .forum-header-title {
    font-size: 2.5rem;
  }
  
  .forum-header-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .forum-header-actions .btn-enhanced {
    width: 100%;
    justify-content: center;
  }
  
  .modern-categories-grid {
    grid-template-columns: 1fr;
  }
  
  .forum-tabs-list {
    flex-direction: column;
  }
  
  .forum-tab {
    flex: 1;
    min-width: auto;
  }
  
  .topics-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .topic-card-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .topic-last-reply {
    text-align: left;
    width: 100%;
  }
  
  .last-reply-info {
    justify-content: flex-start;
  }
  
  .topic-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .forum-main-section {
    padding: 2rem 0;
  }
  
  .modern-topic-card,
  .modern-category-card {
    padding: 1rem;
  }
  
  .forum-empty-state {
    padding: 2rem 1rem;
  }
  
  .category-card-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .category-stats {
    justify-content: center;
  }
}

/* Legacy forum styles for compatibility */
.forum-content {
  background: var(--background);
}

.forum-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--primary);
}

.topic-actions {
  display: flex;
  gap: 0.5rem;
}

/* ===== FORUM NEW TOPIC STYLES ===== */

/* Modern Forum New Header */
.modern-forum-new-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -64px;
  padding-top: 64px;
}

.forum-new-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.forum-new-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.forum-new-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.95) 0%, rgba(139, 26, 26, 0.8) 50%, rgba(13, 13, 13, 0.98) 100%);
  z-index: 1;
}

.forum-new-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 2rem;
}

.forum-new-header-icon {
  margin-bottom: 1.5rem;
  color: var(--primary);
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 15px rgba(139, 26, 26, 0.5));
}

.forum-new-header-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--foreground), rgba(139, 26, 26, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(139, 26, 26, 0.3);
}

.forum-new-header-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.forum-new-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Forum New Main Section */
.forum-new-main-section {
  padding: 4rem 0;
  background: var(--background);
}

.forum-new-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Quick Tips */
.forum-quick-tips {
  background: linear-gradient(135deg, var(--card) 0%, rgba(139, 26, 26, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.quick-tips-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.quick-tips-header i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(139, 26, 26, 0.3));
}

.quick-tips-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.quick-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.quick-tip {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.quick-tip:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.1);
  transform: translateY(-2px);
}

.quick-tip-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 26, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.quick-tip-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.quick-tip-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

/* Form Enhancements for New Topic */
.forum-new-container .form-textarea-large {
  min-height: 300px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.forum-new-container .form-input-enhanced:focus,
.forum-new-container .form-textarea-enhanced:focus,
.forum-new-container .form-select-enhanced:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
  background: var(--background);
}

/* Character Counter Styles */
.character-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: var(--background);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.character-counter.warning {
  color: var(--warning);
  border-color: var(--warning);
}

.character-counter.error {
  color: var(--error);
  border-color: var(--error);
}

/* Loading Button State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive Design for New Topic */
@media (max-width: 768px) {
  .modern-forum-new-header {
    min-height: 40vh;
  }
  
  .forum-new-header-title {
    font-size: 2rem;
  }
  
  .forum-new-container {
    padding: 0 1rem;
  }
  
  .quick-tips-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-tip {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .forum-new-breadcrumb {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .forum-new-main-section {
    padding: 2rem 0;
  }
  
  .forum-quick-tips {
    padding: 1.5rem;
  }
  
  .quick-tips-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .modern-forum-new-header {
    min-height: 35vh;
  }
}

/* ===== FORUM ANIMATIONS ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modern-topic-card {
  animation: slideInUp 0.5s ease-out;
}

.modern-category-card {
  animation: fadeInScale 0.5s ease-out;
}

.forum-tab {
  animation: slideInLeft 0.3s ease-out;
}

/* Stagger animation delays */
.modern-topic-card:nth-child(1) { animation-delay: 0.1s; }
.modern-topic-card:nth-child(2) { animation-delay: 0.2s; }
.modern-topic-card:nth-child(3) { animation-delay: 0.3s; }
.modern-topic-card:nth-child(4) { animation-delay: 0.4s; }
.modern-topic-card:nth-child(5) { animation-delay: 0.5s; }

.modern-category-card:nth-child(1) { animation-delay: 0.1s; }
.modern-category-card:nth-child(2) { animation-delay: 0.2s; }
.modern-category-card:nth-child(3) { animation-delay: 0.3s; }
.modern-category-card:nth-child(4) { animation-delay: 0.4s; }

.forum-tab:nth-child(1) { animation-delay: 0.1s; }
.forum-tab:nth-child(2) { animation-delay: 0.2s; }
.forum-tab:nth-child(3) { animation-delay: 0.3s; }
.forum-tab:nth-child(4) { animation-delay: 0.4s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .modern-topic-card,
  .modern-category-card,
  .forum-tab {
    animation: none;
  }
  
  .modern-topic-card:hover,
  .modern-category-card:hover,
  .quick-tip:hover {
    transform: none;
  }
}

/* ===== FORUM UTILITIES ===== */
.forum-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--muted-foreground);
}

.forum-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}

.forum-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}

.forum-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}

/* Forum Search */
.forum-search {
  position: relative;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.forum-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.forum-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.forum-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  width: 16px;
  height: 16px;
}

/* Forum Stats */
.forum-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.forum-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.forum-stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.1);
}

.forum-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.forum-stat-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Forum Pagination */
.forum-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.forum-pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.forum-pagination-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139, 26, 26, 0.05);
}

.forum-pagination-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.forum-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.forum-pagination-btn:disabled:hover {
  border-color: var(--border);
  color: var(--muted-foreground);
  background: var(--card);
}

/* ===== MODERN TOPIC PAGE STYLES ===== */

/* Topic Container */
.topic-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Topic Header Meta */
.topic-header-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.topic-author,
.topic-date,
.topic-views,
.topic-replies {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Modern Topic Thread */
.modern-topic-thread {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Modern Post Styles */
.modern-post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.modern-post:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(139, 26, 26, 0.15);
}

.original-post {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, var(--card) 0%, rgba(139, 26, 26, 0.02) 100%);
}

.original-post::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(139, 26, 26, 0.05), transparent);
  border-radius: 50%;
  filter: blur(30px);
}

/* Post Header */
.modern-post .post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 2rem 1rem;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1rem;
}

.author-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
}

.post-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.post-number {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(139, 26, 26, 0.2);
}

/* Post Content */
.modern-post .post-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.post-body {
  color: var(--foreground);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body p:last-child {
  margin-bottom: 0;
}

/* Post Footer */
.modern-post .post-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(139, 26, 26, 0.02);
}

.post-stats {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Replies Section */
.replies-section {
  margin-top: 2rem;
}

.replies-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.replies-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

.replies-title i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(139, 26, 26, 0.3));
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reply-post {
  margin-left: 2rem;
  position: relative;
}

.reply-post::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 2rem;
  width: 2px;
  height: calc(100% - 4rem);
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 1px;
}

/* Reply Form Section */
.reply-form-section {
  margin-top: 3rem;
}

/* Login Prompt */
.login-prompt-section {
  margin-top: 3rem;
}

.login-prompt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-prompt-icon {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  opacity: 0.7;
}

.login-prompt-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.login-prompt-card p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.login-prompt-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Topic Navigation Enhancements */
.topic-container .forum-navigation {
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

/* Responsive Design for Topic Page */
@media (max-width: 768px) {
  .topic-header-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .topic-author,
  .topic-date,
  .topic-views,
  .topic-replies {
    justify-content: flex-start;
  }
  
  .modern-post .post-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.5rem;
  }
  
  .post-meta {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
  
  .post-badges {
    justify-content: flex-start;
  }
  
  .modern-post .post-content {
    padding: 1.5rem;
  }
  
  .modern-post .post-footer {
    padding: 1rem 1.5rem;
  }
  
  .reply-post {
    margin-left: 0;
  }
  
  .reply-post::before {
    display: none;
  }
  
  .post-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .login-prompt-card {
    padding: 2rem 1.5rem;
  }
  
  .login-prompt-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .login-prompt-actions .btn-enhanced {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .topic-container {
    padding: 0 0.5rem;
  }
  
  .modern-post .post-header {
    padding: 1rem;
  }
  
  .modern-post .post-content {
    padding: 1rem;
  }
  
  .modern-post .post-footer {
    padding: 1rem;
  }
  
  .author-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .replies-title {
    font-size: 1.25rem;
  }
  
  .login-prompt-card {
    padding: 1.5rem 1rem;
  }
}

/* Topic Page Animations */
.modern-post {
  animation: slideInUp 0.5s ease-out;
}

.reply-post:nth-child(1) { animation-delay: 0.1s; }
.reply-post:nth-child(2) { animation-delay: 0.2s; }
.reply-post:nth-child(3) { animation-delay: 0.3s; }
.reply-post:nth-child(4) { animation-delay: 0.4s; }
.reply-post:nth-child(5) { animation-delay: 0.5s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .modern-post {
    animation: none;
  }
  
  .modern-post:hover {
    transform: none;
  }
}
  
  /* ===== MODERN ADMIN FORM SYSTEM ===== */
  .admin-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .admin-page-header {
    background: linear-gradient(135deg, var(--card) 0%, rgba(139, 26, 26, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
  }
  
  .admin-page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 20px rgba(139, 26, 26, 0.3);
  }
  
  .admin-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .admin-page-title svg {
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(139, 26, 26, 0.3));
  }
  
  .admin-page-description {
    color: var(--muted-foreground);
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .admin-page-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  /* Modern Form Container */
  .modern-form-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
  }
  
  .modern-form-header {
    background: linear-gradient(135deg, var(--muted) 0%, rgba(139, 26, 26, 0.05) 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
  }
  
  .modern-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .modern-form-title svg {
    color: var(--primary);
  }
  
  .modern-form-body {
    padding: 2rem;
  }
  
  /* Form Sections */
  .form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
  }
  
  .form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
  }
  
  .form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
  }
  
  .form-section-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(139, 26, 26, 0.3));
  }
  
  /* Form Grid System */
  .form-grid {
    display: grid;
    gap: 1.5rem;
  }
  
  .form-grid-1 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .form-grid-4 { grid-template-columns: repeat(4, 1fr); }
  
  /* Enhanced Form Groups */
  .form-group-enhanced {
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .form-label-enhanced {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
  }
  
  .form-label-required::after {
    content: " *";
    color: var(--error);
    font-weight: 700;
  }
  
  .form-input-enhanced,
  .form-textarea-enhanced,
  .form-select-enhanced {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
  }
  
  .form-input-enhanced:focus,
  .form-textarea-enhanced:focus,
  .form-select-enhanced:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
    background: var(--card);
  }
  
  .form-textarea-enhanced {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
  }
  
  .form-textarea-large {
    min-height: 200px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
  }
  
  /* Input with Icon */
  .form-input-with-icon {
    position: relative;
  }
  
  .form-input-with-icon svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    width: 18px;
    height: 18px;
  }
  
  .form-input-with-icon input {
    padding-left: 2.75rem;
  }
  
  /* Form Help Text */
  .form-help {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
    line-height: 1.4;
  }
  
  /* Image Preview */
  .image-preview-container {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
  }
  
  .image-preview {
    max-width: 300px;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Language Tabs */
  .language-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--muted);
    padding: 0.5rem;
    border-radius: var(--radius);
  }
  
  .language-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }
  
  .language-tab.active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 2px 4px rgba(139, 26, 26, 0.2);
  }
  
  .language-tab:hover:not(.active) {
    background: var(--card);
    color: var(--foreground);
  }
  
  .language-content {
    display: none;
  }
  
  .language-content.active {
    display: block;
  }
  
  /* Form Actions */
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 2rem;
    background: var(--muted);
    border-top: 1px solid var(--border);
    margin: 0 -2rem -2rem -2rem;
  }
  
  /* Meta Information */
  .meta-info-card {
    background: linear-gradient(135deg, var(--muted) 0%, rgba(139, 26, 26, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .meta-info-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .meta-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .meta-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .meta-info-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .meta-info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
  }
  
  /* Success/Error States */
  .form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
  }
  
  .form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
  }
  
  .form-error-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .form-error-list li {
    margin-bottom: 0.25rem;
  }
  
  /* Enhanced Buttons */
  .btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
  }
  
  .btn-enhanced::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
  }
  
  .btn-enhanced:hover::before {
    left: 100%;
  }
  
  .btn-primary-enhanced {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
    box-shadow: 0 2px 4px rgba(139, 26, 26, 0.2);
  }
  
  .btn-primary-enhanced:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 26, 26, 0.3);
  }
  
  .btn-secondary-enhanced {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
  }
  
  .btn-secondary-enhanced:hover {
    background: var(--muted);
    border-color: var(--primary);
  }
  
  .btn-outline-enhanced {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
  }
  
  .btn-outline-enhanced:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 26, 26, 0.05);
  }
  
  /* Admin card improvements */
  .admin-card-content {
    padding: 1.5rem;
  }
  
  .admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  
  .admin-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
    line-height: 1.3;
  }
  
  .admin-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  
  .admin-card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }
  
  .admin-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
  }
  
  .admin-card-meta > span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  /* Improved empty states */
  .admin-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    grid-column: 1 / -1;
  }
  
  .admin-empty-state svg {
    color: var(--muted-foreground);
    opacity: 0.5;
    margin-bottom: 1rem;
  }
  
  .admin-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
  }
  
  .admin-empty-state p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
  }
  
  /* Success/Error states */
  .admin-success-state {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .admin-error-state {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  /* Mobile improvements for admin forms */
  @media (max-width: 768px) {
    .admin-form-grid.two-cols,
    .admin-form-grid.three-cols {
      grid-template-columns: 1fr;
    }
    
    .admin-form-actions {
      flex-direction: column;
    }
    
    .admin-card-header {
      flex-direction: column;
      gap: 1rem;
      align-items: stretch;
    }
    
    .admin-card-actions {
      justify-content: flex-start;
    }
    
    .admin-meta-grid {
      grid-template-columns: 1fr;
    }
  }


/* ===== MODERN ADMIN FORM RESPONSIVE & ENHANCEMENTS ===== */

/* Loading States */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design for Modern Forms */
@media (max-width: 1024px) {
  .admin-page-container {
    padding: 0 0.75rem;
  }
  
  .admin-page-header {
    padding: 1.5rem;
  }
  
  .admin-page-title {
    font-size: 1.75rem;
  }
  
  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .modern-form-body {
    padding: 1.5rem;
  }
  
  .form-actions {
    padding: 1.5rem;
    margin: 0 -1.5rem -1.5rem -1.5rem;
  }
}

@media (max-width: 768px) {
  .admin-page-header {
    padding: 1rem;
  }
  
  .admin-page-title {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .admin-page-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .admin-page-actions .btn-enhanced {
    justify-content: center;
  }
  
  .modern-form-header {
    padding: 1rem 1.5rem;
  }
  
  .modern-form-body {
    padding: 1rem;
  }
  
  .form-actions {
    padding: 1rem;
    margin: 0 -1rem -1rem -1rem;
    flex-direction: column;
  }
  
  .language-tabs {
    flex-direction: column;
  }
  
  .meta-info-grid {
    grid-template-columns: 1fr;
  }
  
  .form-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .admin-page-container {
    padding: 0 0.5rem;
  }
  
  .modern-form-container {
    border-radius: 8px;
  }
  
  .form-input-enhanced,
  .form-textarea-enhanced,
  .form-select-enhanced {
    padding: 0.75rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-enhanced {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* Focus management for accessibility */
.form-input-enhanced:focus-visible,
.form-textarea-enhanced:focus-visible,
.form-select-enhanced:focus-visible,
.btn-enhanced:focus-visible,
.language-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .form-input-enhanced,
  .form-textarea-enhanced,
  .form-select-enhanced {
    border-width: 2px;
  }
  
  .btn-enhanced {
    border-width: 2px;
  }
  
  .modern-form-container {
    border-width: 2px;
  }
}

/* Cache busting - Updated for modern admin forms - v2.0 */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .btn-enhanced,
  .form-input-enhanced,
  .form-textarea-enhanced,
  .form-select-enhanced,
  .language-tab {
    transition: none;
  }
  
  .btn-enhanced::before {
    display: none;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
  }
}

/* ===== USER DROPDOWN STYLES ===== */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-dropdown-trigger {
  background: none;
  border: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.user-dropdown-trigger:hover {
  background: var(--muted);
  color: var(--primary);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.05) 0%, transparent 100%);
}

.user-dropdown-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--card);
}

.user-dropdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown-info {
  flex: 1;
  min-width: 0;
}

.user-dropdown-name {
  font-weight: 700;
  color: var(--foreground);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.user-dropdown-role {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.user-dropdown-stats {
  padding: 1rem 1.25rem;
  background: rgba(139, 26, 26, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dropdown-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.dropdown-stat i {
  color: var(--primary);
  opacity: 0.8;
}

.user-dropdown-actions {
  padding: 0.65rem;
  border-top: 1px solid var(--border);
}

.dropdown-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.dropdown-action:last-child {
  margin-bottom: 0;
}

.dropdown-action:hover {
  background: rgba(139, 26, 26, 0.1);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-action i {
  transition: transform 0.2s ease;
}

.dropdown-action:hover i {
  transform: scale(1.1);
}

/* ===== ENHANCED USER PROFILE STYLES ===== */

/* Enhanced Author Info */
.author-info .author-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-info .author-role {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.author-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.author-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Online Indicator */
.online-indicator {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* User Rank */
.user-rank {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  font-size: 0.75rem;
}

/* Admin Badge */
.badge-admin {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(139, 26, 26, 0.2);
}

/* Avatar Image Support */
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Profile Image in Avatar */
.author-avatar {
  position: relative;
  overflow: hidden;
}

/* User Profile Enhancements */
.user-profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.user-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
  flex-shrink: 0;
}

.user-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-profile-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.user-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.user-profile-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Responsive adjustments for user profiles */
@media (max-width: 768px) {
  .author-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .user-profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .user-profile-meta {
    justify-content: center;
  }
}


/* ===== MODERN DELETE/CLOSE BUTTON STYLES ===== */
.btn-delete, .btn-close {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-delete:hover, .btn-close:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
    color: white;
    text-decoration: none;
}

.btn-delete:active, .btn-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

/* X Icon for delete buttons */
.btn-delete::before, .btn-close::before {
    content: "✕";
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

/* Small delete button variant */
.btn-delete-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
}

.btn-delete-sm::before {
    font-size: 0.875rem;
}

/* Icon-only delete button */
.btn-delete-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-delete-icon:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.btn-delete-icon::before {
    content: "✕";
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 1;
}

/* Confirmation dialog styles */
.delete-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delete-confirmation.show {
    opacity: 1;
    visibility: visible;
}

.delete-confirmation-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.delete-confirmation.show .delete-confirmation-content {
    transform: scale(1);
}

.delete-confirmation h3 {
    color: var(--foreground);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.delete-confirmation p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.delete-confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-confirm-delete:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
}

.btn-cancel-delete {
    background: var(--card);
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel-delete:hover {
    background: var(--accent);
    transform: translateY(-1px);
}


/* ===== IMAGE UPLOAD COMPONENT ===== */
.image-upload-container {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    background: var(--card);
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-container:hover {
    border-color: var(--primary);
    background: rgba(139, 26, 26, 0.05);
}

.image-upload-container.dragover {
    border-color: var(--primary);
    background: rgba(139, 26, 26, 0.1);
    transform: scale(1.02);
}

.image-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-upload-content {
    pointer-events: none;
}

.image-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--muted-foreground);
}

.image-upload-text {
    color: var(--foreground);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.image-upload-hint {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.image-upload-preview {
    margin-top: 1rem;
    position: relative;
}

.image-upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.image-upload-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--destructive);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.image-upload-remove:hover {
    background: var(--destructive-foreground);
    transform: scale(1.1);
}

.image-upload-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

.image-upload-error {
    color: var(--destructive);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.image-upload-success {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Loading spinner */
.upload-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image field wrapper */
.image-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-field-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.image-field-toggle button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-field-toggle button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.image-field-toggle button:hover:not(.active) {
    background: var(--accent);
}

.image-input-method {
    display: none;
}

.image-input-method.active {
    display: block;
}

/* ===== AUDIO UPLOAD COMPONENT ===== */
.audio-upload-container {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    background: var(--card);
    transition: all 0.3s ease;
    cursor: pointer;
}

.audio-upload-container:hover {
    border-color: var(--primary);
    background: rgba(139, 26, 26, 0.05);
}

.audio-upload-container.dragover {
    border-color: var(--primary);
    background: rgba(139, 26, 26, 0.1);
    transform: scale(1.02);
}

.audio-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.audio-upload-content {
    pointer-events: none;
}

.audio-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--muted-foreground);
}

.audio-upload-text {
    color: var(--foreground);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.audio-upload-hint {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.audio-upload-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

.audio-upload-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-upload-success {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-upload-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.audio-preview-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--foreground);
}

.current-audio {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.current-audio-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--foreground);
}

/* Audio field wrapper */
.audio-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audio-field-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.audio-toggle-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.audio-toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.audio-toggle-btn:hover:not(.active) {
    background: var(--accent);
}

.audio-input-method {
    display: none;
}

.audio-input-method.active {
    display: block;
}

/* ===== ENHANCED MUSIC & VIDEO COMPONENTS ===== */
.music-player-container {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(139, 26, 26, 0.1);
    border: 1px solid rgba(139, 26, 26, 0.3);
    border-radius: var(--radius);
}

.music-player {
    width: 100%;
    filter: sepia(100%) saturate(200%) hue-rotate(320deg) brightness(0.8);
}

.music-lyrics {
    margin-top: 1rem;
}

.music-lyrics-toggle {
    cursor: pointer;
    color: var(--primary);
    font-weight: 500;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.music-lyrics-toggle:hover {
    color: var(--accent);
}

.music-lyrics-content {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    white-space: pre-line;
    line-height: 1.8;
    color: var(--muted-foreground);
}

.music-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    color: var(--muted-foreground);
}

/* Forum category stats */
.forum-category-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.forum-category-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Guidelines list improvements */
.guidelines-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.guidelines-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    padding: 0.5rem 0;
}

.guidelines-list li i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Forum topics section */
.forum-topics-section {
    margin-bottom: 3rem;
}

/* ===== MODERN REMOVE BUTTON STYLES ===== */
.btn-remove-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-remove-field::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-remove-field:hover::before {
    left: 100%;
}

.btn-remove-field:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.btn-remove-field:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-remove-field svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Dynamic field group styling */
.dynamic-field-group {
    position: relative;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.dynamic-field-group:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(139, 26, 26, 0.1);
}

.dynamic-field-group .form-group-enhanced {
    margin-bottom: 0;
}

.dynamic-field-group .btn-remove-field {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

/* For grid layouts with remove buttons */
.form-grid .dynamic-field-group {
    position: relative;
}

.form-grid .dynamic-field-group .btn-remove-field {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
}

/* Animation for field removal */
.dynamic-field-group.removing {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
    }
    100% {
        opacity: 0;
        transform: translateX(-20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Animation for field addition */
.dynamic-field-group.adding {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
        max-height: 0;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
    }
}
