.header {
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* برای موبایل */
    padding: 10px;
}

.header-img {
    max-width: 200px;
    height: auto;
}

.header-img.right {
    height: 130px;
}

.header-text {
    text-align: center;
    flex: 1 1 200px;
    /* وسط همیشه حداقل 200px باشد */
    margin: 0 20px;
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
    }

    .header-text {
        margin: 10px 0;
    }

    .header-img.right {
        height: auto;
        /* موبایل ارتفاع ثابت نداشته باشد */
        max-width: 150px;
    }
}
/* Global Styles */
body {
    font-family: "Arial", sans-serif;
    background-color: #1c1c1c;
    color: #f0f0f0;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    margin: 0;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    direction: rtl;
}

h1 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 400;
    color: #00c853;
    letter-spacing: 2px;
}

p,
h3,
span {
    font-size: 1.2em;
    color: #ffffff;
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: center;
}

p {
    margin-left: 5px;
    margin-right: 5px;
}

/* Script Card Styles */
.scripts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.script-card {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.script-card .script-info {
    margin-top: auto;
    /* این باعث می‌شود که نویسنده و لینک به پایین بچسبند */
}

.script-card .script-info a {
    margin-top: 10px;
    /* فاصله بین نویسنده و لینک */
}

.script-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.script-title {
    font-size: 1.7em;
    color: #4caf50;
    margin: 10px;
    font-weight: 500;
}

.script-panel {
    font-size: 1em;
    color: #00b6ca;
    margin-bottom: 10px;
    text-align: center;
}

.script-description {
    font-size: 1.1em;
    color: #bbb;
    margin-bottom: 10px;
    text-align: right;
}

.script-author {
    font-size: 1em;
    color: #abf7e0;
    margin-bottom: 20px;
    text-align: center;
}

/* Link Style */
a.script-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #4caf50;
    color: #fff;
    text-decoration: none; !important
    font-size: 1.2em;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    position: relative;
}

a.script-link:hover {
    background-color: #45a049;
}

a.script-link i {
    margin-left: 10px;
    font-size: 1.3em;
}

/* استایل فوتر */
.footer {
    background-color: #1f1f1f;
    padding: 30px 20px;
    margin-top: 50px;
    color: #fff;
}

.footer-container {
    display: flex;
    justify-content: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1350px;
    gap: 30px;
    padding: 20px;
    background-color: #333;
    border-radius: 8px;
    border: 1px solid #444;
}

/* بخش Change Log */
.change-log {
    display: inline-block;
    direction: rtl;
    text-align: right;
    max-width: 670px;
    padding: 10px;
}

.change-log h3 {
    font-size: 1.4em;
    text-align: right;
    margin-bottom: 15px;
    color: #fff;
}

.change-log ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.change-log li {
    display: inline-block;
    font-size: 1em;
    color: #bbb;
    margin-bottom: 8px;
}

/* بخش اطلاعات افزونه */
.plugin-info {
    flex: 1;
    text-align: right;
    padding: 20px;
}

.plugin-info h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #4693c6;
}

.plugin-info p {
    font-size: 1em;
    line-height: 1.6;
    color: #fafafa;
    margin-top: 0;
    text-align: right;
}

.plugin-info strong {
    color: #fff;
}

.plugin-info a {
    display: flex;  
    align-items: center;
    font-size: 1.3em;
    justify-content: center;
    padding: 12px 25px;
    background-color: #4caf50;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3sease;
    osition: relative;
}
/* برای نمایش به شکل ریسپانسیو */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .plugin-info {
        text-align: center;
        margin-bottom: 30px;
    }

    .change-log {
        text-align: center;
    }
}

/* Popup Style */
.popup {
    display: none;
    background-color: #1c9c02cc;
    color: #4b4b4b; !important
    padding: 15px;
    border-radius: 5px;
    position: fixed;
    top: 30px;
    left: 75%;
    transform: translateX(-50%);
    font-size: 1.3em;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }

    .script-card {
        padding: 20px;
    }

    .scripts {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}