/**
 * AnteEnti Telugu Q&A UI - Mobile Bottom Navigation
 *
 * Purpose:
 * - Native-app style bottom navigation
 * - Mobile only
 * - Does not affect Neve desktop/mobile menu
 */


/* ---------------------------------------------------------
   1. Default Hidden
--------------------------------------------------------- */

.anteenti-mobile-bottom-nav {
	display: none;
}


/* ---------------------------------------------------------
   2. Mobile Bottom Nav
--------------------------------------------------------- */

@media (max-width: 768px) {
	body.anteenti-qa-ui .anteenti-mobile-bottom-nav {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: 12px;
		z-index: 9999;

		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		align-items: center;
		gap: 4px;

		min-height: 66px;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));

		background: rgba(255, 250, 241, 0.96);
		border: 1px solid var(--anteenti-color-border);
		border-radius: 24px;
		box-shadow: 0 12px 36px rgba(84, 19, 29, 0.18);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-item {
		position: relative;

		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;

		min-width: 0;
		min-height: 50px;
		padding: 5px 4px;

		color: var(--anteenti-color-muted);
		border-radius: 18px;

		font-family: var(--anteenti-font-main);
		text-decoration: none;

		transition:
			background-color var(--anteenti-transition-fast),
			color var(--anteenti-transition-fast),
			transform var(--anteenti-transition-fast);
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-item:hover {
		color: var(--anteenti-color-primary);
		text-decoration: none;
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;

		width: 22px;
		height: 22px;

		font-size: 1.05rem;
		line-height: 1;
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-label {
		display: block;
		max-width: 100%;

		font-size: 0.72rem;
		font-weight: 600;
		line-height: 1.15;

		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-item.is-active {
		background: var(--anteenti-color-primary-soft);
		color: var(--anteenti-color-primary-dark);
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-ask {
		margin-top: -20px;
		min-height: 58px;
		background: var(--anteenti-color-action);
		color: #ffffff;
		border-radius: 999px;
		box-shadow: 0 10px 26px rgba(31, 138, 76, 0.3);
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-ask .anteenti-mobile-nav-icon {
		width: 28px;
		height: 28px;
		font-size: 1.35rem;
		font-weight: 700;
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-ask .anteenti-mobile-nav-label {
		font-size: 0.72rem;
		font-weight: 700;
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-ask:hover,
	body.anteenti-qa-ui .anteenti-mobile-nav-ask.is-active {
		background: var(--anteenti-color-action-dark);
		color: #ffffff;
		transform: translateY(-1px);
	}
}


/* ---------------------------------------------------------
   3. Small Mobile
--------------------------------------------------------- */

@media (max-width: 380px) {
	body.anteenti-qa-ui .anteenti-mobile-bottom-nav {
		left: 8px;
		right: 8px;
		bottom: 8px;
		border-radius: 22px;
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-label {
		font-size: 0.66rem;
	}

	body.anteenti-qa-ui .anteenti-mobile-nav-icon {
		font-size: 0.98rem;
	}
}


/* ---------------------------------------------------------
   4. Desktop Safety
--------------------------------------------------------- */

@media (min-width: 769px) {
	body.anteenti-qa-ui .anteenti-mobile-bottom-nav {
		display: none !important;
	}
}
/* =========================================================
   Step 17 - Mobile Bottom Navigation Final Polish
   Scope: Q&A UI pages only
   ========================================================= */


/* ---------------------------------------------------------
   1. Bottom nav shell
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-mobile-bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 9999;

  width: calc(100% - 24px);
  max-width: 520px;
  min-height: 66px;

  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 4px;

  padding: 8px 8px;

  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(143, 29, 35, 0.14);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(35, 31, 32, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}


/* Show only on mobile/tablet */
@media (max-width: 768px) {
  body.anteenti-qa-ui .anteenti-mobile-bottom-nav {
    display: flex;
  }
}


/* ---------------------------------------------------------
   2. Nav item base
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-mobile-nav-item {
  position: relative;

  flex: 1 1 0;
  min-width: 0;
  min-height: 50px;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  padding: 6px 4px;

  color: #6b625f;
  font-family: "Anek Telugu", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;

  border-radius: 18px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

body.anteenti-qa-ui .anteenti-mobile-nav-item:hover,
body.anteenti-qa-ui .anteenti-mobile-nav-item:focus {
  color: #8f1d23;
  background: rgba(143, 29, 35, 0.07);
  text-decoration: none;
}


/* ---------------------------------------------------------
   3. Icons
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-mobile-nav-icon {
  width: 24px;
  height: 24px;

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

  color: inherit;
  font-family: "Anek Telugu", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

body.anteenti-qa-ui .anteenti-mobile-nav-label {
  display: block;
  width: 100%;
  max-width: 100%;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  color: inherit;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
}


/* ---------------------------------------------------------
   4. Active state
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-mobile-nav-item.is-active {
  color: #8f1d23;
  background: #fff2d6;
}

body.anteenti-qa-ui .anteenti-mobile-nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 18px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #8f1d23;
}


/* ---------------------------------------------------------
   5. Ask button special treatment
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-mobile-nav-ask {
  color: #ffffff;
  background: #8f1d23;
  box-shadow: 0 10px 24px rgba(143, 29, 35, 0.28);
}

body.anteenti-qa-ui .anteenti-mobile-nav-ask:hover,
body.anteenti-qa-ui .anteenti-mobile-nav-ask:focus {
  color: #ffffff;
  background: #72171c;
}

body.anteenti-qa-ui .anteenti-mobile-nav-ask .anteenti-mobile-nav-icon {
  font-size: 24px;
}

body.anteenti-qa-ui .anteenti-mobile-nav-ask.is-active {
  color: #ffffff;
  background: #72171c;
}

body.anteenti-qa-ui .anteenti-mobile-nav-ask.is-active::before {
  background: #ffffff;
}


/* ---------------------------------------------------------
   6. Safe spacing so content does not hide behind nav
--------------------------------------------------------- */

@media (max-width: 768px) {
  body.anteenti-qa-ui {
    padding-bottom: 92px;
  }

  body.anteenti-qa-ui #content,
  body.anteenti-qa-ui .neve-main {
    padding-bottom: 92px;
  }
}


/* ---------------------------------------------------------
   7. Prevent duplicate bottom nav display if accidentally rendered twice
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-mobile-bottom-nav + .anteenti-mobile-bottom-nav {
  display: none !important;
}


/* ---------------------------------------------------------
   8. Very small mobile screens
--------------------------------------------------------- */

@media (max-width: 380px) {
  body.anteenti-qa-ui .anteenti-mobile-bottom-nav {
    width: calc(100% - 16px);
    bottom: 8px;
    min-height: 62px;
    padding: 7px 6px;
    border-radius: 22px;
  }

  body.anteenti-qa-ui .anteenti-mobile-nav-item {
    min-height: 48px;
    padding-left: 2px;
    padding-right: 2px;
  }

  body.anteenti-qa-ui .anteenti-mobile-nav-label {
    font-size: 10px;
  }

  body.anteenti-qa-ui .anteenti-mobile-nav-icon {
    font-size: 19px;
  }
}