/* =========================
   MOBILE UI FIX (Header + Feed + Auth + Profile)
   Clean responsive version
========================= */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
     width: 100%;
     padding-bottom: 90px;
    font-family: 'Inter', sans-serif;
    background-color: #F5F7FC;
    background-image: url('/images/logo_BG.png');
    background-repeat: repeat;
    background-position: top left;

}
.terms-checkbox {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    width: 100%;

    font-size: 13px;

    line-height: 1;
}


.terms-input {

    width: auto !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    position: static !important;
}
.turnstile-wrapper {

    width: 100%;

    display: flex;

    justify-content: center;

    overflow: hidden;

    margin: 10px 0;
}


@media (max-width: 400px) {

    .cf-turnstile {

        transform: scale(0.80);

        transform-origin: center;

        margin: -8px 0;

    }
}


@media (max-width: 330px) {

    .cf-turnstile {

        transform: scale(0.72);

        margin: -15px 0;

    }
}
/* =========================
   TOPBAR / HEADER
========================= */

.topbar {
    direction: ltr; /* forces layout order */
    display: flex;
    align-items: center;
    justify-content: space-between;
     position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
   background: #5B5BD6;
    color: #1E2230;
    z-index: 19999;
    border:solid 1px #5B5BD6;
    border-radius:5px;
    backdrop-filter: blur(12px);
    transition: transform 0.22s ease;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}


.header-left {
    flex: 0;
}

/* center container */
.topbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* MOBILE logo hidden by default */


/* DESKTOP text visible by default */
.desktop-title {
    display: block;
    width:100%;
    font-size:1.2em;
    letter-spacing:1.3;
    margin:auto;
    color:#eee5f5;
    font-weight:700;
}

/* MOBILE VIEW */
@media (max-width: 600px) {

    .desktop-title {
    font-size:13px;
     letter-spacing:-0.3px;
    }
}
@media (max-width: 600px) {
    .topbar {
        height:40px;
    }
}
.header-right {
    flex: 0;
}

/* keep username text correct */
.username-fixed {
    direction: ltr;
    unicode-bidi: isolate;
}
.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 6px;
}
@media (max-width: 600px) {
    .header-avatar {
        display: none;
    }
}


.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


.welcome {
width:100%;
    font-size: 13px;
    opacity: 0.9;
    text-align:left;
    left:0;
}
.welcome2 {
    font-size: 20px;
   
    text-align:right;
    margin-bottom:10px;
}

button {
    background: #5B5BD6;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}



/* Delete button */
.delete-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
}

.delete-btn:hover {
    color: #c00;
}
/* =========================
   AUTH PAGES (login/register)
========================= */

.auth-container {
    max-width: 380px;
    margin: 80px auto;
    background: white;
    padding: 25px;
    margin-top: 10vh;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.auth-title {
    text-align: center;
    color: #130213130213;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
}

.auth-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.auth-container input:focus {
    border-color: #130213130213;
}

.auth-container button {
    width: 100%;
    padding: 10px;
    background: #5B5BD6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.auth-container button:hover {
    opacity: 0.9;
}

.auth-link {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
}

.auth-link a {
    color: #130213130213;
    text-decoration: none;
}

/* =========================
   PROFILE PAGE
========================= */

.profile-header {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.profile-username {
    font-size: 20px;
    font-weight: bold;
    color: #130213130213;
}

.profile-email {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

.profile-stats {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.profile-posts-title {
    margin: 20px 0 10px;
    font-weight: bold;
    color: #333;
}



.footer {
   bottom:20;
    font-size: 13px;
    color: #5B5BD6;
    text-align: center;
}
.page {
    max-width: 700px;
    margin: 0 auto;
 padding-top: 15px; /* important: pushes content below header */
}
@media (max-width: 600px) {
    .page {
       padding-top: 5px;
    }
}
@media (max-width: 600px) {
    .auth-container {
        margin-top:-px;
    }
}
@media (max-width: 600px) {
    .lang {
        top: 10px;
        right: 10px;
        font-size: 13px;
        padding: 5px 8px;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* LIKE BUTTON */
.like-btn {
    margin-top: 8px;
    border: none;
    background: #5B5BD6;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.like-btn.liked {
    color: #e0245e;
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {

    .container {
        margin: 70px 0 10px 0;
        padding: 8px;
    }



    textarea {
        font-size: 16px; /* prevents zoom on iPhone */
    }

    .like-btn {
        width: 100%;
        text-align: center;
    }
}
#newBanner {
    font-weight: bold;




    box-sizing: border-box;
}

/* CONTAINER */
.container {
    max-width: 650px;
    margin: 90px auto 20px auto;
    padding: 10px;
}
.settings-page {
    max-width: 700px;
    margin: 100px auto;
    padding: 20px;
}

.settings-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 25px;
}

.settings-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.settings-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.settings-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}

.settings-card button {
    background: #5B5BD6;
    color: white;
    border: 0;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.success {
    color: green;
    font-weight: bold;
    margin-bottom: 15px;
}


 .mobile-menu {
    display: none;
    position: relative;
    margin-left: 6px;
    margin-right: 6px;
}

.menu-toggle {
    background: none;
    border: none;
    color: #eee5f5;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* drawer fixed to actual button */
.mobile-drawer {
    display: none;

    position: fixed;
top: 50px;
right: 15px;

    width: 220px;
    min-width: 220px;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);

    overflow: hidden;
    z-index: 99999;
}

.mobile-drawer.open {
    display: block;
}

.mobile-drawer a {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #eee;
}

.mobile-drawer a:last-child {
    border-bottom: none;
}

/* mobile only */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-right,
    .lang-switch {
        display: none;
    }

    .topbar-center {
        font-size: 14px;
      
        width:100%;
        text-align:center;
    }
}
.back-btn {
    font-size: 22px;
    cursor: pointer;
    background: none;
    border: none;
}
/* PAGE TRANSITION BASE */
.page {
    animation: pageFadeIn 0.25s ease;
}

/* fade + slight upward motion */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* EXIT ANIMATION */
.page.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
}
.suggested-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.suggested-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.username-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}
/* smooth animation */
.topbar {
    transition: transform 0.3s ease;
}

/* hidden state */
.topbar.hide {
    transform: translateY(-100%);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    background: none;

    border: none;

    cursor: pointer;

    color: #777;

    font-size: 16px;
}
.remember-me {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    font-size: 14px;

    cursor: pointer;
}

.remember-me input[type="checkbox"] {

    width: 16px;
    height: 16px;

    margin: 0;
}