/* layout.css - main layout containers and content area */
.rpg-container {
    display: flex;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
	margin-top: 50px;
    transition: none;
}
.rpg-content, .author-profile, .faction-profile-container {
    flex: 1;
    background: rgba(10, 10, 20, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    color: white;
    min-width: 0;
    max-width: 880px;
    margin: 40px auto;
    display: grid;
}

.author-profile, .faction-profile-container {
    padding: 30px;
    margin-top: 100px;
}
.rpg-post {
    padding: 20px;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 10px;
}
.rpg-post p {
    font-size: 14px;
}
.rpg-post a {
    color: #ff00ff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.rpg-post a:hover {
    text-shadow: 0px 0px 10px #ff00ff;
}

#cyberCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Prevents interaction */
}
  
.mouse-trail {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 0, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.8);
    transition: transform 0.05s linear;
}
  
.neon-flicker {
    font-size: 2rem;
    margin-top: 10px;
    color: #fc9dfc;
    animation: neonFlicker 1s infinite alternate;
    transition: opacity 0.1s ease-in-out;
}
  
.rpg-content {
    position: relative;
    padding: 10px;
    border: 4px solid transparent;
    border-radius: 10px;
    background-clip: padding-box;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, margin-left 0.4s ease-in-out;
}

.rpg-content::before {
    content: "";
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 12px;
    background: linear-gradient(45deg, #240016, purple, rgba(20, 20, 40, 0.8), #1a1a2e, #0a0a0f);
    background-size: 300% 300%;
    z-index: -1;
    animation: movingGradient 6s infinite linear;
    will-change: background-position;
}

/* .rpg-content:hover removed — non-clickable container should not have hover effects */

/* Enhanced Table Styling */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 20px 0;
}

tr {
    transition: background-color 0.3s ease;
}

tr:hover {
    transform: scale(1.01);
    background: rgba(255, 0, 255, 0.1);
}

th {
    background: rgba(135, 7, 255, 0.3);
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    background: rgba(20, 20, 40, 0.6);
    padding: 12px;
    border-top: 1px solid rgba(255, 0, 255, 0.1);
    text-align: center;
}

th {
    text-align: center;
}

/* Loading Animation */
.loading {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff00ff, transparent);
    animation: loading 1.5s infinite;
}
.faction-name-cell {
	justify-items: center;
}

/* --- Enhanced Mobile Styles for Layout --- */
@media (max-width: 900px) {
    .rpg-container {
        flex-direction: column;
        padding: 10px 2px;
        margin-top: 20px;
    }
    .rpg-content, .author-profile, .faction-profile-container {
        min-width: 0;
        max-width: 98vw;
        padding: 14px 4vw;
        margin: 20px 0 0 0;
        border-radius: 10px;
        box-shadow: 0 0 12px rgba(255,0,255,0.10);
    }
    .site-title {
        font-size: 2rem;
    }
    .site-description {
        font-size: 1.1rem;
    }
}
@media (max-width: 600px) {
    .rpg-container {
        padding: 4px 0;
        margin-top: 0;
    }
    .rpg-content, .author-profile, .faction-profile-container {
        padding: 7px 2vw;
        border-radius: 7px;
        margin: 10px 0 0 0;
    }
    .site-title {
        font-size: 1.2rem;
    }
    .site-description {
        font-size: 0.95rem;
    }
    .rpg-post {
        padding: 10px 4px;
        border-radius: 6px;
    }
    table {
        font-size: 0.95em;
    }
    th, td {
        padding: 6px 10px;
    }
    /* Mobile table-to-card transformation */
    table.responsive-cards,
    table.responsive-cards thead,
    table.responsive-cards tbody,
    table.responsive-cards tr,
    table.responsive-cards th,
    table.responsive-cards td {
        display: block;
    }
    table.responsive-cards thead {
        display: none;
    }
    table.responsive-cards tr {
        background: rgba(20, 20, 40, 0.8);
        border: 1px solid rgba(135, 7, 255, 0.2);
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 10px;
    }
    table.responsive-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 10px;
        border: none;
        background: transparent;
        text-align: right;
    }
    table.responsive-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #ff80ff;
        text-align: left;
        margin-right: 10px;
    }
}
/* --- End Enhanced Mobile Styles for Layout --- */