/* =========================================================
   CBX.NZ — ABOUT PAGE
   ========================================================= */


/* =========================================================
   ABOUT MODULE LAYOUT
   ========================================================= */

.about-modules {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    gap: 24px;

    width: 100%;
    margin-top: 30px;
}


/* =========================================================
   MODULE
   ========================================================= */

.about-module {
    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.07);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   MODULE HEADER
   ========================================================= */

.module-header {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 20px 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(255, 255, 255, 0.035);
}


/* Header icon */

.module-header > i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.09);

    font-size: 18px;
}


/* Header text */

.module-header h2 {
    margin: 0;

    font-size: 20px;
    line-height: 1.2;
}

.module-header p {
    margin: 5px 0 0;

    font-size: 13px;
    line-height: 1.4;

    opacity: 0.65;
}


/* =========================================================
   LIKES TABLE
   ========================================================= */

.likes-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.likes-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: auto;
}


/* =========================================================
   TABLE HEADER
   ========================================================= */

.likes-table thead {
    background: rgba(0, 0, 0, 0.13);
}


.likes-table th {
    padding: 13px 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    text-align: left;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.7px;
    text-transform: uppercase;

    white-space: nowrap;

    opacity: 0.65;
}


/* =========================================================
   TABLE CELLS
   ========================================================= */

.likes-table td {
    padding: 13px 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    font-size: 14px;

    vertical-align: middle;
}


/* Remove border from final row */

.likes-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   TABLE ROW HOVER
   ========================================================= */

.likes-table tbody tr {
    transition:
        background 0.15s ease;
}


.likes-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.055);
}


/* =========================================================
   TABLE COLUMNS
   ========================================================= */

/* Category */

.likes-table th:nth-child(2),
.likes-table td:nth-child(2) {
    width: 1%;
    white-space: nowrap;
}


/* Like */

.likes-table th:nth-child(3),
.likes-table td:nth-child(3) {
    width: 65px;

    text-align: center;
}


/* Rating */

.likes-table th:nth-child(4),
.likes-table td:nth-child(4) {
    width: 75px;

    text-align: center;
}


/* =========================================================
   CATEGORY BADGE
   ========================================================= */

.category-badge {
    display: inline-block;

    padding: 4px 9px;

    border: 1px solid color-mix(
        in srgb,
        var(--category-colour) 45%,
        transparent
    );

    border-radius: 6px;

    background: color-mix(
        in srgb,
        var(--category-colour) 18%,
        transparent
    );

    color: var(--category-colour);

    font-size: 11px;
    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;
}


/* =========================================================
   LIKE STATUS
   ========================================================= */

.like-yes,
.like-no {
    font-size: 15px;

    text-align: center;
}


.like-yes {
    opacity: 0.95;
}


.like-no {
    opacity: 0.45;
}


/* =========================================================
   RATING
   ========================================================= */

.rating {
    display: inline-block;

    min-width: 38px;

    padding: 4px 7px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.07);

    font-size: 11px;
    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;
}


/* =========================================================
   INFORMATION MODULE
   ========================================================= */

.information-list {
    width: 100%;
}


/* =========================================================
   INFORMATION ITEM
   ========================================================= */

.information-item {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 15px 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


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


/* =========================================================
   INFORMATION ICON
   ========================================================= */

.information-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.075);

    font-size: 14px;
}


/* =========================================================
   INFORMATION TEXT
   ========================================================= */

.information-item > div:last-child {
    display: flex;
    flex-direction: column;

    min-width: 0;

    gap: 3px;
}


.information-label {
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.65px;
    text-transform: uppercase;

    opacity: 0.5;
}


.information-item strong {
    font-size: 13px;
    font-weight: 600;

    line-height: 1.35;

    overflow-wrap: anywhere;
}


/* =========================================================
   LOADING STATES
   ========================================================= */

#likes-table-body:empty::after {
    content: "Loading...";

    display: table-cell;

    padding: 20px;

    font-size: 13px;

    opacity: 0.5;
}


#information-list:empty::after {
    content: "Loading...";

    display: block;

    padding: 20px;

    font-size: 13px;

    opacity: 0.5;
}


/* =========================================================
   TABLE SCROLLBAR
   ========================================================= */

.likes-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.25)
        transparent;
}


.likes-table-wrapper::-webkit-scrollbar {
    height: 6px;
}


.likes-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}


.likes-table-wrapper::-webkit-scrollbar-thumb {
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.25);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .about-modules {
        grid-template-columns: 1fr;

        gap: 20px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .about-modules {
        gap: 16px;

        margin-top: 20px;
    }


    /* Module header */

    .module-header {
        gap: 12px;

        padding: 16px;
    }


    .module-header > i {
        width: 38px;
        height: 38px;

        font-size: 16px;
    }


    .module-header h2 {
        font-size: 18px;
    }


    .module-header p {
        font-size: 12px;
    }


    /* Table */

    .likes-table {
        min-width: 500px;
    }


    .likes-table th,
    .likes-table td {
        padding: 11px 13px;
    }


    /* Information */

    .information-item {
        gap: 11px;

        padding: 13px 15px;
    }


    .information-icon {
        width: 35px;
        height: 35px;
    }

}