body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b0b0b;
  color: #fff;
}

/* ================= GLOBAL SCROLL FIX ================= */

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

/* ================= SCREENS ================= */

.screen {
  display: none;
  padding: 16px;
  min-height: 100vh;
  flex-direction: column;
}

/* ACTIVE SCREEN */
.screen.active {
  display: flex;
  flex-direction: column;
}

/* AUTH SCREEN CENTERING */
#authScreen.active {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ================= INPUTS ================= */

input,
textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  background: #161616;
  border: 1px solid #2a2a2a;
  color: white;
  border-radius: 8px;
  box-sizing: border-box;
}

/* ================= GLOBAL BUTTON ================= */

button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #FFD700;
  color: #9000e3;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= AUTH BUTTON STACK FIX ================= */

#authScreen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

/* ensures top-to-bottom clean stacking */
#authScreen input,
#authScreen button {
  width: 100%;
}

/* ================= APP LAYOUT FIX ================= */

#appScreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  flex-direction: column;
}

/* ================= SCROLL CONTAINER (FIXED) ================= */

#scrollContainer {
  flex: 1;
  min-height: 0; /* 🔥 CRITICAL FIX */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 90px;
}

/* ================= BOTTOM NAV ================= */

#bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  flex-wrap: nowrap;

  background: #161616;
  border-top: 2px solid #FFD700;

  z-index: 999;
  height: 60px;
  flex-shrink: 0;
}


/* NAV BUTTONS */
#bottomNav button {
  flex: 1;
  width: auto;
  min-width: 0;

  font-size: 14px;
  font-weight: bold;

  background: #FFD700;
  color: #9000e3;

  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;
  padding: 0;

  margin: 0;
  border-right: 1px solid #111;
}


#bottomNav button:last-child {
  border-right: none;
}


#bottomNav button:hover {
  background: #e6c200;
}


#bottomNav button:active {
  transform: scale(0.98);
}

/* ================= CARDS ================= */

.card {
  background: #161616;
  border: 1px solid #2a2a2a;
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
}

/* ================= FEED ACTIONS ================= */

.feed-actions {
    display:flex;
    justify-content:space-around;
    margin-top:12px;
    padding-top:8px;
    border-top:1px solid #333;
}

.feed-actions button {
    width:auto;
    margin-top:0;
    padding:10px 22px;
    font-size:15px;
    min-height:40px;
    flex:none;
}

.feed-actions .comment-button {
  flex-basis:100%;
}

/* ================= UTILITIES ================= */

.hidden {
  display: none !important;
}

/* ================= MODALS ================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none !important;
}

.modal-box {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
}

/* ================= AUTH FORM SCROLL FIX ================= */

#authScreen {
  max-width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}


#authScreen .card {
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
  margin-bottom: 40px;
}


/* allow signup fields to extend beyond screen */

#authScreen select,
#authScreen input,
#authScreen button {
  flex-shrink: 0;
}
/* ================= AUTH FORM SCROLL FIX ================= */

#authScreen {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 100vh;
    padding-bottom: 30px;
    box-sizing: border-box;
}


#authScreen .card {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.display-name-link,
.club-name-link,
.events-link,
.theme-night-link{
  
    color: #FFD700;
    text-decoration: none;
}

.display-name-link:hover,
.club-name-link:hover,
.events-link:hover,
.theme-night-link:hover{
    color: #f0c75e;
}
