/* ────────────────────────────────────────────────
   Shift Pour - Global Base Styles
───────────────────────────────────────────────── */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f0f0f;
  color: #eee;
  min-height: 100vh;
  padding: 1rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #222;
  height: 56px;
  position: relative;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.logo {
  height: 28px;
  max-height: 28px;
  margin-bottom: 2px;
}

.header-date {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.header-right {
  width: 36px;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f7cc2;
  letter-spacing: -0.5px;
}

/* ────────────────────────────────────────────────
   Hamburger Menu + Sidebar
───────────────────────────────────────────────── */

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger span {
  width: 20px;
  height: 2.5px;
  background: #1f7cc2;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -282px;
  width: 280px;
  height: 100%;
  background: #0d2b41;
  border-right: 2px solid #1f7cc2;
  box-shadow: 2px 0 10px rgba(0,0,0,0.5);
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  padding: 5px 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-btn {
  background: none;
  border: none;
  color: #eee;
  font-size: 2rem;
  cursor: pointer;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.nav-item {
  padding: 1rem 1.5rem;
  color: #eee;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.nav-item:hover {
  background: #1f7cc2;
  color: white;
}

.nav-item i {
  margin-right: 10px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ────────────────────────────────────────────────
   Common Form/Input/Button Elements
───────────────────────────────────────────────── */

input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1a1a1a;
  color: #eee;
  font-size: 1rem;
}

button, .btn, .submit-btn {
  padding: 0.75rem 1.25rem;
  background: #1f7cc2;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover, .btn:hover, .submit-btn:hover {
  background: #1a6ab0;
}

label {
  font-weight: 600;
  color: #ccc;
  margin-bottom: 0.4rem;
  display: block;
}

/* ────────────────────────────────────────────────
   Login Page Specific
───────────────────────────────────────────────── */

.login-box {
  max-width: 360px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.login-box h1 {
  color: #1f7cc2;
  margin-bottom: 1.5rem;
}

.btn-google {
  background: #4285f4;
  color: white;
}

.btn-email {
  background: #333;
  color: #eee;
  border: 1px solid #555;
}

.btn-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1877f2;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  max-width: 360px;
  margin: 0.8rem auto;
}

.btn-fb:hover {
  background: #166fe5;
}

.or {
  margin: 1.5rem 0;
  color: #777;
}

/* ────────────────────────────────────────────────
   Index / Bartender Feed Page
───────────────────────────────────────────────── */

.search-bar {
  margin: 1.5rem 0;
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bartender-list {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin: 1.5rem auto;
}

.bartender-card {
  background: #171717;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  transition: all 0.18s ease;
  overflow: hidden;
  position: relative;
}

.bartender-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #333;
  object-fit: cover;
  flex-shrink: 0;
}

.info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.name-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f7cc2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  background: rgba(31, 124, 194, 0.18);
  color: #8cc4ff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 124, 194, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.location,
.shift-time {
  font-size: 0.92rem;
  color: #bbb;
  margin: 0.15rem 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location {
  color: #ccc;
}

.follow-btn {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 90px;
  text-align: center;
  flex-shrink: 0;
  overflow: hidden;
}

.follow-btn:not(.following) {
  background: #222;
  border: 1px solid #444;
  color: #ccc;
}

.follow-btn:not(.following):hover {
  background: #2a2a2a;
  color: white;
}

.follow-btn.following {
  background: #1f7cc2;
  border-color: #1f7cc2;
  color: white;
}

.follow-btn.following:hover {
  background: #1a6ab0;
}

.map-pin {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  fill: #1f7cc2;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.map-pin:hover {
  opacity: 1;
}

a.map-pin-link {
  text-decoration: none;
  color: #ccc;
}

i.fas {
  margin-right: 2px;
}

.icon-happyhour { color: #9f05b4; }
.icon-karaoke   { color: #7c7a7a; }
.icon-trivia    { color: #ffca43; }
.icon-map       { color: #1f7cc2; }

/* ────────────────────────────────────────────────
   Post Shift Form Specific
───────────────────────────────────────────────── */

.post-title {
  margin: 1.5rem 0 1rem;
  font-size: 2rem;
  text-align: center;
  color: #1f7cc2;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: #222;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.tag.active {
  background: #1f7cc2;
  color: white;
}

.submit-btn {
  padding: 1rem;
  font-size: 1.1rem;
}

.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #1f7cc2;
  color: white;
  border-radius: 8px;
  text-align: center;
}

/* ────────────────────────────────────────────────
   Shared Small Avatar / User Preview
───────────────────────────────────────────────── */

.user-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 10px 20px;
  font-size: 1.1rem;
}

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

/* ────────────────────────────────────────────────
   Mobile Adjustments (matched to original working version)
───────────────────────────────────────────────── */

@media (max-width: 480px) {
  .bartender-card {
    padding: 8px 10px;
    gap: 20px;
  }
  .avatar {
    width: 50px;
    height: 50px;
    border: 1px solid #1f7cc3;
  }
  .name {
    font-size: 1.15rem;
  }
  .badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
  }
  .location,
  .shift-time {
    font-size: 0.88rem;
  }
  .follow-btn {
    min-width: 44px;
    padding: 0.5rem;
    font-size: 0;
    width: 44px;
    height: 36px;
  }
  .follow-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
  }
  .follow-btn:not(.following)::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ccc" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>');
  }
  .follow-btn.following::before {
    background-image: url('data:image/svg+xml;