/* Inter for body text */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Rubik for headings */
@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background-color: #131419;
    color: #E0E0E0;
    margin: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    margin: 0;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header --- */
.header-con {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgb(7 7 9 / 80%);
    padding: 0 12px;
    height: 64px;
}

.header-site {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: rgb(255 255 255 / 90%);
}

/* --- Header Navigation --- */
.hamburger {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    padding: 7px;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid #394056;
    background: #1f2330;
}

.hamburger img {
    width: 100%;
    height: 100%;
    opacity: .6;
}

.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    transform: translateX(-100%);
    opacity: 0;
    background: #090a0c;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 10000;
    will-change: transform, opacity;
}

.main-menu.open {
    transform: translateX(0);
    opacity: 1;
    padding: 20px;
}

.menu-item-row {
    display: flex;
    flex-direction: column;
}

.main-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff0d;
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    padding: 4px 8px;
    border-radius: 8px;
}

.sub-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    transition: max-height 0.2s ease, padding 0.2s ease;
}

.sub-menu.sm-show {
    padding: 10px;
    max-height: 500px;
}

.sub-menu-item a {
    display: block;
    color: #ffffffab;
    text-decoration: none;
    font-size: 20px;
}

.nav-dropdown {
    display: flex;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 6px;
}

.nav-dropdown img {
    width: 100%;
    height: 100%;
    opacity: .4;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 990;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    will-change: opacity;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Content --- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.page-container, .post-container {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    flex: 1;
    padding: 0 10px;
    margin: 10px 0 40px 0;
    width: 100%;
    max-width: 1600px;
    box-sizing: border-box;
}

/* Lazy Load Images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

img[data-src].loaded {
    opacity: 1;
}

.u-free {
    background: linear-gradient(to bottom right, #26bea0, #14c122);
}

.u-premium {
    background: linear-gradient(to bottom right, #4d88ff, #884dff);
}

/* Pagination */
.rb-pagination {
    margin: 14px auto;
}

.rb-pagination-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    white-space: nowrap;
    gap: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #272d3e;
    border-radius: 8px;
    color: #fff;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    font-weight: 600;
    border: 2px solid transparent;
    transition: background-color 0.1s ease-in, color 0.1s ease-in, border-color 0.1s ease-in;
}

.page-numbers.current,
.page-numbers:focus,
.page-numbers:hover {
    background-color: #131820;
    color: #33aaff;
    border-color: #3af;
}

/* --- Jump to Page --*/
.page-num-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 40px;
    font-size: 18px;
    line-height: 1.4;
}

.page-input-container, .page-input-container input {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

#page-num-input {
    width: 80px;
    height: 40px;
    text-align: center;
    box-sizing: border-box;
}

.page-num-box span {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #272d3e;
    color: #ffffffd4;
    padding: 6px;
    cursor: pointer;
    border-radius: 8px;
    height: 40px;
    min-width: 40px;
    box-sizing: border-box;
}

.page-num-box img {
    width: 22px;
    height: 22px;
    opacity: .8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 6px;
    border-radius: 5px;
}

::-webkit-scrollbar-track {
    background: #232939;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #3c455d;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505c7c;
}

/* Form & Input Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

/* Shared styles for input + textarea */
input,
textarea {
  box-sizing: border-box;
  padding: 7px 8px;
  border: 1px solid #ffffff1c;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  background-color: #272d3e;
  outline: none;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, color 0.2s ease;
}

input {
  height: 44px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}


input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, .7);
    transition: color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #ffffff;
}

input[readonly] {
    cursor: not-allowed;
    color: rgba(255, 255, 255, .5);
    border-color: transparent;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    background-color: #00000042;
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    box-sizing: border-box;
}

input[type="checkbox"]:checked {
    border-color: #3b7bb0;
    background-image: url('https://site-assets-rb.b-cdn.net/forms/checkmark.svg');
}

.form-div-col {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #e2e4e9;
    font-size: 17px;
}

.form-div-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sect-title {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    color: #ffffff;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    background: #3b7bb0;
    color: #ffffff;
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0px 2px 4px #00000069;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.submit-btn:hover,
.submit-btn:active {
    background: #ffffffde;
    color: #000000e7;
}

/* Bottom Nav Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 54px;
  background-color: rgb(7 7 9 / 80%);
  backdrop-filter: blur(10px) brightness(0.6);
  -webkit-backdrop-filter: blur(10px) brightness(0.6);
  z-index: 10010;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  display: flex;
  justify-content: center;
}

.nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.bottom-nav.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
}

.nav-item {
	display: flex;
	justify-content: center;
    align-items: center;
    flex-grow: 1;
    font-size: 20px;
    transition: color 0.3s ease;
}

.nav-item:hover {
  color: #fff;
}

.nav-icon {
  max-height: 26px;
  width: auto;
  display: block;
  margin: 0 auto;
  opacity: .8;
}

.nav-icon-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
}

.notification-dot {
    box-sizing: border-box;
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #5fc2ff;
    border-radius: 50%;
	border: 2px solid #070709;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

@keyframes click-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.nav-item.click-animation {
  animation: click-animation 0.3s ease;
}