/**
 * ZELMU Design System
 * Universal CSS for consistent design across the platform
 * Version: 1.0.0
 */

/* ========================================
   CSS VARIABLES & DESIGN TOKENS
======================================== */

:root {
  /* Brand Colors */
  --zelmu-primary: #e74c3c;
  --zelmu-primary-dark: #c0392b;
  --zelmu-primary-light: #ec7063;
  --zelmu-secondary: #3498db;
  --zelmu-secondary-dark: #2980b9;
  --zelmu-secondary-light: #5dade2;
  
  /* Neutral Colors */
  --zelmu-white: #ffffff;
  --zelmu-gray-50: #f8f9fa;
  --zelmu-gray-100: #e9ecef;
  --zelmu-gray-200: #dee2e6;
  --zelmu-gray-300: #ced4da;
  --zelmu-gray-400: #adb5bd;
  --zelmu-gray-500: #6c757d;
  --zelmu-gray-600: #495057;
  --zelmu-gray-700: #343a40;
  --zelmu-gray-800: #212529;
  --zelmu-gray-900: #0d1117;
  
  /* Status Colors */
  --zelmu-success: #27ae60;
  --zelmu-success-light: #58d68d;
  --zelmu-warning: #f39c12;
  --zelmu-warning-light: #f7dc6f;
  --zelmu-danger: #e74c3c;
  --zelmu-danger-light: #f1948a;
  --zelmu-info: #17a2b8;
  --zelmu-info-light: #7dd3fc;
  
  /* Typography */
  --zelmu-font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --zelmu-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* Font Sizes */
  --zelmu-text-xs: 0.75rem;
  --zelmu-text-sm: 0.875rem;
  --zelmu-text-base: 1rem;
  --zelmu-text-lg: 1.125rem;
  --zelmu-text-xl: 1.25rem;
  --zelmu-text-2xl: 1.5rem;
  --zelmu-text-3xl: 1.875rem;
  --zelmu-text-4xl: 2.25rem;
  --zelmu-text-5xl: 3rem;
  
  /* Font Weights */
  --zelmu-font-light: 300;
  --zelmu-font-normal: 400;
  --zelmu-font-medium: 500;
  --zelmu-font-semibold: 600;
  --zelmu-font-bold: 700;
  --zelmu-font-extrabold: 800;
  
  /* Spacing */
  --zelmu-space-1: 0.25rem;
  --zelmu-space-2: 0.5rem;
  --zelmu-space-3: 0.75rem;
  --zelmu-space-4: 1rem;
  --zelmu-space-5: 1.25rem;
  --zelmu-space-6: 1.5rem;
  --zelmu-space-8: 2rem;
  --zelmu-space-10: 2.5rem;
  --zelmu-space-12: 3rem;
  --zelmu-space-16: 4rem;
  --zelmu-space-20: 5rem;
  
  /* Border Radius */
  --zelmu-radius-sm: 0.25rem;
  --zelmu-radius-md: 0.375rem;
  --zelmu-radius-lg: 0.5rem;
  --zelmu-radius-xl: 0.75rem;
  --zelmu-radius-2xl: 1rem;
  --zelmu-radius-full: 9999px;
  
  /* Shadows */
  --zelmu-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --zelmu-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --zelmu-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --zelmu-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --zelmu-transition-fast: 150ms ease-in-out;
  --zelmu-transition-normal: 250ms ease-in-out;
  --zelmu-transition-slow: 350ms ease-in-out;
}

/* ========================================
   GLOBAL STYLES & RESET
======================================== */

* {
  box-sizing: border-box;
  font-family: var(--zelmu-font-primary);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--zelmu-font-primary);
  font-size: var(--zelmu-text-base);
  font-weight: var(--zelmu-font-normal);
  line-height: 1.6;
  color: var(--zelmu-gray-800);
  background-color: var(--zelmu-gray-50);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY SYSTEM
======================================== */

.zelmu-heading-1 {
  font-size: var(--zelmu-text-5xl);
  font-weight: var(--zelmu-font-extrabold);
  line-height: 1.1;
  color: var(--zelmu-gray-900);
  margin: 0 0 var(--zelmu-space-6) 0;
}

.zelmu-heading-2 {
  font-size: var(--zelmu-text-4xl);
  font-weight: var(--zelmu-font-bold);
  line-height: 1.2;
  color: var(--zelmu-gray-900);
  margin: 0 0 var(--zelmu-space-5) 0;
}

.zelmu-heading-3 {
  font-size: var(--zelmu-text-3xl);
  font-weight: var(--zelmu-font-semibold);
  line-height: 1.3;
  color: var(--zelmu-gray-800);
  margin: 0 0 var(--zelmu-space-4) 0;
}

.zelmu-heading-4 {
  font-size: var(--zelmu-text-2xl);
  font-weight: var(--zelmu-font-semibold);
  line-height: 1.4;
  color: var(--zelmu-gray-800);
  margin: 0 0 var(--zelmu-space-4) 0;
}

.zelmu-text-large {
  font-size: var(--zelmu-text-lg);
  font-weight: var(--zelmu-font-normal);
  line-height: 1.6;
  color: var(--zelmu-gray-700);
}

.zelmu-text-muted {
  font-size: var(--zelmu-text-base);
  font-weight: var(--zelmu-font-normal);
  line-height: 1.5;
  color: var(--zelmu-gray-500);
}

.zelmu-text-small {
  font-size: var(--zelmu-text-sm);
  font-weight: var(--zelmu-font-normal);
  line-height: 1.4;
  color: var(--zelmu-gray-500);
}

/* ========================================
   LAYOUT COMPONENTS
======================================== */

.zelmu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--zelmu-space-4);
}

.zelmu-container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--zelmu-space-4);
}

.zelmu-container-xs {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--zelmu-space-4);
}

.zelmu-section {
  padding: var(--zelmu-space-16) 0;
}

.zelmu-section-sm {
  padding: var(--zelmu-space-12) 0;
}

.zelmu-section-lg {
  padding: var(--zelmu-space-20) 0;
}

/* ========================================
   CARD SYSTEM
======================================== */

.zelmu-card {
  background: var(--zelmu-white);
  border-radius: var(--zelmu-radius-xl);
  box-shadow: var(--zelmu-shadow-md);
  border: 1px solid var(--zelmu-gray-200);
  overflow: hidden;
  transition: var(--zelmu-transition-normal);
}

.zelmu-card:hover {
  box-shadow: var(--zelmu-shadow-lg);
  transform: translateY(-2px);
}

.zelmu-card-header {
  padding: var(--zelmu-space-6);
  border-bottom: 1px solid var(--zelmu-gray-200);
  background: var(--zelmu-gray-50);
}

.zelmu-card-body {
  padding: var(--zelmu-space-6);
}

.zelmu-card-footer {
  padding: var(--zelmu-space-6);
  border-top: 1px solid var(--zelmu-gray-200);
  background: var(--zelmu-gray-50);
}

.zelmu-card-auth {
  max-width: 400px;
  margin: 0 auto;
  background: var(--zelmu-white);
  border-radius: var(--zelmu-radius-2xl);
  box-shadow: var(--zelmu-shadow-xl);
  border: 1px solid var(--zelmu-gray-200);
  overflow: hidden;
}

/* ========================================
   BUTTON SYSTEM
======================================== */

.zelmu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zelmu-space-2);
  padding: var(--zelmu-space-3) var(--zelmu-space-6);
  font-size: var(--zelmu-text-base);
  font-weight: var(--zelmu-font-medium);
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--zelmu-radius-lg);
  cursor: pointer;
  transition: var(--zelmu-transition-fast);
  white-space: nowrap;
  user-select: none;
}

.zelmu-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.zelmu-btn-primary {
  background: linear-gradient(135deg, var(--zelmu-primary) 0%, var(--zelmu-primary-dark) 100%);
  color: var(--zelmu-white);
  border-color: var(--zelmu-primary);
}

.zelmu-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--zelmu-primary-dark) 0%, var(--zelmu-primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--zelmu-shadow-lg);
}

.zelmu-btn-secondary {
  background: var(--zelmu-white);
  color: var(--zelmu-gray-700);
  border-color: var(--zelmu-gray-300);
}

.zelmu-btn-secondary:hover:not(:disabled) {
  background: var(--zelmu-gray-50);
  border-color: var(--zelmu-gray-400);
}

.zelmu-btn-outline {
  background: transparent;
  color: var(--zelmu-primary);
  border-color: var(--zelmu-primary);
}

.zelmu-btn-outline:hover:not(:disabled) {
  background: var(--zelmu-primary);
  color: var(--zelmu-white);
}

.zelmu-btn-lg {
  padding: var(--zelmu-space-4) var(--zelmu-space-8);
  font-size: var(--zelmu-text-lg);
}

.zelmu-btn-sm {
  padding: var(--zelmu-space-2) var(--zelmu-space-4);
  font-size: var(--zelmu-text-sm);
}

.zelmu-btn-full {
  width: 100%;
}

/* ========================================
   FORM SYSTEM
======================================== */

.zelmu-form-group {
  margin-bottom: var(--zelmu-space-6);
}

.zelmu-form-label {
  display: block;
  font-size: var(--zelmu-text-sm);
  font-weight: var(--zelmu-font-medium);
  color: var(--zelmu-gray-700);
  margin-bottom: var(--zelmu-space-2);
}

.zelmu-form-input {
  width: 100%;
  padding: var(--zelmu-space-3) var(--zelmu-space-4);
  font-size: var(--zelmu-text-base);
  font-weight: var(--zelmu-font-normal);
  color: var(--zelmu-gray-800);
  background: var(--zelmu-white);
  border: 2px solid var(--zelmu-gray-300);
  border-radius: var(--zelmu-radius-lg);
  transition: var(--zelmu-transition-fast);
}

.zelmu-form-input:focus {
  outline: none;
  border-color: var(--zelmu-primary);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.zelmu-form-input::placeholder {
  color: var(--zelmu-gray-400);
}

.zelmu-form-error {
  border-color: var(--zelmu-danger);
}

.zelmu-form-error:focus {
  border-color: var(--zelmu-danger);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.zelmu-form-help {
  font-size: var(--zelmu-text-sm);
  color: var(--zelmu-gray-500);
  margin-top: var(--zelmu-space-1);
}

.zelmu-form-error-text {
  font-size: var(--zelmu-text-sm);
  color: var(--zelmu-danger);
  margin-top: var(--zelmu-space-1);
}

/* ========================================
   AUTH PAGES LAYOUT
======================================== */

.zelmu-auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--zelmu-primary) 0%, var(--zelmu-secondary) 100%);
  padding: var(--zelmu-space-4);
}

.zelmu-auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--zelmu-white);
  border-radius: var(--zelmu-radius-2xl);
  box-shadow: var(--zelmu-shadow-xl);
  overflow: hidden;
}

.zelmu-auth-header {
  text-align: center;
  padding: var(--zelmu-space-8) var(--zelmu-space-6) var(--zelmu-space-6);
  background: linear-gradient(135deg, var(--zelmu-gray-50) 0%, var(--zelmu-white) 100%);
}

.zelmu-auth-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--zelmu-space-4);
  background: linear-gradient(135deg, var(--zelmu-primary) 0%, var(--zelmu-primary-dark) 100%);
  border-radius: var(--zelmu-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zelmu-white);
  font-size: 2rem;
}

.zelmu-auth-body {
  padding: var(--zelmu-space-6);
}

.zelmu-auth-footer {
  padding: var(--zelmu-space-6);
  text-align: center;
  background: var(--zelmu-gray-50);
  border-top: 1px solid var(--zelmu-gray-200);
}

/* ========================================
   NAVIGATION SYSTEM
======================================== */

.zelmu-navbar {
  background: var(--zelmu-white);
  border-bottom: 1px solid var(--zelmu-gray-200);
  box-shadow: var(--zelmu-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.zelmu-navbar-brand {
  font-size: var(--zelmu-text-2xl);
  font-weight: var(--zelmu-font-bold);
  color: var(--zelmu-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--zelmu-space-2);
}

.zelmu-navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--zelmu-space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.zelmu-nav-link {
  font-size: var(--zelmu-text-base);
  font-weight: var(--zelmu-font-medium);
  color: var(--zelmu-gray-600);
  text-decoration: none;
  padding: var(--zelmu-space-2) var(--zelmu-space-3);
  border-radius: var(--zelmu-radius-md);
  transition: var(--zelmu-transition-fast);
}

.zelmu-nav-link:hover {
  color: var(--zelmu-primary);
  background: var(--zelmu-gray-50);
}

.zelmu-nav-link.active {
  color: var(--zelmu-primary);
  background: rgba(231, 76, 60, 0.1);
}

/* ========================================
   FOOTER SYSTEM
======================================== */

.zelmu-footer {
  background: var(--zelmu-gray-900);
  color: var(--zelmu-gray-300);
  padding: var(--zelmu-space-16) 0 var(--zelmu-space-8);
  margin-top: auto;
}

.zelmu-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--zelmu-space-8);
  margin-bottom: var(--zelmu-space-8);
}

.zelmu-footer-section h4 {
  color: var(--zelmu-white);
  font-size: var(--zelmu-text-lg);
  font-weight: var(--zelmu-font-semibold);
  margin-bottom: var(--zelmu-space-4);
}

.zelmu-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zelmu-footer-links li {
  margin-bottom: var(--zelmu-space-2);
}

.zelmu-footer-links a {
  color: var(--zelmu-gray-400);
  text-decoration: none;
  transition: var(--zelmu-transition-fast);
}

.zelmu-footer-links a:hover {
  color: var(--zelmu-white);
}

.zelmu-footer-bottom {
  border-top: 1px solid var(--zelmu-gray-800);
  padding-top: var(--zelmu-space-6);
  text-align: center;
  color: var(--zelmu-gray-500);
}

/* ========================================
   UTILITY CLASSES
======================================== */

.zelmu-text-center { text-align: center; }
.zelmu-text-left { text-align: left; }
.zelmu-text-right { text-align: right; }

.zelmu-hidden { display: none; }
.zelmu-block { display: block; }
.zelmu-inline { display: inline; }
.zelmu-inline-block { display: inline-block; }
.zelmu-flex { display: flex; }
.zelmu-grid { display: grid; }

.zelmu-items-center { align-items: center; }
.zelmu-justify-center { justify-content: center; }
.zelmu-justify-between { justify-content: space-between; }

.zelmu-gap-2 { gap: var(--zelmu-space-2); }
.zelmu-gap-4 { gap: var(--zelmu-space-4); }
.zelmu-gap-6 { gap: var(--zelmu-space-6); }

.zelmu-mb-2 { margin-bottom: var(--zelmu-space-2); }
.zelmu-mb-4 { margin-bottom: var(--zelmu-space-4); }
.zelmu-mb-6 { margin-bottom: var(--zelmu-space-6); }
.zelmu-mb-8 { margin-bottom: var(--zelmu-space-8); }

.zelmu-mt-2 { margin-top: var(--zelmu-space-2); }
.zelmu-mt-4 { margin-top: var(--zelmu-space-4); }
.zelmu-mt-6 { margin-top: var(--zelmu-space-6); }
.zelmu-mt-8 { margin-top: var(--zelmu-space-8); }

.zelmu-p-4 { padding: var(--zelmu-space-4); }
.zelmu-p-6 { padding: var(--zelmu-space-6); }
.zelmu-p-8 { padding: var(--zelmu-space-8); }

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
  .zelmu-container {
    padding: 0 var(--zelmu-space-3);
  }
  
  .zelmu-auth-container {
    padding: var(--zelmu-space-3);
  }
  
  .zelmu-navbar-nav {
    flex-direction: column;
    gap: var(--zelmu-space-2);
  }
  
  .zelmu-footer-content {
    grid-template-columns: 1fr;
    gap: var(--zelmu-space-6);
  }
}

@media (max-width: 480px) {
  .zelmu-heading-1 { font-size: var(--zelmu-text-4xl); }
  .zelmu-heading-2 { font-size: var(--zelmu-text-3xl); }
  .zelmu-heading-3 { font-size: var(--zelmu-text-2xl); }
  
  .zelmu-btn {
    padding: var(--zelmu-space-3) var(--zelmu-space-4);
  }
  
  .zelmu-auth-header {
    padding: var(--zelmu-space-6) var(--zelmu-space-4) var(--zelmu-space-4);
  }
  
  .zelmu-auth-body {
    padding: var(--zelmu-space-4);
  }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes zelmu-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zelmu-slide-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.zelmu-animate-fade-in {
  animation: zelmu-fade-in 0.5s ease-out;
}

.zelmu-animate-slide-in {
  animation: zelmu-slide-in 0.3s ease-out;
}

/* ========================================
   MOBILE LAYOUT STYLES
======================================== */

/* Universal Layout Base - Mobile-First Minimal Design */
.mobile-layout {
    font-family: var(--zelmu-font-primary);
    background-color: var(--zelmu-gray-50);
    min-height: 100vh;
    padding-top: 52px; /* Space for top nav - Mobile */
    padding-bottom: 56px; /* Space for bottom nav - Mobile */
}

.main-content {
    min-height: calc(100vh - 108px); /* Full height minus nav bars - Mobile */
    padding: 0;
}

/* Tablet and larger phones */
@media (min-width: 376px) and (max-width: 767px) {
    .mobile-layout {
        padding-top: 60px;
        padding-bottom: 64px;
    }
    
    .main-content {
        min-height: calc(100vh - 124px);
    }
}

/* Desktop */
@media (min-width: 768px) {
    .mobile-layout {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    .main-content {
        min-height: calc(100vh - 140px);
    }
}

/* Universal spacing for all devices - Mobile-First */
.container-fluid {
    padding-left: 4px;
    padding-right: 4px;
}

/* Larger phones (376px-767px) */
@media (min-width: 376px) and (max-width: 767px) {
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Desktop enhancements */
@media (min-width: 768px) {
    .container-fluid {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Large desktop enhancements */
@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Universal Card Styles - Mobile-First Minimal Design */
.mobile-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

/* Tablet and larger phones */
@media (min-width: 376px) and (max-width: 767px) {
    .mobile-card {
        border-radius: 10px;
        margin-bottom: 10px;
    }
}

/* Desktop card enhancements */
@media (min-width: 768px) {
    .mobile-card {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }
    
    .mobile-card:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
}

.mobile-card-header {
    padding: 8px;
    border-bottom: 1px solid var(--zelmu-gray-200);
    background: var(--zelmu-gray-50);
}

.mobile-card-body {
    padding: 8px;
}

.mobile-card-footer {
    padding: 8px;
    border-top: 1px solid var(--zelmu-gray-200);
    background: var(--zelmu-gray-50);
}

/* Tablet and larger phones */
@media (min-width: 376px) and (max-width: 767px) {
    .mobile-card-header,
    .mobile-card-body,
    .mobile-card-footer {
        padding: 10px;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .mobile-card-header {
        padding: 16px;
    }
    
    .mobile-card-body {
        padding: 16px;
    }
    
    .mobile-card-footer {
        padding: 12px 16px;
    }
}

/* Mobile Button Styles */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    min-height: 44px; /* Touch-friendly minimum */
}

.mobile-btn-primary {
    background-color: var(--zelmu-primary);
    color: white;
}

.mobile-btn-primary:hover {
    background-color: var(--zelmu-primary-dark);
    color: white;
}

.mobile-btn-secondary {
    background-color: var(--zelmu-gray-200);
    color: var(--zelmu-gray-700);
}

.mobile-btn-secondary:hover {
    background-color: var(--zelmu-gray-300);
    color: var(--zelmu-gray-800);
}

.mobile-btn-outline {
    background-color: transparent;
    color: var(--zelmu-primary);
    border: 1px solid var(--zelmu-primary);
}

.mobile-btn-outline:hover {
    background-color: var(--zelmu-primary);
    color: white;
}

/* Mobile Form Styles */
.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--zelmu-gray-700);
    font-size: 14px;
}

.mobile-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--zelmu-gray-300);
    border-radius: 8px;
    font-size: 16px; /* Prevents zoom on iOS */
    background-color: white;
    transition: border-color 0.2s ease;
}

.mobile-form-input:focus {
    outline: none;
    border-color: var(--zelmu-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.mobile-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Mobile List Styles */
.mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--zelmu-gray-200);
    background: white;
    transition: background-color 0.2s ease;
}

.mobile-list-item:hover {
    background-color: var(--zelmu-gray-50);
}

.mobile-list-item:last-child {
    border-bottom: none;
}

.mobile-list-item-content {
    flex: 1;
    min-width: 0;
}

.mobile-list-item-title {
    font-weight: 600;
    color: var(--zelmu-gray-900);
    margin-bottom: 4px;
    font-size: 16px;
}

.mobile-list-item-subtitle {
    color: var(--zelmu-gray-600);
    font-size: 14px;
    margin-bottom: 0;
}

.mobile-list-item-action {
    margin-left: 12px;
    flex-shrink: 0;
}

/* Universal Grid Styles */
.mobile-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Desktop grid enhancements */
@media (min-width: 768px) {
    .mobile-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (min-width: 1200px) {
    .mobile-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.mobile-grid-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.mobile-grid-item:hover {
    transform: translateY(-2px);
}

.mobile-grid-item-icon {
    font-size: 32px;
    color: var(--zelmu-primary);
    margin-bottom: 8px;
}

.mobile-grid-item-title {
    font-weight: 600;
    color: var(--zelmu-gray-900);
    margin-bottom: 4px;
    font-size: 14px;
}

.mobile-grid-item-subtitle {
    color: var(--zelmu-gray-600);
    font-size: 12px;
}

/* Mobile Badge Styles */
.mobile-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-badge-primary {
    background-color: var(--zelmu-primary);
    color: white;
}

.mobile-badge-success {
    background-color: var(--zelmu-success);
    color: white;
}

.mobile-badge-warning {
    background-color: var(--zelmu-warning);
    color: white;
}

.mobile-badge-danger {
    background-color: var(--zelmu-danger);
    color: white;
}

.mobile-badge-secondary {
    background-color: var(--zelmu-gray-200);
    color: var(--zelmu-gray-700);
}

/* Mobile Spacing Utilities */
.mobile-mt-1 { margin-top: 8px; }
.mobile-mt-2 { margin-top: 16px; }
.mobile-mt-3 { margin-top: 24px; }
.mobile-mt-4 { margin-top: 32px; }

.mobile-mb-1 { margin-bottom: 8px; }
.mobile-mb-2 { margin-bottom: 16px; }
.mobile-mb-3 { margin-bottom: 24px; }
.mobile-mb-4 { margin-bottom: 32px; }

.mobile-p-1 { padding: 8px; }
.mobile-p-2 { padding: 16px; }
.mobile-p-3 { padding: 24px; }
.mobile-p-4 { padding: 32px; }

/* Mobile Text Utilities */
.mobile-text-center { text-align: center; }
.mobile-text-left { text-align: left; }
.mobile-text-right { text-align: right; }

.mobile-text-small { font-size: 12px; }
.mobile-text-large { font-size: 18px; }

.mobile-text-muted { color: var(--zelmu-gray-600); }
.mobile-text-primary { color: var(--zelmu-primary); }
.mobile-text-success { color: var(--zelmu-success); }
.mobile-text-warning { color: var(--zelmu-warning); }
.mobile-text-danger { color: var(--zelmu-danger); }

/* Mobile Flexbox Utilities */
.mobile-d-flex { display: flex; }
.mobile-flex-column { flex-direction: column; }
.mobile-flex-row { flex-direction: row; }
.mobile-justify-content-center { justify-content: center; }
.mobile-justify-content-between { justify-content: space-between; }
.mobile-align-items-center { align-items: center; }
.mobile-flex-wrap { flex-wrap: wrap; }

/* Mobile Responsive Images */
.mobile-img-responsive {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.mobile-img-circle {
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile Loading States */
.mobile-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--zelmu-gray-500);
}

.mobile-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--zelmu-gray-300);
    border-top: 2px solid var(--zelmu-primary);
    border-radius: 50%;
    animation: mobile-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes mobile-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Empty States */
.mobile-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--zelmu-gray-500);
}

.mobile-empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.mobile-empty-state-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--zelmu-gray-700);
}

.mobile-empty-state-description {
    font-size: 14px;
    margin-bottom: 0;
}

/* Mobile Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    .mobile-list-item:hover {
        background-color: white;
    }
    
    .mobile-grid-item:hover {
        transform: none;
    }
    
    .mobile-btn:active {
        transform: scale(0.98);
    }
}

/* Mobile Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mobile-layout {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .mobile-card {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .mobile-card-header {
        background: #3d3d3d;
        border-bottom-color: #4d4d4d;
    }
    
    .mobile-list-item {
        background: #2d2d2d;
        border-bottom-color: #4d4d4d;
    }
    
    .mobile-list-item:hover {
        background-color: #3d3d3d;
    }
    
    .mobile-form-input {
        background-color: #3d3d3d;
        border-color: #4d4d4d;
        color: #ffffff;
    }
    
    .mobile-form-input::placeholder {
        color: #888888;
    }
}

/* ========================================
   PLACEHOLDER IMAGES CSS
======================================== */

.placeholder-avatar {
    display: inline-block;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-family: var(--zelmu-font-primary);
    line-height: 1;
    overflow: hidden;
    position: relative;
}

.placeholder-avatar::before {
    content: attr(data-initials);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6em;
    white-space: nowrap;
}

.placeholder-avatar.primary {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
}

.placeholder-avatar.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.placeholder-avatar.success {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
}

.placeholder-avatar.danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.placeholder-avatar.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #000;
}

.placeholder-avatar.info {
    background: linear-gradient(135deg, #0dcaf0, #17a2b8);
    color: #000;
}

.placeholder-avatar.light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
}

.placeholder-avatar.dark {
    background: linear-gradient(135deg, #212529, #343a40);
    color: white;
}

/* Size variants */
.placeholder-avatar.sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.placeholder-avatar.md {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.placeholder-avatar.lg {
    width: 80px;
    height: 80px;
    font-size: 24px;
}

.placeholder-avatar.xl {
    width: 150px;
    height: 150px;
    font-size: 48px;
}

/* Generic placeholder */
.placeholder-image {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    border: 2px dashed #dee2e6;
    text-align: center;
    font-family: var(--zelmu-font-primary);
    font-size: 12px;
    line-height: 1;
    overflow: hidden;
    position: relative;
}

.placeholder-image::before {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

/* Loading state */
.placeholder-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error state */
.placeholder-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.placeholder-error::before {
    content: "⚠";
}

/* ========================================
   POST MODULE CSS
======================================== */

/* Post Type Selector */
.post-type-selector {
    margin-bottom: 1rem;
}

.post-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    justify-content: center;
}

.post-type-option:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.post-type-option i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.post-type-option span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    transition: color 0.3s ease;
}

.form-check-input:checked + .form-check-label .post-type-option {
    border-color: #0d6efd;
    background: #e7f3ff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-check-input:checked + .form-check-label .post-type-option i {
    color: #0d6efd;
}

.form-check-input:checked + .form-check-label .post-type-option span {
    color: #0d6efd;
}

/* Hide radio button */
.post-type-selector .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9ecef;
    transition: background 0.3s ease;
}

.step-dot.active {
    background: #0d6efd;
}

.step-dot.completed {
    background: #198754;
}

/* Post Type Badges */
.post-type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.post-type-normal { 
    background: #e3f2fd; 
    color: #1976d2; 
}

.post-type-recruitment { 
    background: #f3e5f5; 
    color: #7b1fa2; 
}

.post-type-video { 
    background: #ffebee; 
    color: #d32f2f; 
}

.post-type-tournament { 
    background: #fff3e0; 
    color: #f57c00; 
}

/* Featured Badge */
.featured-badge {
    background: #ffc107;
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

/* Post Cards */
.post-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-card.featured {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

/* Post Header */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f1f3f4;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
}

.post-location {
    color: #28a745;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Post Content */
.post-content {
    padding: 16px 20px;
}

.post-title {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.post-text {
    margin-bottom: 0;
    color: #495057;
    line-height: 1.5;
}

.post-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin: 12px 0;
}

/* Recruitment Card Styles */
.recruitment-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.recruitment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recruitment-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.recruitment-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.recruitment-details {
    display: grid;
    gap: 8px;
}

.recruitment-item {
    font-size: 14px;
}

/* Video Card Styles */
.video-card {
    display: flex;
    gap: 16px;
}

.video-thumbnail {
    position: relative;
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-info {
    flex: 1;
}

.video-title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.video-description {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Tournament Card Styles */
.tournament-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tournament-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.tournament-category {
    background: #fff3e0;
    color: #f57c00;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.tournament-details {
    display: grid;
    gap: 12px;
}

.tournament-item {
    font-size: 14px;
}

.tournament-registration {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-action-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-action-btn:hover {
    color: var(--zelmu-primary);
}

.like-btn.liked {
    color: #dc3545;
}

.repost-btn.reposted {
    color: #28a745;
}

.post-views {
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Post Creation Form */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.post-type-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-type-card:hover {
    border-color: var(--zelmu-primary);
    background-color: #f8f9fa;
}

.form-check-input:checked + .form-check-label .post-type-card {
    border-color: var(--zelmu-primary);
    background-color: var(--zelmu-primary-light);
}

.post-type-card i {
    font-size: 2rem;
    color: var(--zelmu-primary);
    margin-bottom: 10px;
}

.post-type-fields {
    display: none;
}

.video-preview-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.video-preview-card img {
    width: 120px;
    height: 90px;
    object-fit: cover;
}

.video-info h6 {
    margin-bottom: 5px;
}

.post-preview {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
}

/* Admin Post Management */
.badge.bg-purple {
    background-color: #6f42c1 !important;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-card {
        flex-direction: column;
    }
    
    .video-thumbnail img {
        width: 100%;
        height: 200px;
    }
    
    .tournament-details .row {
        flex-direction: column;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-actions {
        align-self: flex-end;
    }
    
    .post-stats {
        gap: 12px;
    }
    
    .post-action-btn {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .post-card {
        margin-bottom: 15px;
    }
    
    .post-header {
        padding: 12px 15px 10px;
    }
    
    .post-content {
        padding: 12px 15px;
    }
    
    .post-footer {
        padding: 10px 15px;
    }
    
    .post-stats {
        gap: 8px;
    }
    
    .post-action-btn {
        font-size: 12px;
        gap: 2px;
    }
}

/* ========================================
   MODERN POST CREATION UI/UX
======================================== */

/* Modern Post Card */
.modern-post-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.modern-post-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Modern Post Header */
.modern-post-header {
    padding: 24px 32px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.post-progress {
    width: 200px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 50%;
}

/* Modern Post Body */
.modern-post-body {
    padding: 32px;
}

/* Step Headers */
.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 400;
}

/* Modern Post Types */
.modern-post-types {
    margin-bottom: 20px;
}

.modern-post-type {
    position: relative;
    height: 100%;
}

.modern-post-type-label {
    display: block;
    padding: 24px 20px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.modern-post-type-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(102, 16, 242, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-post-type-label:hover {
    border-color: #0d6efd;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.15);
}

.modern-post-type-label:hover::before {
    opacity: 1;
}

.post-type-icon {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.post-type-icon i {
    font-size: 2.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.post-type-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.post-type-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.post-type-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Selected State */
.modern-post-type input[type="radio"]:checked + .modern-post-type-label {
    border-color: #0d6efd;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(102, 16, 242, 0.08));
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
    transform: translateY(-2px);
}

.modern-post-type input[type="radio"]:checked + .modern-post-type-label::before {
    opacity: 1;
}

.modern-post-type input[type="radio"]:checked + .modern-post-type-label .post-type-icon i {
    color: #0d6efd;
    transform: scale(1.1);
}

.modern-post-type input[type="radio"]:checked + .modern-post-type-label .post-type-content h6 {
    color: #0d6efd;
}

.modern-post-type input[type="radio"]:checked + .modern-post-type-label .post-type-content p {
    color: #495057;
}

/* Hide radio buttons */
.modern-post-type input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Modern Form Groups */
.modern-form-group {
    margin-bottom: 24px;
}

.modern-form-group .form-floating {
    position: relative;
}

.modern-form-group .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.modern-form-group .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

.modern-form-group .form-floating > label {
    padding: 16px 20px;
    color: #6c757d;
    font-weight: 500;
}

/* Modern File Upload */
.modern-file-upload {
    position: relative;
    border: 2px dashed #e9ecef;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-file-upload:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.modern-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-area i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 16px;
    display: block;
}

.upload-area p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.upload-area small {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modern Sections */
.modern-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

/* Modern Submit Section */
.modern-submit-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.modern-submit-section .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-submit-section .btn::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 ease;
}

.modern-submit-section .btn:hover::before {
    left: 100%;
}

.modern-submit-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.modern-submit-section .btn:active {
    transform: translateY(0);
}

/* Form Steps Animation */
.form-step {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-post-body {
        padding: 20px;
    }
    
    .modern-post-header {
        padding: 20px 20px 16px;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-subtitle {
        font-size: 1rem;
    }
    
    .modern-post-type-label {
        padding: 20px 16px;
    }
    
    .post-type-icon i {
        font-size: 2rem;
    }
    
    .post-type-content h6 {
        font-size: 1rem;
    }
    
    .post-type-content p {
        font-size: 0.85rem;
    }
    
    .modern-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .modern-post-body {
        padding: 16px;
    }
    
    .modern-post-header {
        padding: 16px 16px 12px;
    }
    
    .step-header {
        margin-bottom: 24px;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .modern-post-types .row {
        gap: 12px;
    }
    
    .modern-post-type-label {
        padding: 16px 12px;
    }
    
    .post-type-icon i {
        font-size: 1.8rem;
    }
    
    .modern-form-group {
        margin-bottom: 20px;
    }
    
    .modern-section {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .modern-submit-section {
        margin-top: 24px;
        padding-top: 16px;
    }
    
    .modern-submit-section .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modern-post-card {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .modern-post-header {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        border-bottom-color: #333;
    }
    
    .step-title {
        color: #ffffff;
    }
    
    .step-subtitle {
        color: #a0a0a0;
    }
    
    .modern-post-type-label {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .modern-post-type-label::before {
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(102, 16, 242, 0.1));
    }
    
    .post-type-content h6 {
        color: #ffffff;
    }
    
    .post-type-content p {
        color: #a0a0a0;
    }
    
    .modern-form-group .form-control {
        background: #2d2d2d;
        border-color: #444;
        color: #ffffff;
    }
    
    .modern-form-group .form-control:focus {
        background: #333;
    }
    
    .modern-file-upload {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .modern-file-upload:hover {
        background: rgba(13, 110, 253, 0.1);
    }
    
    .upload-area p {
        color: #ffffff;
    }
    
    .modern-section {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .section-title {
        color: #ffffff;
        border-bottom-color: #444;
    }
    
    .modern-submit-section {
        border-top-color: #444;
    }
}

/* ========================================
   DARK MODE SUPPORT (Future)
======================================== */

/* ========================================
   MOBILE-FIRST MINIMAL DESIGN OVERRIDES
   For 320px-375px screens
======================================== */

/* Mobile (320px-375px) - Minimal spacing */
@media (max-width: 375px) {
  :root {
    /* Reduced spacing for mobile */
    --zelmu-space-1: 0.125rem;
    --zelmu-space-2: 0.25rem;
    --zelmu-space-3: 0.375rem;
    --zelmu-space-4: 0.5rem;
    --zelmu-space-5: 0.75rem;
    --zelmu-space-6: 1rem;
    --zelmu-space-8: 1.25rem;
    --zelmu-space-10: 1.5rem;
    --zelmu-space-12: 2rem;
    --zelmu-space-16: 2.5rem;
    --zelmu-space-20: 3rem;
    
    /* Smaller border radius */
    --zelmu-radius-sm: 0.125rem;
    --zelmu-radius-md: 0.25rem;
    --zelmu-radius-lg: 0.375rem;
    --zelmu-radius-xl: 0.5rem;
    --zelmu-radius-2xl: 0.75rem;
  }
  
  /* Minimal container padding */
  .zelmu-container,
  .zelmu-container-sm,
  .zelmu-container-xs {
    padding: 0 4px;
  }
  
  /* Minimal card padding */
  .zelmu-card-header,
  .zelmu-card-body,
  .zelmu-card-footer {
    padding: var(--zelmu-space-3);
  }
  
  /* Minimal section padding */
  .zelmu-section {
    padding: var(--zelmu-space-8) 0;
  }
  
  .zelmu-section-sm {
    padding: var(--zelmu-space-6) 0;
  }
  
  .zelmu-section-lg {
    padding: var(--zelmu-space-10) 0;
  }
}

/* Larger phones (376px-767px) - Slightly more spacing */
@media (min-width: 376px) and (max-width: 767px) {
  :root {
    /* Moderate spacing for larger phones */
    --zelmu-space-1: 0.1875rem;
    --zelmu-space-2: 0.375rem;
    --zelmu-space-3: 0.5rem;
    --zelmu-space-4: 0.75rem;
    --zelmu-space-5: 1rem;
    --zelmu-space-6: 1.25rem;
    --zelmu-space-8: 1.5rem;
    --zelmu-space-10: 2rem;
    --zelmu-space-12: 2.5rem;
    --zelmu-space-16: 3rem;
    --zelmu-space-20: 4rem;
  }
  
  .zelmu-container,
  .zelmu-container-sm,
  .zelmu-container-xs {
    padding: 0 8px;
  }
  
  .zelmu-card-header,
  .zelmu-card-body,
  .zelmu-card-footer {
    padding: var(--zelmu-space-4);
  }
  
  .zelmu-section {
    padding: var(--zelmu-space-10) 0;
  }
  
  .zelmu-section-sm {
    padding: var(--zelmu-space-8) 0;
  }
  
  .zelmu-section-lg {
    padding: var(--zelmu-space-12) 0;
  }
}

/* ========================================
   DARK MODE SUPPORT
======================================== */

/* ========================================
   UNIFIED FORM DESIGN SYSTEM
   Based on Profile Settings Page Design
======================================== */

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #764ba2;
    margin-bottom: 4px;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon .form-control {
    padding: 14px 48px 14px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    font-size: 15px;
    color: #764ba2;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #764ba2;
    pointer-events: none;
    z-index: 1;
}

/* Standard Form Control */
.form-control {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    font-size: 15px;
    color: #764ba2;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: rgba(118, 75, 162, 0.5);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.form-control:focus::placeholder {
    color: rgba(118, 75, 162, 0.3);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23764ba2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-text {
    font-size: 12px;
    color: rgba(118, 75, 162, 0.7);
    margin-top: 4px;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #764ba2;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    border-radius: 4px;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 12px;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-control {
    flex: 1;
}

/* Utility Classes */
.w-100 {
    width: 100% !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --zelmu-white: #0d1117;
    --zelmu-gray-50: #161b22;
    --zelmu-gray-100: #21262d;
    --zelmu-gray-200: #30363d;
    --zelmu-gray-300: #484f58;
    --zelmu-gray-400: #656d76;
    --zelmu-gray-500: #8b949e;
    --zelmu-gray-600: #b1bac4;
    --zelmu-gray-700: #c9d1d9;
    --zelmu-gray-800: #e6edf0;
    --zelmu-gray-900: #f0f6fc;
  }
}
