:root{
    --bg:#EBDFCB;
    --muted:#AAAAAA;
    --accent:#986C4A;
    --accent_hover:#8b6445;
    --accent_dark:#ad917c;
    --licorice:#22181C;
    --darkred:#5A0001;


    --post-font-size: 16px;
    --post-text-color: #000000;
    --post-bg-color: #ffffff;
    
}

html {
  background: #ffffff; /* фон страницы = белый */
}


body {
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400; 
    min-height: 100vh;
    padding-bottom: 1px;
}

*, *::after, *::before {
    box-sizing: border-box;
}
*{margin:0;padding:0}

a {
    all: unset;
}

input:focus,
a:focus {
  outline: none;
}

input {
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: normal;
}

.post-container p {
  padding: 0 0 1.5em; /* делаем нижний отступ, имитирующий пустую строку */
}

ul, ol {
  list-style-position: inside;
}

.clear{
    clear: both;
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none;
}

/* header */

header {
    height: 70px;   
    padding: 0 20px 0 10px;
    /* background: #ff0000; */

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    
}

.logo{
    height:100%;
    width: auto;
    float: left;
    cursor: pointer;
    margin-left: 30px;
}



.navbar{
    /* background-color: aqua; */
    display: flex;
    float: right;
    gap: 80px;
    align-items: center;
    height:100%;
}

.navbar_block{
    text-transform: uppercase;
    color: #706868;
    font-size: 15px;
    transition: color 0.3s ease;

    cursor: pointer;
    /* font-weight: 300; */
}

.navbar_block:hover{
    color: #9c9696;
}



.profile_picture{
    height: 100%;
    width: 50px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid black;
    float: right;
    margin-left: 10px;
}


.auth__header{
    /* margin-left: 20px; */
    margin-right: 5px;
    float: right;
    height: 50px;
    position: relative;

}




.mobile_navbar {
    display: none;
}

/* Для телефонов */
@media (max-width: 768px) {
    .logo{
        margin-left: 0;
    }

    body {
        min-height: calc(100vh - 60px);
        padding-bottom: 60px;
    }

    .navbar.desktop {
        display: none;
    }
    .mobile_navbar {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #fff;
        border-top: 1px solid #ccc;
        padding: 10px 0;
        z-index: 1000;

        -webkit-tap-highlight-color: transparent;
    }
    .mobile_navbar a {
        text-decoration: none;
        color: #333;
    }
    .mobile_navbar a:hover {
        /* background-color: rgb(227, 223, 223); */
    }

    body {
        padding-bottom: 60px; /* высота mobile_navbar */
    }
}




/* Notification */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 12px;

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
      /* cursor: pointer; */
}

.toast {
    min-width: 280px;
    padding: 14px 18px;

    background: #1f2937;
    color: white;

    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);

    font-family: sans-serif;
    font-size: 14px;

    opacity: 0;
    transform: translateX(100%);
    animation: toast-in 0.3s forwards;
    
    transition: all 0.3s ease;
    position: relative;
    max-height: 80px;
        
}

.toast.hide {
        max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}






/* 
    ABOUT US page 
*/

    /* animation */
@keyframes fadeUp {
    from {
    opacity: 0;
    transform: translateY(40px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

    /* Hero */
.hero, .about_us{
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 80px;
  gap: 30px;

  color: #3f3326;
  font-family: "Georgia", serif;
  line-height: 1.4;
}
.hero {
  padding-top: 30px;
}

.hero-text h1 {
  font-size: 64px;
  margin-bottom: 24px;
  font-weight: bold;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 32px;
}

.hero-text a {
  padding: 14px 32px;
  border-radius: 30px;
  border: 1px solid #3f3326;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.hero-text a:hover {
    padding: 14px 36px;
}

.hero-image {
  width: 55%;
  display: flex;
  align-items: center;
  padding-right: 20px;
}

.about_us_png{
    width: 100%;
}

    /* about_us section */

.about_us-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
}

.about_us-text p {
  margin-bottom: 32px;
}

.about_us-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: bold;
}

.about_us-text ul {
  list-style: disc;
  margin-left: 20px;
}

.about_us-text li {
  margin-bottom: 10px;
}

.about_us-image {
  /* width: 55%; */
  display: flex;
  align-items: center;
}

.about_us_png2{
    width: 100%;
}



@media (max-width: 768px) {
  .hero, .about_us{
    padding: 20px;
    /* gap: unset; */
  }
  .hero-text h1 {
    font-size: 48px;
      margin-bottom: 20px;
  }

  .about_us-text h2 {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .about_us-text h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }


  .hero-image {
    max-width: 250px;
  }

}

@media (max-width: 640px) {
  .hero, .about_us{
    /* gap: unset; */
    flex-direction: column;
  }

  .hero {
    padding-top: unset;
  }

  .hero-text{
    text-align: center;
  }

  .hero-image {
    margin: auto;

    padding-right: unset;
    /* margin-top: 220px;
    display: unset;
    align-items: unset;
     */
  }

  .about_us-image {
    position: absolute;
    width: 160px;
    right: 10px;
    top: 50%;
  }
}






/*registration page*/

.to_register_offer_block{
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* width: 100px;
    height: 50px; */
    /* background-color: white; */
    color: #706868;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 10px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.to_register_offer_block:hover{
    color: var(--accent);
    font-weight: bold;
    
}

.auth_form {
    max-width: 320px;
    margin: 80px auto 0;
    padding: 30px 25px;
    border-radius: 16px;
    background: #fff;
    text-align: center;

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.invite_form{
    max-width: 350px;
}



.auth_form_correction {
    padding-bottom: 14px;
}

.auth_form h1 {
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--accent);
    font-weight: bold;
}

.auth_form label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    text-align: left;
}

.forgot_password{
    display: block;
    font-size: 16px;
    margin-top: 16px;
    color: gray;
    text-align: center;
    transition: 0.2s;
}

.forgot_password:hover{
    color: rgb(149, 149, 149);
    text-decoration: underline;
}

.auth_input {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    margin-bottom: 16px;
    margin-top: 3px;
    border-radius: 10px;
    border: 2px solid #ccc;
    transition: 0.2s;
}

.disabled_auth_input{
    background-color: #ececec;
}

.auth_input:focus {
    border-color: #bebebe;
}

.auth_button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    margin-top: 3px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.auth_button:hover {
    background: var(--accent_hover);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}


@media (max-width: 768px) {
    .to_register_offer_block{
            bottom: 80px;
    }



}





/* MEMBERS SEARCH PAGE */

.members-page{max-width:1200px;margin:0 auto;padding:16px}
.profiles-grid{
    display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:20px;list-style:none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.profile-card{background:#fff;border-radius:16px;padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform .15s ease, box-shadow .15s ease;border:1px solid rgba(0,0,0,.06)}
.profile-card a{display:flex;flex-direction:column;align-items:center;gap:10px}
.avatar {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    overflow: hidden;
    object-fit: cover;
    display: block;
}
.name{font-size:15px;text-align:center;height: 40px;}
.profile-card:hover{transform:translateY(-2px);}
.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.search{flex:1 1 240px;display:flex;align-items:center}
.search input{width:100%;border:1px solid rgba(0,0,0,.12);border-radius:999px;padding:10px 14px;background:#fff;}
.tags{display:flex;gap:8px;flex-wrap:wrap}
.tag{font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:#fff;color:var(--accent)}
@media (min-width:768px){
    .profiles-grid{gap:24px}.avatar{width:96px;height:96px}.name{font-size:16px}
}




.tab-container-wrapper {
  width: 100%;
}

.tab-container {
  position: relative;
  width: 264px;
  margin: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;

  padding: 2px;

  background-color: #dfd1b7;
  border-radius: 9px;
}

.indicator {
  content: "";
  width: 130px;
  height: 28px;
  background: #ffffff;
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 9;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.12), 0px 3px 1px rgba(0, 0, 0, 0.04);
  border-radius: 7px;
  transition: all 0.2s ease-out;
}

.tab {
  width: 130px;
  height: 28px;
  position: absolute;
  z-index: 99;
  outline: none;
  opacity: 0;
}

.tab_label {
  width: 130px;
  height: 28px;

  position: relative;
  z-index: 999;

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

  border: 0;

  font-size: 15px;
  opacity: 0.6;

  cursor: pointer;
}

.tab--1:checked ~ .indicator {
  left: 2px;
}

.tab--2:checked ~ .indicator {
        left: 50%;
}

@media(max-width:600px){
    .tab-container {
        width: 100%;
    }
    
    .indicator {
        width: calc(50% - 2px);
    }

    .tab {
        width: calc(50% - 2px);
    }

    .tab_label {
        width: calc(50% - 2px);
    }
}



/* USER PAGE */
.profile_page {
    display: flex;
    gap: 20px;

}

.profile_left {
    width: 35%;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;

        
    align-items: center; 
}

.profile_right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 30px;
    padding-right: 20px;
}

.profile_user {
    /* background: #f9f9f9; */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.profile-date-clear-btn{
  position: absolute;
  bottom: -20px;
  right: -10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e0d3c6;
  cursor: pointer;
  font-size: 14px;
  color: #3e362f;
  transition: all 0.3s ease;
  background: #ffecd9;
  transition: all 0.3s ease;
}

.profile-date-clear-btn:hover{
  background: #ffddd9;
}

.profile_feed_header{
    text-align: center;
    margin-top: 15px;
}

.feed_header_dates{
    text-align: center;
    padding: 15px;
}

.profile_avatar{
	position: relative;
    width: 200px;
    aspect-ratio: 1;
    margin: 0 auto;
}
.profile_avatar_img {
    position: absolute;
    inset: 5%;
    
    width: 90%;
    height: 90%;
    
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

.pp_custom_deco {
    position: absolute;
	inset: -20%;
  width: 140%;
  height: 140%;
    object-fit: contain;

    z-index: 2;
    pointer-events: none;
}



.profile_dots_menu{
    position: absolute;
    top: 20px; 
    right: 20px;
    border-radius: 12px;
    background-color: #ffffffaf;
    padding: 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.profile_dots_menu:hover {
    background-color: #ececec;
}

.profile_name {
    margin: 10px 0;
    font-size: 24px;
}

.profile_follow_btn{
    width: 140px;
    padding: 10px;
    font-size: 16px;
    border: none;
    margin-bottom: 10px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.profile_unfollow_btn{
    background: #C97A6A;
}

.profile_follow_btn:hover {
    background: var(--accent_hover);
}

.profile_unfollow_btn:hover {
    background: #B46859;
}

.profile_bio {
    text-align: justify;

    /* background-color: white;
    padding: 15px;
    border-radius: 8px;  */
}

.profile_calendar {
    background-image: url("https://youst.kz/assets/img/calendar_bg2.png?v=2") !important;
  background-size: cover !important;
  background-position: center !important; 

}

.not_found_container{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.profile_not_found{
    color: #9c9696;
    margin-bottom: 20px;
}

.not_found_img{
    width: 300px;
}

 @media(max-width:800px){.profile_page{flex-direction:column;align-items:center}.profile_left{flex:none;width:100%;max-width:400px}.profile_right{width:100%;padding-right: unset;}
    .profile_feed_header{
        display: none;
    }
}

 /* ENTRY */



.post-container {
    background: #fff;
    margin: 5px auto 30px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    border-radius: 12px;
    position: relative;

    font-size: var(--post-font-size);
    color: var(--post-text-color);
    background: var(--post-bg-color);
    transition: all 0.3s ease;
    

    hyphens: auto;
    overflow-wrap: break-word;
}

.post-editor{
    hyphens: unset;
}

.hidden_post{
  background-image: url("/assets/img/hidden_post.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 40%;
}


.profile_right .post-container {
    margin: unset;
} /* REFACTOR */

.post_date{
    max-width: 80%;
}
.post_date_edit_page{
    margin-bottom: 10px;
    text-align: center;
    max-width: unset;
}

.post-content {
    margin-top: 20px;
    line-height: 1.6;

      /* display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3; 
    text-overflow: ellipsis; */
}

.post-content img{
    max-width: 100%;
}

.post-content a:link {
  color: #3366cc;
  text-decoration: underline;
}

.post-content a:visited {
  color: #663399; /* фиолетовый для посещённых */
  text-decoration: underline;
}

.post-content a:hover {
  color: #0056b3; /* темнее при наведении */
  text-decoration: underline;
}

.post-content a:active {
  color: #cc0000; /* красный во время клика */
  text-decoration: underline;
}




.post_author {
    text-align: center;
    color: var(--muted);
    position: absolute;
    width: 100px;
    top: 20px;
    right: 20px;

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

.post_author.post_author_for_entry {
    top: 80px;
    right: 20px;
    color: #706868;
    z-index: 1;
}

.avatar.post_avatar {
    width: 40px;
    height: 40px;
    margin: auto;
}

.post_author.post_author_for_entry .post_avatar{
    width: 60px;
    height: 60px;
}

.post-container-show_more {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--muted);

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
}

.nav-buttons a {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.nav-buttons a:hover {
    background: var(--accent_hover);
}

.dots_menu{
    position: absolute;
    top: 20px; /* фиксированная координата */
    right: 20px;
    border-radius: 12px;
    background-color: #ffffffaf;
    padding: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.dots_menu:hover {
    background-color: #ececec;
}

.dots_options_menu_wrapper{
  position: absolute;
  top: 70px;
  right: 8px;
  min-width: 140px;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 10;
}

.dots_options_menu{
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dots_options_menu_wrapper.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dots_option {
   padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
  transition: background 0.2s;
}

.dots_option_red{
    color: rgb(209, 90, 90);
}

.dots_option:hover {
    background-color: #f8f8f8;
}

.dots_info {
	background-color: #f0f0f0;
	color: gray;
	outline: 1px solid #d4d4d4;
    border-radius: 6px;
    /* text-align: center; */

    margin-top: 20px;
	min-width: 140px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	pointer-events: none;

	padding: 8px 10px;
	font-size: 14px;
}



.bookmark{
    position: absolute;
    top: 20px; /* фиксированная координата */
    right: 70px;
    border-radius: 12px;
    background-color: #ffffffaf;
    padding: 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.bookmark:hover {
    background-color: #ececec;
}

.hidden_icon{
    height: 45px;
  position: absolute;
  right: 120px;
  top: 20px;
  pointer-events: none;
  padding: 6px;
}

.hide_button{
    height: 50px;
    width: auto;
    position: absolute;
    top: 10px;
    right: 20px;
    border-radius: 12px;
    background-color: #ffffffaf;
    padding: 5px;
    cursor: pointer;
    transition: background 0.2s;
    color: #4caf50;
}

.hide_button:hover {
    background-color: #ececec80;
}


.sendpost_button {

    padding: 10px;
    font-size: 15px;
    border: none;
    margin-top: 3px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
	display: block;
	width: fit-content;
}

.sendpost_button.disabled {
    background-color: var(--muted);
}

.sendpost_button:hover {
    background: var(--accent_hover);
}

.sendpost_button.disabled:hover {
    background-color: var(--muted);
}



@media (max-width:500px){
    .sendpost_button {
        margin-top: 5px;
    }
}

/* POST SETTINGS */

.settings-block{
    position: absolute;
    top: 90px;
    right: 20px;
}

.settings-btn {
    background: none;
    background: rgba(255, 255, 255, 0.4);
    padding: 5px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    float: right;
    transition: background 0.2s;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

input[type="color"] {
    border: none;
    margin: 5px 0;
}

.settings-panel {
    opacity: 0;
    visibility: hidden;
    width: 200px;
    margin-top: 50px;
    background: white;
    background: #f9f3ee;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    position: absolute ;
    right: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 99;
}

.settings-panel.show {
    visibility: visible;
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.settings-panel label {
    display: block;
    margin: 8px 0 4px;
    font-size: 14px;
}
.settings-panel input {
    width: 100%;
    height: 35px;
    margin-bottom: 10px;
}
.settings-panel #fontSize{
   margin-top: 12px;
}

.settings-panel-select{
    width: 100%;
    height: 35px;
    margin-top: 5px;
    margin-bottom: 10px;
    background-color: white;
    background: #f9f3ee;
    text-align: center;
    transition: border 0.3s, box-shadow 0.3s;
    border: 1px solid #888;

    font-size: 14px;
    font-family: unset;
}


.reset-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    background-color: #C97A6A;
    transition: all 0.3s ease;

    font-size: 14px;
    font-family: unset;
}
.reset-btn:hover {
    background-color: #B46859;
}



input[type="range"] {
  -webkit-appearance: none;
  height: 6px;
  background: var(--bg); /* дорожка */
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent); /* цвет бегунка */
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--accent); /* цвет бегунка */
  border-radius: 50%;
  cursor: pointer;
}

/* POSTS FILTRATION */

.filter-block{
    position: absolute;
    top:150px;
    right: 20px;
    z-index: 98;
}

.filter-panel {
  opacity: 0;
  position: absolute;
  right: 0;
  top: 50px;

  width: 240px;
  background: #f9f3ee;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #ddd;


  /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.filter-panel.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.filter_options {
  display: flex;
  background: #efe6dd;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  transition: all 0.3s ease;
}

.filter_options:hover  {
  background: rgba(239, 230, 217, 1)
}

.filter_option {
  flex: 1;
  text-align: center;
  position: relative;
}

.filter_option input {
  display: none;
}

.filter_option span {
  display: block;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  color: #6f665f;
}

.filter_option input:checked + span {
  background: #e4d6c8;
  color: #3e362f;
}

.filter_calendar_options {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.filter_btn {
  flex: 2;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e0d3c6;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #3e362f;
  transition: all 0.3s ease;
}

.filter_btn:hover {
  background-color: #f2ece6ff;
  border: 1px solid #d6cec6ff;
}

.filter_btn.primary {
  flex: 8;
  background: #e4d6c8;
  border: none;
}

.filter_btn.primary:hover {
  background-color: #d7c3afff;
  border: none;
}


.filter_separator{
  height: 1px;
  background-color: #E5E5E5;
  border: none;
  border-radius: 30px;
  margin-top: 15px;
  margin-bottom: 15px;
}


@media (max-width:768px){
    .settings-block{
        top: 10px;
    }

    .filter-block{
        top: 10px;
        right: 70px;
        z-index: 101;
    }


    .post-container{
        padding-left: 15px;
        padding-right: 15px;
    }
    
}


/* pagination */

.pagination{
    margin: auto;
    margin-bottom: 20px;
    /* background: #fff; */
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.pagination_button{
    padding: 15px;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.pagination_nav{
    padding: 8px;
}

.pagination_button:hover{
    background: var(--accent_hover);
}

.pagination_active, .pagination_active:hover{
    background-color: var(--accent_dark);;
}

@media (max-width: 1068px) {
 .post_author.post_author_for_entry {
    display: block;
    position: unset;
    height: 100px;
    margin-right: auto;
    margin-left: auto;
    }

}

@media (max-width: 768px) {

    /* .pagination{
        gap: 8px;
    }

    .pagination_button{
        padding: 10px;
    } */

    .pagination_nav{
        display: none;
    }


    .post_author.post_author_for_entry {
        top: 5px;
        right: 15px;

        display: block;
        position: absolute;
        height: unset;
        margin-right: unset;
        margin-left: unset;
    }
    .post_author.post_author_for_entry  .post_avatar {
        width: 40px;
        height: 40px;
    }

}

/*  */
.post_date_input{
    display: block;
    background: white;
    margin: auto;

    text-align: center;
    border: none;
    caret-color: transparent;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    font-size: 24px;
    font-weight: 400;

    margin-bottom: 12px;

    border-radius: 12px;
  background-color: #ffffffaf;
}

.post_date_correction {
    padding-top: 20px;
}
/* 
@media (max-width: 768px) {
    .post_date_input{
        padding: 5px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        
        background: rgba(255, 255, 255, 0.4);
        border-radius: 10px;
        border: none;
        cursor: pointer;
        transition: background 0.2s;
    }
    .post_date_input-btn:hover {
        background: rgba(255, 255, 255, 0.8);
    }
} */




.create-btn {
    background: none;
    background: rgba(255, 255, 255, 0.4);
    padding: 5px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    float: right;
    transition: all 0.3s ease;
    transform-origin: bottom right;

    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

.create-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.4);
}


.create-btn::after {
  content: "добавить\Aзапись";
  position: absolute;
  bottom: 100%; /* выше кнопки */
  right: 80%;
  transform: translateX(50%) translateY(10px); /* сдвигаем вниз в начальном состоянии */
  background: rgba(0,0,0,0.8);
  color: #fff; 

  padding: 5px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: pre; /* обязательно для переноса */
  text-align: center; /* чтобы строки были по центру */
}


.create-btn:hover::after {
  opacity: 1;
  transform: translateX(50%) translateY(-5px); /* плавно выезжает вверх */
}



/*  */

.url_warning{
    max-width: 800px;
  margin: 100px auto 0;
  padding: 25px;
}

.go_url_button{
    width: fit-content;
    display: block;
    margin-top: 10px;
}

.go_url{
    color: var(--accent);
    margin: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.go_url:hover{
    color: var(--accent_dark);
}

/* moderator page */

.mod_input{
    text-align: center;
    font-size: 22px;
}



.mod_nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 20px 0 30px;
    scrollbar-width: none;
}

.mod_nav::-webkit-scrollbar {
    display: none;
}

.mod_nav_tab {    display: inline-block;
    position: relative;
    padding: 8px 2px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
    color: #6a5744;
}

.mod_nav_tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.mod_nav_tab:hover {
    color: var(--accent_dark);
}

.mod_nav_tab:hover::after,
.mod_nav_tab.active::after {
    transform: scaleX(1);
}

.mod_nav_tab.active {
    color: var(--accent);
}


ins{
    background-color: #a9d38b;
}

del{
    background-color: #ca9293;
}
