/*
|--------------------------------------------------------------------------
| Magazine Premium
|--------------------------------------------------------------------------
*/

.magazine-premium-section {
    position: relative;

    text-align: start;
}


/*
|--------------------------------------------------------------------------
| Heading
|--------------------------------------------------------------------------
*/

.magazine-premium-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 22px;
}

.magazine-heading-right {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 12px;
}

.magazine-heading-mark {
    display: inline-block;

    width: 14px;
    height: 42px;

    flex-shrink: 0;

    background:
        linear-gradient(
            180deg,
            #e00000,
            #7f1d1d
        );

    border-radius: 999px;

    box-shadow:
        0 8px 22px
        rgba(224, 0, 0, 0.24);
}

.magazine-kicker {
    display: block;

    margin-bottom: 4px;

    color: #e00000;

    font-size: 11px;
    font-weight: 900;
}

.magazine-premium-heading h2 {
    margin: 0;

    color: #0f172a;

    font-size: 22px;
    font-weight: 950;

    letter-spacing: -0.5px;
}


/*
|--------------------------------------------------------------------------
| Archive Button
|--------------------------------------------------------------------------
*/

.magazine-archive-btn {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 10px 15px;

    color: #e00000;
    background: #fff1f2;

    border: 1px solid rgba(224, 0, 0, 0.13);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 900;

    text-decoration: none;
    white-space: nowrap;

    transition: 0.24s ease;
}

.magazine-archive-btn:hover {
    color: #ffffff;
    background: #e00000;

    text-decoration: none;

    box-shadow:
        0 14px 28px
        rgba(224, 0, 0, 0.22);

    transform: translateY(-2px);
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.magazine-hero-card {
    position: relative;

    display: grid;

    grid-template-columns: 1fr 360px;

    align-items: center;

    min-height: 430px;

    gap: 28px;

    padding: 34px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 17% 18%,
            rgba(224, 0, 0, 0.20),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #111827 0%,
            #1f2937 48%,
            #0f172a 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;

    box-shadow:
        0 26px 75px
        rgba(15, 23, 42, 0.22);
}

.magazine-hero-card::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    pointer-events: none;
}

.magazine-hero-content,
.magazine-cover-stage {
    position: relative;

    z-index: 2;
}


/*
|--------------------------------------------------------------------------
| Issue Badge
|--------------------------------------------------------------------------
*/

.magazine-issue-badge {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    gap: 8px;

    padding: 8px 13px;
    margin-bottom: 18px;

    color: #fecaca;
    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 850;

    backdrop-filter: blur(8px);
}


/*
|--------------------------------------------------------------------------
| Main Magazine
|--------------------------------------------------------------------------
*/

.magazine-main-title {
    display: block;

    max-width: 680px;

    margin-bottom: 14px;

    color: #ffffff;

    font-size: 28px;
    font-weight: 950;
    line-height: 1.75;

    text-decoration: none;

    transition: 0.22s ease;
}

.magazine-main-title:hover {
    color: #fecaca;

    text-decoration: none;
}

.magazine-main-summary {
    max-width: 650px;

    margin-bottom: 20px;

    color: #cbd5e1;

    font-size: 13px;
    line-height: 2.15;
}


/*
|--------------------------------------------------------------------------
| Meta
|--------------------------------------------------------------------------
*/

.magazine-main-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 26px;
}

.magazine-main-meta span {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 8px 12px;

    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;

    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| Actions
|--------------------------------------------------------------------------
*/

.magazine-main-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 11px;
}

.magazine-read-btn,
.magazine-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    gap: 8px;

    padding: 0 18px;

    border-radius: 16px;

    font-size: 12px;
    font-weight: 900;

    text-decoration: none;

    transition: 0.24s ease;
}

.magazine-read-btn {
    color: #ffffff;
    background: #e00000;

    box-shadow:
        0 14px 28px
        rgba(224, 0, 0, 0.24);
}

.magazine-read-btn:hover {
    color: #e00000;
    background: #ffffff;

    text-decoration: none;

    transform: translateY(-2px);
}

.magazine-outline-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);

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

.magazine-outline-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);

    text-decoration: none;

    transform: translateY(-2px);
}


/*
|--------------------------------------------------------------------------
| Magazine Cover
|--------------------------------------------------------------------------
*/

.magazine-cover-stage {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 360px;

    text-decoration: none;

    perspective: 1100px;
}

.magazine-cover-shadow {
    position: absolute;

    bottom: 18px;

    width: 260px;
    height: 36px;

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

    border-radius: 50%;

    filter: blur(14px);
}

.magazine-cover-frame {
    position: relative;

    width: 255px;
    height: 345px;

    padding: 10px;

    background: #ffffff;

    border-radius: 22px;

    transition: 0.35s ease;
}

.magazine-premium-section[dir="rtl"]
.magazine-cover-frame {
    transform:
        rotateY(-9deg)
        rotateZ(2deg);

    box-shadow:
        -18px 22px 45px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.magazine-premium-section[dir="ltr"]
.magazine-cover-frame {
    transform:
        rotateY(9deg)
        rotateZ(-2deg);

    box-shadow:
        18px 22px 45px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.magazine-cover-frame::before {
    content: "";

    position: absolute;

    top: 10px;
    bottom: 10px;

    inset-inline-start: 10px;

    width: 12px;

    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.16),
            rgba(15, 23, 42, 0.03)
        );

    border-radius: 12px;
}

.magazine-cover-stage:hover
.magazine-cover-frame {
    transform:
        rotateY(0deg)
        rotateZ(0deg)
        translateY(-6px);
}

.magazine-premium-section[dir="rtl"]
.magazine-cover-stage:hover
.magazine-cover-frame {
    box-shadow:
        -22px 30px 55px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.magazine-premium-section[dir="ltr"]
.magazine-cover-stage:hover
.magazine-cover-frame {
    box-shadow:
        22px 30px 55px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.magazine-cover-frame img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #f8fafc;

    border-radius: 15px;
}

.magazine-cover-label {
    position: absolute;

    top: 20px;
    inset-inline-end: 34px;

    z-index: 4;

    padding: 6px 11px;

    color: #ffffff;
    background: #e00000;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 900;

    box-shadow:
        0 10px 22px
        rgba(224, 0, 0, 0.28);
}


/*
|--------------------------------------------------------------------------
| Previous Issues Heading
|--------------------------------------------------------------------------
*/

.magazine-mini-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 16px;

    margin: 26px 0 16px;
}

.magazine-mini-heading h3 {
    margin: 0;

    color: #0f172a;

    font-size: 17px;
    font-weight: 950;
}

.magazine-mini-heading span {
    color: #64748b;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Issues Grid
|--------------------------------------------------------------------------
*/

.magazine-issues-grid {
    display: grid;

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

    gap: 18px;
}

.magazine-issue-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 24px;

    box-shadow:
        0 16px 42px
        rgba(15, 23, 42, 0.07);

    transition: 0.28s ease;
}

.magazine-issue-card:hover {
    border-color: rgba(224, 0, 0, 0.22);

    box-shadow:
        0 26px 62px
        rgba(15, 23, 42, 0.13);

    transform: translateY(-6px);
}


/*
|--------------------------------------------------------------------------
| Issue Cover
|--------------------------------------------------------------------------
*/

.magazine-issue-cover {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 205px;

    padding: 14px;

    background:
        radial-gradient(
            circle at top left,
            rgba(224, 0, 0, 0.08),
            transparent 35%
        ),
        #f8fafc;

    text-decoration: none;
}

.magazine-issue-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    filter:
        drop-shadow(
            0 12px 16px
            rgba(15, 23, 42, 0.12)
        );

    transition: 0.28s ease;
}

.magazine-issue-card:hover
.magazine-issue-cover img {
    transform:
        scale(1.045)
        rotateZ(-1deg);
}


/*
|--------------------------------------------------------------------------
| Issue Content
|--------------------------------------------------------------------------
*/

.magazine-issue-body {
    padding: 15px 16px 16px;
}

.magazine-issue-title {
    display: -webkit-box;

    min-height: 46px;

    margin-bottom: 12px;

    overflow: hidden;

    color: #0f172a;

    font-size: 13px;
    font-weight: 900;
    line-height: 1.75;

    text-decoration: none;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.magazine-issue-title:hover {
    color: #e00000;

    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| Issue Footer
|--------------------------------------------------------------------------
*/

.magazine-issue-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding-top: 12px;

    border-top: 1px solid #f1f5f9;
}

.magazine-issue-footer span {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #94a3b8;

    font-size: 10px;

    white-space: nowrap;
}

.magazine-issue-footer a {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #e00000;

    font-size: 11px;
    font-weight: 900;

    text-decoration: none;
    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Empty State
|--------------------------------------------------------------------------
*/

.magazine-empty-state {
    padding: 58px 24px;

    color: #64748b;
    background: #ffffff;

    border: 1px dashed #cbd5e1;
    border-radius: 28px;

    text-align: center;

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

.magazine-empty-state i {
    margin-bottom: 14px;

    color: #cbd5e1;

    font-size: 42px;
}

.magazine-empty-state h3 {
    margin-bottom: 8px;

    color: #0f172a;

    font-size: 18px;
    font-weight: 950;
}

.magazine-empty-state p {
    margin: 0;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| RTL / LTR
|--------------------------------------------------------------------------
*/

.magazine-premium-section[dir="rtl"] {
    text-align: right;
}

.magazine-premium-section[dir="ltr"] {
    text-align: left;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1199px) {

    .magazine-hero-card {
        grid-template-columns: 1fr 310px;
    }

    .magazine-cover-frame {
        width: 230px;
        height: 315px;
    }

}


@media (max-width: 991px) {

    .magazine-hero-card {
        grid-template-columns: 1fr;
    }

    .magazine-cover-stage {
        order: -1;

        min-height: 320px;
    }

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

}


@media (max-width: 575px) {

    .magazine-premium-heading,
    .magazine-mini-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .magazine-premium-heading h2 {
        font-size: 19px;
    }

    .magazine-hero-card {
        padding: 22px;

        border-radius: 24px;
    }

    .magazine-main-title {
        font-size: 20px;
    }

    .magazine-cover-stage {
        min-height: 275px;
    }

    .magazine-cover-frame {
        width: 200px;
        height: 270px;

        border-radius: 18px;
    }

    .magazine-issues-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .magazine-issue-cover {
        height: 220px;
    }

}
