﻿
/* ============================================
       استایل‌های اختصاصی صفحه قیمت روز الکتروموتور
       ============================================ */
/* هدر صفحه */
.price-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.price-header h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-header .price-date {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-top: 8px;
}

    .price-header .price-date i {
        margin-left: 5px;
    }

/* توضیحات راهنما */
.motor-description {
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 30px;
    border-right: 5px solid #dc3545;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

    .motor-description h2 {
        font-size: 18px;
        font-weight: 700;
        color: #2d3748;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .motor-description h2 i {
            color: #dc3545;
        }

    .motor-description p {
        font-size: 13px;
        line-height: 1.8;
        color: #4a5568;
        margin-bottom: 10px;
    }

    .motor-description strong {
        color: #dc3545;
    }

/* کانتینر جدول */
.price-table-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow-x: auto;
}

/* استایل جدول DataTable */
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .price-table thead th {
        background: linear-gradient(135deg, #2d3748, #1a202c);
        color: white;
        padding: 15px 12px;
        font-weight: 600;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
    }

        .price-table thead th:first-child {
            border-radius: 12px 0 0 0;
        }

        .price-table thead th:last-child {
            border-radius: 0 12px 0 0;
        }

    .price-table tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #eef2f6;
    }

        .price-table tbody tr:hover {
            background-color: #fef2f2;
        }

    .price-table tbody td {
        padding: 14px 12px;
        text-align: center;
        vertical-align: middle;
        color: #4a5568;
    }

        .price-table tbody td:first-child {
            font-weight: 600;
            color: #dc3545;
        }

.product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .product-img:hover {
        transform: scale(1.5);
        cursor: pointer;
    }

.product-name {
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .product-name:hover {
        color: #dc3545;
        text-decoration: underline;
    }

.price-value {
    font-weight: 700;
    color: #dc3545;
    font-size: 16px;
    white-space: nowrap;
}

.brand-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e3f2fd;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #1565c0;
}

/* سفارشی سازی DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    margin: 15px 0;
}

    .dataTables_wrapper .dataTables_filter input {
        border: 2px solid #e2e8f0;
        border-radius: 50px;
        padding: 8px 15px;
        margin-right: 10px;
        outline: none;
        transition: all 0.3s ease;
    }

        .dataTables_wrapper .dataTables_filter input:focus {
            border-color: #dc3545;
            box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
        }

    .dataTables_wrapper .dataTables_length select {
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        padding: 6px 10px;
        margin: 0 5px;
        outline: none;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 8px 14px;
        margin: 0 3px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: white;
        color: #4a5568;
        transition: all 0.3s ease;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current {
            background: #dc3545;
            border-color: #dc3545;
            color: white;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: #dc3545;
            border-color: #dc3545;
            color: white;
        }

.dataTables_info {
    color: #6c757d;
    font-size: 13px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .price-header h1 {
        font-size: 22px;
    }

    .motor-description {
        padding: 15px;
    }

        .motor-description h2 {
            font-size: 16px;
        }

    .price-table-container {
        padding: 12px;
    }

    .price-table thead th {
        padding: 10px 8px;
        font-size: 12px;
    }

    .price-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .price-value {
        font-size: 14px;
    }

    .product-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .price-table thead th,
    .price-table tbody td {
        white-space: nowrap;
    }

    .price-table-container {
        overflow-x: auto;
    }
}

/* انیمیشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-header, .motor-description, .price-table-container {
    animation: fadeInUp 0.6s ease forwards;
}


