/* ===================================================
   Xiaomi Price List – xpl-style.css
   تم رسمی Xiaomi: نارنجی #FF6900 / سیاه / سفید
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

/* ── Wrapper ── */
.xpl-wrapper {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    max-width: 780px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

/* ── Header ── */
.xpl-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 60%, #FF6900 140%);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.xpl-logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.xpl-mi-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(255,105,0,0.5));
}

.xpl-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xpl-main-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    padding: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
    border: none;
    background: none;
}

.xpl-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.xpl-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,105,0,0.18);
    border: 1px solid rgba(255,105,0,0.4);
    color: #FF9A4D;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.xpl-dot {
    width: 7px;
    height: 7px;
    background: #FF6900;
    border-radius: 50%;
    display: inline-block;
    animation: xpl-pulse 1.8s ease-in-out infinite;
}

@keyframes xpl-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ── List Container ── */
.xpl-list {
    padding: 8px 0;
}

/* ── Single Item ── */
.xpl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.18s ease;
}

.xpl-item:last-child {
    border-bottom: none;
}

.xpl-item:hover {
    background: #fafafa;
}

/* Latest item highlight */
.xpl-item--latest {
    background: linear-gradient(90deg, #fff8f4 0%, #fff 100%);
    border-right: 3px solid #FF6900;
}

.xpl-item--latest:hover {
    background: linear-gradient(90deg, #fff3ec 0%, #fafafa 100%);
}

/* Right side */
.xpl-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.xpl-item-icon {
    width: 38px;
    height: 38px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6900;
    flex-shrink: 0;
}

.xpl-item--latest .xpl-item-icon {
    background: #fff3ec;
    color: #FF6900;
}

.xpl-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.xpl-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xpl-item-date {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.xpl-today-tag {
    background: #FF6900;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    vertical-align: middle;
}

/* Actions */
.xpl-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.xpl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    border: none;
}

.xpl-btn--view {
    background: #f0f0f0;
    color: #333;
}

.xpl-btn--view:hover {
    background: #e0e0e0;
    color: #111;
    text-decoration: none;
}

.xpl-btn--download {
    background: #FF6900;
    color: #fff;
}

.xpl-btn--download:hover {
    background: #e55c00;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,105,0,0.35);
}

.xpl-no-file {
    font-size: 12px;
    color: #bbb;
    font-style: italic;
}

/* ── Empty state ── */
.xpl-empty {
    text-align: center;
    padding: 48px 24px;
    color: #bbb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.xpl-empty p {
    font-size: 14px;
    margin: 0;
}

/* ── Footer ── */
.xpl-footer {
    background: #f9f9f9;
    border-top: 1px solid #f0f0f0;
    padding: 12px 24px;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xpl-footer-credit {
    font-size: 10px;
    color: #c8c8c8;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .xpl-header {
        padding: 18px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .xpl-main-title {
        font-size: 16px;
    }

    .xpl-item {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .xpl-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .xpl-btn {
        flex: 1;
        justify-content: center;
        padding: 9px 10px;
    }

    .xpl-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}
