/* ==========================================================================
   Nexus Directory Styles - Tailored for Nexus Unbound Theme
   ========================================================================== */

.nexus-directory-container,
.nexus-profile-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
	padding-top:60px;
    position: relative;
    z-index: 1;
}

.nexus-directory-container h1,
.nexus-directory-container h2,
.nexus-directory-container h3,
.nexus-profile-container h1,
.nexus-profile-container h2,
.nexus-profile-container h3 {
    font-family: 'Rajdhani', sans-serif;
    color: #f8fafc;
    letter-spacing: 0.02em;
}

.directory-header h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.nexus-directory-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    background: rgba(13, 20, 38, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.nexus-directory-filters select {
    padding: 10px 14px;
    background: rgba(4, 6, 13, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nexus-directory-filters select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    padding: 11px 24px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    background-size: 200% 200%;
    transition: all 0.4s ease;
}

.filter-btn:hover {
    background-position: 100% 0;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    transform: scale(1.02);
}

.btn-clear-filters {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-clear-filters:hover {
    color: #f8fafc;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.nexus-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px; /* Uniform 28px spacing both horizontally and vertically */
    align-items: start; /* Prevents cards from stretching vertically across row tracks */
}

.nexus-game-card {
    background: rgba(13, 20, 38, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nexus-game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 12px 30px -10px rgba(6, 182, 212, 0.3);
}

/* Fixed-Size Aspect Container Frame */
.card-logo {
    width: 100%;
    height: 190px;
    background: rgba(4, 6, 13, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Render Full Image Proportions Without Cropping */
.card-logo img,
.placeholder-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shrinks/scales image smoothly inside the 190px box without cutting edges off */
    padding: 12px;       /* Adds breathing space around aspect boundaries */
}

.logo-placeholder {
    height: 190px;
    background: rgba(4, 6, 13, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.card-tags {
    margin: 14px 0 10px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nexus-tag {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 4px;
    color: #fff;
}

.status-recruiting { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
.status-active     { background: #06b6d4; box-shadow: 0 0 10px rgba(6, 182, 212, 0.3); }
.status-watch      { background: #f59e0b; color: #000; }
.status-hiatus     { background: #f97316; }
.status-inactive   { background: #ef4444; }

.type-tag          { background: rgba(139, 92, 246, 0.25); border: 1px solid rgba(139, 92, 246, 0.5); color: #c084fc; }
.universe-tag      { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); color: #cbd5e1; }

.card-title {
    font-size: 1.4rem;
    margin: 8px 0 4px 0;
}

.card-title a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #06b6d4;
}

.card-gm {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.card-gm strong {
    color: #cbd5e1;
}

.card-actions {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-profile, 
.btn-external {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.btn-profile {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-profile:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-external {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: #fff;
}

.btn-external:hover {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transform: scale(1.02);
}

.btn-coming-soon {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    cursor: default;
}

.nexus-game-profile {
    background: rgba(13, 20, 38, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 36px;
}

.profile-header {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 32px;
}

.profile-logo img,
.profile-placeholder-img {
    max-width: 280px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.profile-title-area h1 {
    font-size: 2.8rem;
    margin-top: 0;
    margin-bottom: 16px;
}

.profile-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.gm-badge {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-right: 8px;
}

/* Single Game Page Action Group & Standardized Button Sizing */
.profile-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
}

.btn-play-now,
.btn-discord,
.profile-coming-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.btn-play-now {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: #fff;
}

.btn-play-now:hover {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transform: scale(1.02);
}

.btn-discord {
    color: #ffffff;
    background: rgba(88, 101, 242, 0.25);
    border: 1px solid rgba(88, 101, 242, 0.6);
}

.btn-discord:hover {
    background: rgba(88, 101, 242, 0.5);
    border-color: #5865f2;
    box-shadow: 0 0 14px rgba(88, 101, 242, 0.4);
    color: #ffffff;
}

.profile-coming-soon {
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    cursor: default;
}

.profile-content {
    line-height: 1.7;
    margin-bottom: 40px;
}

.profile-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #06b6d4;
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 20px;
}

.profile-rss-feed {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-rss-feed h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.nexus-rss-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nexus-rss-list li {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 6, 13, 0.4);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nexus-rss-list li:hover {
    background: rgba(6, 182, 212, 0.08);
    transform: translateX(4px);
}

.nexus-rss-list a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
}

.nexus-rss-list a:hover {
    text-decoration: underline;
    color: #a7f3d0;
}

.rss-date {
    font-size: 0.82rem;
    color: #64748b;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-logo img,
    .profile-placeholder-img {
        max-width: 100%;
    }
}

/* ==========================================================================
   Combined LSV Pill - Continuous Badge with Color-Coded Numbers
   ========================================================================== */

.lsv-combined-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 3px 2px 8px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.lsv-prefix {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-right: 5px;
}

.lsv-digits {
    display: inline-flex;
    border-radius: 3px;
    overflow: hidden;
}

.lsv-digit {
    display: inline-block;
    width: 16px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Value 0: Mild / None */
.rating-val-0 {
    background-color: #1e293b;
    color: #94a3b8;
}

/* Value 1: Moderate */
.rating-val-1 {
    background-color: #0e7490;
    color: #e0f2fe;
}

/* Value 2: Strong */
.rating-val-2 {
    background-color: #581c87;
    color: #f3e8ff;
}

/* Value 3: Explicit */
.rating-val-3 {
    background-color: #7f1d1d;
    color: #ffe4e6;
}