/* =========================================================
   WRITERS VS ARTISTS
   ACCOUNT DASHBOARD
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.dashboard-page {
    width: 100%;

    background-color: #050b10;

    color: #f4f1e8;
}



/* =========================================================
   LOGGED-IN ACCOUNT HEADER MENU
========================================================= */

.account-menu {
    position: relative;
}


.account-menu-button {
    appearance: none;

    background: transparent;

    border: none;

    cursor: pointer;

    font: inherit;
}


.account-menu-arrow {
    margin-left: 4px;

    color: #d5a62b;

    font-size: 11px;

    transition: transform 0.2s ease;
}


.account-menu-button[aria-expanded="true"]
.account-menu-arrow {
    transform: rotate(180deg);
}



/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.account-dropdown {
    position: absolute;

    top: calc(100% + 15px);
    right: 0;

    z-index: 1500;

    width: 220px;

    padding: 8px 0;

    background-color: #071017;

    border: 1px solid #8b651d;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5);
}


.account-dropdown[hidden] {
    display: none;
}


.account-dropdown-link {
    width: 100%;

    min-height: 42px;

    display: flex;

    align-items: center;

    padding: 0 18px;

    background: transparent;

    color: #c9c5bb;

    border: none;

    text-decoration: none;

    text-align: left;

    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.account-dropdown-link:hover {
    background-color: #0c161d;

    color: #d5a62b;
}


.active-account-link {
    color: #d5a62b;
}


.account-dropdown-divider {
    height: 1px;

    margin: 6px 14px;

    background-color: #40351d;
}


.account-logout-button {
    color: #aaa59c;
}



/* =========================================================
   ACCOUNT HEADING AREA
========================================================= */

.dashboard-heading-section {
    position: relative;

    width: 100%;

    background-image:
        linear-gradient(
            90deg,
            rgba(5, 11, 16, 0.96) 0%,
            rgba(5, 11, 16, 0.88) 48%,
            rgba(5, 11, 16, 0.65) 100%
        ),
        url("../Images/placeholder.jpg");

    background-size: cover;

    background-position: center;

    border-bottom: 1px solid #40351d;
}


.dashboard-heading-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 46px 65px 28px;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}



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

.dashboard-heading-text h1 {
    color: #f4f1e8;

    font-size: clamp(42px, 4vw, 60px);

    font-weight: normal;

    line-height: 1;

    letter-spacing: 1px;

    margin-bottom: 10px;
}


.dashboard-heading-text p {
    color: #c9c5bb;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;

    line-height: 1.5;
}



/* =========================================================
   HEADING MESSAGE
========================================================= */

.dashboard-heading-message {
    max-width: 330px;

    padding-bottom: 6px;

    text-align: right;
}


.dashboard-heading-message p {
    color: #d5a62b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2.5px;

    margin-bottom: 6px;
}


.dashboard-heading-message span {
    color: #aaa59c;

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

    font-size: 15px;

    font-style: italic;
}



/* =========================================================
   DASHBOARD TABS
========================================================= */

.dashboard-tabs {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 0 65px;

    display: flex;

    align-items: center;

    gap: 10px;
}


.dashboard-tab {
    position: relative;

    padding: 15px 20px 16px;

    color: #b8b3aa;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;

    transition: color 0.2s ease;
}


.dashboard-tab:hover {
    color: #f4f1e8;
}


.dashboard-tab::after {
    content: "";

    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 0;

    height: 3px;

    background-color: transparent;
}


.active-dashboard-tab {
    color: #d5a62b;
}


.active-dashboard-tab::after {
    background-color: #d5a62b;
}



/* =========================================================
   DASHBOARD CONTENT
========================================================= */

.dashboard-content-section {
    width: 100%;

    padding: 34px 0 45px;

    background-color: #050b10;
}


.dashboard-content-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 0 65px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.85fr)
        minmax(310px, 0.95fr);

    gap: 22px;

    align-items: start;
}



/* =========================================================
   MAIN / SIDE COLUMNS
========================================================= */

.dashboard-main-column,
.dashboard-side-column {
    display: flex;

    flex-direction: column;

    gap: 20px;
}



/* =========================================================
   GENERAL PANEL
========================================================= */

.dashboard-panel {
    background-color: #081016;

    border: 1px solid #403f3a;

    padding: 24px;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18);
}


.dashboard-panel-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.dashboard-panel-heading h2 {
    color: #f4f1e8;

    font-size: 24px;

    font-weight: normal;

    line-height: 1.1;
}


.dashboard-panel-heading a {
    flex-shrink: 0;

    color: #d5a62b;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 0.7px;

    transition: color 0.2s ease;
}


.dashboard-panel-heading a:hover {
    color: #ebbd42;
}



/* =========================================================
   CONTINUE YOUR LIBRARY
========================================================= */

.dashboard-library-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


.dashboard-library-card {
    min-width: 0;
}


.dashboard-library-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 3 / 4;

    overflow: hidden;

    border: 1px solid #504528;

    background-color: #03080c;
}


.dashboard-library-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.25s ease;
}


.dashboard-library-image:hover img {
    transform: scale(1.025);
}



/* =========================================================
   AUDIO BADGE
========================================================= */

.dashboard-audio-icon {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: rgba(5, 11, 16, 0.9);

    color: #f4f1e8;

    border: 1px solid #8b651d;

    border-radius: 50%;

    font-size: 13px;
}



/* =========================================================
   PROGRESS
========================================================= */

.dashboard-library-progress {
    margin: 10px 2px 12px;
}


.dashboard-progress-bar {
    width: 100%;
    height: 5px;

    overflow: hidden;

    background-color: #202a30;

    border-radius: 10px;

    margin-bottom: 7px;
}


.dashboard-progress-bar span {
    display: block;

    height: 100%;

    background-color: #d5a62b;

    border-radius: 10px;
}


.dashboard-library-progress p {
    color: #a9a49b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;
}



/* =========================================================
   CONTINUE BUTTON
========================================================= */

.dashboard-library-button {
    width: 100%;

    min-height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 8px 9px;

    color: #d5a62b;

    border: 1px solid #8b651d;

    text-decoration: none;

    text-align: center;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 0.6px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.dashboard-library-button:hover {
    background-color: #d5a62b;

    color: #050b10;

    border-color: #d5a62b;
}



/* =========================================================
   RECENT ORDERS
========================================================= */

.dashboard-order-list {
    border-top: 1px solid #332f29;
}


.dashboard-order {
    display: grid;

    grid-template-columns:
        68px
        minmax(0, 1fr)
        auto
        120px;

    gap: 18px;

    align-items: center;

    padding: 14px 0;

    border-bottom: 1px solid #332f29;
}


.dashboard-order:last-child {
    border-bottom: none;
}


.dashboard-order-image {
    width: 68px;
    height: 68px;

    object-fit: cover;

    border: 1px solid #40351d;
}


.dashboard-order-info h3 {
    color: #f4f1e8;

    font-size: 14px;

    font-weight: normal;

    margin-bottom: 4px;
}


.dashboard-order-info p,
.dashboard-order-info span {
    display: block;

    color: #a9a49b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;

    line-height: 1.5;
}


.dashboard-order-status {
    padding: 6px 10px;

    color: #8bc4a5;

    border: 1px solid #365e4d;

    background-color: rgba(47, 91, 70, 0.14);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    border-radius: 4px;
}


.dashboard-order-button {
    min-height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #d5a62b;

    border: 1px solid #8b651d;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    font-weight: bold;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.dashboard-order-button:hover {
    background-color: #d5a62b;

    color: #050b10;
}



/* =========================================================
   ACCOUNT DETAILS
========================================================= */

.dashboard-account-details {
    display: flex;

    align-items: center;

    gap: 18px;
}


.dashboard-user-avatar {
    width: 68px;
    height: 68px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #d5a62b;

    border: 2px solid #d5a62b;

    border-radius: 50%;

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

    font-size: 22px;
}


.dashboard-user-info h3 {
    color: #f4f1e8;

    font-size: 17px;

    font-weight: normal;

    margin-bottom: 5px;
}


.dashboard-user-info p {
    color: #c9c5bb;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    margin-bottom: 5px;

    word-break: break-word;
}


.dashboard-user-info span {
    color: #88847d;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;
}



/* =========================================================
   PAYMENT / SHIPPING
========================================================= */

.dashboard-details-panel {
    padding-top: 22px;
}


.dashboard-details-group .dashboard-panel-heading {
    margin-bottom: 14px;
}


.dashboard-details-group .dashboard-panel-heading h2 {
    font-size: 19px;
}


.dashboard-detail-divider {
    width: 100%;
    height: 1px;

    margin: 20px 0;

    background-color: #403f3a;
}


.dashboard-payment-info,
.dashboard-shipping-info {
    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        auto;

    gap: 12px;

    align-items: start;
}


.dashboard-detail-icon {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #d5a62b;

    border: 1px solid #504528;

    font-size: 14px;
}


.dashboard-payment-info p {
    color: #f4f1e8;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;

    margin-bottom: 4px;
}


.dashboard-payment-info div span {
    color: #99958d;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;
}


.dashboard-shipping-info address {
    color: #c9c5bb;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    font-style: normal;

    line-height: 1.45;
}


.dashboard-default-label {
    padding: 4px 7px;

    color: #d5a62b;

    border: 1px solid #654d20;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 8px;

    border-radius: 3px;
}



/* =========================================================
   SAVED TITLES
========================================================= */

.dashboard-saved-grid {
    display: grid;

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

    gap: 10px;
}


.dashboard-saved-title {
    position: relative;

    display: block;

    aspect-ratio: 3 / 4;

    overflow: hidden;

    border: 1px solid #40351d;

    background-color: #03080c;
}


.dashboard-saved-title img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.dashboard-saved-title > span {
    position: absolute;

    right: 6px;
    bottom: 6px;

    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: rgba(5, 11, 16, 0.92);

    color: #d5a62b;

    border: 1px solid #d5a62b;

    border-radius: 50%;

    font-size: 13px;
}



/* =========================================================
   NEWSLETTER
========================================================= */

.dashboard-newsletter-section {
    width: 100%;

    padding: 22px 0;

    background-color: #081016;

    border-top: 1px solid #40351d;

    border-bottom: 1px solid #40351d;
}


.dashboard-newsletter-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 0 65px;

    display: grid;

    grid-template-columns:
        1fr
        minmax(360px, 520px);

    gap: 70px;

    align-items: center;
}


.dashboard-newsletter-message {
    display: flex;

    align-items: center;

    gap: 18px;
}


.dashboard-newsletter-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #d5a62b;

    border: 1px solid #8b651d;

    font-size: 22px;
}


.dashboard-newsletter-message h2 {
    color: #f4f1e8;

    font-size: 21px;

    font-weight: normal;

    margin-bottom: 3px;
}


.dashboard-newsletter-message p {
    color: #9f9b92;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;
}



/* =========================================================
   NEWSLETTER FORM
========================================================= */

.dashboard-newsletter-form {
    display: flex;

    width: 100%;
}


.dashboard-newsletter-form input {
    flex: 1;

    min-width: 0;

    padding: 13px 14px;

    background-color: #050b10;

    color: #f4f1e8;

    border: 1px solid #504528;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
}


.dashboard-newsletter-form input:focus {
    border-color: #d5a62b;
}


.dashboard-newsletter-form button {
    padding: 13px 28px;

    background-color: #d5a62b;

    color: #050b10;

    border: 1px solid #d5a62b;

    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;

    transition: background-color 0.2s ease;
}


.dashboard-newsletter-form button:hover {
    background-color: #ebbd42;
}



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

@media (max-width: 1150px) {

    .dashboard-heading-container,
    .dashboard-tabs,
    .dashboard-content-container,
    .dashboard-newsletter-container {
        padding-left: 30px;
        padding-right: 30px;
    }


    .dashboard-content-container {
        grid-template-columns:
            minmax(0, 1.55fr)
            minmax(280px, 0.9fr);
    }


    .dashboard-library-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .dashboard-order {
        grid-template-columns:
            60px
            minmax(0, 1fr)
            auto;

        gap: 14px;
    }


    .dashboard-order-image {
        width: 60px;
        height: 60px;
    }


    .dashboard-order-button {
        grid-column: 2 / -1;

        width: 120px;

        justify-self: end;
    }

}



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

@media (max-width: 900px) {

    .account-menu {
        width: 100%;
    }


    .account-menu-button {
        width: 100%;

        justify-content: flex-start;
    }


    .account-dropdown {
        position: static;

        width: 100%;

        margin-top: 5px;

        box-shadow: none;
    }


    .dashboard-heading-container {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }


    .dashboard-heading-message {
        max-width: none;

        text-align: left;
    }


    .dashboard-tabs {
        overflow-x: auto;

        scrollbar-width: thin;
    }


    .dashboard-tab {
        flex-shrink: 0;
    }


    .dashboard-content-container {
        grid-template-columns: 1fr;
    }


    .dashboard-side-column {
        display: grid;

        grid-template-columns:
            1fr
            1fr;

        gap: 20px;
    }


    .dashboard-saved-panel {
        grid-column: 1 / -1;
    }


    .dashboard-newsletter-container {
        grid-template-columns: 1fr;

        gap: 22px;
    }

}



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

@media (max-width: 650px) {

    .dashboard-heading-container,
    .dashboard-tabs,
    .dashboard-content-container,
    .dashboard-newsletter-container {
        padding-left: 22px;
        padding-right: 22px;
    }


    .dashboard-heading-container {
        padding-top: 34px;
    }


    .dashboard-heading-text h1 {
        font-size: 39px;
    }


    .dashboard-heading-text p {
        font-size: 14px;
    }


    .dashboard-tabs {
        gap: 0;

        padding-right: 0;
    }


    .dashboard-tab {
        padding-left: 14px;
        padding-right: 14px;

        font-size: 12px;
    }


    .dashboard-tab::after {
        left: 14px;
        right: 14px;
    }


    .dashboard-content-section {
        padding-top: 24px;
        padding-bottom: 32px;
    }


    .dashboard-panel {
        padding: 20px;
    }


    .dashboard-panel-heading {
        align-items: flex-start;
    }


    .dashboard-panel-heading h2 {
        font-size: 21px;
    }


    .dashboard-library-grid {
        grid-template-columns:
            1fr
            1fr;

        gap: 16px 12px;
    }


    .dashboard-side-column {
        display: flex;

        flex-direction: column;
    }


    .dashboard-order {
        grid-template-columns:
            54px
            minmax(0, 1fr);

        gap: 12px;
    }


    .dashboard-order-image {
        width: 54px;
        height: 54px;
    }


    .dashboard-order-status {
        grid-column: 2;

        justify-self: start;
    }


    .dashboard-order-button {
        grid-column: 2;

        justify-self: start;

        width: 115px;
    }


    .dashboard-saved-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }


    .dashboard-newsletter-form {
        flex-direction: column;

        gap: 10px;
    }


    .dashboard-newsletter-form button {
        width: 100%;
    }

}



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

@media (max-width: 460px) {

    .dashboard-library-grid {
        grid-template-columns: 1fr;
    }


    .dashboard-library-card {
        max-width: 260px;

        margin: 0 auto;

        width: 100%;
    }


    .dashboard-panel-heading {
        flex-direction: column;

        gap: 7px;

        margin-bottom: 17px;
    }


    .dashboard-account-details {
        align-items: flex-start;
    }


    .dashboard-user-avatar {
        width: 58px;
        height: 58px;

        font-size: 19px;
    }


    .dashboard-payment-info,
    .dashboard-shipping-info {
        grid-template-columns:
            32px
            1fr;
    }


    .dashboard-default-label {
        grid-column: 2;

        justify-self: start;
    }


    .dashboard-saved-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

/* =========================================================
   DYNAMIC CUSTOMER LIBRARY
========================================================= */

.dashboard-library-title {
    margin-top: 10px;
    color: #f4f1e8;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.35;
}

.dashboard-library-meta {
    margin: 6px 0 12px;
    color: #a9a49b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1.45;
}

.dashboard-library-empty {
    grid-column: 1 / -1;
    padding: 22px 0;
    color: #9f9b92;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}
