/* FORCED AMOLED THEME */
/* OPTIMIZED FOR ACCESSIBILITY & CONTRAST */
:root {
    --bg: #000000;          /* True AMOLED Black */
    --text: #F7F9F9;       /* Increased brightness from e7e9ea */
    --muted: #8B98A5;      /* Lighter gray to pass contrast checks against black */
    --border: #2F3336;      /* Kept same, works well for structure */
    --accent: #1D9BF0;      /* Twitter Blue */
    --hover: #16181C;       /* Slightly lighter than black for depth */
}


* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVIGATION */
.nav-bar {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 5px 14px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-weight: 700; color: var(--accent); font-size: 0.9rem; }

/* NEON BORDER STYLE */
.neon-border {
    border: 2px solid #bfbfbf !important;
    border-radius: 16px !important;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neon-border:hover {
    box-shadow: 0 0 25px rgba(255, 0, 153, 0.6);
    border-color: #ff0099 !important;
}

/* PROFILE SECTION */
.cover-photo { height: 150px; background: #333; overflow: hidden; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.profile-area { padding: 12px 16px; position: relative; border-bottom: 1px solid var(--border); }

.avatar-container {
    width: 80px; height: 80px;
    border: 4px solid var(--bg); position: absolute; top: -40px;
    background: #555;
}
.avatar-container img { width: 100%; height: 100%; object-fit: cover; }

.profile-content { margin-top: 45px; }
.name { font-size: 20px; font-weight: 800; }
.bio { font-size: 14px; margin: 8px 0; line-height: 1.4; }
.meta { color: var(--text); font-size: 13px; display: flex; gap: 12px; }

/* FEED */
.post {
    display: flex; padding: 16px; border-bottom: 1px solid var(--border);
    gap: 12px; transition: background 0.2s;
}
.post:hover { background: var(--hover); }

.post-avatar { width: 40px; height: 40px; flex-shrink: 0; }
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }

.post-body { flex: 1; min-width: 0; }
.post-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.post-author { font-weight: bold; font-size: 15px; }
.post-date { color: var(--muted); font-size: 13px; }
.post-text { font-size: 15px; line-height: 1.4; margin-bottom: 12px; }

/* MEDIA */
.post-media {
    position: relative; background: #000;
}
.media-track { display: flex; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.media-track img {
    width: 100%; flex-shrink: 0; object-fit: cover; aspect-ratio: 30/17;
}

/* IMAGE VIEWER */
.viewer-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
}
.viewer-content { max-width: 90%; max-height: 80%; border-radius: 12px; animation: zoomIn 0.3s ease; }
.close-viewer { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; cursor: pointer; }

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.viewable { cursor: pointer; }

/* BUTTON STYLES */
button {
  display: inline-block;
  padding: 8px 16px;
  background: #1a1a1a;
  color: #f5f5f5;
  border: 1px solid #333;
  border-radius: 4px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background: #2a2a2a;
  border-color: #444;
}

button a {
  color: inherit;
  text-decoration: none;
}

.normal-footer { padding: 30px 16px; text-align: center; border-top: 1px solid var(--border); margin-top: auto; }
.normal-footer p { font-size: 13px; color: var(--muted); }
