/*
Theme Name: Simple Medium
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: یک قالب ساده وردپرس با طراحی مشابه Medium
Version: 1.1.8
Text Domain: simple-medium
*/


/* فونت وزیر از CDN */
@font-face {
  font-family: IranSans;
  src: url('./fonts/IRANSansWeb.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IranSans;
  src: url('./fonts/IRANSansWeb_Black.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IranSans;
  src: url('./fonts/IRANSansWeb_Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IranSans;
  src: url('./fonts/IRANSansWeb_Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IranSans;
  src: url('./fonts/IRANSansWeb_UltraLight.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IranSans;
  src: url('./fonts/IRANSansWeb_Light.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* Reset و فونت‌ها */
body {
    font-family: IranSans, serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* ساختار اصلی */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
.site-header {
    padding: 40px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.site-title {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
	text-align: center;
}


.site-subtitle {
    font-size: 16px;
    font-weight: 400;
	text-align: center;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

/* پست‌ها */
article {
    margin-bottom: 60px;
}

.entry-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
}

.entry-meta a {
    color: #777;
	text-decoration: none;
}

.entry-meta span:not(:last-child)::after {
    content: "·";
    margin-right: 8px;
    color: #ccc;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 25px;
}

/* فوتر */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 14px;
    text-align: center;
}

/* صفحه تک پست */
.single .entry-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.single .entry-content {
    font-size: 18px;
    line-height: 1.8;
}

/* دکمه ادامه مطلب */
.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}

/* ناوبری */
.main-navigation {
    margin-bottom: 30px;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-navigation li {
    margin-right: 20px;
}

.main-navigation a {
    color: #777;
    text-decoration: none;
}

.main-navigation a:hover {
    color: #333;
}


/* فرم ثبت‌نام و ورود */
.registration-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 5px;
}

.registration-form label {
    display: block;
    margin-bottom: 8px;
}

.registration-form input[type="text"],
.registration-form input[type="password"],
.registration-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.registration-form input[type="submit"] {
    background: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* پروفایل کاربری */
.user-profile {
    max-width: 800px;
    margin: 40px auto;
}

.user-post {
    padding: 15px;
    margin-bottom: 15px;
    background: #f5f5f5;
    border-radius: 3px;
}

.new-post-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}
.user-navigation {
    margin-top: 15px;
}

.user-navigation a {
    margin-left: 15px;
    color: #777;
    text-decoration: none;
}

.user-navigation a:hover {
    color: #333;
}


/* فرم ورود اختصاصی */
.custom-login-form {
    max-width: 450px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.custom-login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.custom-login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.custom-login-form .input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Vazir, sans-serif;
    font-size: 14px;
}

.custom-login-form .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.custom-login-form .remember-me label {
    margin-bottom: 0;
    margin-right: 10px;
}

.custom-login-form .submit {
    text-align: center;
}

.custom-login-form #wp-submit {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: Vazir, sans-serif;
}

.custom-login-form #wp-submit:hover {
    background: #555;
}

.login-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.login-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.login-links a:hover {
    color: #333;
}

.login-links span {
    margin: 0 10px;
    color: #ddd;
}

.login-error {
    color: #ff3333;
    background: #ffeeee;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #ffcccc;
}

.already-logged-in {
    text-align: center;
    padding: 30px;
}

.already-logged-in p {
    margin-bottom: 20px;
}

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

.already-logged-in a:hover {
    color: #555;
}


/* استایل پایه فرم‌ها */
form {
    margin: 30px 0;
    font-family: Vazir, sans-serif;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="url"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    font-family: Vazir, sans-serif;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #333;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form .form-submit {
    text-align: left;
}

form input[type="submit"],
form button[type="submit"] {
    background: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: IranSans, sans-serif;
}

form input[type="submit"]:hover,
form button[type="submit"]:hover {
    background: #000;
    transform: translateY(-1px);
}

/* استایل دکمه‌های ثانویه */
form .secondary-button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    margin-right: 10px;
}

form .secondary-button:hover {
    background: #eee;
    border-color: #ccc;
}

/* گروه فیلدهای فرم */
.form-group {
    margin-bottom: 25px;
}

/* پیغام‌های خطا و موفقیت */
.form-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.form-error {
    background-color: #ffeeee;
    border: 1px solid #ffdddd;
    color: #cc0000;
}

.form-success {
    background-color: #eeffee;
    border: 1px solid #ddffdd;
    color: #00aa00;
}

/* فرم ورود اختصاصی */
.login-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.login-form .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.login-form .remember-me label {
    margin-bottom: 0;
    margin-right: 10px;
    font-weight: normal;
}

.login-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.login-links a {
    color: #333;
    text-decoration: underline;
    transition: color 0.2s;
}

.login-links a:hover {
    color: #000;
}

/* فرم ثبت‌نام */
.register-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.register-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.password-strength {
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* استایل پیشنهادی برای نمایش قدرت رمز عبور */
.weak {
    color: #ff4757;
}

.medium {
    color: #ffa502;
}

.strong {
    color: #2ed573;
}

/* فرم دیدگاه‌ها */
.comment-form {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comment-form textarea {
    min-height: 150px;
}

.comment-form-notes {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.comment-form .logged-in-as {
    margin-bottom: 20px;
    font-size: 14px;
}

/* فرم جستجو */
.search-form {
    position: relative;
    margin: 20px 0;
}

.search-form input[type="search"] {
    padding-right: 40px;
    background: #f5f5f5;
    border: none;
}

.search-form input[type="submit"] {
    position: absolute;
    left: 0;
    top: 0;
    padding: 12px 15px;
    background: transparent;
    color: #333;
    border: none;
    cursor: pointer;
}

.search-form input[type="submit"]:hover {
    background: transparent;
    transform: none;
    color: #000;
}


/* فرم ثبت‌نام */
.register-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.register-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.register-form ul {
    margin: 0;
    padding-right: 20px;
    list-style-type: disc;
}

.register-form li {
    margin-bottom: 5px;
}

.password-strength {
    height: 5px;
    margin-top: 5px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength:after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: transparent;
    transition: width 0.3s, background 0.3s;
}

.password-strength[data-strength="0"]:after {
    width: 20%;
    background: #ff4757;
}

.password-strength[data-strength="1"]:after {
    width: 40%;
    background: #ff4757;
}

.password-strength[data-strength="2"]:after {
    width: 60%;
    background: #ffa502;
}

.password-strength[data-strength="3"]:after {
    width: 80%;
    background: #2ed573;
}

.password-strength[data-strength="4"]:after {
    width: 100%;
    background: #2ed573;
}

.pagination{
	text-align: center;
}

.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pagination .nav-links a, .pagination .nav-links span{
	margin: 0 5px;
	text-decoration: none;
	padding: 10px;
	background: #efefef;
	height: 20px;
	width: max-content;
	display: block;
	color: #000;
	border-radius: 5px;
	min-width: 20px;
}

.pagination .nav-links span.current{
	background: #ccc;
}

/* اسکریپت بررسی قدرت رمز عبور */
@wp_enqueue_script('password-strength-meter');