/* =========================================
   MOMENT TYVIE - DASHBOARD
========================================= */

.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 60px;
}


/* =========================================
   HERO
========================================= */

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding: 35px;

    margin-bottom: 28px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #667eea 0%,
            #764ba2 100%
        );

    color: white;

    box-shadow:
        0 20px 45px rgba(102, 126, 234, 0.25);
}

.dashboard-badge {
    display: inline-block;

    padding: 7px 14px;

    margin-bottom: 12px;

    border-radius: 50px;

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

    font-size: 13px;

    font-weight: 600;
}

.dashboard-hero h1 {
    margin: 0;

    font-size: 32px;

    font-weight: 800;
}

.dashboard-hero p {
    margin: 10px 0 0;

    opacity: 0.9;

    font-size: 16px;
}


/* =========================================
   CREATE BUTTON
========================================= */

.dashboard-create-btn {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 13px 20px;

    border-radius: 14px;

    background: white;

    color: #667eea;

    text-decoration: none;

    font-weight: 700;

    white-space: nowrap;

    transition: 0.25s;
}

.dashboard-create-btn:hover {
    transform: translateY(-3px);

    color: #667eea;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.15);
}


/* =========================================
   STATISTICS
========================================= */

.dashboard-stats {
    display: grid;

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

    gap: 20px;

    margin-bottom: 28px;
}

.dashboard-stat-card {
    display: flex;

    align-items: center;

    gap: 17px;

    padding: 23px;

    border-radius: 20px;

    background: white;

    border: 1px solid #eee;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.05);

    text-decoration: none;

    color: #222;

    transition: 0.25s;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(0,0,0,0.09);
}

.dashboard-stat-card span {
    display: block;

    margin-bottom: 5px;

    color: #888;

    font-size: 13px;
}

.dashboard-stat-card strong {
    font-size: 22px;

    font-weight: 800;
}


/* =========================================
   STAT ICON
========================================= */

.stat-icon {
    display: flex;

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

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    border-radius: 16px;

    font-size: 22px;
}

.stat-icon.purple {
    background: #eeeaff;
    color: #6c5ce7;
}

.stat-icon.gold {
    background: #fff4d6;
    color: #d89b00;
}

.stat-icon.pink {
    background: #ffe8f0;
    color: #e84393;
}

.premium-text {
    color: #d89b00;
}

.stat-create {
    cursor: pointer;
}


/* =========================================
   PREMIUM BANNER
========================================= */

.premium-banner {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 22px 25px;

    margin-bottom: 42px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #fff7df,
            #fff0c4
        );

    border: 1px solid #f4df9b;
}

.premium-banner-icon {
    display: flex;

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

    width: 55px;
    height: 55px;

    flex-shrink: 0;

    border-radius: 17px;

    background: #fff;

    font-size: 27px;

    box-shadow:
        0 5px 15px rgba(0,0,0,0.08);
}

.premium-banner-content {
    flex: 1;
}

.premium-banner-content h3 {
    margin: 0 0 5px;

    font-size: 18px;

    font-weight: 800;
}

.premium-banner-content p {
    margin: 0;

    color: #806d3d;

    font-size: 14px;
}

.premium-btn {
    padding: 11px 18px;

    border-radius: 12px;

    background: #d89b00;

    color: white;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    transition: 0.2s;
}

.premium-btn:hover {
    background: #bd8500;

    color: white;

    transform: translateY(-2px);
}


/* =========================================
   SECTION HEADING
========================================= */

.moments-section {
    margin-top: 20px;
}

.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 20px;
}

.section-heading span {
    color: #999;

    font-size: 13px;

    font-weight: 600;
}

.section-heading h2 {
    margin: 3px 0 0;

    font-size: 27px;

    font-weight: 800;
}

.section-heading > a {
    color: #667eea;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================
   MOMENTS GRID
========================================= */

.moments-grid {
    display: grid;

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

    gap: 22px;
}


/* =========================================
   MOMENT CARD
========================================= */

.moment-dashboard-card {
    overflow: hidden;

    border-radius: 20px;

    background: white;

    border: 1px solid #eee;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.05);

    transition: 0.25s;
}

.moment-dashboard-card:hover {
    transform: translateY(-5px);

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


/* =========================================
   MOMENT IMAGE
========================================= */

.moment-card-top {
    position: relative;

    height: 190px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #667eea,
            #764ba2
        );
}

.moment-card-top img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.moment-placeholder {
    display: flex;

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

    height: 100%;

    color: white;

    font-size: 50px;
}

.moment-type {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 6px 11px;

    border-radius: 50px;

    background: rgba(0,0,0,0.45);

    color: white;

    backdrop-filter: blur(8px);

    font-size: 11px;

    font-weight: 700;
}


/* =========================================
   MOMENT BODY
========================================= */

.moment-card-body {
    padding: 19px;
}

.moment-card-body h3 {
    margin: 0 0 7px;

    font-size: 19px;

    font-weight: 800;
}

.moment-card-body p {
    margin: 0 0 17px;

    color: #888;

    font-size: 13px;
}

.moment-card-body p i {
    margin-right: 5px;
}


/* =========================================
   ACTION BUTTON
========================================= */

.moment-actions {
    display: flex;

    align-items: center;

    gap: 7px;
}

.moment-actions a {
    display: inline-flex;

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

    gap: 5px;

    padding: 8px 12px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition: 0.2s;
}

.moment-view {
    flex: 1;

    background: #eaf7ef;

    color: #198754;
}

.moment-edit {
    background: #fff3cd;

    color: #997404;
}

.moment-delete {
    background: #fdeaea;

    color: #dc3545;
}

.moment-actions a:hover {
    transform: translateY(-2px);
}


/* =========================================
   EMPTY STATE
========================================= */

.empty-moments {
    padding: 65px 25px;

    text-align: center;

    border-radius: 24px;

    background: white;

    border: 1px dashed #dcdcdc;
}

.empty-icon {
    display: flex;

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

    width: 75px;
    height: 75px;

    margin: 0 auto 18px;

    border-radius: 22px;

    background: #eeeaff;

    color: #667eea;

    font-size: 32px;
}

.empty-moments h3 {
    margin-bottom: 8px;

    font-weight: 800;
}

.empty-moments p {
    max-width: 430px;

    margin: 0 auto 22px;

    color: #888;

    font-size: 14px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {

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

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

}


@media (max-width: 768px) {

    .dashboard-page {
        padding: 10px 0 40px;
    }

    .dashboard-hero {
        flex-direction: column;

        align-items: flex-start;

        padding: 27px;
    }

    .dashboard-hero h1 {
        font-size: 27px;
    }

    .dashboard-create-btn {
        width: 100%;

        justify-content: center;
    }

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

    .moments-grid {
        grid-template-columns: 1fr;
    }

    .premium-banner {
        flex-direction: column;

        align-items: flex-start;
    }

    .premium-btn {
        width: 100%;

        text-align: center;
    }

}


@media (max-width: 480px) {

    .dashboard-hero {
        border-radius: 20px;
    }

    .dashboard-hero h1 {
        font-size: 24px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

}