/* style.css - The Dungeon Makeover */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --text-main: #d0d0d0;
    --text-muted: #777;
    --accent: #6c5ce7; /* Deep Purple */
    --accent-glow: rgba(108, 92, 231, 0.3);
    --border: #333;
    --danger: #c0392b;
    --success: #27ae60;
}

body {
    background-color: var(--bg-color);
    /* Perforated Metal Texture Effect */
    background-image: radial-gradient(#1a1a1a 15%, transparent 16%), radial-gradient(#1a1a1a 15%, transparent 16%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: 0.3s; }
a:hover { color: #a29bfe; text-shadow: 0 0 5px var(--accent); }

/* Layout */
.container { max-width: 900px; margin: 0 auto; padding: 20px; }

header {
    background: #000;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    padding: 15px 0;
}

/* Industrial Navigation */
nav ul { list-style: none; padding: 0; text-align: center; margin: 0; }
nav ul li { display: inline-block; margin: 0 10px; }
nav ul li a { 
    font-family: 'Courier New', Courier, monospace; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-size: 1.1em;
    padding: 5px 10px;
    border: 1px solid transparent;
}
nav ul li a:hover {
    border: 1px solid var(--accent);
    background: rgba(108, 92, 231, 0.1);
}

/* Status Widget (The Cell Bar) */
.status-bar {
    background: #000;
    border: 1px solid #444;
    border-left: 6px solid #555;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: inset 0 0 20px #000; /* Sunken look */
    position: relative;
}

/* "Rivets" in the corners of the status bar */
.status-bar::before, .status-bar::after {
    content: ''; position: absolute; top: 5px; width: 6px; height: 6px; 
    background: #333; border-radius: 50%; box-shadow: 0 1px 0 #555;
}
.status-bar::before { left: 5px; }
.status-bar::after { right: 5px; }

.status-label { font-size: 0.85em; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.status-value { font-size: 1.4em; font-weight: bold; text-transform: uppercase; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.status-locked { border-left-color: var(--danger); }
.status-unlocked { border-left-color: var(--success); }

/* Blog Posts (The "Records") */
.post-card {
    background: var(--card-bg);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #333;
    /* Industrial Plate Look */
    box-shadow: 0 0 0 1px #000, 5px 5px 15px rgba(0,0,0,0.5); 
    position: relative;
}

.post-header-bar {
    border-bottom: 1px dashed #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.post-title { margin: 0; color: #eee; font-family: 'Verdana', sans-serif; letter-spacing: -0.5px; }
.post-meta { font-family: 'Courier New', monospace; font-size: 0.8em; color: var(--accent); }

.record-id {
    font-family: 'Courier New', monospace;
    color: #444;
    font-size: 0.8em;
    letter-spacing: 1px;
}

.post-content { color: #bbb; }
.post-content img { max-width: 100%; height: auto; border: 1px solid #444; margin: 10px 0; }

.btn { 
    display: inline-block; 
    background: #222; 
    color: var(--accent); 
    padding: 10px 20px; 
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-weight: bold;
    border: 1px solid var(--accent); 
    cursor: pointer; 
    margin-top: 10px;
}
.btn:hover { background: var(--accent); color: #fff; box-shadow: 0 0 15px var(--accent-glow); }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { background: #000; padding: 10px; border: 1px solid #333; text-align: center; }
.gallery-item img { width: 100%; height: auto; border: 1px solid #222; }

/* Forms */
input[type="text"], textarea, input[type="password"] { 
    width: 100%; padding: 12px; background: #000; border: 1px solid #444; 
    color: #fff; box-sizing: border-box; margin-bottom: 15px; font-family: 'Courier New', monospace;
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; }

footer {
    margin-top: 50px; padding: 30px 0; border-top: 1px solid #333; text-align: center; color: #555; font-size: 0.8em;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .container { width: 90%; padding: 15px 5%; }
    
    /* Stack the nav links vertically or smaller */
    nav ul li { margin: 0 5px; font-size: 0.9em; }
    
    /* Stack the status widget */
    .status-bar { flex-direction: column; text-align: center; gap: 15px; }
    .status-bar > div { width: 100%; text-align: center !important; }
    
    /* Stack post header details */
    .post-header-bar { flex-direction: column; }
    .record-id { display: none; } /* Hide record ID on small screens to save space */
}