/* ==========================================
   ZXUS STORE
   NOVELS PAGE
========================================== */


/* ==========================================
   RESET
========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: #050505;

    color: #f4f1ea;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    padding-bottom: 82px;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}


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

.novels-header {

    width: 100%;

    height: 122px;

    padding:
        20px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #070707;

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

    box-sizing: border-box;}


/* ==========================================
   BRAND
========================================== */

.novels-brand a {

    color: #d7bd79;

    text-decoration: none;

    display: flex;

    align-items: baseline;

    gap: 8px;

    flex-shrink: 1;}


.novels-brand span {

    font-size: 31px;

    font-weight: 600;

    letter-spacing: 3px;
}


.novels-brand small {

    color: #aaa294;

    font-size: 9px;

    letter-spacing: 4px;
}


/* ==========================================
   HEADER ACTIONS
========================================== */

.novels-header-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;
    min-width: 0;}


/* ==========================================
   PROFILE
========================================== */

.profile-photo-btn {

    width: 68px;

    height: 68px;

    padding: 0;

    border: none;

    outline: none;

    border-radius: 50%;

    background: #ffffff;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;
}


.profile-photo-btn:focus {

    outline: none;

    border: none;

    box-shadow: none;
}


#profileImage {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: none;
}


.profile-photo-btn.has-image #profileImage {

    display: block;
}


/* ==========================================
   SEARCH BUTTON
========================================== */

.novels-search-btn {

    width: 68px;

    height: 68px;

    padding: 0;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.12);

    background: #090909;

    color: #f2f2f2;

    font-family: Arial, sans-serif;

    font-size: 31px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.novels-search-btn:active {

    transform: scale(.96);
}


/* ==========================================
   POINTS
========================================== */

.points-mini {

    min-width: 200px;

    height: 68px;

    padding:
        0 15px;

    border:
        1px solid
        rgba(193,164,99,.45);

    background:
        linear-gradient(
            135deg,
            #17140f,
            #080808
        );

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.points-data {

    display: flex;

    flex-direction: column;

    align-items: flex-end;
}


.points-data small {

    color: #817866;

    font-family: Arial, sans-serif;

    font-size: 9px;

    letter-spacing: 3px;
}


.points-data strong {

    color: #dfca91;

    font-family: Arial, sans-serif;

    font-size: 17px;

    font-weight: 400;

    margin-top: 5px;
}


.points-symbol {

    width: 38px;

    height: 38px;

    border:
        1px solid
        rgba(211,188,126,.45);

    border-radius: 50%;

    color: #d8c18a;

    font-family: Arial, sans-serif;

    font-size: 18px;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* ==========================================
   SEARCH AREA
========================================== */

.novels-search-area {

    display: none;

    margin:
        15px 30px;

    height: 46px;

    padding:
        0 15px;

    gap: 10px;

    align-items: center;

    background: #0d0d0d;

    border:
        1px solid
        rgba(255,255,255,.12);
}


.novels-search-area.show {

    display: flex;
}


.novels-search-area span {

    font-family: Arial, sans-serif;

    font-size: 23px;

    color: #ffffff;
}


.novels-search-area input {

    width: 100%;

    height: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: #ffffff;

    font-family: Arial, sans-serif;

    font-size: 14px;
}


.novels-search-area input::placeholder {

    color: #666666;
}


/* ==========================================
   MAIN
========================================== */

.novels-main {

    width: 100%;

    padding:
        30px;
}


/* ==========================================
   TITLE
========================================== */

.novels-title {

    margin-bottom: 30px;
}


.novels-title > span {

    color: #bca46d;

    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 5px;
}


.novels-title h1 {

    margin-top: 12px;

    color: #ffffff;

    font-size: 39px;

    font-weight: 400;
}


.novels-title p {

    margin-top: 10px;

    color: #777777;

    font-family: Arial, sans-serif;

    font-size: 12px;

    line-height: 1.7;
}


/* ==========================================
   CATEGORIES
========================================== */

.novels-categories {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1px;

    background:
        rgba(255,255,255,.08);

    margin-bottom: 50px;
}


.novel-category {

    min-height: 105px;

    padding: 18px;

    border: none;

    background: #0b0b0b;

    color: #ffffff;

    text-align: right;

    transition:
        .2s ease;
}


.novel-category strong {

    display: block;

    font-size: 20px;

    font-weight: 400;
}


.novel-category small {

    display: block;

    margin-top: 10px;

    color: #666666;

    font-family: Arial, sans-serif;

    font-size: 10px;
}


.novel-category.active {

    border:
        1px solid
        rgba(194,164,102,.4);
}


.novel-category.active strong {

    color: #d6bc7e;
}


/* ==========================================
   SECTION HEADER
========================================== */

.novels-section-head {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 30px;
}


.novels-section-head span {

    color: #bca46d;

    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 5px;
}


.novels-section-head h2 {

    margin-top: 10px;

    color: #ffffff;

    font-size: 34px;

    font-weight: 400;
}


.novels-section-head button {

    border: none;

    background: transparent;

    color: #c4aa70;

    font-family: Arial, sans-serif;

    font-size: 12px;
}


/* ==========================================
   NOVELS HORIZONTAL ROW
========================================== */

.novels-row {

    width: 100%;

    display: flex;

    flex-direction: row;

    direction: rtl;

    gap: 22px;

    overflow-x: auto;

    overflow-y: hidden;

    padding:
        0
        0
        12px;

    scrollbar-width: none;

    -ms-overflow-style: none;

    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
}


.novels-row::-webkit-scrollbar {

    display: none;
}


/* ==========================================
   NOVEL CARD
========================================== */

.zx-novel-card {

    width: 256px;

    min-width: 256px;

    max-width: 256px;

    flex:
        0 0 256px;

    scroll-snap-align: start;

    background: #0d0d0d;

    border:
        1px solid
        rgba(255,255,255,.08);

    overflow: hidden;
}


/* ==========================================
   NOVEL COVER
========================================== */

.zx-novel-cover {

    width: 100%;

    aspect-ratio: .72;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}


/* ==========================================
   COVER ONE
========================================== */

.novel-cover-one {

    background:
        linear-gradient(
            145deg,
            #56483b,
            #17120f
        );

    color: #f3eee4;
}


.novel-cover-one::after {

    content: "";

    position: absolute;

    width: 180%;

    height: 100%;

    background:
        linear-gradient(
            120deg,
            transparent 30%,
            rgba(255,255,255,.12),
            transparent 68%
        );

    transform:
        rotate(-12deg);
}


.novel-cover-one span {

    position: absolute;

    top: 20px;

    right: 20px;

    z-index: 2;

    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 3px;
}


.novel-cover-one strong {

    position: relative;

    z-index: 2;

    font-size: 28px;

    line-height: .9;
}


/* ==========================================
   COVER TWO
========================================== */

.novel-cover-two {

    background:
        linear-gradient(
            145deg,
            #344650,
            #0c1215
        );

    color: #ffffff;
}


.novel-cover-two::before {

    content: "";

    position: absolute;

    width: 1px;

    height: 130%;

    background:
        rgba(255,255,255,.18);

    transform:
        rotate(30deg);

    left: 35%;
}


.novel-cover-two::after {

    content: "";

    position: absolute;

    width: 1px;

    height: 130%;

    background:
        rgba(255,255,255,.12);

    transform:
        rotate(-28deg);

    right: 30%;
}


.novel-cover-two span {

    position: absolute;

    top: 20px;

    right: 20px;

    z-index: 2;

    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 3px;
}


.novel-cover-two strong {

    position: relative;

    z-index: 3;

    font-size: 27px;

    line-height: .9;
}


/* ==========================================
   COVER THREE
========================================== */

.novel-cover-three {

    background:
        radial-gradient(
            circle at 50% 35%,
            #7c6740,
            #2a2418 45%,
            #090909 100%
        );

    color: #ffffff;
}


.novel-cover-three::after {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    border:
        1px solid
        rgba(215,190,125,.25);

    border-radius: 50%;
}


.novel-cover-three span {

    position: absolute;

    top: 20px;

    right: 20px;

    z-index: 3;

    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 3px;
}


.novel-cover-three strong {

    position: relative;

    z-index: 3;

    font-size: 30px;

    line-height: .9;
}


/* ==========================================
   COVER FOUR
========================================== */

.novel-cover-four {

    background:
        linear-gradient(
            145deg,
            #ded9cd,
            #817d74
        );

    color: #181818;
}


.novel-cover-four::after {

    content: "";

    position: absolute;

    width: 170%;

    height: 100%;

    background:
        linear-gradient(
            120deg,
            transparent 35%,
            rgba(255,255,255,.22),
            transparent 65%
        );

    transform:
        rotate(-10deg);
}


.novel-cover-four span {

    position: absolute;

    top: 20px;

    right: 20px;

    z-index: 2;

    font-family: Arial, sans-serif;

    font-size: 10px;
}


.novel-cover-four strong {

    position: relative;

    z-index: 2;

    font-size: 30px;

    line-height: .9;
}


/* ==========================================
   NOVEL INFO
========================================== */

.zx-novel-info {

    padding:
        15px;
}


.zx-novel-info h3 {

    color: #ffffff;

    font-size: 18px;

    font-weight: 400;
}


.zx-novel-info p {

    margin-top: 6px;

    color: #777777;

    font-family: Arial, sans-serif;

    font-size: 10px;
}


/* ==========================================
   NOVEL BOTTOM
========================================== */

.zx-novel-bottom {

    margin-top: 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.zx-novel-bottom > span {

    color: #d1bd8b;

    font-family: Arial, sans-serif;

    font-size: 16px;
}


.novel-add-btn {

    width: 42px;

    height: 42px;

    border:
        1px solid
        #a88d50;

    background: transparent;

    color: #d6bd7d;

    font-family: Arial, sans-serif;

    font-size: 25px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.novel-add-btn:active {

    transform: scale(.92);
}


/* ==========================================
   FEATURED NOVEL
========================================== */

.featured-novel {

    width: 100%;

    min-height: 280px;

    margin-top: 70px;

    padding:
        35px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    background:
        linear-gradient(
            110deg,
            #0d0d0d,
            #11100d
        );

    border:
        1px solid
        rgba(255,255,255,.08);
}


.featured-novel-content {

    flex: 1;
}


.featured-novel-content > span {

    color: #c0a66b;

    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 4px;
}


.featured-novel-content h2 {

    margin-top: 15px;

    color: #ffffff;

    font-size: 35px;

    font-weight: 400;
}


.featured-novel-content p {

    max-width: 430px;

    margin-top: 12px;

    color: #777777;

    font-family: Arial, sans-serif;

    font-size: 11px;

    line-height: 1.8;
}


.featured-novel-content button {

    margin-top: 20px;

    padding:
        12px 18px;

    border:
        1px solid
        rgba(194,164,102,.45);

    background: transparent;

    color: #d5bd82;

    font-family: Arial, sans-serif;

    font-size: 11px;
}


.featured-novel-content button b {

    margin-right: 8px;

    font-size: 15px;

    font-weight: 400;
}


/* ==========================================
   FEATURED COVER
========================================== */

.featured-novel-cover {

    width: 140px;

    aspect-ratio: .68;

    flex-shrink: 0;

    padding:
        15px;

    background:
        linear-gradient(
            145deg,
            #292925,
            #080808
        );

    border:
        1px solid
        rgba(194,164,102,.25);

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    color: #ffffff;
}


.featured-novel-cover small {

    color: #a99465;

    font-family: Arial, sans-serif;

    font-size: 7px;
}


.featured-novel-cover strong {

    font-size: 23px;

    line-height: .9;
}


.featured-novel-cover span {

    color: #a99465;

    font-family: Arial, sans-serif;

    font-size: 6px;

    letter-spacing: 2px;
}


/* ==========================================
   NO RESULTS
========================================== */

.novels-no-results {

    display: none;

    padding:
        70px 20px;

    text-align: center;
}


.novels-no-results.show {

    display: block;
}


.novels-no-results strong {

    color: #ffffff;

    font-size: 20px;

    font-weight: 400;
}


.novels-no-results p {

    margin-top: 10px;

    color: #666666;

    font-family: Arial, sans-serif;

    font-size: 11px;
}


/* ==========================================
   BOTTOM NAVIGATION
========================================== */

.bottom-nav {

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 500;

    min-height: 67px;

    padding:
        8px 8px
        calc(8px + env(safe-area-inset-bottom));

    display: flex;

    align-items: center;

    justify-content: space-around;

    background:
        rgba(7,7,7,.97);

    border-top:
        1px solid
        rgba(255,255,255,.08);

    backdrop-filter:
        blur(18px);

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


.nav-item {

    min-width: 55px;

    border: none;

    background: transparent;

    color:
        rgba(255,255,255,.35);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;
}


.nav-item span {

    font-family: Arial, sans-serif;

    font-size: 19px;

    line-height: 1;
}


.nav-item small {

    font-family: Arial, sans-serif;

    font-size: 8px;
}


.nav-item.active {

    color: #d5bd82;
}


.nav-item:active {

    transform: scale(.92);
}


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

@media (max-width: 600px) {


    /* HEADER */

    .novels-header {

        height: 122px;

        padding:
            18px 12px;
        box-sizing: border-box;
    }


    .novels-brand span {

        font-size: 25px;
    }


    .novels-brand small {

        font-size: 7px;
    }


    .novels-header-actions {

        gap: 7px;
    }


    .profile-photo-btn {

        width: 46px;

        height: 46px;
    }


    .novels-search-btn {

        width: 46px;

        height: 46px;

        font-size: 21px;
    }


    .points-mini {

        min-width: 120px;

        height: 52px;

        padding:
            0 10px;
    }


    .points-data small {

        font-size: 7px;
    }


    .points-data strong {

        font-size: 14px;
    }


    .points-symbol {

        width: 30px;

        height: 30px;

        font-size: 15px;
    }


    /* SEARCH */

    .novels-search-area {

        margin:
            12px 18px;
    }


    /* MAIN */

    .novels-main {

        padding:
            25px 29px;
    }


    /* TITLE */

    .novels-title {

        margin-bottom: 28px;
    }


    .novels-title h1 {

        font-size: 34px;
    }


    .novels-title p {

        font-size: 11px;
    }


    /* CATEGORIES */

    .novels-categories {

        margin-bottom: 45px;
    }


    .novel-category {

        min-height: 100px;

        padding: 16px;
    }


    .novel-category strong {

        font-size: 19px;
    }


    /* SECTION */

    .novels-section-head {

        margin-bottom: 28px;
    }


    .novels-section-head h2 {

        font-size: 29px;
    }


    .novels-section-head span {

        font-size: 9px;

        letter-spacing: 4px;
    }


    /* CAROUSEL */

    .novels-row {

        display: flex;

        flex-direction: row;

        direction: rtl;

        gap: 22px;

        overflow-x: auto;

        overflow-y: hidden;

        scrollbar-width: none;

        padding-bottom: 12px;
    }


    .novels-row::-webkit-scrollbar {

        display: none;
    }


    /* CARD */

    .zx-novel-card {

        width: 256px;

        min-width: 256px;

        max-width: 256px;

        flex:
            0 0 256px;
    }


    /* INFO */

    .zx-novel-info {

        padding:
            12px;
    }


    .zx-novel-info h3 {

        font-size: 16px;
    }


    .zx-novel-info p {

        font-size: 10px;
    }


    /* ADD */

    .novel-add-btn {

        width: 38px;

        height: 38px;

        font-size: 22px;
    }


    .zx-novel-bottom > span {

        font-size: 15px;
    }


    /* FEATURED */

    .featured-novel {

        min-height: 250px;

        margin-top: 65px;

        padding:
            25px;
    }


    .featured-novel-content h2 {

        font-size: 29px;
    }


    .featured-novel-content p {

        font-size: 10px;
    }


    .featured-novel-cover {

        width: 105px;
    }

}


/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 390px) {
    .novels-brand span {
        font-size: 22px;
    }




    .novels-header {

        padding-left: 18px;

        padding-right: 18px;
    }


    .novels-main {

        padding-left: 18px;

        padding-right: 18px;
    }


    .points-mini {

        min-width: 100px;
    }


    .points-symbol {

        display: none;
    }


    .novels-row {

        gap: 18px;
    }


    .zx-novel-card {

        width: 245px;

        min-width: 245px;

        max-width: 245px;

        flex:
            0 0 245px;
    }

}
/* ZXUS CATEGORY CAROUSEL - SAFE ADDITION */
.novels-categories {
    position: relative !important;
    display: block !important;
    width: 100%;
    height: 180px;
    min-height: 180px;
    overflow: hidden !important;
    padding: 0 !important;
    perspective: 900px;
    background: transparent;
}

.novels-categories .zxus-category-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.novels-categories .novel-category {
    position: absolute !important;
    top: 50%;
    left: 50%;
    width: 165px;
    min-height: 82px;
    margin: 0 !important;
    padding: 14px 12px;
    transform:
        translate(-50%, -50%)
        translateX(calc(var(--zxus-offset) * 155px))
        translateZ(calc((4 - var(--zxus-distance)) * 35px))
        rotateY(calc(var(--zxus-offset) * -18deg))
        scale(calc(1 - (var(--zxus-distance) * .10)));
    opacity: calc(1 - (var(--zxus-distance) * .17));
    transition:
        transform .42s ease,
        opacity .42s ease,
        box-shadow .42s ease,
        border-color .42s ease;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    background: #0b0b0b;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
}

.novels-categories .novel-category[aria-hidden="true"] {
    opacity: 0;
    pointer-events: none;
}

.novels-categories .novel-category.active {
    transform:
        translate(-50%, -50%)
        translateZ(120px)
        scale(1.12) !important;
    opacity: 1 !important;
    border-color: rgba(194,164,102,.75);
    box-shadow: 0 0 30px rgba(194,164,102,.16);
}

.novels-categories .zxus-category-arrow {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid rgba(194,164,102,.55);
    border-radius: 50%;
    background: #0b0b0b;
    color: #d6bc7e;
    font-size: 32px;
    line-height: 40px;
    cursor: pointer;
    z-index: 200;
}

.novels-categories .zxus-category-prev {
    left: 8px;
}

.novels-categories .zxus-category-next {
    right: 8px;
}

@media (max-width: 600px) {
    .novels-categories {
        height: 155px;
        min-height: 155px;
    }

    .novels-categories .novel-category {
        width: 135px;
        min-height: 74px;
        transform:
            translate(-50%, -50%)
            translateX(calc(var(--zxus-offset) * 105px))
            translateZ(calc((4 - var(--zxus-distance)) * 25px))
            rotateY(calc(var(--zxus-offset) * -16deg))
            scale(calc(1 - (var(--zxus-distance) * .10)));
    }

    .novels-categories .novel-category.active {
        transform:
            translate(-50%, -50%)
            translateZ(90px)
            scale(1.08) !important;
    }

    .novels-categories .zxus-category-prev {
        left: 4px;
    }

    .novels-categories .zxus-category-next {
        right: 4px;
    }
}



/* ==========================================
   ZXUS NOVEL CARD DESCRIPTION FLIP
   ========================================== */

.zx-novel-card {
    position: relative;
}

.zx-novel-cover {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform .55s ease;
}

.zx-novel-card.zx-novel-flipped .zx-novel-cover {
    transform: perspective(900px) rotateY(180deg);
}

.zx-novel-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: .72;
    box-sizing: border-box;
    padding: 22px 15px;
    overflow: hidden;
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.08);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: "Noto Kufi Arabic", "Kufi", "Tahoma", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
    text-align: center;
    direction: rtl;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transform: perspective(900px) rotateY(180deg);
    transform-origin: center;
    backface-visibility: hidden;
    transition: transform .55s ease;
    z-index: 3;
}

.zx-novel-card.zx-novel-flipped .zx-novel-description {
    transform: perspective(900px) rotateY(0deg);
}


/* ==========================================
   ZXUS SHOW ALL - NOVELS GRID
   Does not change the normal carousel
========================================== */

.novels-row.zxus-show-all-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    direction: rtl;
    gap: 22px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 0 0 12px;
    scroll-snap-type: none;
}

.novels-row.zxus-show-all-grid .zx-novel-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 256px !important;
    flex: none !important;
    justify-self: center;
    scroll-snap-align: none;
}

@media (max-width: 575px) {
    .novels-row.zxus-show-all-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .novels-row.zxus-show-all-grid .zx-novel-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* ZXUS NOVELS - SHOW ALL BUTTON FIX */
#showAllNovels {
    position: relative;
    z-index: 20;
    pointer-events: auto;
    cursor: pointer;
}
