/* =========================================================
   PUBLISHER DASHBOARD
   ========================================================= */

.publisher-dashboard {
    min-height: calc(100vh - 150px);
    padding: 55px 20px 70px;
    background:
        radial-gradient(
            circle at top right,
            rgba(16, 185, 129, 0.07),
            transparent 35%
        ),
        #f6f8fb;
}

.dashboard-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


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

.dashboard-welcome {
    position: relative;
    overflow: hidden;

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

    min-height: 190px;
    padding: 38px 42px;
    margin-bottom: 42px;

    border-radius: 20px;

    background: #ffffff;
    border: 1px solid #e7ebf0;

    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-label,
.section-label {
    display: inline-block;

    margin-bottom: 9px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;

    color: #16845d;
}

.dashboard-welcome h1 {
    margin: 0 0 10px;

    color: #17212b;

    font-size: 36px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.dashboard-welcome p {
    max-width: 680px;

    margin: 0;

    color: #687586;

    font-size: 15px;
    line-height: 1.7;
}

.dashboard-welcome p strong {
    color: #25313d;
    font-weight: 650;
}


/* Decorative element */

.welcome-decoration {
    position: absolute;

    right: -35px;
    top: -65px;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        rgba(22, 132, 93, 0.08),
        rgba(22, 132, 93, 0.02)
    );
}

.welcome-decoration::after {
    content: "";

    position: absolute;

    right: 45px;
    bottom: 35px;

    width: 85px;
    height: 85px;

    border: 1px solid rgba(22, 132, 93, 0.12);
    border-radius: 50%;
}

.welcome-decoration span {
    position: absolute;

    right: 82px;
    bottom: 73px;

    color: #16845d;

    font-size: 25px;
}


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

.dashboard-section {
    margin-bottom: 42px;
}

.section-title {
    margin-bottom: 20px;
}

.section-title h2,
.account-header h2 {
    margin: 0;

    color: #1d2935;

    font-size: 22px;
    font-weight: 700;
}

.section-title .section-label,
.account-header .section-label {
    margin-bottom: 5px;
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    display: grid;

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

    gap: 20px;
}


/* =========================================================
   DASHBOARD CARD
   ========================================================= */

.dashboard-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-height: 245px;
    padding: 26px;

    color: inherit;
    text-decoration: none;

    background: #ffffff;

    border: 1px solid #e6eaf0;
    border-radius: 16px;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.dashboard-card:hover {
    color: inherit;
    text-decoration: none;

    transform: translateY(-5px);

    border-color: transparent;

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.10);
}


/* Top row */

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 24px;
}


/* Icon */

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

    width: 52px;
    height: 52px;

    border-radius: 13px;

    font-size: 23px;

    transition: transform 0.25s ease;
}

.dashboard-card:hover .dashboard-icon {
    transform: scale(1.08);
}


/* Arrow */

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    color: #8b96a3;

    border: 1px solid #edf0f3;
    border-radius: 50%;

    font-size: 17px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.dashboard-card:hover .card-arrow {
    transform: translateX(3px);

    background: #f4f7f6;
    color: #16845d;
}


/* Card content */

.card-content {
    flex: 1;
}

.dashboard-card h3 {
    margin: 0 0 9px;

    color: #1d2935;

    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.dashboard-card p {
    margin: 0;

    color: #718096;

    font-size: 14px;
    line-height: 1.65;
}


/* Bottom action */

.card-action {
    display: block;

    margin-top: 20px;

    color: #65717e;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;

    transition: color 0.2s ease;
}

.dashboard-card:hover .card-action {
    color: #16845d;
}


/* =========================================================
   CARD ACCENT COLORS
   ========================================================= */

.card-blue .dashboard-icon {
    background: #edf5ff;
}

.card-blue:hover {
    border-color: #cfe2ff;
}

.card-green .dashboard-icon {
    background: #eaf8f1;
}

.card-green:hover {
    border-color: #cceedd;
}

.card-purple .dashboard-icon {
    background: #f3efff;
}

.card-purple:hover {
    border-color: #dfd4ff;
}

.card-orange .dashboard-icon {
    background: #fff4e8;
}

.card-orange:hover {
    border-color: #ffe1bd;
}

.card-red .dashboard-icon {
    background: #fff0f0;
}

.card-red:hover {
    border-color: #ffd4d4;
}

.card-teal .dashboard-icon {
    background: #e9f8f8;
}

.card-teal:hover {
    border-color: #c8eeee;
}


/* =========================================================
   ACCOUNT SECTION
   ========================================================= */

.account-section {
    padding: 27px 30px;

    background: #ffffff;

    border: 1px solid #e6eaf0;
    border-radius: 16px;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);
}

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

    gap: 13px;

    margin-bottom: 22px;
}

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

    width: 43px;
    height: 43px;

    color: #5d6875;

    background: #f1f4f7;

    border-radius: 11px;

    font-size: 18px;
}


/* Account buttons */

.account-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}

.account-button {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 70px;

    padding: 13px 17px;

    color: #26323e;
    text-decoration: none;

    background: #f8fafb;

    border: 1px solid #e8edf1;
    border-radius: 12px;

    cursor: pointer;

    text-align: left;

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

.account-button:hover {
    color: #26323e;
    text-decoration: none;

    background: #ffffff;

    border-color: #d7dfe6;

    transform: translateY(-2px);
}

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

    width: 38px;
    height: 38px;

    margin-right: 13px;

    background: #ffffff;

    border: 1px solid #e9edf1;
    border-radius: 9px;

    font-size: 16px;
}

.account-button span:nth-child(2) {
    flex: 1;
}

.account-button strong {
    display: block;

    margin-bottom: 3px;

    font-size: 14px;
    font-weight: 700;
}

.account-button small {
    display: block;

    color: #7b8794;

    font-size: 12px;
}

.account-arrow {
    color: #9aa4af;

    font-size: 17px;

    transition: transform 0.2s ease;
}

.account-button:hover .account-arrow {
    transform: translateX(3px);
}


/* Logout */

.logout-button {
    font-family: inherit;

    color: #8b3030;
}

.logout-button:hover {
    color: #8b3030;

    background: #fffafa;

    border-color: #f1d6d6;
}

.logout-button .account-button-icon {
    color: #b33b3b;

    background: #fff3f3;
    border-color: #f7dddd;
}

.logout-button .account-arrow {
    color: #c47777;
}


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

@media (max-width: 950px) {

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

}


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

@media (max-width: 650px) {

    .publisher-dashboard {
        padding: 30px 14px 50px;
    }

    .dashboard-welcome {
        min-height: auto;

        padding: 28px 25px;

        margin-bottom: 32px;

        border-radius: 16px;
    }

    .dashboard-welcome h1 {
        font-size: 28px;
    }

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

    .welcome-decoration {
        right: -90px;
        top: -90px;

        width: 190px;
        height: 190px;
    }

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

        gap: 15px;
    }

    .dashboard-card {
        min-height: 220px;

        padding: 22px;
    }

    .account-section {
        padding: 23px 18px;
    }

    .account-actions {
        grid-template-columns: 1fr;
    }

}


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

@media (max-width: 400px) {

    .dashboard-welcome h1 {
        font-size: 25px;
    }

    .dashboard-card h3 {
        font-size: 18px;
    }

    .dashboard-card p {
        font-size: 13px;
    }

}