@font-face {
    font-family:sans;
    src:url("../fonts/IRANSans-web.woff");
}
@font-face {
    font-family:sgkara;
    src:url("../fonts/SGKara-Regular.woff");
}
html {
    scroll-behavior: smooth;
}
*{
    font-family: sgkara, serif;
    scrollbar-width: thin;
    scrollbar-color: #5bc0ff transparent;
}
.info-section{
    color: #808080;
    margin: 15px;
}
.nav{
    display: flex;
    border-radius: 0 0 20px 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-bottom:30px;
    background-image: url(../images/back.png);
    background-size: cover;
    background-position: bottom;
    padding:50px 0;
    gap: 30px;
}
.navbar{
    background: none;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin: 15px;
}
.caption-header{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /*margin:60px 10px;*/
    width: 100%;
}
.title{
    color: #ffffff;
    font-weight: bold;
    font-size: xx-large;
    text-align: center;
    margin: 10px;
}
.title-post{
    color: #ffffff;
    font-weight: bold;
    font-size: large;
    text-align: center;
    margin: 10px;
}
.black-title{
    color: #000000;
    font-weight: bold;
    font-size: larger;
    margin:20px;
}
.text{
    color: #fff;
    margin: 10px;
    text-align: center;
}

.link{
    -webkit-text-fill-color: #ffffff;
    text-decoration: none;
    color: white;
    display: block;
    font-size: smaller;
    padding:10px;
    border-radius: 10px;
    background: linear-gradient(130deg, #00FF33D6, rgb(105, 190, 255), rgba(221, 0, 255, 0.6));
    transition: box-shadow .2s ease, transform .2s ease;
    margin: 8px;
    text-align: center;
}
.link:hover{
    transform: translateY(-3px) scale(1.03);
}

.posts {
    width: 95%;
    margin:2%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 8px;

}
.post{
    min-height: 170px;
    transition: all .2s ease;
    margin: 12px;
    background:#fff;
    border-radius:10px;
    padding:17px;
    box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}
.post:hover{
    transform: scale(1.015);
}
.post-title{
    color: black;
    font-weight: bold;
    text-align: center;
}
.text-post{
    color: black;
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
    position: relative;
}
.post-btn{
    min-width: 90px;
    margin: 10px;
    text-align: center !important;
    padding: 10px;
    border:solid 0 transparent;
    border-radius:11px;
    color:white;
    display: block;
    text-decoration: none;
    background: rgb(255, 0, 106);
    transition: all 0.3s;
}
.post-d{
    color: gray;
    font-size: 70%;
    margin: 5px 0;
}
.post-sb{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: white;
    align-content: center;
}
.post-sb-d{
    font-size: 90%;
    margin:10px;
}
.post-btn:hover{
    transform: scale(0.85);
}
.about{
    width: 60%;
    margin:50px auto;
    padding:20px;
    border-radius: 10px;
    background-color: rgba(0, 200, 255,0.1);
    box-shadow:0 0 30px 2px rgba(0, 200, 255,0.8);
}
footer{
    /*height: 350px;*/
    width: 100%;
    display: flex;
    border-radius: 20px 20px 0 0;
    margin-top: 30px;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-image: url(../images/footer.jpg);
    background-size: cover;
    background-position: center;
}
.footer-l1 section h3{
    width: 100%;
    text-align: center;
}
.connect{
    min-width:290px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 10px;
    width: 40%;
}
.cat{
    min-width:290px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 10px;
    width: 40%;
    justify-content: center;
}
.cats{
    margin: 2%;
    width: 95%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}
.cats a{
    cursor: pointer;
    border: none;
    border-radius: 5px;
    padding: 15px;
    font-size: large;
    margin: 8px;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
    text-align: center;
    background-image: url(../images/button.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-weight: bold;
}
.catss{
    box-shadow:0 0 10px 3px rgba(64, 0, 255, 0.71);
}
.search{
    display: flex;
    flex-direction: row;
    width: 95%;
    margin: 2%;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.search-box{
    border: 1px black solid;
    border-radius: 100px;
    padding: 5px;
    display: flex;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.search-input{
    padding: 5px;
    width: 230px;
    border: none;
    outline: none;
    color: black;
    background: transparent;

}
.search-btn{
    background-color: #2196f3;
    border: none;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-image: url("../images/search.svg");
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.post-detail{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    align-content: flex-start;
    padding: 1vw;
    max-width: 1600px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.7;
    gap: 10px;
    justify-content: space-around;
}
.post-detail *{
    font-family: sgkara !important;
    text-align: justify;
    white-space: normal;
}
.post-detail .post-title{
    text-align:center !important;
}
.s-r{
    background-color:transparent;
    padding:15px;
    max-width: 906px;
}
.s-l{
    width:425px;
    min-width:285px;
    background-color: rgba(105, 190, 255, 0.1);
    padding:10px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    position: sticky;
    top: 20px;
    height:90vh;
}
.s-l-scrol{
    height:100vh;
    overflow-y: auto;
    border-radius: 12px;
}


.recommended{
    background-color: rgba(105, 190, 255, 0.15);
    width:90%;
    margin:0 auto;
    border-radius:12px;
    padding: 10px;
    gap: 10px;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.rec-title{
    align-self: flex-start;
    font-size: x-large;
}
.live{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-content: center;
}
.info-card{
    padding:10px;
    flex: 1;
    text-wrap: nowrap;
    text-align: center;
    /* background: linear-gradient(130deg, rgba(0, 255, 51, 0.2), rgba(221, 0, 255, 0.2),rgba(105, 190, 255, 0.2)); */
    background: linear-gradient(130deg, rgba(0, 255, 51, 0.2),rgba(105, 190, 255, 0.2));

    border-radius: 10px;
}
.footer-l1 p{
    border: transparent 0 solid;
    border-radius: 10px;
    padding: 5px;
    box-shadow:0 0 10px 1px #59b4ff;
    margin: 10px;
    transition: all 0.2s;
}
.footer-l1 p:hover{
    box-shadow:0 0 1px 1px #59b4ff;
    font-weight: 900;
}
.footer-l1 a{
    text-decoration: none;
    width: 30%;
    text-align: center;
    border: transparent 0 solid;
    border-radius: 10px;
    padding: 6px;
    box-shadow:0 0 8px 2px #20ff67;
    margin:10px;
    transition: all 0.2s;
}
.footer-l1 a:hover{
    box-shadow:0 0 8px 5px #20ff67;
}
.footer-l1{
    width:95%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
.footer-l2{
    width: 100%;
    height: 50px;
    background-color: black;
    text-align: center;
    font-size: x-small;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
}
footer *{
    color: white;
}
.tools{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-bottom: 40px;
}
.tools a{
    border: transparent 0 solid;
    border-radius: 10px;
    padding: 8px;
    box-shadow:0 0 5px 5px rgba(64, 0, 255, 0.71);
    margin: 10px;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
    background-image: url(../images/button.jpg);
    background-size: cover;
    background-position: center;
}
.tools a:hover{
    box-shadow:0 0 6px 2px rgba(64, 0, 255, 0.71);
}
.mini-icon img{
    aspect-ratio: 1/1;
    width: 35px;
    border-radius: 10px;
}
.mini-icon{
    display: flex;
    gap: 10px;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
}
.post-bottom{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    margin-top:auto;
}
.status-bar-post{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 20px;
}
.comments-title{
    font-size: x-large;
    text-align: center;
}
.comment-text{
    word-wrap: break-word;
    white-space: normal;
}
.comments{
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    align-content: center;
    align-items: flex-start;
    justify-content: space-around;
    gap: 10px;
}
.comment span img{
    aspect-ratio: 1/1;
    width: 30px;
}
.comment span{
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
}
.comment{
    margin:20px auto;
}
#commentForm{
    width: 300px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-content: center;
    justify-content: center;
    align-items: center;
    position: sticky;
    top:10px;
}
#commentForm input,
#commentForm textarea {
    padding: 4%;
    width: 90%;
    border-radius: 6px;
    border: 2px solid #59b4ff;
    box-shadow: none;
    outline: none;
    transition: box-shadow 0.4s ease;
}
#commentForm textarea{
    height: 120px;      /* ارتفاع دیفالتی */
    resize: vertical;  /* فقط از ارتفاع */
}

#commentForm input:focus,
#commentForm textarea:focus {
    box-shadow: 0 0 15px 1px #59b4ff;
}
#commentForm input:focus-visible,
#commentForm textarea:focus-visible {
    box-shadow: 0 0 15px 1px #59b4ff;
    outline: none;
}

#commentForm textarea:hover,
#commentForm input:hover{
    box-shadow:0 0 15px 1px #59b4ff;

}
#commentForm button{
    padding: 4%;
    background: white;
    width: 100%;
    border: solid 2px rgba(221, 0, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition:box-shadow 0.5s ease;
}
#commentForm button:hover{
    box-shadow:  0 0 10px 1px rgba(221, 0, 255, 0.6);
}
.comments-detail{
    width:80%;
    margin:40px auto;
    padding: 25px;
    /*background: rgba(32, 255, 103, 0.12);*/
    background: #f5fcff;

    border-radius: 10px;
    box-shadow:0 0 10px 1px rgb(91, 192, 255);
}
.comments-users{
    width:68%;
    min-width:40%;
}
.hr{
    width:90vw;
    height:2px;
    border-radius: 100px;
    background-color: gray;
    margin:20px auto;
}
@media (max-width: 600px) {
    .link{
        width: 60%;
    }
}
@media (max-width: 810px) {
    .post-detail {
        flex-wrap: wrap;
    }
    .s-l {
        position: static;
        width: 88%;
        height: auto;
        min-height: unset;
        max-height: unset;
    }
    .s-l-scrol{
        height: auto;
        overflow: hidden;
    }
    .comments{

        flex-wrap: wrap;
    }
    #commentForm{
        position: static;
    }
}
.requests{
    margin: 0 auto;
    max-width: 50%;
    border-radius: 10px;
    background: rgba(50, 157, 246, 0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    align-content: center;
}
.requests input,
.requests textarea {
    padding: 15px;
    width: 90%;
    border-radius: 6px;
    border: 2px solid #59b4ff;
    box-shadow: none;
    outline: none;
    transition: box-shadow 0.4s ease;
}
.requests textarea{
    height: 120px;      /* ارتفاع دیفالتی */
    resize: vertical;  /* فقط از ارتفاع */
}

.requests input:focus,
.requests textarea:focus {
    box-shadow: 0 0 15px 1px #59b4ff;
}
.requests input:focus-visible,
.requests textarea:focus-visible {
    box-shadow: 0 0 15px 1px #59b4ff;
    outline: none;
}

.requests textarea:hover,
.requests input:hover{
    box-shadow:0 0 15px 1px #59b4ff;

}
.requests button{
    padding: 15px;
    background: white;
    width: 100%;
    border: solid 2px rgba(221, 0, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition:box-shadow 0.5s ease;
}
.requests    button:hover{
    box-shadow:  0 0 10px 1px rgba(221, 0, 255, 0.6);
}
.requests-show{
    width: 80%;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.requests-show span img{
    aspect-ratio: 1/1;
    width: 30px;
}
.requests-show span{
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
}
pre{
    margin:15px 0;
    border-radius: 12px;
    direction: ltr!important;
}
code{
    border-radius: 12px;
}
/**::-webkit-scrollbar {*/
/*    width: 10px;*/
/*}*/
/**::-webkit-scrollbar-track {*/
/*    background: transparent;*/
/*}*/
/**::-webkit-scrollbar-thumb {*/
/*    border-radius: 10px;*/
/*    background-image: url(../images/scrol.png);*/
/*    background-size: cover;*/
/*    background-position: center;*/
/*    transition: background 0.3s;*/
/*}*/
/**::-webkit-scrollbar-thumb:hover {*/
/*    background-image: url(../images/scrol-hover.png);*/
/*}*/
.open-btn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.open-btn:hover {
  background-color: #0056b3;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
  z-index: 1000;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transform: scale(0.7) translateY(-20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.close-btn {
  margin-top: 20px;
  padding: 8px 16px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}