/*fonts*/
@import url("https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2&display=swap");
@import url("https://up.tempkade.ir/themes/fonts/font-awesome.min.css");

/*main settings*/
body {
    font-size: 13px;
    font-family: Fira Sans, 'Baloo Bhaijaan 2';
    background-image: url("https://s8.uupload.ir/files/902fb683da6e99129aa43990f81607cd[1]_xfbj.gif");
    background-repeat: repeat;
    color: #f7f4f6;
    direction: rtl;
    margin: 0;
    padding: 0;
}

ul, li{
    list-style: none;
    margin: 0;
    padding: 0;
}

/*header*/
header{
    position: fixed;
    display: inline-block;
    text-align: center;
    width: 100%;
    height: 3rem;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f5dfed52;
    z-index: 1000;
}

nav{
    position: relative;
    list-style: none;
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 10px;
    text-transform: uppercase;
    transition: all 0.2s;
    margin: 0 auto;
    z-index: 2;
}

nav ul{
    display: flex;
    gap: 15px;
    padding: 0;
    margin-top: .75rem;
}

nav a{
    text-decoration: none;
    color: #ffe3f5;
}

nav a:hover{
    color: #f19dd4;
}

/*header blossom img*/
.image-warpper{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 130px;
    overflow: hidden;
    z-index: 1;
}

.image-warpper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-warpper::after{
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    backdrop-filter: blur(8px);
    pointer-events: none;
}

/*header lantern img*/
.lantern {
    position: fixed;
    top: -10px;
    left: 30px;
    width: 200px;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
    animation: lantern-swing 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,200,120,0.35));
}

@keyframes lantern-swing {
    0%   { transform: rotate(-2deg); }
    50%  { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
}

/*container*/
.container {
    max-width: 1400px;
    width: 80%;
    margin: 120px auto 20px auto; 
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ===== THREE COLUMN LAYOUT ===== */
aside {
    width: calc(25% - 20px);
    position: sticky;
    top: 120px;
    align-self: flex-start;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    background-color: #cfacfa20;
    border: 2px solid #3f354b5c;
    border-radius: 5px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
}

article {
    width: calc(50% - 40px);
    flex: 1;
}

article img,video {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}



section {
    width: 25%;
    padding: 15px;
    box-sizing: border-box;
    background-color: #cfacfa20;
    border: 2px solid #3f354b5c;
    border-radius: 5px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
    align-self: flex-start;
}

/* aside styles */
.name a{
    text-decoration: none;
    font-size: 18px;
    color: #ffe3f5;
}

.name a:hover{
    color: #f19dd4;
}

.name p{
    color: #fff;
    font-size: 13px;
}

.blogimg img{
    width: 100%;
    border-radius: 15px;
}

.description{
    font-size: 12px;
}

/* ===== MAIN SECTION STYLES ===== */
/* Post List Styles */
.post-item {
    background-color: #f3eafd20;
    border: 2px solid #847c8e5c;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: #f19dd480;
}

.post-item a {
    color: #f19dd4;  
    text-decoration: none; 
    transition: all 0.2s ease;
}

.post-item a:hover {
    color: #ffb6e6;  
    border-bottom-color: #ffb6e6;
}

.post-thumb {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumb img {
    width: 90%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.post-item:hover .post-thumb img {
    transform: scale(1.02);
}

.post-title h2 {
    margin: 10px 0 15px 0;
    font-size: 22px;
    border-right: 4px solid #f19dd4;
    padding-right: 15px;
}

.post-title a {
    text-decoration: none;
    color: #ffe3f5;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #f19dd4;
}

.post-summary {
    line-height: 1.8;
    margin: 15px 0;
    color: #f0e0f0;
    font-size: 14px;
}

.more {
    margin: 20px 0 15px 0;
}

.more a {
    display: inline-block;
    background-color: #6f627e5c;
    color: #ffe3f5;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    border: 1px solid #3f354b5c;
    transition: all 0.3s ease;
}

.more a:hover {
    background-color: #f19dd4;
    color: #fff;
    border-color: #f19dd4;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
    border-top: 1px solid #3f354b5c;
    font-size: 12px;
    color: #d4c0e0;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
}

.post-meta a {
    color: #d4c0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-meta a:hover {
    color: #f19dd4;
}

/* Post Detail Styles */
.posttitle {
    background-color: #cfacfa20;
    border: 2px solid #3f354b5c;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
}

.posttitle h2 {
    margin: 0;
    font-size: 26px;
    text-align: center;
}

.posttitle a {
    text-decoration: none;
    color: #ffe3f5;
}

.posttitle a:hover {
    color: #f19dd4;
}

.postinfo {
    background-color: #cfacfa20;
    border: 2px solid #3f354b5c;
    border-top: none;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #d4c0e0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
}

.postcontent {
    background-color: #cfacfa20;
    border: 2px solid #3f354b5c;
    border-top: none;
    padding: 30px;
    line-height: 2;
    font-size: 14px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
}

.postcontent p {
    margin-bottom: 20px;
}

.postcontent a {
    color: #f19dd4;
    text-decoration: none; 
    transition: all 0.2s ease;
}

.postcontent a:hover {
    color: #ffb6e6;  
}

.posttags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #3f354b5c;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.posttags a {
    display: inline-block;
    background-color: #6f627e5c;
    color: #ffe3f5;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid #3f354b5c;
    transition: all 0.3s ease;
}

.posttags a:hover {
    background-color: #f19dd4;
    color: #fff;
}

/* Comments Styles */
.post.mb.rad {
    background-color: #cfacfa20;
    border: 2px solid #3f354b5c;
    border-radius: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
}

/* فاصله بخش نظرات از پست اصلی */
.postcontent + .post.mb.rad,
.postinfo + .post.mb.rad,
.posttitle + .post.mb.rad {
    margin-top: 30px;
}

.post.mb.rad + .post.mb.rad {
    margin-top: 25px;
}

.cmt-bg {
    padding: 10px 10px;
    border-radius: 8px;
}

.cmt-bg a {
    color: #ffe3f5;
    text-decoration: none;
    font-size: 16px;
}

.cmt-bg a:hover {
    color: #f19dd4;
}

.comment {
    padding: 15px;
}

.comment-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3f354b5c;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #49223c;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-details a {
    color: #ffe3f5;
    text-decoration: none;
    font-size: 14px;
}

.comment-details a:hover {
    color: #f19dd4;
}

.cmttext {
    line-height: 1.8;
    padding: 10px 0;
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    white-space: normal;
}


.rep-pic {
    margin-top: 15px;
}

.rep-pic img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #3f354b5c;
}

.cmtreplay {
    background-color: #3f354b40;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-right: 3px solid #f19dd4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    white-space: normal;
}


.cmttext a{
    color: #f19dd4;
    text-decoration: none; 
    transition: all 0.2s ease;
}

.cmttext a:hover {
    color: #ffb6e6;  
}

.cmtreplay a{
    color: #f19dd4;
    text-decoration: none; 
    transition: all 0.2s ease;
}

.cmtreplay a:hover {
    color: #ffb6e6;  
}
/* Comment Form */
.comment-form {
  font-size: 13px;
  padding: 15px;
  margin-bottom: 7px;
  border-radius: 4px;
  border-radius: 10px;
}

.formField2 input.text,
.formField2 textarea {
  line-height: 1.4rem;
  color: #ffe3f5;
  font-size: 13px;
  border-radius: 0;
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  font-family: Fira Sans, 'Baloo Bhaijaan 2';
}

input, textarea, select {
  font-family: Fira Sans, 'Baloo Bhaijaan 2';
}

#bComSub {
  cursor: pointer;
  margin-top: auto;
  padding: 9px 30px;
  border-radius: 15px;
  background: #6f627e5c;
  color: #ffe3f5;
  font-weight: bold;
  border: 0;
}

#bComSub:hover {
  background: #f19dd4;
  color: #fff;
}

/* ===== PAGINATION STYLES ===== */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.pagination li {
    list-style: none;
}

.pagination a {
    display: inline-block;
    background-color: #cfacfa20;
    border: 2px solid #3f354b5c;
    color: #ffe3f5;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f19dd4;
    border-color: #f19dd4;
    color: #fff;
    transform: translateY(-2px);
}

.pagePrev, .pageNext {
    font-weight: bold;
}

/* section styles */
section h6{
    text-align: center;
    font-size: 13px;
    background-color: #6f627e5c;
    padding: 8px;
    border-radius: 5px;
    margin: 10px 0;
}

section a{
    text-decoration: none;
    color: #ffe3f5;
}

section a:hover{
    color: #f19dd4;
}
/* ===== TAG CLOUD STYLES ===== */
.tagcloud-parent ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
}

.tagcloud-parent ul li {
    display: inline-block;
    border-bottom: none;
    padding: 0;
}

.tagcloud-parent ul li a {
    display: inline-block;
    background-color: #6f627e5c;
    color: #ffe3f5;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #3f354b5c;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tagcloud-parent ul li a:hover {
    background-color: #f19dd4;
    color: #fff;
    border-color: #f19dd4;
    transform: translateY(-2px);
}
/* Sidebar boxes */
.sidemenu > div {
    margin-bottom: 20px;
}

.sidemenu ul {
    padding: 0 5px;
}

.sidemenu li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidemenu li:last-child {
    border-bottom: none;
}

.recent-comments ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.recent-comments ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-comments ul li:last-child {
    border-bottom: none;
}

.recent-comments ul li img {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-comments ul li a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffe3f5;
    text-decoration: none;
    line-height: 1.4;
}

.recent-comments ul li a:hover {
    color: #f19dd4;
}

.followme{
    text-align: center;
    border-radius: 20px;
    background-color: #a596b8c2;
    padding: 7px;
    margin-bottom: 20px;
}

.followme a{
    font-size: 14px;
    font-weight: bolder;
    color: #fff;
    display: block;
}

.footer{
    margin-top: 10px;
    text-align: center;
    border-radius: 10px;
    background-color: #4030549d;
    padding: 1px;
}


/* ===== RATE BOX STYLES ===== */
.rate-box {
    display: inline-flex;
    align-items: center;
    background-color: #6f627e5c;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #3f354b5c;
}

.rate-button-box {
    display: inline-flex;
    align-items: center;
}

.rate-button {
    color: #ffe3f5 !important;
    text-decoration: none;
    font-size: 12px;
}

.rate-button:hover {
    color: #f19dd4 !important;
}

/* ===== MESSAGE STYLES ===== */
.message {
    padding: 15px;
    text-align: center;
    background-color: #cfacfa20;
    border: 2px solid #3f354b5c;
    border-radius: 10px;
    margin-bottom: 20px;
}

.message h3 {
    margin: 0;
    color: #ffe3f5;
    font-size: 18px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
    .container {
        margin: 120px auto 2px auto;
        gap: 15px;
    }
    
    aside {
        width: calc(25% - 15px);
    }
    
    article {
        width: calc(50% - 30px);
    }
    
    section {
        width: 25%;
    }
}

@media screen and (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    aside {
        width: 100%;
        position: static;
        margin-bottom: 20px;
        order: 1;
    }
    
    article {
        width: 100%;
        order: 2;
    }
    
    section {
        width: 100%;
        order: 3;
    }
    
    .post-title h2 {
        font-size: 20px;
    }
    
    .postcontent {
        padding: 20px;
    }
}

/* ===== RESPONSIVE FIXES FOR COMMENTS AND LIKE BUTTON ===== */
@media screen and (max-width: 768px) {
	*{
		font-size:12px;}
    .container {
        margin: 100px auto 2px auto;
    }
	    aside {
        width: 100%;
        position: static;
        margin-bottom: 20px;
        order: 1;
    }
    
    article {
        width: 100%;
        order: 2;
    }
    
    section {
        width: 100%;
        order: 3;
    }
    
    header {
        height: 2.5rem;
    }
    
    nav ul {
        gap: 10px;
        margin-top: 0.5rem;
    }
    
    nav a {
        font-size: 12px;
    }
    
    .lantern {
        width: 100px;
        left: 15px;
    }
    
    .image-warpper {
        height: 100px;
    }
    
    .post-item {
        padding: 15px;
    }
    
    .post-title h2 {
        font-size: 18px;
        padding-right: 10px;
    }
    
    /* مشخصات کامنت‌دهنده به صورت افقی */
    .comment-details {
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .comment-details .avatar {
        width: 35px;
        height: 35px;
        margin-left: 5px;
    }
    
    .comment-details a {
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* دکمه لایک در پست‌ها - کنار مشخصات */
    .post-meta {
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }
    
    .post-meta .rate-box {
        margin-right: auto;
        width: auto;
        display: inline-flex;
    }
    
    /* دکمه لایک در صفحه جزئیات پست */
    .postinfo {
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    
    .postinfo .rate-box {
        margin-right: auto;
        width: auto;
    }
    
    .pagination a {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
		*{
		font-size:10px;}
    .container {
        margin: 90px auto 2px auto;
    }
	    aside {
        width: 100%;
        position: static;
        margin-bottom: 20px;
        order: 1;
    }
    
    article {
        width: 100%;
        order: 2;
    }
    
    section {
        width: 100%;
        order: 3;
    }
    
    .post-item {
        padding: 12px;
    }
    
    .post-thumb img {
        max-height: 200px;
    }
    
    .post-title h2 {
        font-size: 16px;
    }
    
    .post-summary {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .more a {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .postcontent {
        padding: 15px;
        font-size: 13px;
    }
    
    .posttags a {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .comment {
        padding: 15px;
    }
    
    .comment-details {
        gap: 5px;
    }
    
    .comment-details .avatar {
        width: 30px;
        height: 30px;
    }
    
    .comment-details a {
        font-size: 12px;
    }
    
    .rate-box {
        padding: 2px 6px;
    }
    
    .rate-button {
        font-size: 11px;
    }
    
    .cmttext {
        font-size: 12px;
    }
    
    .pagination ul {
        flex-wrap: wrap;
    }
    
    .sidemenu ul {
        padding: 0;
    }
}
