/* 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);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    color: white;
    min-width: 780px;
    max-width: 880px;
    margin: 40px auto;
    display: grid;
}
.site-title {
    font-size: 40px;
    color: #ff00ff;
}
.site-description {
    font-size: 18px;
    color: #ddd;
}
.author-profile, .faction-profile-container{
	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 */
}
  
.cursor-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;
}
  
 @keyframes neonFlicker {
    0% { text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff; }
    50% { text-shadow: 0 0 2px #ff00ff, 0 0 5px #ff00ff; }
    100% { text-shadow: 0 0 8px #ff00ff, 0 0 15px #ff00ff; }
}
  
.neon-flicker {
    font-size: 2rem;
    margin-top: 10px;
    color: #fc9dfc;
    animation: neonFlicker 1s infinite alternate;
    transition: opacity 0.1s ease-in-out;
}
@keyframes movingGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
  
@keyframes gradientBorder {
    0% { border-image-source: linear-gradient(45deg, #240016, purple); }
    50% { border-image-source: linear-gradient(45deg, rgba(20, 20, 40, 0.8), #1a1a2e); }
    100% { border-image-source: linear-gradient(45deg, #0a0a0f, #240016); }
}
  
.rpg-content {
    position: relative;
    padding: 10px;
    border: 4px solid transparent;
    border-radius: 10px;
    background-clip: padding-box;
}
  
.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;
}

/* Modern UI Enhancements */
.rpg-content {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
}

.rpg-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.6);
}

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

tr {
    transition: all 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 !important;
}

th {
    text-align: center !important;
}

table tbody td, table tbody th {
    text-align: center !important;
}

/* 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;
}
@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* --- 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;
    }
}
/* --- End Enhanced Mobile Styles for Layout --- */