/* --- CORE VARIABLES --- */
:root {
    --nexus-bg: #050505;
    --nexus-surface: rgba(255, 255, 255, 0.03);
    --nexus-border: rgba(255, 255, 255, 0.1);
    --nexus-gold: #FFD700;
}

.tf-nexus-wrapper {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

.tf-nexus-swiper {
    padding-bottom: 50px !important;
    overflow: visible !important;
}

/* GLOBAL HEIGHT FIXES */
.swiper-slide {
    height: auto; /* Allow slide to stretch */
    display: flex; /* Flexbox for height equalization */
}

.nexus-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Min-height is handled by JS/Widget settings, usually around 400px */
}

/* Helper to push content to bottom */
.nx-spacer { flex-grow: 1; }

/* -------------------------------------------
   SKIN 1: CYBER GLASS
   ------------------------------------------- */
.cyber-glass .nexus-card {
    background: var(--nexus-surface);
    border: 1px solid var(--nexus-border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s ease;
}
.cyber-glass .nexus-card:hover {
    border-color: var(--nexus-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.cyber-glass .nx-img-box {
    position: relative;
    height: 220px; /* Fixed Image Height */
    overflow: hidden;
    flex-shrink: 0;
}
.cyber-glass .nx-img-box img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease;
}
.cyber-glass .nexus-card:hover img { transform: scale(1.1); }
.cyber-glass .nx-cat {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0,0,0,0.8); color: var(--nexus-gold);
    padding: 4px 10px; font-size: 10px; text-transform: uppercase;
    border: 1px solid var(--nexus-gold); border-radius: 4px;
}
.cyber-glass .nx-content {
    padding: 25px;
    display: flex; flex-direction: column; flex-grow: 1;
}
.cyber-glass .nx-deco-line {
    width: 30px; height: 2px; background: var(--nexus-gold); margin-bottom: 15px;
}
.cyber-glass .nx-title a {
    color: #fff; text-decoration: none;
    font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; line-height: 1.3;
}
.cyber-glass .nx-meta {
    margin-top: 20px; padding-top: 15px;
    border-top: 1px solid var(--nexus-border);
    display: flex; justify-content: space-between; align-items: center;
    color: #888; font-size: 0.8rem; width: 100%;
}
.cyber-glass .nx-read { color: var(--nexus-gold); text-decoration: none; }

/* -------------------------------------------
   SKIN 2: DATA STREAM
   ------------------------------------------- */
.data-stream .nexus-card {
    background: #0a0a0a;
    border-left: 3px solid var(--nexus-border);
    transition: 0.3s;
    height: 100%;
}
.data-stream .nexus-card:hover { border-left-color: var(--nexus-gold); background: #111; }
.data-stream .nx-content-wrap {
    padding: 30px; display: flex; flex-direction: column; height: 100%;
}
.data-stream .nx-stream-head {
    display: flex; justify-content: space-between; margin-bottom: 15px;
    font-family: monospace; color: #555; font-size: 0.7rem;
}
.data-stream .nx-title a {
    color: #fff; text-decoration: none; font-family: 'Inter', sans-serif; font-size: 1.4rem; font-weight: 700;
}
.data-stream .nx-excerpt {
    color: #999; font-size: 0.9rem; line-height: 1.6; margin: 15px 0 20px;
}
.data-stream .nx-btn {
    display: inline-block; padding: 10px 20px; text-align: center;
    border: 1px solid var(--nexus-gold); color: var(--nexus-gold);
    text-transform: uppercase; text-decoration: none; font-size: 0.75rem; letter-spacing: 1px;
    transition: 0.3s; width: fit-content;
}
.data-stream .nx-btn:hover { background: var(--nexus-gold); color: #000; }

/* -------------------------------------------
   SKIN 3: HOLO DECK
   ------------------------------------------- */
.holo-deck .nexus-card {
    position: relative; overflow: hidden; border-radius: 16px;
    height: 100%; /* Takes fixed height from widget settings */
}
.holo-deck .nx-holo-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: 0.5s; filter: grayscale(100%) brightness(0.6);
}
.holo-deck .nexus-card:hover .nx-holo-bg { transform: scale(1.1); filter: grayscale(0%) brightness(0.8); }
.holo-deck .nx-holo-overlay {
    position: relative; z-index: 2; height: 100%; width: 100%;
    background: linear-gradient(to top, #000 0%, transparent 80%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
}
.holo-deck .nx-holo-top { margin-bottom: auto; } /* Pushes title down */
.holo-deck .nx-holo-tag {
    color: var(--nexus-gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
    background: rgba(0,0,0,0.8); padding: 5px 10px; border-radius: 4px;
}
.holo-deck .nx-title a {
    color: white; text-decoration: none; font-size: 1.5rem; text-shadow: 0 5px 10px rgba(0,0,0,0.5);
}
.holo-deck .nx-holo-meta {
    color: #aaa; font-size: 0.8rem; margin-top: 10px;
}
.holo-deck .nx-holo-border {
    position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px; pointer-events: none; z-index: 3; transition: 0.3s;
}
.holo-deck .nexus-card:hover .nx-holo-border { border-color: var(--nexus-gold); inset: 5px; }

/* -------------------------------------------
   SKIN 4: NEON FLUX
   ------------------------------------------- */
.neon-flux .nexus-card {
    background: #000; border: 1px solid #222;
    padding: 10px; transition: 0.3s; height: 100%;
}
.neon-flux .nexus-card:hover { border-color: var(--nexus-gold); box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
.neon-flux .nx-flux-inner {
    background: #080808; height: 100%; display: flex; flex-direction: column;
}
.neon-flux .nx-flux-img {
    height: 200px; overflow: hidden; position: relative;
}
.neon-flux .nx-flux-img img {
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.3s;
}
.neon-flux .nexus-card:hover img { filter: grayscale(0%); }
.neon-flux .nx-flux-content {
    padding: 20px; display: flex; flex-direction: column; flex-grow: 1;
}
.neon-flux .nx-title a {
    color: #fff; font-family: 'Space Grotesk'; font-size: 1.2rem; text-decoration: none;
}
.neon-flux .nx-flux-footer {
    border-top: 1px solid #222; padding-top: 15px; margin-top: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.neon-flux .nx-cat-text { color: var(--nexus-gold); font-size: 0.8rem; text-transform: uppercase; }
.neon-flux .nx-icon-link {
    width: 30px; height: 30px; background: #222; color: #fff;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    transition: 0.3s;
}
.neon-flux .nexus-card:hover .nx-icon-link { background: var(--nexus-gold); color: #000; }

/* -------------------------------------------
   SKIN 5: SYSTEM GRID
   ------------------------------------------- */
.system-grid .nexus-card {
    background: #0b0b0b; border: 1px dashed #333;
    transition: 0.3s; position: relative; height: 100%;
}
.system-grid .nexus-card:hover { border-style: solid; border-color: var(--nexus-gold); transform: translateY(-3px); }
.system-grid .nx-grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px; pointer-events: none;
}
.system-grid .nx-grid-content {
    padding: 30px; position: relative; z-index: 2;
    display: flex; flex-direction: column; height: 100%;
}
.system-grid .nx-grid-icon {
    font-size: 2rem; color: #333; margin-bottom: 20px; transition: 0.3s;
}
.system-grid .nexus-card:hover .nx-grid-icon { color: var(--nexus-gold); }
.system-grid .nx-title a {
    font-family: monospace; font-size: 1.1rem; color: #eee; text-decoration: none;
}
.system-grid .nx-grid-footer {
    margin-top: 20px; font-family: monospace; color: #666; font-size: 0.8rem;
    display: flex; align-items: center; gap: 8px;
}
.system-grid .nx-status-dot {
    width: 8px; height: 8px; background: #27c93f; border-radius: 50%;
    box-shadow: 0 0 5px #27c93f;
}

/* -------------------------------------------
   SKIN 6: CINEMATIC
   ------------------------------------------- */
.cinematic .nexus-card {
    position: relative; height: 100%; overflow: hidden;
}
.cinematic .nx-cine-img {
    position: absolute; inset: 0;
}
.cinematic .nx-cine-img img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}
.cinematic .nexus-card:hover img { transform: scale(1.1); }
.cinematic .nx-cine-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, black 10%, transparent 80%);
}
.cinematic .nx-cine-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 25px;
}
.cinematic .nx-cine-cat {
    color: var(--nexus-gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 10px;
}
.cinematic .nx-title a {
    color: #fff; font-size: 1.6rem; text-decoration: none; line-height: 1.2;
}
.cinematic .nx-cine-bar {
    width: 0; height: 2px; background: var(--nexus-gold); margin-top: 15px; transition: 0.3s;
}
.cinematic .nexus-card:hover .nx-cine-bar { width: 50px; }

/* -------------------------------------------
   SKIN 7: GOLD STANDARD
   ------------------------------------------- */
.gold-standard .nexus-card {
    background: #0a0a0a; border-bottom: 2px solid #333;
    transition: 0.3s; height: 100%;
}
.gold-standard .nexus-card:hover { border-bottom-color: var(--nexus-gold); background: #0f0f0f; }
.gold-standard .nx-gold-img {
    height: 240px; overflow: hidden;
}
.gold-standard .nx-gold-img img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.3s;
}
.gold-standard .nexus-card:hover img { opacity: 0.8; }
.gold-standard .nx-gold-content {
    padding: 25px; display: flex; flex-direction: column; flex-grow: 1;
}
.gold-standard .nx-gold-meta {
    font-size: 0.8rem; color: #666; text-transform: uppercase; margin-bottom: 10px;
}
.gold-standard .nx-title a {
    color: #fff; text-decoration: none; font-family: 'Inter', serif; font-size: 1.3rem; font-weight: 400;
}
.gold-standard .nx-gold-link {
    color: var(--nexus-gold); text-decoration: none; font-size: 0.9rem; margin-top: 20px;
    text-transform: uppercase; letter-spacing: 1px;
}

/* --- NAVIGATION --- */
.swiper-button-next, .swiper-button-prev {
    color: var(--nexus-gold) !important;
    width: 40px !important; height: 40px !important;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--nexus-border);
    border-radius: 50%;
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 16px !important; }
.swiper-button-next:hover, .swiper-button-prev:hover { border-color: var(--nexus-gold); background: #000; }

.swiper-pagination-bullet { background: #555; opacity: 1; }
.swiper-pagination-bullet-active { background: var(--nexus-gold); }