/*
|--------------------------------------------------------------------------
| ROOT
|--------------------------------------------------------------------------
*/

:root {

    --mpd-primary: #2563eb;

    --mpd-primary-dark: #1d4ed8;

    --mpd-success: #16a34a;

    --mpd-success-dark: #15803d;

    --mpd-dark: #111827;

    --mpd-gray: #6b7280;

    --mpd-border: #e5e7eb;

    --mpd-radius: 26px;

    --mpd-shadow:
        0 20px 45px rgba(0,0,0,0.06);

    --mpd-transition:
        all 0.3s ease;
}

/*
|--------------------------------------------------------------------------
| WRAPPER
|--------------------------------------------------------------------------
*/

.mpd-download-wrapper {

    position: relative;

    margin-top: 60px;

    margin-bottom: 60px;

    padding: 55px;

    background: linear-gradient(
        145deg,
        #ffffff,
        #f8fafc
    );

    border-radius: var(--mpd-radius);

    border: 1px solid var(--mpd-border);

    overflow: hidden;

    box-shadow: var(--mpd-shadow);
}

.mpd-download-wrapper::before {

    content: '';

    position: absolute;

    top: -100px;
    right: -100px;

    width: 260px;
    height: 260px;

    background:
        rgba(37,99,235,0.05);

    border-radius: 50%;
}

.mpd-download-wrapper * {

    position: relative;

    z-index: 2;
}

/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.mpd-source-header {

    text-align: center;

    margin-bottom: 40px;
}

/*
|--------------------------------------------------------------------------
| BADGE
|--------------------------------------------------------------------------
*/

.mpd-source-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 22px;

    border-radius: 999px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 20px;
}

/*
|--------------------------------------------------------------------------
| TITLE
|--------------------------------------------------------------------------
*/

.mpd-source-title {

    font-size: 46px;

    font-weight: 800;

    line-height: 1.2;

    color: var(--mpd-dark);

    margin-bottom: 16px;
}

/*
|--------------------------------------------------------------------------
| DESCRIPTION
|--------------------------------------------------------------------------
*/

.mpd-source-description {

    max-width: 760px;

    margin: 0 auto;

    font-size: 18px;

    line-height: 1.8;

    color: var(--mpd-gray);
}

/*
|--------------------------------------------------------------------------
| STATS
|--------------------------------------------------------------------------
*/

.mpd-inline-stats {

    display: flex;

    align-items: stretch;

    justify-content: center;

    flex-wrap: wrap;

    gap: 24px;

    margin-top: 50px;

    margin-bottom: 50px;
}

/*
|--------------------------------------------------------------------------
| CARD
|--------------------------------------------------------------------------
*/

.mpd-inline-stat {

    position: relative;

    display: flex;

    align-items: center;

    gap: 18px;

    min-width: 250px;

    padding: 26px 30px;

    background: linear-gradient(
        145deg,
        #ffffff,
        #f8fafc
    );

    border-radius: 24px;

    border: 1px solid #e5e7eb;

    overflow: hidden;

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

    transition: var(--mpd-transition);
}

.mpd-inline-stat::before {

    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        #2563eb,
        #1d4ed8
    );
}

.mpd-inline-stat:hover {

    transform: translateY(-6px);

    box-shadow:
        0 22px 40px rgba(0,0,0,0.1);
}

/*
|--------------------------------------------------------------------------
| ICON
|--------------------------------------------------------------------------
*/

.mpd-inline-stat-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 68px;

    height: 68px;

    min-width: 68px;

    border-radius: 22px;

    color: #ffffff;

    font-size: 30px;

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

.mpd-inline-stat.format
.mpd-inline-stat-icon {

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );
}

.mpd-inline-stat.size
.mpd-inline-stat-icon {

    background: linear-gradient(
        135deg,
        #7c3aed,
        #6d28d9
    );
}

.mpd-inline-stat.downloads
.mpd-inline-stat-icon {

    background: linear-gradient(
        135deg,
        #16a34a,
        #15803d
    );
}

/*
|--------------------------------------------------------------------------
| CONTENT
|--------------------------------------------------------------------------
*/

.mpd-inline-stat-content {

    display: flex;

    flex-direction: column;
}

/*
|--------------------------------------------------------------------------
| LABEL
|--------------------------------------------------------------------------
*/

.mpd-inline-stat-label {

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    color: var(--mpd-gray);

    margin-bottom: 6px;
}

/*
|--------------------------------------------------------------------------
| VALUE
|--------------------------------------------------------------------------
*/

.mpd-inline-stat-value {

    font-size: 30px;

    font-weight: 800;

    line-height: 1.1;

    color: var(--mpd-dark);
}

/*
|--------------------------------------------------------------------------
| DOWNLOAD ACTION
|--------------------------------------------------------------------------
*/

.mpd-download-action {

    text-align: center;
}

/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.mpd-download-wrapper .btn {

    min-width: 340px;

    padding: 20px 36px;

    border-radius: 22px;

    font-size: 17px;

    font-weight: 800;

    border: none;

    transition: var(--mpd-transition);

    text-transform: uppercase;

    letter-spacing: 1px;
}

/*
|--------------------------------------------------------------------------
| PRIMARY BUTTON
|--------------------------------------------------------------------------
*/

.mpd-start-download {

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #ffffff;

    box-shadow:
        0 15px 35px rgba(37,99,235,0.25);
}

.mpd-start-download:hover {

    transform: translateY(-4px);

    box-shadow:
        0 25px 45px rgba(37,99,235,0.35);
}

/*
|--------------------------------------------------------------------------
| SUCCESS BUTTON
|--------------------------------------------------------------------------
*/

.mpd-download-area .btn {

    background: linear-gradient(
        135deg,
        #16a34a,
        #15803d
    );

    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| TIMER
|--------------------------------------------------------------------------
*/

.mpd-timer-area {

    margin-top: 35px;

    padding: 30px;

    background: #ffffff;

    border-radius: 24px;

    border: 1px dashed #cbd5e1;

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

.mpd-timer-area .spinner-border {

    width: 65px;

    height: 65px;

    border-width: 6px;
}

.mpd-timer-area p {

    margin-top: 18px;

    font-size: 19px;

    font-weight: 700;

    color: var(--mpd-dark);
}

/*
|--------------------------------------------------------------------------
| COUNTDOWN
|--------------------------------------------------------------------------
*/

.mpd-countdown {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 46px;

    height: 46px;

    margin-left: 12px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #ffffff;

    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| ALERT
|--------------------------------------------------------------------------
*/

.mpd-alert {

    padding: 18px 24px;

    border-radius: 18px;

    font-size: 15px;

    font-weight: 600;
}

.mpd-alert-error {

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #991b1b;
}

/*
|--------------------------------------------------------------------------
| DOWNLOAD AREA
|--------------------------------------------------------------------------
*/

.mpd-download-area {

    margin-top: 30px;

    animation: mpdFadeIn 0.4s ease;
}

/*
|--------------------------------------------------------------------------
| ANIMATION
|--------------------------------------------------------------------------
*/

@keyframes mpdFadeIn {

    from {

        opacity: 0;

        transform: translateY(12px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}

/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 992px) {

    .mpd-download-wrapper {

        padding: 40px;
    }

    .mpd-source-title {

        font-size: 38px;
    }

    .mpd-inline-stats {

        flex-direction: column;
    }

    .mpd-inline-stat {

        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .mpd-download-wrapper {

        padding: 28px;
    }

    .mpd-source-title {

        font-size: 30px;
    }

    .mpd-source-description {

        font-size: 16px;
    }

    .mpd-inline-stat {

        min-width: auto;

        padding: 22px;
    }

    .mpd-inline-stat-value {

        font-size: 24px;
    }

    .mpd-download-wrapper .btn {

        width: 100%;

        min-width: auto;
    }
}