/* Portal Core Design System */
:root {
    --portal-card-bg: #ffffff;
    --portal-card-border: #e2e8f0;
    --portal-text-main: #0f172a;
    --portal-text-muted: #64748b;
    --portal-body-bg: #f8fafc;
    --portal-widget-header-bg: #f1f5f9;
    --portal-accent: #4f46e5;
    --portal-accent-hover: #4338ca;
    --slider-highlight: #ffde00;
    /* Yellow highlight */
    --item-hover-bg: #fcfcfc;
}

.dark {
    --portal-card-bg: #1e293b;
    --portal-card-border: #334155;
    --portal-text-main: #f1f5f9;
    --portal-text-muted: #94a3b8;
    --portal-body-bg: #0f172a;
    --portal-widget-header-bg: #0f172a;
    --item-hover-bg: #242f44;
}

/* EXACT TARGET SLIDER DESIGN */
.elite-slider {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 50px;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    height: 524px;
}

@media (max-width: 1024px) {
    .elite-slider {
        flex-direction: column;
        height: auto;
    }
}

.slider-left-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.slider-main {
    flex: 1;
    position: relative;
    background-color: #000;
    overflow: hidden;
    height: 480px;
}

.slider-sidebar {
    width: 350px;
    background-color: #111;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-left: 1px solid #222;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 524px;
}

.slider-sidebar::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1200px) {
    .slider-sidebar {
        display: none;
    }
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #111;
}

.sidebar-item:hover {
    background-color: #1a1a1a;
}

.sidebar-item.active {
    background-color: #0c0c0c;
}

.sidebar-item img {
    width: 100px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #333;
}

.sidebar-item h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-nav-bar {
    display: flex;
    height: 44px;
    background-color: #0b0b0b;
    border-top: 1px solid #1a1a1a;
}

.nav-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e3e3e3;
    font-weight: 700;
    font-size: 13px;
    border-right: 1px solid #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-box:last-child {
    border-right: none;
}

.nav-box:hover {
    background-color: #151515;
    color: #888;
}

.nav-box.active {
    background-color: var(--slider-highlight);
    color: #000;
    font-weight: 900;
}

.elite-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    z-index: 1;
}

.elite-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.slide-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
}

.slide-info {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    z-index: 10;
}

.slide-cat {
    display: inline-block;
    padding: 5px 15px;
    background-color: #4338ca;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.slide-title {
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    max-width: 90%;
    letter-spacing: -0.5px;
}

.elite-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.elite-arrow:hover {
    background-color: var(--slider-highlight);
    color: #000;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

/* Category Block Styling */
.category-block {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-header .yellow-bar {
    width: 10px;
    height: 40px;
    background-color: var(--slider-highlight);
}

.category-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--portal-text-main);
    text-transform: uppercase;
}

.category-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-news-item {
    display: flex;
    background-color: var(--portal-card-bg);
    border: 1px solid var(--portal-card-border);
    border-radius: 12px;
    padding: 20px;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.category-news-item:hover {
    background-color: var(--item-hover-bg);
    border-color: var(--slider-highlight);
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.category-news-item .item-image {
    width: 220px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.category-news-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-news-item:hover .item-image img {
    transform: scale(1.1);
}

.category-news-item .item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-news-item h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--portal-text-main);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s;
}

.category-news-item:hover h3 {
    color: var(--portal-accent);
}

.dark .category-news-item:hover h3 {
    color: var(--slider-highlight);
}

.category-news-item p {
    font-size: 14px;
    color: var(--portal-text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-news-item .item-meta {
    font-size: 11px;
    font-weight: 700;
    color: var(--portal-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-footer-btn {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
}

.category-footer-btn a {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--slider-highlight);
    color: #000;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-footer-btn a:hover {
    background-color: #e5c700;
    transform: scale(1.05);
}

/* Layout Grids */
.portal-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
    margin-top: 20px;
}

@media (min-width: 1100px) {
    .portal-main-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Thumbnail List Widget */
.thumb-widget-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--portal-card-border);
    transition: all 0.3s;
}

.thumb-widget-item:last-child {
    border-bottom: none;
}

.thumb-widget-item:hover {
    transform: translateX(5px);
}

.thumb-widget-item img {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.thumb-widget-item h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--portal-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* NEW WIDGET HEADER STYLE */
.widget-container {
    background: transparent;
    margin-bottom: 50px;
}

.widget-premium-head {
    padding: 0 0 10px 0;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--slider-highlight);
    display: inline-block;
    width: 100%;
}

.widget-premium-head h3 {
    font-size: 18px;
    font-weight: 900;
    color: var(--portal-text-main);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Stats Widget */
.stats-group {
    margin-bottom: 30px;
}

.stats-group:last-child {
    margin-bottom: 0;
}

.stats-group-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--portal-card-border);
    opacity: 0.5;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--portal-card-border);
}

.stats-row:last-child {
    border-bottom: none;
}

.stats-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--portal-text-muted);
}

.stats-value {
    font-size: 15px;
    font-weight: 900;
    color: var(--portal-text-main);
}

.stats-row i {
    width: 20px;
    color: var(--slider-highlight);
    font-size: 12px;
}

/* MODERN MINIMALIST LUXURY FORUM SYNC */
.sync-container {
    margin-top: -30px;
    margin-bottom: 60px;
}

.sync-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-left: 5px;
}

.sync-head h2 {
    font-size: 22px;
    font-weight: 900;
    color: var(--portal-text-main);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.sync-head .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--portal-card-border), transparent);
}

.sync-list {
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-card-border);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.sync-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--portal-card-border);
    transition: all 0.3s ease;
    gap: 25px;
}

.sync-item:last-child {
    border-bottom: none;
}

.sync-item:hover {
    background: var(--item-hover-bg);
}

/* ForumTR theme: let portal modules use the same working width as the header. */
body.theme-forumtr .forumtr-shell > .space-y-12 {
    width: 100%;
    max-width: none;
}

body.theme-forumtr .forumtr-shell .elite-slider,
body.theme-forumtr .forumtr-shell .sync-container,
body.theme-forumtr .forumtr-shell .portal-main-grid,
body.theme-forumtr .forumtr-shell .category-block,
body.theme-forumtr .forumtr-shell .widget-container {
    width: 100%;
    max-width: none;
}

body.theme-forumtr .forumtr-shell .elite-slider {
    border-radius: 14px;
    box-shadow: 0 18px 52px rgba(15, 23, 42, .16);
}

body.theme-forumtr .forumtr-shell .portal-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
    gap: 24px;
}

body.theme-forumtr .forumtr-shell .category-news-item {
    border-color: #e8ecf5;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

body.theme-forumtr .forumtr-shell .sync-container {
    margin-top: 0;
}

@media (max-width: 1100px) {
    body.theme-forumtr .forumtr-shell .portal-main-grid {
        grid-template-columns: 1fr;
    }
}

.item-rank {
    font-size: 14px;
    font-weight: 900;
    color: var(--portal-text-muted);
    width: 30px;
    opacity: 0.4;
}

.item-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--portal-body-bg);
}

.item-content-wrap {
    flex: 1;
    min-width: 0;
}

.item-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.item-prefix {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.item-link {
    font-size: 17px;
    font-weight: 800;
    color: var(--portal-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.sync-item:hover .item-link {
    color: #3b82f6;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--portal-text-muted);
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-meta i {
    color: var(--slider-highlight);
    font-size: 11px;
}

.item-stats {
    display: flex;
    gap: 30px;
    padding: 0 40px;
    border-left: 1px solid var(--portal-card-border);
    border-right: 1px solid var(--portal-card-border);
}

.stat-box {
    text-align: center;
    min-width: 60px;
}

.stat-val {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: var(--portal-text-main);
}

.stat-lbl {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--portal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-last {
    width: 180px;
    text-align: right;
}

.last-user {
    font-size: 14px;
    font-weight: 800;
    color: var(--portal-text-main);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 2px;
}

.last-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--portal-text-muted);
}

.sync-more {
    padding: 20px;
    text-align: center;
    background: var(--portal-widget-header-bg);
}

.sync-more a {
    font-size: 11px;
    font-weight: 900;
    color: var(--portal-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.sync-more a:hover {
    color: var(--portal-text-main);
}

@media (max-width: 1024px) {

    .item-stats,
    .item-rank {
        display: none;
    }

    .item-last {
        width: auto;
    }
}

/* Category Elite Header */
.category-elite-header {
    position: relative;
    background: linear-gradient(135deg, var(--portal-card-bg) 0%, var(--portal-body-bg) 100%);
    border: 1px solid var(--portal-card-border);
    border-radius: 2rem;
    padding: 60px;
    margin-bottom: 60px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.dark .category-elite-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.elite-header-content {
    position: relative;
    z-index: 10;
}

.elite-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.elite-breadcrumb a {
    color: var(--portal-text-muted);
    transition: color 0.3s;
    opacity: 0.6;
}

.elite-breadcrumb a:hover {
    color: var(--portal-accent);
    opacity: 1;
}

.elite-breadcrumb i {
    color: var(--portal-text-muted);
    font-size: 8px;
    opacity: 0.3;
}

.elite-breadcrumb .active {
    color: var(--slider-highlight);
}

.elite-cat-title {
    font-size: 52px;
    font-weight: 950;
    color: var(--portal-text-main);
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 20px;
}

.elite-cat-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--portal-text-muted);
    opacity: 0.3;
}

.elite-cat-count {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--portal-body-bg);
    padding: 10px 25px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    color: var(--portal-text-muted);
    border: 1px solid var(--portal-card-border);
}

.dark .elite-cat-count {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

.elite-cat-count i {
    color: var(--slider-highlight);
}

.elite-cat-count strong {
    color: var(--portal-text-main);
}

.elite-header-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, var(--slider-highlight) 5%);
    opacity: 0.05;
    mask-image: radial-gradient(circle at center, black, transparent);
    z-index: 1;
}

/* PREMIUM PAGINATION */
.elite-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.elite-pagination .page-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-card-border);
    border-radius: 14px;
    font-weight: 800;
    color: var(--portal-text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elite-pagination .page-item.active {
    background: var(--slider-highlight);
    border-color: var(--slider-highlight);
    color: #000;
    box-shadow: 0 10px 25px rgba(255, 222, 0, 0.25);
    transform: scale(1.1);
}

.elite-pagination .page-item:hover:not(.active) {
    transform: translateY(-5px);
    border-color: var(--slider-highlight);
    color: var(--slider-highlight);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.gap-y-4 {
    gap: 10px;
}

/* Article View (show.blade.php) */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--slider-highlight);
    z-index: 9999;
    transition: width 0.1s ease;
}

.news-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.news-hero {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    height: 550px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
}

.hero-cat {
    background: var(--slider-highlight);
    color: #000;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    max-width: 900px;
    letter-spacing: -1px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta i {
    color: var(--slider-highlight);
}

.article-card {
    background: var(--portal-card-bg);
    border-radius: 1rem;
    padding: 20px;
    border: 1px solid var(--portal-card-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.news-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--portal-text-main);
    font-weight: 400;
}

.news-content p {
    margin-bottom: 30px;
}

.news-content h2 {
    font-size: 32px;
    font-weight: 900;
    margin: 50px 0 25px;
    letter-spacing: -0.5px;
}

.news-content img {
    border-radius: 20px;
    margin: 40px 0;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.news-content blockquote {
    border-left: 5px solid var(--slider-highlight);
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 20px 20px 0;
    font-style: italic;
    font-size: 20px;
    margin: 40px 0;
    color: var(--portal-text-muted);
}

.dark .news-content blockquote {
    background: rgba(255, 255, 255, 0.05);
}

.share-bar {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--portal-card-border);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 12px;
    font-weight: 900;
    color: var(--portal-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.share-list {
    display: flex;
    gap: 12px;
    align-items: center;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--portal-card-border);
    color: var(--portal-text-muted);
    border: 1px solid transparent;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-fb:hover {
    background: #1877f2;
    color: white;
}

.btn-tw:hover {
    background: #000000;
    color: white;
}

.btn-wa:hover {
    background: #25d366;
    color: white;
}

.btn-copy:hover {
    background: var(--slider-highlight);
    color: #000;
}

.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s;
}

.btn-copy:active .copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-15px);
}
