@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

/* Urdu Text Styling */
.post-content.urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    text-align: right;
    font-size: 18px;
    line-height: 2.2;
    font-weight: 400;
}

.post-content.english {
    text-align: left;
    direction: ltr;
}

.post-options {
    position: absolute;
    top: 12px;
    right: 12px;
}

.post-options-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.post-options-btn:hover {
    background: var(--bg);
}

.post-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    min-width: 150px;
    z-index: 100;
}

.post-dropdown.active {
    display: block;
}

.post-dropdown button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-dropdown button:hover {
    background: var(--bg);
}

.post-dropdown button.delete {
    color: var(--danger);
}

.edit-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.edit-modal.active {
    display: flex;
}
/* ===============================
   NEEFTAL THEME - Modern Gradient Blue-Teal
   Mobile First Responsive CSS
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --primary: #1E3A8A;
  --primary-dark: #0F172A;
  --secondary: #14B8A6;
  --secondary-light: #2DD4BF;
  --bg: #F9FAFB;
  --bg-dark: #111827;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --danger: #EF4444;
  --success: #10B981;
  
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --header-height: 60px;
  --bottom-nav-height: 60px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===============================
   HEADER / TOP BAR
   =============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--primary);
  cursor: pointer;
  display: none;
  width: 44px;
  height: 44px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo i {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 26px;
}

.search-box {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg);
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.search-box input:focus {
  border-color: var(--secondary);
  background: var(--white);
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--text);
  font-size: 18px;
  transition: 0.2s;
}

.icon-btn:hover {
  background: var(--border);
}

.badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
  cursor: pointer;
}

/* ===============================
   SIDEBAR
   =============================== */
.sidebar {
  position: fixed;
  left: 0;
  top: var(--header-height);
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar ul {
  list-style: none;
  padding: 16px 0;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #CBD5E1;
  padding: 14px 20px;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
  min-height: 48px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-left: 3px solid var(--secondary);
}

.sidebar ul li a i {
  font-size: 20px;
  min-width: 30px;
  text-align: center;
}

.sidebar.collapsed .link-text {
  display: none;
}

.sidebar-toggle {
  position: absolute;
  top: 20px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: var(--secondary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 10;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

/* ===============================
   MAIN CONTENT
   =============================== */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 20px;
  transition: 0.3s;
  min-height: calc(100vh - var(--header-height));
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed);
}

/* ===============================
   POST CARD
   =============================== */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-header img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.post-user-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.post-user-info span {
  font-size: 12px;
  color: var(--text-light);
}

.post-content {
  margin-bottom: 12px;
  font-size: 15px;
  word-wrap: break-word;
}

.post-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  max-height: 500px;
  object-fit: cover;
}

.post-actions {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.post-actions button {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}

.post-actions button:hover {
  background: var(--bg);
  color: var(--primary);
}

.post-actions button.liked {
  color: var(--secondary);
}

/* ===============================
   BUTTONS & FORMS
   =============================== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}

/* ===============================
   BOTTOM NAV - MOBILE ONLY
   =============================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  justify-content: space-around;
  align-items: center;
  z-index: 997;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 11px;
  padding: 8px 0;
  min-height: 44px;
}

.bottom-nav a i {
  font-size: 20px;
}

.bottom-nav a.active {
  color: var(--primary);
}

/* ===============================
   UTILITIES
   =============================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hide-mobile { display: block; }
.show-mobile { display: none; }

/* ===============================
   RESPONSIVE - TABLET
   =============================== */
@media (max-width: 1024px) {
  .search-box {
    max-width: 300px;
  }
}

/* ===============================
   RESPONSIVE - MOBILE
   =============================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .search-box {
    display: none;
  }
  
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    top: 0;
    height: 100vh;
    padding-top: var(--header-height);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  .sidebar.collapsed {
    width: 280px;
  }
  
  .sidebar.collapsed .link-text {
    display: block;
  }
  
  .sidebar-toggle {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
    padding: 12px;
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
  }
  
  .post-card {
    padding: 12px;
    border-radius: 8px;
  }
  
  .bottom-nav {
    display: flex;
  }
  
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
  
  .header {
    padding: 0 12px;
  }
}

/* ===============================
   RESPONSIVE - SMALL MOBILE
   =============================== */
@media (max-width: 480px) {
  .post-actions button span {
    display: none;
  }
  
  .logo span {
    display: none;
  }
}