/* =====================================================
   PROFILE EDIT FORM LAYOUT
   ===================================================== */
.edit-profile-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  margin-bottom: 10px;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.form-control {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 8px 12px;
  background-color: var(--bg-input);
  color: var(--text-primary);
  width: 100%;
  box-shadow: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group .help {
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  margin-top: 2px;
}

.form-group .error {
  color: var(--color-danger);
  font-size: var(--font-size-xs);
  margin-top: 2px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 10px !important;
  align-items: center;
}

.actions .btn {
  min-width: 120px;
}
/* Friends List Avatars Enhanced */
.friends-list-avatars {
  list-style: none;
  padding: 0;
  margin: 0;
}

.friend-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.friend-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius, 6px);
  border: 2.5px solid var(--border-color, #7f9db9);
  margin-right: 10px;
  object-fit: cover;
  background: #fff;
}

.friend-info {
  display: flex;
  flex-direction: column;
}

.friend-name {
  font-weight: bold;
  color: var(--text-primary, #222);
  text-decoration: none;
}

/* Centered logo container for auth and home pages */
.center-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 25px;
}
/* =====================================================
   SKAVOO - EARLY 2000s SOCIAL PLATFORM STYLES
   Consistent Windows XP-inspired design
   ===================================================== */

/* =====================================================
   CSS VARIABLES - Design Tokens
   ===================================================== */
:root {
  /* Colors */
  --color-primary: #316ac5;
  --color-primary-dark: #204a87;
  --color-primary-light: #4a88d0;
  --color-secondary: #7f9db9;
  --color-secondary-light: #a0b8d8;
  --color-accent: #0b5394;

  /* Background Colors */
  --bg-cream: #ece9d8;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-input: #ffffff;

  /* Text Colors */
  --text-primary: #1d2129;
  --text-secondary: #6b7280;
  --text-muted: #888888;
  --text-link: #0b5394;

  /* Status Colors */
  --color-success: #28a745;
  --color-success-dark: #218838;
  --color-success-bg: #d4edda;
  --color-success-text: #155724;
  --color-danger: #dc3545;
  --color-danger-dark: #c82333;
  --color-danger-bg: #f8d7da;
  --color-danger-text: #721c24;
  --color-warning: #f59e0b;

  /* Borders - XP-style boxy look */
  --border-color: #7f9db9;
  --border-light: #dbe5f1;
  --border-radius: 4px;
  --border-radius-sm: 2px;
  --border-radius-lg: 6px;
  --border-radius-pill: 4px;

  /* Shadows - Classic XP 3D effect */
  --shadow-xp: 2px 2px 0 #a0b8d8, 3px 3px 0 #8faec8;
  --shadow-inset: inset 1px 1px 0 #fff, inset -1px -1px 0 #999;
  --shadow-card: 2px 2px 0 #a0b8d8;
  --shadow-focus: 0 0 3px #316ac5;

  /* Typography */
  --font-family: Tahoma, sans-serif;
  --font-family-display: "Pixelify Sans", sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 22px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 15px;
  --spacing-xl: 20px;
}

/* =====================================================
   BASE RESET & TYPOGRAPHY
   ===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: #F9F8F3;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--text-link);
}

a:hover {
  text-decoration: underline;
}

/* =====================================================
   XP BACKGROUND (Login/Register pages)
   ===================================================== */
body.xp-bg {
  background: url("/images/background-image.png"), #4a88d0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =====================================================
   LOGO STYLES
   ===================================================== */
.logo {
  font-family: var(--font-family-display);
  font-size: 64px;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    lime,
    cyan,
    blue,
    violet
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 #333, 6px 6px 5px rgba(0, 0, 0, 0.5);
  transform: skewX(-10deg) rotate(-3deg);
  display: inline-block;
  user-select: none;
  text-decoration: none;
}

/* Smaller logo for header - matches auth pages with rainbow gradient */
header .logo {
  font-family: var(--font-family-display);
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    lime,
    cyan,
    blue,
    violet
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #333, 3px 3px 3px rgba(0, 0, 0, 0.4);
  transform: skewX(-8deg) rotate(-2deg);
  display: inline-block;
  text-decoration: none;
}

/* =====================================================
   BUTTONS - Consistent XP-style
   ===================================================== */
button,
.btn {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: bold;
  background: linear-gradient(to bottom, #f5f5f5, #dcdcdc);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: inset 1px 1px 0 #fff;
  color: var(--text-primary);
  padding: 7.5px 12px;
  cursor: pointer;
  text-shadow: 1px 1px #fff;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

button:hover,
.btn:hover {
  background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
  box-shadow: 0 0 3px var(--color-primary);
  text-decoration: none;
}

button:focus,
.btn:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Full Width Button */
.btn-block {
  width: 100%;
}

/* Link Button (ghost) */
.btn-link {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-link);
  text-shadow: none;
  padding: 4px 8px;
}

.btn-link:hover {
  background: rgba(49, 106, 197, 0.1);
  box-shadow: none;
  text-decoration: none;
}

/* Message Button */
.btn-message {
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: white;
  border-color: var(--color-primary-dark);
  text-shadow: none;
  padding: 6px 12px;
  font-size: var(--font-size-md);
}

.btn-message:hover {
  background: linear-gradient(
    to bottom,
    var(--color-primary-light),
    var(--color-primary)
  );
}

/* Post Button */
.btn-post {
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: white;
  border-color: var(--color-primary-dark);
  text-shadow: none;
  padding: 8px 20px;
}

.btn-post:hover {
  background: linear-gradient(
    to bottom,
    var(--color-primary-light),
    var(--color-primary)
  );
}

/* Unfriend Small */
.btn-unfriend-small {
  padding: 4px 10px;
  background: transparent;
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  cursor: pointer;
  text-shadow: none;
  box-shadow: none;
}

.btn-unfriend-small:hover {
  background: var(--color-danger);
  color: white;
}

/* Add Small Button */
.btn-add-small {
  padding: 4px 8px;
  font-size: var(--font-size-md);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: transparent;
  border: none;
  box-shadow: none;
}

.btn-add-small:hover {
  opacity: 1;
  background: transparent;
  box-shadow: none;
}

/* =====================================================
   FORM INPUTS
   ===================================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  padding-top: 7.5px !important;
  padding-bottom: 7.5px !important;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 8px 12px;
  width: 100%;
  background-color: var(--bg-input);
  color: var(--text-primary);
  box-shadow: none !important;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--border-color);
  box-shadow: none;
}

/* Prevent Chrome autofill styles */
input:-webkit-autofill {
  transition: background-color 100000s ease-in-out 0s !important;
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
}

/* File Input */
input[type="file"] {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  padding: 6px;
  color: var(--text-secondary);
  background-color: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
}

/* File Input Wrapper */
.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: var(--spacing-md);
}

.file-input-wrapper label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  font-weight: bold;
  background: linear-gradient(to bottom, #f5f5f5, #dcdcdc);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: inset 1px 1px 0 #fff;
  cursor: pointer;
  text-shadow: 1px 1px #fff;
  text-align: center;
}

.file-input-wrapper label:hover {
  background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
}

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

.file-name {
  display: inline-block;
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  vertical-align: middle;
  margin-left: 10px;
}

/* Visibility Select */
.visibility-select {
  padding: 6px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  background: var(--bg-white);
  cursor: pointer;
  width: auto;
}

/* =====================================================
   HEADER
   ===================================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: var(--color-primary);
  border-bottom: 2px solid #1a3a6b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 38px;
  height: 32px;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  font-size: var(--font-size-lg);
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-danger);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 3px;
  min-width: 16px;
  text-align: center;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Search Form */
.search-form {
  display: flex;
}

.search-input {
  width: 280px !important;
  padding: 6px 10px;
  border: 2px solid #7f9db9;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  background: #fff;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
  box-shadow: none;
}

.search-input:focus {
  border-color: white;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

/* Notification Wrapper */
.notification-wrapper {
  position: relative;
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-lg);
  font-size: 20px;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s;
}

.notification-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-danger);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 3px;
  min-width: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-primary);
  box-shadow: none;
  text-shadow: none;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 350px;
  max-height: 400px;
  background: var(--bg-cream);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xp);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.notification-dropdown.show {
  display: block;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  font-weight: 600;
}

.notification-list {
  max-height: 340px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: var(--bg-light);
}


.notification-item.unread {
  background-color: #fff;
}

.notification-item.unread:hover {
  background-color: #f5f5f5;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 100% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-text {
  font-size: var(--font-size-base);
  line-height: 1.4;
  color: var(--text-primary);
}

.notification-time {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.notification-empty,
.notification-loading {
  color: var(--text-secondary);
  font-style: italic;
  /* text-align: center; */
  padding: 12px 15px;
  font-size: var(--font-size-base);
}

/* User Menu */
.user-menu-wrapper {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  font-size: var(--font-size-base);
  color: white;
  transition: background-color 0.2s;
  box-shadow: none;
  text-shadow: none;
}

.user-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 100% !important;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 200px;
  background: var(--bg-cream);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xp);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.user-menu-dropdown.show {
  display: block;
}

.user-menu-item {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--font-size-md);
  transition: background-color 0.2s;
}

.user-menu-item:hover {
  background-color: var(--bg-light);
  text-decoration: none;
}

.user-menu-item.logout:hover {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.user-menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 5px 0;
}

/* =====================================================
   WINDOWS / DIALOGS (Login, Register, etc.)
   ===================================================== */
.login-window,
.home-window {
  width: 360px;
  background-color: var(--bg-cream);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-xp);
  border-radius: var(--border-radius);
  overflow: hidden;
  animation: popup 0.4s ease-out;
}

.window-header {
  background: linear-gradient(to bottom, #6ba3d8 0%, #316ac5 50%, #204a87 100%);
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  font-size: var(--font-size-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #204a87;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.window-close {
  font-size: 11px;
  cursor: pointer;
  padding: 1px 5px;
  background: linear-gradient(to bottom, #e8503a 0%, #c62d1f 50%, #a41f14 100%);
  border: 1px solid #7f0000;
  border-radius: 3px;
  color: white;
  font-weight: bold;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.window-body {
  padding: var(--spacing-xl);
  font-size: var(--font-size-base);
}

.window-body label {
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
}

.window-body input[type="text"],
.window-body input[type="email"],
.window-body input[type="password"] {
  margin-bottom: var(--spacing-md);
}

.window-body button {
  width: 100%;
  margin-top: var(--spacing-sm);
  text-align: center;
  justify-content: center;
}

.window-body a {
  color: var(--text-link);
}

.links {
  text-align: center;
  font-size: var(--font-size-base);
  margin-top: 10px;
}

@keyframes popup {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================================
   LAYOUT COMPONENTS
   ===================================================== */
.feed-layout {
  display: flex;
  max-width: 1140px;
  margin: 20px auto;
  gap: 20px;
  padding: 0 20px;
}

.container {
  display: flex;
  max-width: 1140px;
  margin: 20px auto;
  gap: 20px;
  padding: 0 20px;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.people-sidebar,
.sidebar {
  width: 30%;
  background-color: var(--bg-cream);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-xp);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  height: fit-content;
}

.sidebar-card {
  background-color: var(--bg-cream);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-xp);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-lg);
}

.sidebar-card h3 {
  margin: 0 0 12px 0;
  font-size: var(--font-size-md);
  color: var(--color-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* Quick Links */
.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  margin-bottom: 8px;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--border-radius-sm);
  color: var(--text-link);
  text-decoration: none;
  transition: background-color 0.2s;
}

.quick-links a:hover {
  background-color: var(--border-light);
  text-decoration: none;
}

.quick-links a.active {
  background-color: var(--color-primary);
  color: white;
}

/* Badge Inline */
.badge-inline {
  background: var(--color-danger);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: auto;
}

/* People List */
.people-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.person-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.person-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.person-link:hover {
  text-decoration: none;
}

.person-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 100% !important;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.person-name {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-primary);
}

.no-suggestions {
  color: var(--text-secondary);
  font-style: italic;
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */
.post-feed,
.content-wrapper {
  width: 70%;
  margin-bottom: 100px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content {
  background-color: var(--bg-cream);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-xp);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  font-size: var(--font-size-base);
}

/* =====================================================
   POST BLOCKS
   ===================================================== */
.post-block {
  background-color: var(--bg-cream);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-xp);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-lg);
}

.post-inner-body {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
}

.post-header-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar {
  width: 45px;
  height: 45px;
  border-radius: 100% !important;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.post-user-text {
  display: flex;
  flex-direction: column;
}

.post-user-text strong a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-user-text strong a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-date {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-top: 2px;
}

.post-divider {
  margin: 15px 0 10px 0;
  border: none;
  border-top: 1px solid var(--border-light);
}

.post-body {
  margin-top: var(--spacing-lg);
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--text-primary);
}

.post-body p {
  margin: 0;
}

.post-media {
  max-width: 100%;
  margin-top: 10px;
  border-radius: var(--border-radius);
}

/* Post Stats */
.post-stats {
  display: flex;
  gap: 15px;
  padding: 8px 0;
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Post Actions */
.post-actions {
  display: flex;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.post-actions .btn {
  flex: 1;
}

.post-actions .btn.liked {
  color: var(--color-danger);
}

.like-form {
  flex: 1;
  display: contents;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  min-width: 150px;
  z-index: 100;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 15px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  box-shadow: none;
  text-shadow: none;
  font-weight: normal;
}

.dropdown-item:hover {
  background: var(--bg-light);
  box-shadow: none;
}

.text-danger {
  color: var(--color-danger);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

/* =====================================================
   CREATE POST CARD
   ===================================================== */
.create-post-card {
  margin-bottom: var(--spacing-xl);
}

.create-post-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.post-textarea {
  flex: 1;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 10px;
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  resize: none;
  min-height: 60px;
  transition: border-color 0.2s;
  margin-bottom: 0;
}

.post-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.media-preview {
  position: relative;
  margin: 15px 0;
  max-width: 100%;
}

.media-preview img,
.media-preview video {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
}

.remove-media {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
}

.create-post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.post-options-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.media-upload-btn {
  gap: 6px;
}

/* =====================================================
   COMMENTS SECTION
   ===================================================== */
.comments-section {
  margin-top: var(--spacing-lg);
}

.comment-divider {
  margin: 10px 0;
  border: none;
  border-top: 1px solid var(--border-light);
}

.comments-list {
  margin-bottom: var(--spacing-lg);
}

.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 100% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.comment-content {
  flex: 1;
}

.comment-bubble {
  background: var(--bg-light);
  padding: 8px 12px;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-light);
  display: inline-block;
  max-width: 100%;
}

.comment-author {
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  text-decoration: none;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-text {
  margin: 4px 0 0 0;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  word-wrap: break-word;
}

.comment-meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  padding-left: 12px;
}

.view-all-comments {
  display: block;
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-lg);
}

.comment-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-input {
  flex: 1;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 8px 12px;
  font-size: var(--font-size-base);
  margin-bottom: 0;
}

.comment-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* =====================================================
   FLASH MESSAGES
   ===================================================== */
.flash {
  padding: 12px 20px;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
  transition: opacity 0.3s, transform 0.3s;
}

.flash.success {
  background-color: var(--color-success-bg);
  border: 2px solid var(--color-success);
  color: var(--color-success-text);
}

.flash.error {
  background-color: var(--color-danger-bg);
  border: 2px solid var(--color-danger);
  color: var(--color-danger-text);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--text-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-md);
  z-index: 9999;
  opacity: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.3s, opacity 0.3s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =====================================================
   NO CONTENT STATES
   ===================================================== */
.no-posts,
.no-content-box {
  text-align: center;
  padding: 30px 15px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

.no-posts h3,
.no-content-box h3 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.no-posts p,
.no-content-box p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: var(--font-size-base);
}

.no-content {
  color: var(--text-secondary);
  font-style: italic;
  padding: 15px 0;
  font-size: var(--font-size-base);
}

/* Character Counter */
.char-counter {
  display: block;
  font-size: var(--font-size-sm);
  margin-top: 5px;
  text-align: right;
}

/* =====================================================
   FRIENDS PAGES
   ===================================================== */
.friend-requests-grid,
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.friend-request-card,
.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--spacing-lg);
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: box-shadow 0.2s;
}

.friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 100% !important;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.friend-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 100% !important;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.friend-request-info,
.friend-card-info {
  flex: 1;
}

.friend-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 3px;
}

.friend-name:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.request-time,
.friends-since {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.friend-request-actions,
.friend-card-actions {
  display: flex;
  gap: 8px;
}

.friend-request-buttons {
  display: flex;
  gap: 8px;
}

/* =====================================================
   PROFILE PAGE
   ===================================================== */
.cover {
  background-color: var(--bg-cream);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 2px 0 var(--color-secondary-light);
  padding: var(--spacing-xl);
  display: flex;
  align-items: flex-end;
  position: relative;
  gap: var(--spacing-xl);
}

.profile-pic {
  width: 140px;
  height: 140px;
  border: 3px solid var(--border-color);
  border-radius: 100% !important;
  object-fit: cover;
  background-color: var(--bg-white);
}

.profile-pic-chat {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-color);
  border-radius: 100% !important;
  object-fit: cover;
  background-color: var(--bg-white);
}

.profile-name {
  font-size: var(--font-size-2xl);
  font-weight: bold;
  color: var(--text-primary);
}

.friend-msg-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edit-profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
/* Navigation Tabs */
.nav-tabs {
  background-color: var(--bg-cream);
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  display: flex;
  gap: 25px;
  padding: 10px 20px;
  font-size: var(--font-size-md);
  font-weight: bold;
}

.nav-tabs a {
  color: var(--text-link);
}

.nav-tabs a:hover {
  text-decoration: underline;
}

/* =====================================================
   MESSAGES / CHAT
   ===================================================== */
.chat-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
}

.bubble {
  max-width: 70%;
  padding: 10px 12px;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  font-size: var(--font-size-md);
}

.bubble.me {
  margin-left: auto;
  background: var(--color-primary-light);
  color: white;
  border-color: var(--color-primary-dark);
}

.bubble.them {
  margin-right: auto;
  background: var(--bg-light);
  color: var(--text-primary);
}

.bubble small {
  display: block;
  opacity: 0.7;
  margin-top: 6px;
  font-size: var(--font-size-xs);
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-form textarea {
  flex: 1;
  resize: vertical;
  min-height: 44px;
}

/* =====================================================
   FRIENDS LIST SIDEBAR
   ===================================================== */
.friends-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.friends-list li {
  margin-bottom: 6px;
}

.friends-list a {
  color: var(--text-link);
}

.friends-list a:hover {
  text-decoration: underline;
}

/* Person Avatar (old style) */
.person-avatar {
  width: 45px;
  height: 45px;
  border-radius: var(--border-radius);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* =====================================================
   CARD COMPONENT
   ===================================================== */

.card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
}

.card:not(:first-child) {
  margin-top: var(--spacing-lg);
}

.card + .card {
  margin-top: var(--spacing-lg);
}

.card h2 {
  margin: 0 0 15px 0;
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  text-align: center;
  color: white;
  font-size: var(--font-size-sm);
  padding: 10px;
  text-shadow: 1px 1px #000;
}

.footer-nav {
  display: inline-block;
  margin-bottom: 50px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* XP Background Footer */
body.xp-bg footer {
  position: absolute;
  bottom: 5px;
  width: 100%;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 768px) {
  .feed-layout,
  .container {
    flex-direction: column;
  }

  .people-sidebar,
  .sidebar {
    width: 100%;
    order: 2;
  }

  .post-feed,
  .content-wrapper {
    width: 100%;
    order: 1;
  }

  .friend-requests-grid,
  .friends-grid {
    grid-template-columns: 1fr;
  }

  .create-post-actions {
    flex-direction: column;
    gap: 10px;
  }

  .post-options-left {
    width: 100%;
    justify-content: space-between;
  }

  .btn-post {
    width: 100%;
  }

  .header-nav {
    display: none;
  }

  .user-name {
    display: none;
  }

  .notification-dropdown,
  .user-menu-dropdown {
    width: 280px;
  }

  .search-form {
    display: none;
  }

  .header-left {
    gap: 10px;
  }

  .cover {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .friend-msg-actions {
    margin-left: 0;
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .post-actions {
    flex-wrap: wrap;
  }

  .action-btn {
    flex: 1 1 45%;
  }

  .friend-request-card,
  .friend-card {
    flex-direction: column;
    text-align: center;
  }

  .friend-request-actions,
  .friend-card-actions {
    width: 100%;
    justify-content: center;
  }
}
