/* =========================================================
   DEVICES PAGE
   ВСЕ СТИЛИ ИЗОЛИРОВАНЫ ЧЕРЕЗ .devices-page
========================================================= */


/* =========================================================
   DEVICES LIST
========================================================= */

.devices-page .devices-list {
    padding: 30px 0 45px;
}


/* =========================================================
   ITEM CATEGORY GRID
========================================================= */

.devices-page .item-category-grid {
    display: flex;
    flex-direction: column;

    gap: 15px;
}


/* =========================================================
   ITEM CARD
========================================================= */

.devices-page .item-card {
    display: grid;

    grid-template-columns: 190px minmax(0, 1fr);

    gap: 28px;

    min-height: 220px;

    padding: 20px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #0d0d0d 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.07);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.devices-page .item-card:hover {
    background:
        linear-gradient(
            135deg,
            #151515 0%,
            #101010 100%
        );

    border-color: rgba(183, 43, 43, 0.65);

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   ITEM IMAGE
========================================================= */

.devices-page .item-card-image {
    position: relative;

    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle,
            rgba(183, 43, 43, 0.14),
            transparent 65%
        ),
        #0b0b0b;

    border: 1px solid rgba(183, 43, 43, 0.25);
}

.devices-page .item-card-image::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 55px;
    height: 2px;

    transform: translateX(-50%);

    background: #b72b2b;
}

.devices-page .item-card-image img {
    width: 145px;
    height: 145px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.devices-page .item-card:hover .item-card-image img {
    transform: scale(1.04);
}


/* =========================================================
   ITEM CARD INFO
========================================================= */

.devices-page .item-card-info {
    min-width: 0;
}


/* =========================================================
   ITEM CARD HEADER
========================================================= */

.devices-page .item-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    min-width: 0;
}


/* =========================================================
   ITEM CARD TITLE
========================================================= */

.devices-page .item-card-title {
    margin: 0;

    color: #e7e7e7;

    font-size: 27px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: 1px;

    transition: color 0.25s ease;
}

.devices-page .item-card:hover .item-card-title {
    color: #d83232;
}


/* =========================================================
   ITEM CARD TITLE LINE
========================================================= */

.devices-page .item-card-title-line {
    width: 40px;
    height: 1px;

    margin-bottom: 20px;

    background: #7d2828;

    transition: width 0.25s ease;
}

.devices-page .item-card:hover .item-card-title-line {
    width: 65px;
}


/* =========================================================
   ITEM META
========================================================= */

.devices-page .item-card-meta {
    display: flex;
    align-items: center;

    padding-top: 5px;
}


/* =========================================================
   ITEM LEVEL
========================================================= */

.devices-page .item-level {
    padding-left: 12px;

    color: #555555;

    border-left: 1px solid rgba(183, 43, 43, 0.45);

    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 1.5px;

    white-space: nowrap;
}


/* =========================================================
   ITEM INFO SECTION
========================================================= */

.devices-page .item-info-section {
    margin-bottom: 18px;
}


/* =========================================================
   ITEM INFO TITLE
========================================================= */

.devices-page .item-info-title {
    margin-bottom: 7px;

    color: #6fa36f;

    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 1px;
}


/* =========================================================
   ITEM BASIC INFO
========================================================= */

.devices-page .item-basic-info {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.devices-page .item-basic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 5px 8px;

    background: #101010;

    border: 1px solid rgba(183, 43, 43, 0.25);

    color: #777777;

    font-size: 12px;
    line-height: 1.5;
}

.devices-page .item-basic-row strong {
    min-width: 38px;

    color: #bdbdbd;

    font-size: 11px;
    font-weight: 400;
}

.devices-page .item-basic-row:hover {
    color: #a0a0a0;

    border-color: rgba(183, 43, 43, 0.45);
}

.devices-page .item-basic-row:hover strong {
    color: #eeeeee;
}


/* =========================================================
   ITEM STATS
========================================================= */

.devices-page .item-stats {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 35px;
    row-gap: 5px;
}

.devices-page .item-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 5px 8px;

    background: #101010;

    border: 1px solid rgba(183, 43, 43, 0.25);

    font-size: 11px;
    line-height: 1.5;
}

.devices-page .item-stat span:first-child {
    color: #777777;
}

.devices-page .item-stat span:last-child {
    color: #bdbdbd;

    font-size: 11px;
    white-space: nowrap;
}

.devices-page .item-stat:hover {
    border-color: rgba(183, 43, 43, 0.45);
}

.devices-page .item-stat:hover span:first-child {
    color: #999999;
}

.devices-page .item-stat:hover span:last-child {
    color: #eeeeee;
}


/* =========================================================
   EMPTY
========================================================= */

.devices-page .item-empty {
    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: #101010;

    border: 1px solid rgba(255, 255, 255, 0.07);

    color: #555555;

    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 1.5px;

    text-align: center;
}


/* =========================================================
   DEVICES PAGE SCROLL
========================================================= */

@media (min-width: 701px) {

    body:has(.devices-page) {
        height: auto;
        min-height: 100vh;

        overflow-x: hidden;
        overflow-y: auto;
    }

    .devices-page {
        flex: none;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .devices-page .item-card {
        grid-template-columns: 160px minmax(0, 1fr);

        gap: 20px;
    }

    .devices-page .item-card-image {
        min-height: 160px;
    }

    .devices-page .item-card-image img {
        width: 125px;
        height: 125px;
    }

    .devices-page .item-card-header {
        gap: 15px;
    }

    .devices-page .item-stats {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .devices-page .item-card {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 15px;
    }

    .devices-page .item-card-image {
        min-height: 190px;
    }

    .devices-page .item-card-image img {
        width: 145px;
        height: 145px;
    }

    .devices-page .item-card-header {
        flex-direction: column;

        gap: 5px;
    }

    .devices-page .item-card-title {
        font-size: 24px;
    }

    .devices-page .item-level {
        padding-left: 0;

        border-left: 0;
    }

    .devices-page .item-stats {
        grid-template-columns: 1fr;
    }

}