@font-face {
font-family: 'vazir';
src: url('https://lib.arvancloud.ir/vazir-font/33.003/Farsi-Digits-Non-Latin/fonts/webfonts/Vazirmatn-FD-NL-Medium.woff2') format('woff2');
}
:root{
            --first-color: rgb(255, 119, 214);
            --second-color: rgb(0 187 92 / 58%);
            --third-color: #3b82f6;
            --fourth-color: rgb(255, 119, 214);
            --fifth-color: rgb(255, 119, 214);
            --sixth-color: rgb(255, 119, 214);
            --seventh-color: rgb(255, 119, 214);
            --gray-color: #999;
            --white-color: #fff;
            --black-color: #333333;



            --vazir: 'vazir', sans-serif;


}
html {
            scroll-behavior: smooth;
}
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: var(--vazir);
        }
body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            justify-content: center;
            align-items: center;
            max-width: 450px;
            margin: 0 auto;
        }
::selection{
    background: #3b83f6;
    color: white;
}

.section{
            background: var(--white-color);
            height: 100vh;
            position: fixed;
            max-width: 450px;
            overflow-y: auto;
            direction: rtl;
            padding-bottom: 20px;
            scroll-behavior: smooth;
            text-align: center;
}

.section::-webkit-scrollbar {
            width: 2px; 
}
.section::-webkit-scrollbar-thumb {
            background-color: rgba(0, 0, 0, 0.3); 
            border-radius: 20px; 
}
.section::-webkit-scrollbar-track {
            background: transparent; 
}


.navbar {
            background: var(--white-color);
            padding: 12px 20px;
            color: var(--black-color);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid #d9d9d947;
            transition: all 0.3s;
        }
.navbar.scrolled{
            box-shadow: 0px 1px 10px 0px rgb(81 81 81 / 16%);
            border: none;
            border-radius: 0px 0px 15px 15px;
}
.navbar-content {
            max-width: 1200px;
            margin: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
.navbar-content i{
            cursor: pointer;
}
.logo {
            font-size: 24px;
            font-weight: bold;
        }
.nav-links {
            display: flex;
            gap: 20px;
        }
.nav-links a {
            color: var(--black-color);
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 5px;
            transition: background 0.3s;
        }
.nav-links a:hover {
            background: rgba(255, 156, 247, 0.1);
        }
.t-share-i i{
            cursor: pointer;
}
t-home-i{
            cursor: pointer;
}

.prolile-h-content{
            display: flex;
            flex-direction: column;
            margin-top: 10px;
}
.prolile-and-name{
            display: flex;
            align-items: center;
            margin-top: 10px;
            flex-direction: column;
}
.h-p-profile-sec{
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            font-size: 14pt;
            font-weight: 600;
}
.h-p-profile-sec img{
            width: 90px;
            height: 90px;
            border-radius: 50px;
            border: 2px solid var(--third-color);
}
.t-p-profile-sec{
            gap: 5px;
            display: flex;
            align-items: center;
            margin-top: 10PX;
}
.t-p-profile-sec p{
            font-size: 15pt;
            font-weight: 700;
            color: var(--black-color);

}
.t-p-profile-sec .p-inf{
            font-size: 8pt;
            color: var(--black-color);
            border: 1px solid var(--black-color);
            max-width: 110px;
            text-align: center;
            border-radius: 50px;
            padding: 2px 5px;
            font-weight: 600;
}
.bio{
            display: flex;
            padding: 20px 40px;
            font-size: 10.5pt;
            color: var(--black-color);
            text-align: justify;
}
.p-btn-f{
            width: 85%;
            display: flex;
            align-items: center;
            gap: 5px;
            justify-content: center;
            margin: auto;
}
.connect{
            border: 1px solid var(--third-color);
            padding: 9px;
            line-height: 0;
            border-radius: 14px;
            color: var(--third-color);
            text-align: center;
            font-size: 14px;
}
.container {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
        }
.story{
            padding: 10px 0px;
            margin: 20px auto 10px auto;
            border-top: 1px solid #d9d9d947;
            width: 100%;
}
.posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            padding: 10px 20px 30px 20px;
        }
.post-card {
            background: var(--white-color);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
            text-align: justify;
        }
.post-card:hover {
            transform: translateY(-5px);
        }
.post-image {
            width: 100%;
            height: auto;
            object-fit: cover;
        }
.post-content {
            padding: 20px;
        }
.post-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--black-color);
            margin-bottom: 10px;
        }
.post-text {
            color: var(--black-color);
            line-height: 1.6;
            margin-bottom: 15px;
        }
.post-profile-item{
            display: flex;
            justify-content: flex-start;
            align-items: center;
}
.profile-pic{
            width: 35px;
            margin-right: 15px;
            border-radius: 50px;
            border: 2px solid var(--third-color);
}
.profile-id{
            color: var(--black-color);
            font-size: 14px;
            line-height: normal;
            margin-right: 6px;
}
.post-meta {
            display: flex;
            justify-content: space-between;
            color: var(--gray-color);
            font-size: 14px;
            border-top: 1px solid #eee;
            padding-top: 15px;
            flex-direction: row-reverse;
        }
.post-meta-top {
            display: flex;
            justify-content: space-between;
            padding-top: 10px;
            padding-bottom: 10px;
            align-items: center;
        }
.inf-cat{
            display: flex;
            align-items: center;
            gap: 20px;
}
.CAT{
            border: 1px solid #3b82f6;
            padding: 2px 15px;
            border-radius: 50px;
            background: #3b82f6;
            font-size: 12px;
            color: #ffffff;
            font-weight: 300;
}
.post-meta-top i{
            margin-left: 20px;
}
.date{
            margin: 0px 10px;
            font-size: 12px;
}
.post-stats {
            display: flex;
            gap: 15px;
        }
.post-stat {
            display: flex;
            align-items: center;
            gap: 5px;
        }
.like-btn {
            background: #667eea;
            color: var(--white-color);
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 14px;
        }
.like-btn:hover {
            background: #5a6fd8;
        }
.btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: var(--white-color);
            padding: 12px 25px;
            border-radius: 8px;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }
.btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        }
.no-posts {
            text-align: center;
            padding: 50px;
            background: white;
            border-radius: 15px;
            color: var(--gray-color);
        }
.login-prompt {
            text-align: center;
            padding: 40px;
            background: white;
            border-radius: 15px;
            margin-bottom: 30px;
        }

.heart{
            color: red;
}
























.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 17px;
    font-size: 15px;
    cursor: pointer;
    z-index: 1000;
    
    /* ورود نرم از بغل */
    transform: translateX(80px) rotate(180deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.back-to-top.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}

.back-to-top.show:hover {
    transform: translateX(0) translateY(-3px);
}



























/* پاپ آپ هشدار دسکتاپ */
.desktop-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.warning-content {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
    direction: rtl;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.warning-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.warning-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 22px;
}

.warning-content p {
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
    font-size: 14px;
}

.warning-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.close-btn-n {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn-n:hover {
    color: #333;
}

/* ریسپانسیو - در موبایل نمایش داده نشه */
@media (max-width: 768px) {
    .desktop-warning {
        display: none !important;
    }
}