/* --- Panopticon Dark Grey Theme --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #1a1a1a; /* Dark grey base */
    color: #e0e0e0;
    line-height: 1.6;
}

/* 2. Layout Container */
.container {
    display: flex;
    min-height: 100vh;
}

/* 3. Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: #121212; 
    display: flex;
    flex-direction: column;
    padding: 40px 15px;
    flex-shrink: 0;
    border-right: 1px solid #333;
}

/* 4. Panopticon Logo */
.panopticon-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    cursor: pointer;
}

/* New Logo Image Styling */
.logo-image {
    width: 400px;       /* Adjust size as needed */
    height: auto;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Maintain the active state visual feedback for the image */


/* Remove or Comment Out These Old Styles */
/* .tower-container, .spotlight, .tower-base { ... } 
*/
.logo-text {
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* 5. Navigation Links */
.sidebar a {
    text-decoration: none;
    color: #888; 
    padding: 15px 10px;
    border-bottom: 1px solid #222;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    color: #ffffff;
    background-color: #1a1a1a;
    padding-left: 20px;
    text-decoration: underline; /* Underline preserved */
}

/* 6. Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center; 
    align-items: flex-start;  
    padding: 80px 40px;
    background-image: url('pyramid.png'); 
    background-size: cover;
}

/* 7. Content Wrapper */
.content-wrapper {
    width: 90%; 
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* 8. Title */
.title {
    font-size: 2.5rem;
    font-weight: normal; /* Thinner weight matches content box */
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
    border-bottom: 3px solid #ffffff;
    padding-bottom: 10px;
    text-align: left; /* Alignment preserved */
}

/* 9. Semi-Transparent Content Box */
.content-box {
    /* Changed to rgba for slight transparency */
    background-color: rgba(18, 18, 18, 0.85); 
    border: 1px solid #333; 
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 100%; 
}

.content-box p {
    margin-bottom: 1.5rem;
    color: #cccccc; 
    font-size: 1.1rem;
    max-width: 1000px;
    text-align: center;
    line-height: 1.9;
}

/* 10. Responsiveness */
@media (max-width: 768px) {
    .container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; }
    .main-content { padding: 40px 20px; }
    .content-box { padding: 30px; }
}

#lightCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none; 
    display: none;
}


.panopticon-header.active .spotlight {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

/* Articles Grid Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Individual Tile Styling */
.article-tile {
    display: flex;
    flex-direction: column;
    background-color: #121212;
    border: 1px solid #333;
    text-decoration: none; /* Removes underline from title link */
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.article-tile:hover {
    transform: translateY(-5px);
    border-color: #666;
}

/* Image Container */
.tile-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #000; /* Placeholder color */
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills space without stretching */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.article-tile:hover .tile-image img {
    opacity: 1;
}

/* Caption Styling */
.tile-caption {
    padding: 20px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.tile-caption h3 {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.4;
}

/* Ensure responsiveness for smaller screens */
@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
