/* General Body and HTML Styles */
html {
    scroll-behavior: smooth;
}
body {
    background-color: #0A0F1E; /* Dark blue background from original design */
    color: #E0E0E0; /* Light grey text */
    margin: 0;
    font-family: 'Inter', sans-serif; /* Assuming Inter as a base, Iceland and Orbitron for specific elements */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header Styles */
.ris-header {
    width: 100%;
    height: 60vh;
    /* IMPORTANT: Ensure image path is correct if you move it, or use a relative path if it's in an /images folder */
    /* For example: background-image: url('../images/Star_Citizen_Header_Bg.jpg'); */
    background-image: url('../images/Star_Citizen_Header_Bg.jpg'); /* Placeholder - update with actual image path */
    background-size: cover;
    background-position: center 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}
.ris-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10,15,30,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}
.header-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.ris-logo {
    width: 150px;
    height: auto;
}
.ris-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #FFFFFF;
    letter-spacing: 0.2rem;
    border: 2px solid white;
    padding: 0.5rem 1.5rem;
}
.ris-nav-button {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #FFF;
    background: rgba(0,0,0,0.3);
    border: 1px solid #FFF;
    padding: 5px 15px;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ris-nav-button:hover {
    background: #FFF;
    color: #000;
}

/* Terminal MobiGlas Styles */
.terminal-wrapper {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px; 
    min-height: 100vh; /* Ensure it takes up space for mobiGlas */
}
.mobi-glass-container {
    font-family: 'Iceland', sans-serif;
    width: 100%;
    max-width: 1200px;
    height: 85vh; 
    max-height: 800px;
    display: flex;
    flex-direction: column;
    border: 2px solid #0D2F4F; 
    box-shadow: 0 0 35px rgba(10, 175, 230, 0.6),
                inset 0 0 20px rgba(10, 175, 230, 0.3),
                0 0 50px rgba(0,0,0,0.5); 
    background: radial-gradient(ellipse at center, rgba(10, 25, 40, 0.85) 0%, rgba(5, 10, 20, 0.98) 100%);
    border-radius: 15px;
    transform-style: preserve-3d;
    
    /* Initial "off" state for mobiGlas */
    opacity: 0;
    visibility: hidden;
    transform: rotateX(5deg) rotateY(0deg) translateZ(-50px) scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0s linear 0.5s;
}
.mobi-glass-container.active {
    /* "On" state for mobiGlas */
    opacity: 1;
    visibility: visible;
    transform: rotateX(5deg) rotateY(0deg) translateZ(-50px) scale(1);
    transition: opacity 0.5s ease-out 0.1s, transform 0.5s ease-out 0.1s, visibility 0s linear; 
}
.content-screen {
    flex-grow: 1; padding: 20px; overflow-y: auto; 
    background-color: rgba(10, 20, 35, 0.6); 
    border-bottom: 2px solid #0D2F4F; border-radius: 10px 10px 0 0;
    position: relative; /* For absolute positioning of back button */
}
.tab-bar {
    display: flex; justify-content: space-around; align-items: center;
    background-color: #071222; padding: 5px 0; border-top: 2px solid #0D2F4F;
    position: relative; border-radius: 0 0 12px 12px;
}
.status-display {
    position: absolute; left: 0; bottom: 0; display: flex; align-items: center;
    padding: 10px 20px; background-color: #0A1A30; border-top-right-radius: 20px; 
    border-top: 1px solid #0D2F4F; border-right: 1px solid #0D2F4F;
    border-bottom-left-radius: 12px; height: 100%; box-sizing: border-box;
}
.status-icon {
    width: 30px; height: 30px; margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 C27.9 10 10 27.9 10 50 C10 72.1 27.9 90 50 90 L50 75 C36.2 75 25 63.8 25 50 C25 36.2 36.2 25 50 25 Z' fill='%230AF0F0'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
}
.status-text { font-size: 1rem; color: #0AF0F0; font-weight: 500; }
.status-subtext { font-size: 0.9rem; color: #0A8F8F; }
.tab-item {
    padding: 8px 12px; cursor: pointer; color: #6B8BAD; font-size: 1rem; 
    font-weight: 500; text-transform: uppercase; border-radius: 4px;
    transition: all 0.3s ease; border: 1px solid transparent;
}
.tab-item:hover { color: #0AF0F0; background-color: rgba(10, 175, 230, 0.1); }
.tab-item.active {
    color: #FFFFFF; background-color: #0A6090; border: 1px solid #0AF0F0; 
    box-shadow: 0 0 10px rgba(10, 175, 230, 0.7);
}
.tab-item.disabled { color: #4A5568; cursor: not-allowed; }
.tab-item.disabled:hover { background-color: transparent; color: #4A5568; }

/* Content Pane Styles */
.content-pane { display: none; animation: fadeIn 0.5s ease-in-out; }
.content-pane.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Journal Specific Styles */
.journal-layout { display: flex; gap: 20px; height: calc(100% - 40px); /* Adjust if padding changes */ }
.journal-post-list { width: 30%; border-right: 1px solid #0D2F4F; padding-right: 20px; overflow-y: auto; }
.journal-post-content { width: 70%; overflow-y: auto; }
.post-item { /* Common style for both journal and comms list items */
    padding: 10px; margin-bottom: 8px; border-radius: 4px; cursor: pointer;
    border: 1px solid #0D2F4F; background-color: rgba(15, 35, 55, 0.5); transition: all 0.2s ease;
}
.post-item:hover, .post-item.selected { background-color: rgba(10, 175, 230, 0.2); border-color: #0AF0F0; color: #E0E0E0; }
.post-item h3 { font-size: 1.3rem; font-weight: 600; color: #A0DFFF; margin-bottom: 5px; }
.post-item p { font-size: 1rem; color: #8BACC1; } /* Used for excerpt/summary */
.journal-content-area h2 { font-size: 1.8rem; color: #0AF0F0; margin-bottom: 15px; border-bottom: 1px solid #0D2F4F; padding-bottom: 10px; }
.journal-content-area p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 10px; color: #B0C4DE; }
.journal-content-area .meta { font-size: 1rem; color: #708090; margin-bottom: 20px; }

/* Comms Tab Specific Styles */
.comms-feed-list-container, .comms-article-view-container {
    height: 100%;
    overflow-y: auto;
}
.comms-article-view-container { display: none; /* Hidden by default */ }
.comms-back-button {
    position: absolute; 
    top: 5px; 
    left: 5px; 
    background-color: #0A6090;
    color: #0AF0F0;
    border: 1px solid #0AF0F0;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 1rem; 
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; 
}
.comms-back-button:hover {
    background-color: #0AF0F0;
    color: #071222;
}
.comms-article-content {
    padding-top: 50px; /* Space for the back button */
}
.comms-article-content h2 { font-size: 1.8rem; color: #0AF0F0; margin-bottom: 15px; border-bottom: 1px solid #0D2F4F; padding-bottom: 10px; }
.comms-article-content p, .comms-article-content div { font-size: 1.1rem; line-height: 1.6; margin-bottom: 10px; color: #B0C4DE; }
.comms-article-content .meta { font-size: 0.9rem; color: #708090; margin-bottom: 20px; }
.comms-feed-item .feed-meta {
    font-size: 0.8rem;
    color: #6B8BAD;
    margin-top: 5px;
}

/* Placeholder Content Styles */
.placeholder-content {
    display: flex; justify-content: center; align-items: center; height: 100%;
    font-size: 1.5rem; color: #4A5568; border: 2px dashed #2D3748;
    border-radius: 8px; min-height: 200px; 
}

/* Scrollbar Styles */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #071222; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #0A6090; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0AF0F0; }
