
.journal-showcase {
    --accent-violet: #8a4fff;
    --accent-cyan: var(--gmg-main-secondary, #00f5d4);
    --accent-coral: var(--gmg-main-primary, #ff5e7e);
    --accent-electric: #4d7cff;
    --dark-surface-1: var(--gmg-main-bg, #0a0e1a);
    --dark-surface-2: var(--gmg-main-bg, #0a0e1a);
    --glass-border: var(--gmg-main-border, rgba(255, 255, 255, 0.08));
    --glass-border-hover: color-mix(in srgb, var(--accent-cyan) 45%, transparent);
    --text-dim: #94a3b8;
    --text-subtle: #64748b;
    --radius-fluid-md: 18px;
    --radius-fluid-xl: 24px;
    --radius-pill: 100px;
    --smooth-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring-ease: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    position: relative;
    width: 100%;
    margin-block-end: 50px;
    box-sizing: border-box;
}

.journal-showcase .showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-block-end: 36px;
    gap: 20px;
    flex-wrap: wrap;
}

.journal-showcase .section-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.journal-showcase .gmg-neon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--accent-cyan) 6%, transparent);
    backdrop-filter: blur(8px);
}

.journal-showcase .gmg-pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: gmgJournalPulse 1.8s infinite;
}

@keyframes gmgJournalPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
        filter: drop-shadow(0 0 6px var(--accent-cyan));
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.journal-showcase .section-title-wrap h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    color: var(--gmg-main-text, #ffffff);
    letter-spacing: -0.5px;
}

.journal-showcase .item-counter {
    font-size: 0.86rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.journal-showcase .curved-sort-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.journal-showcase .curved-sort-pill:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent-cyan) 15%, transparent);
}

.journal-showcase .sort-icon-box {
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.journal-showcase .curved-sort-pill select {
    background: transparent;
    
    color: var(--gmg-main-text, #ffffff);
    font-family: inherit;
    font-size: 0.88rem;
        border: none;
    border-radius: 10px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.journal-showcase .curved-sort-pill select:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

.journal-showcase .curved-sort-pill select option {
    background: var(--gmg-main-bg, #0a0e1a);
    color: var(--gmg-main-text, #ffffff);
}

.journal-showcase .articles-3d-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    transition: opacity 0.3s ease;
}

.journal-showcase .article-3d-wrapper {
    perspective: 1200px;
    transform-style: preserve-3d;
    animation: gmgJournalStaggerFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--stagger-delay, 0s);
    opacity: 0;
    transform: translateY(20px);
}

@keyframes gmgJournalStaggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.journal-showcase .article-3d-glass {
    position: relative;
    background: linear-gradient(145deg, var(--dark-surface-1), var(--dark-surface-2));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-fluid-xl);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform-style: preserve-3d;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s var(--smooth-ease);
    overflow: hidden;
    box-sizing: border-box;
}


.journal-showcase .article-3d-wrapper:hover .article-3d-glass,
.journal-showcase .article-3d-wrapper:focus-within .article-3d-glass {
    border-color: var(--glass-border-hover);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 35px color-mix(in srgb, var(--accent-cyan) 12%, transparent), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.journal-showcase .card-ambient-glow {
    position: absolute;
    inset-block-start: -50px;
    inset-inline-end: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--card-glow-color, #00f5d4) 0%, transparent 70%);
    opacity: 0.12;
    filter: blur(30px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.journal-showcase .article-3d-wrapper:hover .card-ambient-glow,
.journal-showcase .article-3d-wrapper:focus-within .card-ambient-glow {
    opacity: 0.35;
    transform: scale(1.5);
}

.journal-showcase .article-glare {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.14), transparent 75%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 5;
}

.journal-showcase .article-thumb-stage {
    position: relative;
    height: 220px;
    border-radius: var(--radius-fluid-md);
    overflow: hidden;
    margin-block-end: 22px;
    transform: translateZ(40px);
}

.journal-showcase .article-thumb-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--smooth-ease);
}

.journal-showcase .article-3d-wrapper:hover .article-thumb-stage img,
.journal-showcase .article-3d-wrapper:focus-within .article-thumb-stage img {
    transform: scale(1.1);
}

.journal-showcase .thumb-overlay-cyber {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 13, 24, 0.8) 0%, transparent 60%);
    pointer-events: none;
}

.journal-showcase .article-sphere-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.4;
    pointer-events: none;
    transition: transform 0.4s ease;
}


.journal-showcase .article-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gmg-main-bg, #0a0e1a);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gmg-main-text, #ffffff);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.journal-showcase .cat-glow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.journal-showcase .article-body-curved {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transform: translateZ(25px);
}

.journal-showcase .post-meta-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-block-end: 12px;
}

.journal-showcase .post-meta-strip i {
    color: var(--accent-cyan);
    margin-inline-start: 3px;
}

.journal-showcase .meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.journal-showcase .article-card-title {
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.55;
    margin: 0 0 12px 0;
    color: var(--gmg-main-text, #ffffff);
    transition: color 0.3s ease;
}

.journal-showcase .article-card-title a {
    color: var(--gmg-main-text, #ffffff);
    text-decoration: none;
}

.journal-showcase .article-card-title a:focus-visible,
.journal-showcase .article-read-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.journal-showcase .article-card-desc {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.75;
    margin: 0 0 22px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-showcase .article-card-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateZ(30px);
}

.journal-showcase .author-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.journal-showcase .avatar-ring {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 2px;
}

.journal-showcase .avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.journal-showcase .author-details {
    display: flex;
    flex-direction: column;
}

.journal-showcase .author-name {
    font-size: 0.85rem;
    color: var(--gmg-main-text, #ffffff);
    font-weight: 700;
}

.journal-showcase .author-role {
    font-size: 0.72rem;
    color: var(--text-subtle);
}

.journal-showcase .article-read-link {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--gmg-main-text, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.35s var(--spring-ease);
}

.journal-showcase .article-3d-wrapper:hover .article-read-link {
    transform: scale(1.15) rotate(-45deg);
}


.journal-showcase .gmg-layout-single-col .articles-3d-grid {
    grid-template-columns: 1fr;
}

.journal-showcase .gmg-layout-single-col .article-3d-glass {
    flex-direction: row;
    align-items: center;
    gap: 30px;
    padding: 24px;
}

.journal-showcase .gmg-layout-single-col .article-thumb-stage {
    width: 320px;
    height: 200px;
    flex-shrink: 0;
    margin-block-end: 0;
}

.journal-showcase .gmg-layout-single-col .article-card-desc {
    -webkit-line-clamp: 3;
}

.journal-showcase .gmg-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-fluid-xl);
}

.journal-showcase .gmg-empty-state i {
    font-size: 3rem;
    color: var(--accent-coral);
    margin-block-end: 16px;
}

.journal-showcase .gmg-empty-state h4 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 8px;
}

.journal-showcase .gmg-empty-state p {
    color: var(--text-dim);
    margin: 0;
}

@media (max-width: 1024px) {
    .journal-showcase .gmg-layout-single-col .article-3d-glass {
        flex-direction: column;
        align-items: stretch;
    }

    .journal-showcase .gmg-layout-single-col .article-thumb-stage {
        width: 100%;
        height: 220px;
        margin-block-end: 20px;
    }
}

@media (max-width: 768px) {
    .journal-showcase .showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .journal-showcase .curved-sort-pill {
        width: 100%;
        justify-content: space-between;
    }

    .journal-showcase .curved-sort-pill select {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journal-showcase .gmg-pulse-dot {
        animation: none;
    }

    
    .journal-showcase .article-3d-wrapper {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .journal-showcase .article-3d-glass,
    .journal-showcase .article-thumb-stage img,
    .journal-showcase .article-read-link,
    .journal-showcase .card-ambient-glow,
    .journal-showcase .article-sphere-glow {
        transition: none;
    }

    .journal-showcase .article-3d-wrapper:hover .article-read-link {
        transform: none;
    }
}

.gmg-pagination-wrapper {
	display: flex;
	width: 100%;
	clear: both;
}

.gmg-pagination {
	display: inline-flex;
    max-width: 100%;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.gmg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #94a3b8;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
}

.gmg-pagination .page-numbers.dots {
	background: transparent;
	border: none;
	color: #64748b;
	box-shadow: none;
	min-width: auto;
	padding: 0 4px;
}
