/* ══════════════════════════════════════════════
   Arshia Download Center — Front-end styles
   Brand: purple #352070 + gold #EEBB66
   ══════════════════════════════════════════════ */

.arshia-dl-wrap,
.arshia-dl-box {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    --dl-purple: #352070;
    --dl-purple-dark: #2a1a5a;
    --dl-gold: #EEBB66;
    --dl-gold-light: #f5cc85;
    --dl-border: #e8e6f0;
}

/* ---------- Hero ---------- */
.arshia-dl-hero {
    background: linear-gradient(135deg, var(--dl-purple), var(--dl-purple-dark));
    border-radius: 18px;
    padding: 34px 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.arshia-dl-hero-text h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}

.arshia-dl-hero-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.9;
}

.arshia-dl-search {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    padding: 6px;
    border-radius: 30px;
}

.arshia-dl-search input {
    border: none;
    background: transparent;
    color: #fff;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    min-width: 190px;
    outline: none;
}

.arshia-dl-search input::placeholder {
    color: rgba(255, 255, 255, .6);
}

.arshia-dl-search button {
    border: none;
    background: var(--dl-gold);
    color: #1a1a2e;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s;
}

.arshia-dl-search button:hover {
    background: var(--dl-gold-light);
}

/* ---------- Grid & cards ---------- */
.arshia-dl-grid {
    display: grid;
    grid-template-columns: repeat(var(--dl-cols, 3), minmax(0, 1fr));
    gap: 20px;
}

.arshia-dl-card {
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.arshia-dl-card:hover {
    box-shadow: 0 10px 30px rgba(53, 32, 112, .1);
    transform: translateY(-3px);
    border-color: rgba(53, 32, 112, .25);
}

.arshia-dl-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.arshia-dl-card-top img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 12px;
    background: #f7f5fd;
    padding: 8px;
}

.arshia-dl-card-icon {
    font-size: 34px;
    line-height: 1;
}

.arshia-dl-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--dl-purple);
    line-height: 1.6;
}

.arshia-dl-card-desc {
    margin: 0;
    font-size: 13px;
    color: #6b6b7b;
    line-height: 1.9;
    flex: 1;
}

.arshia-dl-gate-badge {
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(53, 32, 112, .08);
    color: var(--dl-purple);
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ---------- Meta list ---------- */
.arshia-dl-meta {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px dashed var(--dl-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 12.5px;
}

.arshia-dl-meta li {
    color: #7a7a8c;
    display: flex;
    gap: 5px;
    align-items: baseline;
}

.arshia-dl-meta strong {
    color: #2d3436;
    font-weight: 700;
}

.arshia-dl-meta code {
    font-size: 11.5px;
    background: #f2f0f9;
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--dl-purple);
    letter-spacing: .5px;
}

/* ---------- Buttons ---------- */
.arshia-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    text-align: center;
}

.arshia-dl-btn.is-primary {
    background: var(--dl-purple);
    color: #fff;
    border-color: var(--dl-purple);
}

.arshia-dl-btn.is-primary:hover {
    background: var(--dl-gold);
    color: #1a1a2e;
    border-color: var(--dl-gold);
}

.arshia-dl-btn.is-outline {
    background: #fff;
    color: var(--dl-purple);
    border-color: var(--dl-purple);
}

.arshia-dl-btn.is-outline:hover {
    background: var(--dl-purple);
    color: #fff;
}

.arshia-dl-btn.is-warning {
    background: var(--dl-gold);
    color: #1a1a2e;
    border-color: var(--dl-gold);
}

.arshia-dl-btn.is-warning:hover {
    background: var(--dl-gold-light);
}

.arshia-dl-btn.is-disabled {
    background: #f1f0f5;
    color: #9a9aa8;
    cursor: not-allowed;
    border-color: #e6e4ee;
    font-size: 12.5px;
    font-weight: 600;
}

.arshia-dl-details {
    font-size: 12.5px;
    color: var(--dl-purple);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2px;
}

.arshia-dl-details:hover {
    color: #1f1348;
}

.arshia-dl-deny-hint {
    display: block;
    font-size: 11.5px;
    color: #b45309;
    line-height: 1.7;
    margin-top: 4px;
}

.arshia-dl-beta-note {
    background: #fff8e6;
    border: 1px solid #f5dfa8;
    color: #8a6100;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 10px;
}

/* ---------- Beta consent form ---------- */
.arshia-dl-beta-form {
    background: #fffdf5;
    border: 1px solid #f3e3b8;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.arshia-dl-beta-check {
    font-size: 12.5px;
    color: #6b5a20;
    display: flex;
    gap: 7px;
    align-items: flex-start;
    line-height: 1.7;
}

/* ---------- Product page box ---------- */
.arshia-dl-box {
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.arshia-dl-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--dl-border);
    margin-bottom: 16px;
}

.arshia-dl-box-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--dl-purple);
}

.arshia-dl-versions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.arshia-dl-version {
    border: 1px solid var(--dl-border);
    border-radius: 13px;
    padding: 16px;
    background: #fcfcfe;
}

.arshia-dl-version.is-latest {
    border-color: rgba(53, 32, 112, .3);
    background: #faf8ff;
}

.arshia-dl-version-head {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}

.arshia-dl-version-head strong {
    font-size: 15px;
    color: var(--dl-purple);
    font-weight: 800;
}

.arshia-dl-version-date {
    margin-inline-start: auto;
    font-size: 12px;
    color: #8a8a99;
}

.arshia-dl-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(53, 32, 112, .1);
    color: var(--dl-purple);
}

.arshia-dl-tag.is-beta {
    background: #fff3d6;
    color: #8a6100;
}

.arshia-dl-tag.is-force {
    background: #fde8e8;
    color: #9b1c1c;
}

.arshia-dl-changelog {
    font-size: 13px;
    color: #555;
    line-height: 2;
    margin-bottom: 12px;
}

.arshia-dl-changelog ul {
    margin: 0;
    padding-inline-start: 20px;
}

.arshia-dl-version-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.arshia-dl-size {
    font-size: 12.5px;
    color: #7a7a8c;
    background: #f2f0f9;
    padding: 5px 12px;
    border-radius: 20px;
}

.arshia-dl-checksum {
    font-size: 11px;
    color: #9a9aa8;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    margin-top: 9px;
    direction: ltr;
    text-align: left;
}

/* ---------- My downloads library ---------- */
.arshia-dl-lib-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.arshia-dl-lib-head h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
    color: var(--dl-purple);
}

.arshia-dl-quota {
    font-size: 13px;
    background: #faf8ff;
    border: 1px solid var(--dl-border);
    color: #555;
    padding: 8px 16px;
    border-radius: 30px;
}

.arshia-dl-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dl-purple);
    margin: 30px 0 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid rgba(53, 32, 112, .1);
}

.arshia-dl-card.is-license {
    gap: 8px;
}

.arshia-dl-license-status {
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 20px;
    align-self: flex-start;
}

.arshia-dl-license-status.is-valid {
    background: #e6f6ec;
    color: #166534;
}

.arshia-dl-license-status.is-invalid {
    background: #fdeaea;
    color: #991b1b;
}

.arshia-dl-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--dl-border);
    border-radius: 13px;
}

.arshia-dl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.arshia-dl-table th {
    background: #faf8ff;
    color: var(--dl-purple);
    font-weight: 700;
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid var(--dl-border);
    white-space: nowrap;
}

.arshia-dl-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f2f8;
    color: #555;
}

.arshia-dl-table tr:last-child td {
    border-bottom: none;
}

.arshia-dl-lib-foot {
    margin-top: 26px;
    text-align: center;
}

.arshia-dl-login-required,
.arshia-dl-empty {
    background: #faf9fd;
    border: 1px dashed var(--dl-border);
    border-radius: 14px;
    padding: 32px 22px;
    text-align: center;
    font-size: 14px;
    color: #77778a;
    line-height: 2;
}

.arshia-dl-empty .arshia-dl-btn,
.arshia-dl-login-required .arshia-dl-btn {
    margin-top: 14px;
}

/* ---------- Pills & notices ---------- */
.arshia-dl-pill {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f1f0f5;
    color: #6b6b7b;
    margin-inline-end: 4px;
}

.arshia-dl-pill.is-ok {
    background: #e6f6ec;
    color: #166534;
}

.arshia-dl-pill.is-deny {
    background: #fdeaea;
    color: #991b1b;
}

.arshia-dl-pill.is-latest {
    background: rgba(53, 32, 112, .1);
    color: var(--dl-purple);
}

.arshia-dl-pill.is-beta {
    background: #fff3d6;
    color: #8a6100;
}

.arshia-dl-pill.is-force {
    background: #fde8e8;
    color: #9b1c1c;
}

.arshia-dl-notice-wrap {
    max-width: 900px;
    margin: 18px auto;
    padding: 0 16px;
}

.arshia-dl-notice {
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.9;
}

.arshia-dl-notice.is-success {
    background: #e6f6ec;
    color: #166534;
    border: 1px solid #bde5cb;
}

.arshia-dl-notice.is-info {
    background: #eef4ff;
    color: #1e40af;
    border: 1px solid #c7dbff;
}

.arshia-dl-notice.is-warning {
    background: #fff8e6;
    color: #8a6100;
    border: 1px solid #f5dfa8;
}

.arshia-dl-notice.is-error {
    background: #fdeaea;
    color: #991b1b;
    border: 1px solid #f5c7c7;
}

/* ---------- Admin ---------- */
.arshia-dl-admin .arshia-dl-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
    max-width: 1100px;
}

.arshia-dl-admin .arshia-dl-stat {
    background: #fff;
    border: 1px solid #e3e1ec;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.arshia-dl-admin .arshia-dl-stat .num {
    font-size: 26px;
    font-weight: 800;
    color: #352070;
    line-height: 1.2;
}

.arshia-dl-admin .arshia-dl-stat .lbl {
    font-size: 12.5px;
    color: #77778a;
}

.arshia-dl-admin .arshia-dl-stat.is-warn .num {
    color: #b45309;
}

.arshia-dl-admin-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    max-width: 1100px;
}

.arshia-dl-admin-box {
    background: #fff;
    border: 1px solid #e3e1ec;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
    max-width: 1100px;
}

.arshia-dl-admin-box h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #352070;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .arshia-dl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .arshia-dl-hero {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .arshia-dl-search {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .arshia-dl-grid {
        grid-template-columns: 1fr !important;
    }

    .arshia-dl-meta {
        grid-template-columns: 1fr;
    }

    .arshia-dl-search {
        flex-direction: column;
        border-radius: 16px;
    }

    .arshia-dl-search input {
        min-width: 0;
        text-align: center;
    }

    .arshia-dl-hero-text h1 {
        font-size: 21px;
    }
}
