/*
Theme Name: parstin
Theme URI: https://example.com/parstin
Author: Muhammad Abdulahi
Author URI: https://example.com
Description: A clean and simple responsive theme (Parsi + Latin)
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parstin
Tags: blog, responsive, rtl, minimal
*/


/* CSS copied from previous response */


/* پست‌ها به صورت شبکه‌ای با واکنش‌گرایی */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem;
}

.post-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 1rem;
  transition: transform 0.2s;
}

.post-item:hover {
  transform: translateY(-4px);
}

.post-title a {
  color: var(--primary-color, #333);
  text-decoration: none;
  font-size: 1.2rem;
}

.post-thumb img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.pagination a {
  background: var(--primary-color, #333);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}


/* پگینیشن */

.pagination {
  text-align: center;
  margin: 2rem auto;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  background: #f0f0f0;
  color: #000;
  border-radius: 5px;
  text-decoration: none;
}

.pagination .current {
  background: #002233;
  color: #fff;
  font-weight: bold;
}
/* single page */
.post-content{
    border-radius: 5px;
    width: 90%;
    margin: 0 auto;
    line-height: 2rem;
    text-align: justify;
    padding: 20px;
    margin-bottom: 3rem;
}

.single-post>.container>article>h1{
  text-align: center;
  background-color:#002233;
  width: 90%;
  margin: 0 auto 2rem auto;
  padding: 0.5rem 0;
  border-radius: 5px;
  color: #e7e7e7;
}



/* شروع */
/* استایل کلی فرم دیدگاه */
.comment-respond {
    font-family: 'iran';
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #061a27;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* عنوان فرم */
.comment-reply-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    font-weight: 600;
}

/* متن ورود کرده‌اید */
.single-post>.container>article>.comment-respond{
    border: 1px solid #fff;
    border-radius: 5px;
    width: 90%;
    margin: 0 auto;
    line-height: 2rem;
    text-align: justify;
    padding: 20px;
    margin-bottom: 3rem;

}
.logged-in-as {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.logged-in-as a {
    color: #dedede;
    text-decoration: none;
    transition: color 0.3s;
}

.logged-in-as a:hover {
    color: #346788;
}

/* برچسب فیلدها */
.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.comment-form .required {
    color: #e7e7e7;
}

/* فیلد متن دیدگاه */
#comment {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    transition: border-color 0.3s, box-     shadow 0.3s;
    min-height: 150px;
    resize: vertical;
}

#comment:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
    outline: none;
}

/* دکمه ارسال */
.submit {
    background-color: #dedede;
    color: #061a27;
    border: none;
    padding: 12px 25px;
    font-size: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 700;
    font-family: 'iran';

}

.submit:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.submit:active {
    transform: translateY(0);
}

/* بخش مورد نیاز */
.required-field-message {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 5px;
    display: block;
}

/* لینک لغو پاسخ */
#cancel-comment-reply-link {
    font-size: 0.9rem;
    color: #e74c3c;
    text-decoration: none;
    margin-right: 10px;
    transition: color 0.3s;
}

#cancel-comment-reply-link:hover {
    color: #c0392b;
}
/* پایان */
/* استایل پیج ها */
main.page>.container>article{
    border-radius: 5px;
    width: 90%;
    margin: 0 auto;
    line-height: 2rem;
    text-align: justify;
    padding: 20px;
    margin-bottom: 3rem;
}
main.page>.container>article>h1{
  text-align: center;
  background-color:#002233;
  width: 100%;
  margin: 0 auto 2rem auto;
  padding: 0.5rem 0;
  border-radius: 5px;
  color: #e7e7e7;
}

h1,h2,h3{
	margin:1.3em auto;
}












/* ریسپانسیو بر اساس اندازه صفحه */
@media (min-width: 600px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .post-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
